[FFmpeg-user] problem with analyzeduration

Andrey Utkin andrey.krieger.utkin at gmail.com
Tue Feb 28 10:37:37 CET 2012

27 февраля 2012 г. 21:02 пользователь Маджугин Александр
<madzhugin at yandex.ru> написал:
> Hi.
> I have faced the following problem - i have to make a photo with webcam and i have to do it quickly.
> But while running ffmpeg analizes input stream too long - about 2-3 sec.
> I tried to use the option "-analyzeduration 0", however, it didn't give any result - ffmpeg analizes input stream anyway.
> I also tried to describe input stream totally, but it didn't give any result again.
> I use the following command:
> "ffmpeg -f video4linux2,v4l2 -analyzeduration 0 -s 640x480 -qscale 0 -r 30 -pix_fmt yuyv422 -i /dev/video0 -f image2 -c:v mjpeg -pix_fmt yuvj422p -vframes 1 out.jpg"

Try options -probesize, -fpsprobesize with low values.

Andrey Utkin

More information about the ffmpeg-user mailing list