webcam screenshots
Using ffmpeg with webcamtake one image per second
-r 1
to take images for 3 seconds
-t 3
so this will give you 3 jpegs in your root directory at vga resolution
Code:
ffmpeg -y -r 1 -t 3 -f video4linux2 -s vga -i /dev/video0 ~/camshot%d.jpeg
similarly here is a cheap way to capture webcam video:
rxvt +sb -bg orange -geometry 80x2 -e ffmpeg -y -f oss -i /dev/audio -f video4linux2 -s qvga -i /dev/video0 ~/a.avi
---------------------------------------
Using mplayer with webcam
changing -frames to different values changes number of screenshots.
mplayer -fps 1 tv:// -tv driver=v4l2:device=/dev/video0:width=320:height=240:outfmt=rgb24 -frames 5 -vo jpeg
Category: ffmpeg - Visits: 3189
No Comments - Edit - Delete