libav (or libav*) is the collective name of the FFmpeg libraries: libavcodec, libavformat, libavfilter, libavutil, etc. The name has also been appropriated by the Libav project–a fork of FFmpeg.
Questions tagged [libav]
591 questions
0
votes
1 answer
Audio Video synchronisation with Libav encoder
I am trying to encode live rtmp stream via Libav library encoder by using avconv tool in following command -
avconv -timelimit 4000 -i rtmp://IP/live/file-name -shortest -s 176*144 -r 10 \
-b:v 56k -ab 12k -ac 1 -ar 22050 -f flv …

Yuvraj Kakkar
- 1,123
- 1
- 11
- 24
0
votes
1 answer
Saving frames from a network camera (RTSP) to a mp4 file
I am quite confused about how to save a video stream into a mp4 file. I am using ffmpeg. Let me explain the problem:
I connect to a network camera via RTSP (H.264 stream) with avformat_open_input(), avformat_find_stream_info(), av_read_play(), and…

Didac Perez Parera
- 3,734
- 3
- 52
- 87
0
votes
1 answer
Encoding flv video by libavcodec not working
I'm trying to use libavcodec to encode a flv video.
Following code is a sample code to generate a mpeg video, it works well. But after replacing the codec ID with AV_CODEC_ID_FLV1, the generated video file cannot be played.
void simpleEncode(){
…

Mark Ma
- 1,342
- 3
- 19
- 35
0
votes
1 answer
Lossless video codec squashing dim pixels using avconv
I am using avconv to convert a raw avi grayscale video to huffyuv with mkv container. I've read that huffyuv is "mathematically lossless", which is precisely what I want. avoprobe on the input file gives
Input #0, avi, from 'myvid.avi': Duration:…

Noah
- 196
- 10
0
votes
1 answer
ffmpeg error on decode
I'm developing an android app with the libav and I'm trying decode a 3gp with code below:
#define simbiLog(...) __android_log_print(ANDROID_LOG_DEBUG, "simbiose", __VA_ARGS__)
...
AVCodec *codec;
AVCodecContext *c = NULL;
int len;
FILE *infile,…

ademar111190
- 14,215
- 14
- 85
- 114
0
votes
1 answer
Libav and xaudio2 - audio not playing
I am trying to get audio playing with libav using xaudio2. The xaudio2 code I am using works with an older ffmpeg using avcodec_decode_audio2, but that has been deprecated for avcodec_decode_audio4. I have tried following various libav examples, but…

siz
- 117
- 3
- 9
0
votes
1 answer
Adding 2 pictures to a video with avconv
Here is the command that I am using to add a logo to a stream
avconv -f alsa -i pulse -f x11grab -s hd720 -i :1.0+nomouse -vf "movie=logo.png [watermark]; [in][watermark] overlay=10:10 [out]" -acodec libvo_aacenc -vcodec libx264 -threads auto -f flv…

Dan Mooray
- 245
- 1
- 5
- 8
0
votes
1 answer
Video decoding using ffms2 (ffmpegsource)
I'm using ffms2 (aka FFmpegSource) for decoding video frames and display on UI based on wxWidgets.
My player works fine for low resolution video (320*240, 640*480) but for higher resolution (1080) it is very slow. I'm not able to meed the desired…

praks411
- 1,972
- 16
- 23
0
votes
1 answer
How to convert MP4 (h264/aac) file to F4F fragments for HDS (Adobe)
I am looking for some input on how to programmatically convert mp4 files to fragmented f4f files with accompanying manifests.
I currently have an implementation for creating segmented MPEG2-TS files with accompanying manifest for Apples HLS, and…

Christian P.
- 4,784
- 7
- 53
- 70
0
votes
1 answer
Converting mp4 to mpeg2-ts crashes on audio packets
I have written some C code that takes an mp4 file with h264-encoded video and AAC-encoded audio and writes it to segmented .ts files.
The code can be seen here: http://pastebin.com/JVdgjM9G
The problem is that the code chokes on audio packets.…

Christian P.
- 4,784
- 7
- 53
- 70
0
votes
1 answer
Using libavformat in C code, undefined x86_64 symbols
I am working on a project where I have to create a simple C program that makes use of libavformat to convert a file from one format to another.
I am working on OS X (10.8.3) and have installed libav through the following steps.
First, install…

Christian P.
- 4,784
- 7
- 53
- 70
0
votes
0 answers
enable listen to microphone on windows or use libav for live replay
i need a system which is recording the sound from my microphone and play it live at the same time. i'm using windows 7 professional, c++ mingw or msvc 2012/2010 optional.
im using libav for grabbing my mic and play/record the sound. my problem is,…

user1810087
- 5,146
- 1
- 41
- 76
0
votes
2 answers
Setting individual pixels of an RGB frame for ffmpeg encoding
I'm trying to change the test pattern of an ffmpeg streamer, Trouble syncing libavformat/ffmpeg with x264 and RTP , into familiar RGB format. My broader goal is to compute frames of a streamed video on the fly.
So I replaced its…

Camille Goudeseune
- 2,934
- 2
- 35
- 56
0
votes
2 answers
Can't record S-Video with avconv
I've been trying to record feed from my S-Video cable using avconv. I am able to record composite video with avconv, but the quality isn't the best. To set the input, I use v4l2-ctl -i $n, where $n is either 0 for composite, or 1 for S-Video. I…

Ertain
- 67
- 11
0
votes
3 answers
SDL video overlay flickers with SDL_Flip
I use SDL and libav in C++ to draw a video on the screen in Linux. Most of my code for video opening is based on this tutorial, but I changed some functions that were deprecated. I initialize SDL like this:
SDL_Init(SDL_INIT_EVERYTHING);
const…

Carlito
- 805
- 10
- 20