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: 3188
No Comments - Edit - Delete
Convert .ogg to .mp3
for x in *.ogg; do ffmpeg -i "$x" -ab 128 "`basename "$x" .ogg`.mp3"; doneThis does an entire dir at once. You must be inside the dir you want to convert. Substitute whatever you want your target bitrate to be up where 128 is.
Category: ffmpeg - Visits: 2003
No Comments - Edit - Delete