[FFmpeg-user] Webcam capture with ffmpeg on Windows: need help with raw capture + preview window.

Carl Eugen Hoyos cehoyos at ag.or.at
Wed May 22 11:28:56 CEST 2013

Paul Goins <general <at> vultaire.net> writes:

> ffmpeg -f dshow -rtbufsize 1000000k -s 1280x720 -r 30 \
> -i video="Logicool HD Webcam C310":audio="マイク 
> (Realtek High Definition Au" \
> -vcodec copy -acodec copy -r 30 -threads 4 output.avi \
> -s 426x240 -pix_fmt yuv420p -f rawvideo -

(Complete, uncut console output missing.)
-threads 4 are definitely useless for -codec copy, I would 
actually expect that -threads 1 works (slightly) better.

Why don't you use output.avi for the preview?
-analyzeduration and -probesize may help with the delay.

Carl Eugen

More information about the ffmpeg-user mailing list