Log in

View Full Version : Incorrect PAR


davidzj
29th May 2007, 22:03
I'm experiencing an issue with DGIndex > AVIsynth. I'm starting with a MPEG2 source at 720x512. The actual image is 720x480 but I reatain the VBI, thus the pixel aspect ratio is 0.9481. I create a D2V file using DGIndex and build a simple AVIsynth script:

LoadPlugin("DGDecode.dll")
LoadPlugin("Decomb.dll")
LoadPlugin("mpasource.dll")
video=MPEG2Source("D:\IVT_Cleanup\Christina_Candyman\Candyman_TEST_149.d2v")
audio=mpasource("D:\IVT_Cleanup\Christina_Candyman\MVD_20736U_G00011_0101_001.26 T01 DELAY -11ms.mpa")
AudioDub(video,audio)
Trim(2098,3098)
FieldDeinterlace()
FadeIn(15)
FadeOut(30)

Now I run this through A) VirtualDub 1.6.17 or B) VFAPI. In either case, my resulting AVI file is square pixel, 1.0 instead of 0.9481, as shown in GSpot and Sony Vegas. The D2V file shows 720x512 with an aspect ratio of 4:3. Am i missing something in the script?

PS. I tried the same thing using an MPEG from a DVD. Source is anamorphic but resulting files are square pixel.

J_Darnley
30th May 2007, 23:32
AviSynth doesn't do anything with aspect ratios. It will take the input pixels, process them with filters and then output them. If you want to retain your non-square pixels tell your muxer the pixel/sample aspect ratio. I forget if you can do it VDub. On the other hand you could resize to square pixels. Use the resizer of your choice and go to down to 720x480 or up to 752x512 or 760x512 for multiples of 16 and 8 respectively.