Log in

View Full Version : Avi Script + Encoding Result


Rafterman
19th January 2008, 20:28
I am not that familar with using aviscripts so with the help of the guide on this forum by JRumpy I was able to write a simple avs script to produce mpv files from avi files using an avs script and CCE. My problem is this when I have the script written and open the script using Nero Showtime the resizing of the video stream looks just fine, exactly what I want. However when I run the script through CCE the mpv produced is not the same size, it is narrower. For example when I play the script with Showtime the picture will be approx 6" from top to bottom but when I play the resulting mpv the picture will be say 4.5" from top to bottom. Should the script not produce the same picture as it displays with Showtime before I use CCE. I was under the impression that CCE will follow the settings in the avs script verbatim. The script I wrote following JRumpy's guide is fairly simple, this is it in fact:



clip=AVISource("C:\Video\Movie.avi", False)
aud=WAVSource("C:\Video\Movie.wav")
AudioDub(clip,aud)
ResampleAudio(48000)
LanczosResize(720,360)
AddBorders(0,60,0,60)


The input avi is "672x288 (2.33:1), 25FPS(Pal), with an MPEG-1 Layer 3 audio stream". The audio stream generates an error msg when I open the avi file with VirtualDubMod.

In all other respects the output is fine I am just having problems with the Aspect Ratio. Any ideas where I might be going wrong.

IanB
19th January 2008, 23:41
The numbers you have used are for a 16:9 NTSC encode with CCE. Looks like either you did a 4:3 encode or you should have used numbers for a PAL encode.

For a 16:9 Pal use 720x440 with 68 pixel borders.

For a 4:3 Pal use 720x328 with 124 pixel borders.

For a 4:3 NTSC use 720x276 with 102 pixels borders.

Add Trim(1234, -100) to the end of your script so you can make 100 frame test clips to test the settings quickly.

smok3
20th January 2008, 00:49
square to pal-wide example (with mod16 black borders):
http://somestuff.org/resizeCalc.php?ssmw=672&ssmh=288&sar=1&sar2=&CL=&CR=&CT=&CB=&trw=704&dar=1.459&dar2=&padw=720&padh=576&css=default.css&doit=true

Rafterman
20th January 2008, 03:03
Cheers guys, I think u hit the nail on the head Ian. The guide I was following(from videohelp.com not doom9) did not really go into the Pal Vs Ntsc areas. I'll give that Calculator a go smok, it's looks like it will work well.