[FFmpeg-user] Troubles when recording audio and video, between minute 15 and minute 30

Livio Tenze ltenze at gmail.com
Sun Aug 21 17:36:01 EEST 2016


Dear all,

I am using the ffmpeg (version n3.0) to record, on the fly, audio and
video. The audio is from an usb microphone and the video is from a logitech
webcam. The audio and the video are mixed and encoded in an output file.
The ffmpeg binaries have been generated by this command:

./configure --disable-static --enable-shared \
        --disable-yasm --enable-gpl --enable-nonfree \
        --enable-libfaac --enable-libmp3lame \
        --enable-libvpx --enable-libfdk-aac \
        --enable-libx264 --enable-libvorbis \
        --prefix=${CURRDIR}/build/ffmpeg

The command used for mixing and encoding is the following one:
ffmpeg -y -f video4linux2 -s 320x240 -r 10 -i /dev/video1 -f alsa
-thread_queue_size 4096 -ar 22050 -i plughw:2 -b:a 56000 -vol 1177 -b:v
200000 -vf crop=320:240:0:0,scale=320:240 -c:v libx264 -c:a libfdk_aac
-pix_fmt yuv420p /home/sdu/Desktop/2016-08-10/13_58_22/openeya.mp4

My problem is that, after some time (between minute 15 and minute 30), the
audio loses the right synchronization and an audio delay is added...

The same behavior is present in various platform (arm/raspberry and intel).

How could I solve this problem?
Thanks in advance.


More information about the ffmpeg-user mailing list