Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using RecordMyDesktop to generate videos for some tutorials and I've tried using quite a lot of video editing programs but haven't been able to get these videos to fit perfectly into the YouTube dimensions (without the black margins).

How can I do this without losing video quality?

Some more info that might help

Running ffmpeg -i on the files returns the following:

Stream #0.1: Video: theora, yuv420p, 944x512 [PAR 1:1 DAR 59:32], 30 fps, 30 tbr, 30 tbn, 30 tbc - although I have various files, each with different dimensions.

I've tried the following editors: Kdenlive, PiTiVi, Avidemux & Cinelerra (I prefer the first 2).

share|improve this question
up vote 0 down vote accepted

It's easier and better to resize the window you're recording to 1280x720 (or any 16:9 proportion).

xdotool getactivewindow windowsize 1280 720 will do it for you.

If you really want to do the cropping, it's quite easy in Kdenlive:

  • Right-click on a clip in the timeline, go to Add EffectCrop and transformCrop.
  • Check Automatic center-crop, or try different settings until you get the desired result.
share|improve this answer
crop didn't work for me for some reason, but I've finally found out how to record exact dimensions with RecordMyDesktop, you need to use the CLI with something like: recordmydesktop --width 1280 --height 720 --full-shots --fps 15 --channels 1 --device hw:1,0 --delay 4 --no-sound -y 100 – mind.blank Aug 26 '12 at 14:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.