aegisofrime
15th June 2013, 02:29
Hi there!
I have some videos that I want to batch encode, and I want to come up with a bunch of if else conditionals to help me with this.
Some of the videos have small little black bars at the side. I want to crop these out and resize back to 720x480.
This is what I need in Pseudocode:
If(Autocrop Crop suggestion > 0)
{
Autocrop(mode=0)
Spline36Resize(720,480)
}
else
if(1280x720 > Resolution > 720x480)
{
#Some videos have non standard resolutions, so I want to resize them to 720,480 for the sake of standardization
Spline36Resize(720,480)
}
#The rest of the processing chain such as denoising continues from here.
Any tips on how I can achieve this? Thanks!
I have some videos that I want to batch encode, and I want to come up with a bunch of if else conditionals to help me with this.
Some of the videos have small little black bars at the side. I want to crop these out and resize back to 720x480.
This is what I need in Pseudocode:
If(Autocrop Crop suggestion > 0)
{
Autocrop(mode=0)
Spline36Resize(720,480)
}
else
if(1280x720 > Resolution > 720x480)
{
#Some videos have non standard resolutions, so I want to resize them to 720,480 for the sake of standardization
Spline36Resize(720,480)
}
#The rest of the processing chain such as denoising continues from here.
Any tips on how I can achieve this? Thanks!