[FFmpeg-user] Webcam capture
Rodolfo Medina
rodolfo.medina at gmail.com
Mon Jul 20 10:54:42 EEST 2020
Hi all.
When capturing video from webcam, with:
$ ffmpeg -f video4linux2 -s 3200x2400 -i /dev/video0 -vb 20M out.mpg
, out.mpg stops, freezes, gets stuck at the beginning for a few seconds. Only
at the beginning and only for a few seconds. I thought the problem was related
to the cheap low-quality webcam but it completely disappears when I do instead:
$ mencoder tv:// -tv driver=v4l2:width=640:height=480:device=/dev/video0:forceaudio:alsa:adevice=hw.1,0 -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o webcam.avi
So what could the cause be of the problem with ffmpeg?
Thanks for any help.
Rodolfo
More information about the ffmpeg-user
mailing list