Screencast FFMPEG with sound

To make a high quality screencast with sound from the soundcard.
Great if you want to record for example a webpage that contains sound.
system: Ubuntu 12.04

Record without sound, image size relative to dimensions of your screen:

ffmpeg -f x11grab -s `xdpyinfo | grep 'dimensions:'|awk '{print $2}'` -r 25 -i :0.0 -sameq output.mkv

Record with sound, from your microphone:

ffmpeg -f alsa -i pulse -ab 192 -acodec pcm_s16le -f x11grab -s `xdpyinfo | grep 'dimensions:'|awk '{print $2}'` -r 25 -i :0.0 -sameq output.mkv

To record with sound, from your soundcard:

* Install Pulse Audio Volume Control. (through synaptic package manager)
* Repeat the second command, recording starts.
* Go to Pulse Audio; go to the tab ‘Recording’, it shows ffmpeg recording the sound. Change the pull down menu to Monitor from Built in Analog Stereo.
Now it records the sound stream in stead of your micro.
That is basically it.

To clean up your clip:
You can use the following on your saved clip (output.mkv)

ffmpeg -ss 10 -t 120 -i output.mkv -acodec copy -vcodec copy clip-output-file.mkv

Posted on: Saturday, December 1, 2012 by: in category: Editing software, Manuals, Problems and solutions