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.
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:
Then click on create new profile.
Change the profile settings as required in your case make it 900x690.
Click on adjust to original size in the effect settings.
Change the X and Y to adjust the position of the cropped region as desired.
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. Usemencoder -ovc help -oac help
to get a listing of available options.I would recommend using another program,
handbrake
. Use theLoose Crop
option, then switch back to theSummary
tab to see a visual representation of the crop effect. I found it rendered faster than kdenlive using the crop effect as well.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.