This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Change aspect ratio (crop) when rendering

Tags: kdenlive, crop kdenlive, crop kdenlive, crop
(comma "," separated)
User avatar
pappl
Registered Member
Posts
22
Karma
0
My video camera records 1080p 16:9 aspect ratio.
I want the final rendered video to be 2:1 aspect ratio.

So i want to crop from 1920x1080 to 1920x960 by removing 120 pixels in total from top and bottom.

With ffmpeg this is possible with recode:
Code: Select all
 ffmpeg -i in.mp4 -filter:v "crop=in_w:in_h-120" -c:a copy out.mp4

Works, but:

To avoid reencoding, i want Kdenlive to do this height crop prior or when rendering the video.
I tried to add the crop command, but it does not work:

Code: Select all
f=mp4 movflags=+faststart vcodec=libx264 progressive=1 g=15 bf=2 crf=%quality acodec=aac ab=%audiobitrate+'k' vf="crop=in_w:in_h-120"


Documentation
http://ffmpeg.org/ffmpeg-filters.html#Examples-48

Anybody found a solution, e.g. adding ffmpeg command to render sequence?

pappl

P.S: Rescale video does not work, it simply squeezes the video, and letterb0xed filter adds hardcoded black bars.
P.P.S.: I need exactly this Premiere Pro export setting:
https://youtu.be/2v56EEeAx7k?t=493
"Change Output Size To Match Source"

Last edited by pappl on Mon Jul 29, 2019 12:59 pm, edited 3 times in total.
User avatar
pappl
Registered Member
Posts
22
Karma
0
Creating a custom profile "HD 960p" and switching the project to this profile doesn't work.
(1920x960; PAR 1/1; aspect ratio: 18:9)

This creates a square black border around the final rendered video, without any crop. :(

Is there any possibility to add ffmpeg commands to e.g. a render script to avoid a second recode to crop 1080p (16:9) to 960p (18:9)?
Or simply a setting to dismiss all 60 pixels on top and bottom of all sources in the timeline, like a native 18:9 video.

P.S. I need exactly this Premiere Pro export setting:
https://youtu.be/2v56EEeAx7k?t=493
"Change Output Size To Match Source"


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]