Hello, I would like to crop a 4/3 video to 14/9 and then convert it to 16/9. I would like to know how to determine how much to crop from the top and bottom, as well as add black bars on the right and left.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 10 of 10
Thread
-
-
Resize to 14 by 9, then divide your resulting width by 14. That is going to be your black bar length left and right.
But you need to use mod2, all sizes and lengths in your calculations should be divisible by 2 for YUV420. -
Assuming source 625/50 and PAR 16:15,
crop to 14:9 by 720*9/14*16/15 = 498. So, now you have 720x498 PAR 16:15 --> FAR 14:9
What you need to do next depends whether you want to go to SD or HD and what PAR you want to use.
Cannot help with a script or ffmpeg params though. -
An easy and universally working approach would be to simply crop to 85.7% of the original height.
How much to crop top/bottom (each) = ( Height - Height * (4/3) / (14/9) ) / 2
Since most 4:3 videos are standard definition and not using square pixels – and we don't know what your target is – this cannot be answered yet.Last edited by Skiller; 9th Feb 2024 at 18:05. Reason: mistake =D
-
In VDub for PAL:
Resize Filter: with Aspect Ratio "disabled", set New size Absolute: 768x576, OK
Crop Filter: a total of 82 pixels off top and bottom. This will leave 768 x 494 (1.555 or 14:9).
Resize again: In 16:9, a 494 height needs a frame width of 878. Check New size Absolute is still 768x494 (with Aspect Ratio Disabled),
then in Framing Options, tick "Letterbox/crop to size": 878x494, OK ["Letterbox" will actually be pillarboxing]
Resize again up to a standard 1920x1080 if you wish, as per step 1.
Done. -
Using my formula in post #4 let's calculate the cropping for both 576 and 480 lines content.
For 576:
How much to crop top/bottom (each) = ( 576 - 576 * (4/3) / (14/9) ) / 2
How much to crop top/bottom (each) = 41.14 ≈ 42 (nearest mod2)
For 480:
How much to crop top/bottom (each) = ( 480 - 480 * (4/3) / (14/9) ) / 2
How much to crop top/bottom (each) = 34.29 ≈ 34 (nearest mod2)
Mod2 cropping needs to be respected in case of 4:2:0 color subsampling and is also advised for interlaced videos.Last edited by Skiller; 12th Feb 2024 at 15:22.