Log in

View Full Version : Help with correct Crop values PLZ.


f@chance
15th July 2002, 13:34
The AVI file format is 640x256 25Fps. Calculating the AVISynth script for 16x9 Widescreen in PAL format turns out to be

BicubicResize(480,420,0,0.75)
AddBorders(0,78,0,78)

I want to however use the following script:

BicubicResize(480,448,0,0.75)
AddBorders(0,64,0,64)

This will make everything thinner and taller. What are the parameters for the Crop() function and where should it appear in the AVISynth script?

I tried:
BicubicResize(480,448,0,0.75)
AddBorders(0,64,0,64)
Crop(20, 0, 520, 576)

Didn't work picture was out of sync. Putting the Crop lime before the BicubicResize gave an error of reading location xxxxxx in AVISynth.

Thanks for any help.

F@Chance

vlad59
15th July 2002, 14:19
Hi,

I think it's not the good topic, anyway let's try to answer.

Originally posted by f@chance
The AVI file format is 640x256 25Fps. Calculating the AVISynth script for 16x9 Widescreen in PAL format turns out to be

BicubicResize(480,420,0,0.75)
AddBorders(0,78,0,78)


So, I assume you'are going to make a PAL SVCD : 480*576

I want to however use the following script:

BicubicResize(480,448,0,0.75)
AddBorders(0,64,0,64)

This will make everything thinner and taller. What are the parameters for the Crop() function and where should it appear in the AVISynth script?

I tried:
BicubicResize(480,448,0,0.75)
AddBorders(0,64,0,64)
Crop(20, 0, 520, 576)

Didn't work picture was out of sync. Putting the Crop lime before the BicubicResize gave an error of reading location xxxxxx in AVISynth.

Thanks for any help.

F@Chance

Why do you want to crop, if you want to make a SVCD you must have black borders on a 16/9 movie.

To explain more clearly :
You have a 640*256 movie
Next the bicubic resize changed it to a 480*448 movie
Next the addborders changed it to a 480*576 movie
Next you want to crop something wich doesn't exist : the width of your movie is only 480

Try to read the avisynth FAQ

f@chance
15th July 2002, 17:40
Thanks for the reply. You maybe correct and I bark up the wrong tree. The movie has a ratio of 640x256 which is 2.5 using the formula to derive the correct aspect ratio I should use BResize(480,420) which preserves the correct ratio. If I do a BResize(480, 448) than will picture not be squashed because now it has a different aspect ratio?

I tried a different script with the following values and it seem to work, maybe that gives you an idea what I am trying to do. If you see anything wrong here please let me know. I have read the different manuals and searched the Doom9 newsgroups but could not lay my finger on it.

Crop(19,0,602,256)
BicubicResize(480,448,0,0.75)
AddBorders(0,64,0,64)

F@Chance

vlad59
15th July 2002, 17:52
Originally posted by f@chance
Thanks for the reply. You maybe correct and I bark up the wrong tree. The movie has a ratio of 640x256 which is 2.5 using the formula to derive the correct aspect ratio I should use BResize(480,420) which preserves the correct ratio. If I do a BResize(480, 448) than will picture not be squashed because now it has a different aspect ratio?

Just try open your avs into virtualdub and find a frame where you can see a circle or something like that and you'll find what is the best setting for you.


I tried a different script with the following values and it seem to work, maybe that gives you an idea what I am trying to do. If you see anything wrong here please let me know. I have read the different manuals and searched the Doom9 newsgroups but could not lay my finger on it.

Crop(19,0,602,256)
BicubicResize(480,448,0,0.75)
AddBorders(0,64,0,64)

F@Chance

I can't help you a lot, all I can do is imagine that you first crop the black bar you don't need, then resize to have a correct aspect ratio and finally add top and bottom borders to have a correct SVCD.
Am I imagining well ???
As usual don't be afraid to test your setting in virtualdub !

hope this helps.