Tuesday, May 18, 2010

Screen Video Capture using kx11grab & ffmpeg in Ubuntu 10.04.

     Suppose, you need to teach someone on how to use a particular software etc. In such cases it will be useful if you capture the video display and send to one who needs it. There are some tools that can capture the screen and save in different video formats such as avi, mpeg etc.

     In Ubuntu, there are two tools that work together to capture screen. They are
1. ffmpeg
2. kx11grab

These can be installed as,

sudo apt-get install ffmpeg
sudo apt-get install kx11grab

Usage :

Use the below sample command to capture screen,

ffmpeg -f x11grab -s 1024x768 -r 75 -i :0.0 /tmp/out.avi