Puppy Linux Blog

About





This Blog:
PRITLOG is an extremely simple, small and powerful blog system. 
Just drop Pritlog into your server and it starts running. No separate installation is required. The basic idea is derived from a similar app called PPLOG.

Stats

Users Online: 0
Hits: 0

webcam screenshots

Using ffmpeg with webcam

take 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



Author: admin -  Date: 18 Dec 2011 04:25
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"; done

This 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.

Author: admin -  Date: 18 Dec 2011 04:13
Category: ffmpeg -  Visits: 2003

No Comments - Edit - Delete



Pages: [1]