[FFmpeg-user] Grabbing video through the webcam

dE . de.techno at gmail.com
Sat Jan 14 12:00:18 CET 2012


On 01/14/12 21:25, Cecil Westerhof wrote:
> I upgraded to openSUSE 12.1 and at the moment wxcam does not work
> there. I tried cheese, but this does not record audio.
>
> I cam across a command-line for ffmpeg and I use now:
>      ffmpeg -y -f oss -i /dev/dsp -f video4linux2 -s 640x480 -i /dev/video0 out.avi
>
> This works reasonable well. Video is not so good, but audio is. Is
> there a way to get better video? When I use cheese the video is a lot
> better as when I use ffmpeg.
>
> What also would be nice if I could see what I am recording. Is that
> possible?
>
> What is the ‘right’ way to stop? Now I stop with Ctrl+C, but that does
> not give a clear cut.
>

Increase the resolution, and use a specific video codec -

ffmpeg -y -f alsa -i plughw:0,0 -f video4linux2 -s 640x480 -i /dev/video0 -preset ultrafast -b 20000k -vcodec libx264 out.avi

And use alsa instead of OSS.



More information about the ffmpeg-user mailing list