Bodman
7th August 2003, 00:15
Hi Gang, Not sure if this should be in here, or AVIsynth forum or somewhere else.
Im converting svcd to dvdr (arrgh i hear u cry) but this is what im after.
SVCD is 480 x 480 (sometimes x 576), so width is 480 and height is something like 332 of picture and 2 lots of black borders (top and bottom) of 74 which = 480.
I normally frameserv with avisynth to CCE with something like this script
loadplugin("c:\windows\system32\MPEG2Dec.dll")
mpeg2source("I:\1.d2v")
crop(0,X,480,Y)
BicubicResize(720,480)
ResampleAudio(44100)
I need to calculate the X & Y
the crop command would typically look something like this
crop(0,74,480,332) but what i need to do is be able to work out the X & Y above but leave enough of the black borders so when this is resised to 720 x 480 the aspect is correct.
Is there a way to work this out
TIA
//Bodman
Im converting svcd to dvdr (arrgh i hear u cry) but this is what im after.
SVCD is 480 x 480 (sometimes x 576), so width is 480 and height is something like 332 of picture and 2 lots of black borders (top and bottom) of 74 which = 480.
I normally frameserv with avisynth to CCE with something like this script
loadplugin("c:\windows\system32\MPEG2Dec.dll")
mpeg2source("I:\1.d2v")
crop(0,X,480,Y)
BicubicResize(720,480)
ResampleAudio(44100)
I need to calculate the X & Y
the crop command would typically look something like this
crop(0,74,480,332) but what i need to do is be able to work out the X & Y above but leave enough of the black borders so when this is resised to 720 x 480 the aspect is correct.
Is there a way to work this out
TIA
//Bodman