PDA

View Full Version : avi synth scripts


TheNine
8th June 2005, 10:08
hi i'm encoding a avi file (xvid) to dvd and i was reading the doom9 tut and one from videohelp.com with ac3 audio and it shows stuff about avi synth scripts

it shows an example like this

avisource("TEST.AVI")
LanczosResize(x,y,)
AddBorders(0,z,0,z)
ConvertToYUY2()
ResampleAudio(44100)

then explains about X, Y and Z values and how to calculate them, now whats it doesn't mentions is about NTSC and/or 16:9 movies

now gspot shows the following infomation:

runtime: 02:13:50
aspect ratio: 640x288 (2.22:1) [=20:9]
FPS: 23.976
Audio Codec: ac3 (0x2000) Dolby Laboratories, Inc
Audio Biterate: 192 kb/s (96/ch, stereo) CBR
FS: 48000 Hz

now can someone please tell me how i can use aviscripts to my advantage and get this encoded to dvd in 16:9 using CCE ?

thanks alot in Advance

Kika
8th June 2005, 11:01
LanczosResize(688,288,6,0,628,288)
AddBorders(8,96,8,96)


Try the Tool Fit2Disc to do the calculations.

TheNine
9th June 2005, 05:32
i take it Fit2disc isnt free and i have to make a donation

hmmm will fit2cd work instead?

TheNine
9th June 2005, 05:39
alright so i used fit2cd to create a avi script for my avi and now cce kicks out an error saying

Frame Size 1316x56 is not supported. Supported Frame size is up to 720x576

any ideas?

Kika
9th June 2005, 09:44
There's something wrong with the script. Maybe a missing plugin.
If you open it in VirtualDub, you will see an error-message.

Post the Script.

manono
9th June 2005, 14:02
Hi-

LanczosResize(688,288,6,0,628,288)
AddBorders(8,96,8,96)

That's an awful lot of borders you added there, Kika. You sure you weren't giving him a 4:3 widescreen DVD?

I get:

LanczosResize(720,384)
AddBorders(0,48,0,48)

using FitCD with the ITU box checked, and encoding for 16:9. It could be argued, of course, that there's no point in making a 16:9 encode, as you can't improve the quality when starting with a 640x288 AVI, but I'd still prefer to do it that way for my widescreen TV set. Difference in philosophy, I guess.

And Kika's right about something being wrong with the .avs, and to open it in VDubMod to see the error message. You should do that anyway before sending it to CCE, just to check that the .avs is OK.

If you have a recent version of CCE, you no longer need either the ConvertToYUY2 line, or the ResampleAudio line.

Kika
9th June 2005, 16:42
@manono
My goal was not to touch the vertical resolution to prevent a resizing in both directions.
But as you wrote: There are many ways to do the resizing.

manono
9th June 2005, 17:04
Yes, Kika, you're right, and yours is most likely the better way to do it. especially for a 4:3 standard interlaced TV set. However, TheNine did mention wanting a script for 16:9, although he may not realize that there's no real benefit to doing it that way. He can also figure it out for himself, using FitCD, and maybe make a version using both methods to see which he prefers.