16 November, 2012

Screen Capture with FFMpeg with Audio

Found it useful to capture the Linux desktop using FFMpeg, most useful with audio. Accomplished it using the following command:

$ ffmpeg -y -f alsa -i pulse -f x11grab -r 25 -s 1366x768 -i :0.0 -qscale 1 -s 1024x768  screenCap.mpg
First dimension specified is the resolution of the desktop, the second dimension is the desired resized video dimension. Cheers.

09 November, 2012

Viewing WebCam Video with Mplayer

On a number of occasions I find it useful to view my laptop's camera in real-time using Mplayer. Seems this is accomplishable using the following command:

$ mplayer -fps 15 tv:// -tv  driver=v4l2:device=/dev/video0
Cheers.