View Single Post
Old 10th December 2014, 18:39   #1  |  Link
MysteryX
Soul Architect
 
MysteryX's Avatar
 
Join Date: Apr 2014
Posts: 2,559
Crop and Recalculate Resize Dimensions

I have VCD videos in 352x288 format with a DAR of 4:3 and PAR of 12:11

I currently do something like this which works great

smoothD2c(12, ncpu=4)
eedi3_rpow2 (2)
nnedi3_rpow2 (2)
Spline36Resize(960, 720)

Now, what if I want to crop black borders in the video? I could add this: Crop(2,40,-2,-40)

Problem is that the Resize width won't be 960 anymore. I would need to calculate the proper width based on crop settings.

What would be the best way to
1) facilitate finding which crop settings are valid (it says it must be dividable by 4)
2) calculate the proper width for the resize function

Last edited by MysteryX; 24th June 2015 at 06:29.
MysteryX is offline   Reply With Quote