Use ffmpeg to capture your screen on Ubuntu

April 22, 2010

Capturing your screen can be quite useful if you need to explain something to another computer user. With the ffmpeg program that you can find in the Synaptic Package Manager on Ubuntu, it’s easy to grab your screen and make a movie file of what happens on it.

Make sure ffmpeg is installed. Then open a terminal and write this command:
ffmpeg -f x11grab -r 25 -s 1280x800 -i :0.0 -sameq Desktop/out.mp4

– instead of 1280x800 you put your own screen resolution
– instead of Desktop/out.mp4 you put the directory and filename of your choice

Press enter, and you’re capturing your screen! To stop, press q.

That’s how easy it is to grab your screen on Ubuntu.



3 Responses to “Use ffmpeg to capture your screen on Ubuntu”

  1. […] 2010 I used ffmpeg a lot lately, and you could already read about that in my previous posts about capturing your screen and converting aiff to mp3 using […]

  2. entricular Says:

    Try using for video and sound capture

    ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -r 25 -s 1366×768 -i :0.0 -vcodec mpeg2video -sameq test.mpg

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: