1

for the past 48 hours I tried to crop the black bars of a 2048x1152 (16:9) video to a 1.85:1 aspect ratio (which is 2048x1107) so that the encoded video shows exactly what is meant to be.

First problem: 2048x1107 (1.85:1) is not common but is it basically possible to create? Can i encode with libx264 with an odd number value like 1107?

Second problem: If not, how can I make a crop & resize encode in one sitting? Means... Cropping 2048x1152 (16:9) to 2048x1107 (1.85) AND resizing the 2048x1107 (1.85, uncommon) to 1998x1080 (2K DCP FLAT)

I only manage to get a 1998x1080 (1.85:1) with too much cropped on all sides... :/

Thanks for you help, guys!

3
  • Duplicate (crossreference): superuser.com/questions/810471/… Commented Jun 24, 2020 at 11:17
  • 1
    Duplicates only apply if the other Q is on the same site.
    – Gyan
    Commented Jun 24, 2020 at 11:21
  • I haven't flagged it as a duplicate, I just put the duplicate from superuser there. This is the reason I added the "crossreference"... Commented Jun 24, 2020 at 11:23

1 Answer 1

1

You can carry out the changes in one command by chaining the respective filters.

Basic syntax is

ffmpeg -i input -vf "crop=2048:1107:exact=1,scale=1998:1080,setsar=1" -c:a copy out.mp4
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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