26

I've recorded a video using recordmydesktop, but have unfortunately chosen for capturing the whole screen (1600*896) instead of a small part with geometric 900*690.

How do I crop this video? Preferably in the editor I'm using, Kdenlive, to minimize quality loss. I've tried the Crop, Pan & Zoom and Scale0tilt effects, modifying the pixel ratio, movie size inside project settings options without success. A step-by-step guide would be preferred or at least some hints.

RolandiXor
  • 51,091
  • 31
  • 161
  • 256
Lekensteyn
  • 171,743
  • 65
  • 311
  • 401
  • Have you tried Blender? I could try to find a way and write a tutorial. – bntser Sep 22 '11 at 21:16
  • I haven't tried it with Blender, but for suddenly, the crop feature works as expected. I restarted the program after some modifications, but cannot remind the taken steps. – Lekensteyn Sep 23 '11 at 14:03
  • Would it be meaningful to add answers for other programs such as avidemux and openshot as mentioned in http://ubuntuforums.org/showthread.php?t=1604224&page=2? – N.N. Feb 25 '12 at 12:48
  • If a different editor is suggested, it's OK. – Lekensteyn Feb 25 '12 at 13:02

4 Answers4

15

Cropping a video can be done multiple ways in Kdenlive.

One way is to set the project to the desired size then set the video to original size so that only the cropped part is visible in the project.

How to do it:

  1. Start a new project with the desired crop size. If no profile available with required size you should create a new project profile by clicking on Manage project profiles button. enter image description here

Then click on create new profile.

enter image description here

Change the profile settings as required in your case make it 900x690.

  1. Import your clip to project bin and add it to timeline.
  2. Add Position and Zoom effect to your clip.
  3. Click on adjust to original size in the effect settings. enter image description here

  4. Change the X and Y to adjust the position of the cropped region as desired.

Andyba
  • 371
  • 4
  • 5
  • This didn't work for me. I have a 1280x720 clip which I want to crop to Facebook cover image 820x312. When I click 4) adjust to original, Kdenlive makes the clip larger, but still too much height. It is as if this effect always forces the project settings dimensions (820x312) on the clip, whatever size I set it to – Thomas Lindvig Feb 01 '20 at 11:39
  • Hi Thomas Lindvig. What version of Kdenlive are you using? – Andyba Feb 01 '20 at 12:52
  • Kdenlive 19.12.1 for Windows. – Thomas Lindvig Feb 08 '20 at 08:37
  • [SOLVED] Point 4 in the guide should be "check distort" then it worked for me – Thomas Lindvig Feb 08 '20 at 08:59
10

I would recommend using another program, handbrake. Use the Loose Crop option, then switch back to the Summary tab to see a visual representation of the crop effect. I found it rendered faster than kdenlive using the crop effect as well.

enter image description here

NuclearPeon
  • 406
  • 4
  • 8
  • 1
    Now a 'Custom' option in a 'Cropping' drop-down but otherwise the same. The 'Preview' window allows you to see the affect your changes will having on the output. – theotherdy Oct 31 '22 at 09:18
8

If nothing else works, you could use mencoder. It is not an interactive editor and will result in re-encoding of the video. If you can live with that, here's how: mencoder -oac pcm -ovc x264 -vf crop=900:690:0:0 -o output.mp4 input.mp4 where the :0:0 part is upper left coordinates of the cropped area. You may want to play around with -oac and -ovc options and see which codecs produce the best results. Use mencoder -ovc help -oac help to get a listing of available options.

taneli
  • 2,629
  • 21
  • 33
5

I am a first-time Kdenlive user myself, but I found this youtube video suggesting to use the transform effect. Worked just fine for me.

I know this is not a detailed guide, but the video explains the gotchas better anyway.

JepZ
  • 203
  • 3
  • 5
  • 1
    To those who don't know. You have to drag the transform effect onto the video timeline. Then you'll be shown a window where you can adjust the offset at all sides of the video by a certain number of pixels. – Nav Dec 25 '22 at 05:53