[FFmpeg-user] Webcam capture

Carl Zwanzig cpz at tuunq.com
Wed Jul 22 19:11:08 EEST 2020


On 7/22/2020 6:22 AM, Rodolfo Medina wrote:
> Same problem also with simply:
> 
>   $ ffmpeg -f alsa -i hw:1,0 -f video4linux2 -i /dev/video0 out.mpg
> 
> , and audio completely out of sync...

And complete command output is still missing (it's always helpful)....

Since this works--
mencoder tv:// -tv driver=v4l2:width=640:height=480 [...]

The computer you're using may not have enough resources to process those 
large frames. If the native resolution of the devices is 3200x2400, that's 
23MB/frame, and encoding often needs to keep a few in memory at once. As you 
tried in mencover, dial down the capture size in ffmpeg and see if that work.

z!


More information about the ffmpeg-user mailing list