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).

1 Answer 1


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.
  • 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, 2012 at 14:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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