Home / Culture and Society / Science and Technology / Make a Movie of Your Linux Desktop

Make a Movie of Your Linux Desktop

Please Share...Print this pageTweet about this on TwitterShare on Facebook0Share on Google+0Pin on Pinterest0Share on Tumblr0Share on StumbleUpon0Share on Reddit0Email this to someone

Want to show off your snazzy 3d desktop, or demonstrate the features of your favourite new program? Make a movie of your desktop to capture all your actions, edit it, then add a soundtrack.

You need two pieces of software to accomplish this: xvidcap to capture the video and Avidemux to edit the movie and add a soundtrack. You may also need Audacity to shorten the audio file used for the soundtrack.

If your distribution doesn't have xvidcap in its repositories it can be downloaded from here. Debian and Ubuntu users will be able to use the .deb file, others will have to compile from source. Avidemux is most likely available in your repositories, but can be downloaded from here if it isn't.

It takes quite a bit of your system resources to record video while running applications, so you may have to do a bit of tweaking to get a decent framerate from xvidcap. Recording only part of your desktop will get you a better framerate. Click the "eyedropper" toward the right side of the window, then use the mouse cursor to select a region of the desktop to record. Or, if you want to record the full screen, you can lower the resolution of your monitor.


The other thing you can do is tweak the frame rate xvidcap records at. Right click on the file name at the left of the window and select Preferences.


Select the Multi-Frame tab, and lower the frame rate. You may have to experiment a bit with different resolutions and frame rates until you get an acceptable level of quality. You can also change the directory and file name the movie is saved to here.

When you are ready to record click the red Record button. xvidcap will record all your actions to the file specified. When you are finished, press the Stop button. You will be presented with a screen that will tell you the frame rate of your movie. Play it to see what it looks like. If the frame rate is too low it will play very quickly. Do some more adjusting of the frame rate, your resolution, and perhaps record a smaller region to improve the quality.

This is the vidcap I made of my desktop before any editing was done.

Once you are satisfied with the quality of your recording you will probably want to do some editing to remove things like the xvidcap window, long pauses, and stupid mistakes you may have made. We can use Avidemux to do some simple editing.

Open Avidemux, then open your movie. We are going to remove the bits of the movie we don't want. Click the A button at the bottom of the window to select the beginning of the section you wish to remove. In this example we are going to remove the section of the movie that shows me starting xvidcap.

Press Play, Next Frame, or use the scroll bar to go to the end of the part you wish to remove. Click the B button at the bottom of the window to select the end. Click the Edit menu item at the top of the window and select Delete. If you play the movie now you will see that the part you selected between the A and B markers is now gone.

This is a vidcap of the editing of the original vidcap. It's getting recursive now.

Do you want to add a soundtrack? I chose to use the song J-Nic Beatz by Andrew Stevens licensed under a Creative Commons attribution only license to perk up the video a bit. You may have to cut the length of the song down to the length of the video. Audacity is perfect for this.

In Avidemux with the video open select Audio at the top of the window, then Main Track. In the Audio Selector window select External PCM if your sound file is an uncompressed .WAV file, External MP2/3 if it is an MP3 file, or External AC3 if it is an AC3 file. Hit OK, choose the sound file you wish to use, then hit Save.


Here is our final edited Teenage Zombies video with sound.

These techniques can be used in a variety of different ways. Be creative! If you want to do some more advanced editing of your video, try Kino or KDEnlive. Experiment, post your video to the web, burn your new how-to video to DVD, show off what your computer can do.

Do you have any questions or suggestions on making desktop videos? What other programs would you use? Leave a comment or email me.

Powered by

About Steve R.

  • Nice guide. XVidCap is too laggy to record gameplay though. Is there a way to record and save it as a gif image?

  • I much prefer recordMyDesktop to xvidcap. rMD has a GTK frontend too (gtk-recordMyDesktop) which works in a similar way to xvidcap.

    Thanks for the Avidemux though.

    Kingsley, byzanz is the only desktop recorder I know of that will record to GIF format. You might want to check it out.

  • how about telling us how you converted them to those nifty flash videos we are looking at on this page 🙂

  • robos

    Take a look at wink, not OSS but works quite good.

  • dune73

    My workstation is much to slow for xvidcap and also the nice recordmydesktop mentioned. However, detouring over VNC worked out. I used vnc2swf.

  • anonymous

    According to the webside everyone should make sure that they are using the newer version of xvidcap, i was using the older xcap and it was painful, so thanks for this post.

    The old versions have a different ui, so they are pretty easy to tell apart.

  • delfick

    there is also the capture plugin for beryl found in beryl svn 😀

    it works really really really well 😀

  • delfick

    here, have a little video i made that shows it 😀

    for more information visit here and i’m running

    AMD Athlon 64 3500+ (in 32 bit mode)
    1 gig RAM
    Nvidia 6600GT PCIE
    Nvidia’s method (instead of xgl or aiglx)
    ubuntu edgy
    latest beryl svn

  • bob

    i leik use teh fraps dat i got from teh dlsite itwas leik 1 yer ago and it leik is mutch beterr tan teh xvidclax dat is dificlut and stuf

  • redtux

    ffmpeg -f x11grab -vd x11:0.0 -qscale 3 -an -s $size $timerec -r 12 -y file.avi
    where size is resolution of screen and time how long you want to record

  • Nice tutorial, i am really keen to give this a try.

  • asma

    how can I record the sound comes out of me spekers at the same time I record my screen??!

  • smita

    i like it.its easy to use and install!

  • Farad

    Very cool, tried on SLED10, working fine, great for creating tutorials..

  • popo

    time needs -t
    and the name of the video device is ????? in which distro????

  • j

    all video captures i have tryed are buggy as hell
    dont even bother

  • Lukas

    My recorded video is too fast

  • excr

    @redtux, thanks for tip with ffmpeg

    In my Debian, I put -r and -s parameters before -i (-i instead od -xd).
    ffmpeg -f x11grab -s sxga -r 12 -i :0.0 -qscale 3 -an -t $timerec -y file.avi