View Full Version : Noob Avisynth Script Help Needed
fletch
17th January 2003, 01:52
Hi Everyone,
Sorry for such a lame post, I am not new to DVD encoding but I am VERY new to Avisynth scripts...
I am trying to make an Avisynth script that will take a 480x480 SVCD (movie is actually letterboxed widescreen 2.35:1 - so I have black bars top and bottom that I'd like to remove)...
I need to remove the black bars and add borders to create a 720 x 480 DVD resolution while maintaing the correct aspect ratio. I my lame attempts to re-encode in CCE , the results (apart from being wrong ratio) have what appears to be interlace lines that I need to remove as well.
i am messing about with cropping and addborders commands but its coming out still in the wrong aspect ratio.
this will be very easy for one of you Avisynth guys to answer I hope ?
Thanks
Fletch
scmccarthy
17th January 2003, 01:55
Everybody will say the same thing. Show us the script you have so far.
Stephen
fletch
17th January 2003, 02:11
Hi Stephen,
Thaks for your prompt reply !
here's my script that works but the aspect ratio is screwed..
BicubicResize(720,279,0,0.6,0,104,480,272)
AddBorders(0,96,0,105)
#Trim(0,-1).FadeOut(150)
ResampleAudio(44100)
Thanks
Fletch
wotef
17th January 2003, 02:53
have you tried the rather spiffy fitcd?
http://shh.dvdboard.de/fitcd.html
- edit - hold on, looks like you are already! which must mean you've set up the resizing inputs incorrectly - read the readme carefully
scmccarthy
17th January 2003, 23:43
I don't understand the aspect ratio needed for SVCD and CCE, so I can't be much help. But that's not the whole script. Which plugin do you use to read what file? We want to know what colorspace your working in.
Stephen
hakko504
18th January 2003, 00:52
First the resize: After cropping the black bars you should resize to 720 wide. Do not change height. Then add the black bars again with add borders. You should then be able to encode it to a correct 4:3 DVD.Mpeg2source(SVCD.d2v)
Crop(0,104,0,-104)
LanczosResize(720,272)
Addborders(0,104,0,104)
ResampleAudio(44100) If this produces a correct 4:3 video then you are ready for the next step: converting it to a 16:9 video. This is done by increasing height by 4/3, resulting in this script:Mpeg2source(SVCD.d2v)
Crop(0,108,0,-108)
LanczosResize(720,352)
Addborders(0,64,0,64)
ResampleAudio(44100)Remember to match the DAR flag of CCE to your desired output screen, i.e. if you want to mainly watch it on a 4:# TV, use the first script and set DAR to 4:3, and in the case of 16:9 use the second script.
scmccarthy
18th January 2003, 05:26
converting it to a 16:9 video. This is done by increasing height by 4/3, Gee, I was told there is no such thing as converting a non anamorphic DVD to anamorphic using exactly this approach.
That's all I wan *going* to say, however, come to think of it, if you start with an anamorphic DVD and want to watch it on a 4:3 TV, I think you have to squeeze the height by 4:3 instead. If you see where I am going with this.
Stephen
hakko504
18th January 2003, 10:13
@scmccarthy
Pay a visit to this sticky in the GKnot forum (http://forum.doom9.org/showthread.php?s=&threadid=42708)
fletch
18th January 2003, 13:16
Thanks Guys !
hakko504, I used your script, worked like a charm :p
Rgds,
Fletch
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.