Log in

View Full Version : AVI Synth Script


arrirc
5th March 2007, 15:56
I am a perfect newbie in the world of AVISynth. I wish to convert a XviD AVI video clip to MPEG2 [PAL DVD], 16:9 output. I intend to use CCE only for the video conversion. I have already converted the original audio to AC3. Could some one please check the following script, whether it is alright?

# -= AviSynth v2.5.7.0 script by FitCD v1.2.8 =-
AVISource("E:\Private.avi",audio=false)
LanczosResize(720,432)
AddBorders(0,72,0,72)
#Trim(0,132620).FadeOut(150)

The original avi info are as follows:

608x336, real aspect 1.8234, PAL. The audio was in mp3, but as I said I have already demuxed the audio and saved separately as AC3.

I tried to use AVI to DVD Resize calculator II, but that is showing that the Movie Resolution and Format Resolution both 720x576. So do I need to change the script line "LanczosResize(720,432)" to "LanczosResize(720,576)"? As I said, I would like to have my end result as widescreen format.

So please help me out.

Thank you.

BTW, I tried to take the help of guides but I could not ascertain whether I am doing the right thing.

krieger2005
5th March 2007, 16:06
The command

LanczosResize(720,432)
AddBorders(0,72,0,72)

give you a widescreen-movie but 4:3-Format (with a littlebit wrong AR). For a 16:9 Format FitCD calculated me a resolution of 720x568. So for a 16:9 Output you should use this command-line

LanczosResize(720,568)
AddBorders(0,4,0,4)

For a right AR in 4:3-Format widescree you can use this command

LanczosResize(720,424)
AddBorders(0,76,0,76)

arrirc
5th March 2007, 16:44
The command

LanczosResize(720,432)
AddBorders(0,72,0,72)

give you a widescreen-movie but 4:3-Format (with a littlebit wrong AR).

Sorry I did not understand what exactly you men by the bold portion of your comment. Could you please refer to the attached thumbnails please?

krieger2005
5th March 2007, 17:12
The Borders (which you add with AddBorder) let look your movie like a widescreen-movie. In real this is done through the borders. In general peaple say to 16:9-Movies "wide-screen". But when you add borders to the movie it "looks" like widescreen but is 4:3 in real.

arrirc
5th March 2007, 17:20
So if I watch the movie which have added borders in a proper widescreen TV, will it fill up the screen or there will be black bars at the Left and Right side?

Thank you.

krieger2005
5th March 2007, 23:44
For the described script, which i told you to be an 4:3-Script you must setup your widescreen-TV (so that it remove the added Border at the top and at the bottom 72 pixel for both) -> If your TV can't do this you will have border on the right and left side.

For a true 16:9-resize use the second script. In this case you should not see any borders on the left and right side (without setup of the tv). so for a true 16:9 conversation you must ust this resize:

LanczosResize(720,568)
AddBorders(0,4,0,4)

This script stretch your video in the height. Your TV stretch it back.

HeadBangeR77
6th March 2007, 03:17
Ever heard about anamorphic pixels and Pixel Aspect Ratio? If you're going to encode a DVD you should have. ;) DVDs have a fixed resolution in both standards (NTSC & PAL), and even in case of true 4:3 the image is stretched a bit during playback (pixels aren't square). The same applies to 16:9 and 16:9 widescreen (2.35:1) films. The last category have black bars added, but it's not the typical letterbox of old days - if they used the whole possible resolution they would have to squeezed vertically so much, that the image would be way to soft during playback.

Therefore:
LanczosResize(720,568)
AddBorders(0,4,0,4)
should be fine, but you will have to ad a proper 16:9 PAL "PAR" (yes, they are different for both standards) while transcoding to MPEG-2.

cheers,
HDBR77

G_M_C
6th March 2007, 13:25
Encoding to PAL widescreen DVD, i usually resize to 720x576 and let it be encoded as PAL anamorphic.

http://forum.doom9.org/attachment.php?attachmentid=6898&stc=1&d=1173109483

So this (== what that last image said) looks allmost OK to me, but you have to tick the "Anamorhic" box in the desitnation section and resize to 720x576.


Disclaimer ;) :
But i dont know this programm, and how it handles the MPEG2 encoding, so i might be wrong.

arrirc
6th March 2007, 14:17
Thank you G_M_C

Whadya know, your advice did the trick :D