Linux Desktop Video Capture

‘ffmpeg’ can do the work of capturing Linux desktop video very well. ffmpeg is a very fast video and audio converter that can also grab from a live audio/video source. It can grab X11 input and create an MPEG at specific fps with the specific resolution.

The command to capture the Linux desktop video by ‘ffmpeg’ is as follows.

$ ffmpeg -f x11grab -s 1280x1024  -r 25 -i :0.0 -sameq /tmp/out.mpg

Options used here:

‘-s 1280×1024′ is the resolution of the screen. Change it to the screen resolution you use.

‘-r 25′ is the FPS rate.

About Eric Zhiqiang Ma

Eric Zhiqiang Ma is a PhD candidate at Dep. of CSE, HKUST. He is interested in system software for cloud computing, virtualization of large-scale distributed systems and etc. Also find Eric on Facebook, Twitter, LinkedIn and Google+. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties. More Posts - Website

Leave a Reply

Your email address will not be published. Required fields are marked *

+ two = six

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Click to subscribe to Fclose.com Posts by Email if you have not.