Log in

View Full Version : aspect ratio problem


A_T
12th April 2006, 13:31
I am having trouble getting the correct aspect ratio in the output when running an script through cce sp 2.50. dgindex tells me the input video is PAL 16:9 720x576 25 fps

I tried this script:

LoadPlugin("G:\....\DGDecode.dll")
MPEG2Source("VTS_01_1.d2v")

and encoded in cce at 16:9. The result was a video too narrow on both my dvd player and software dvd players. I also tried cce with 4:3 and 1:1 but the result was the same.

I then tried:

LoadPlugin("G:\...\DGDecode.dll")
MPEG2Source("G:\...\VTS_01_1.d2v")
Lanczos4Resize(624, 352)

but the result was too stretched.

I would be grateful if anyone could advise me as to what I should put in my script so that my dvd players shows the video in the same AR as the original source.

AI
12th April 2006, 20:43
My script:DGDecode_MPEG2Source("Dobrina.d2v")

#Orig*End/OrigRatio
k=720.0/(Framerate==25 ? 576 : 480)*9.0/16*640.0/352
x=0.0 y=0.0 h=Float(Height) w=Float(Width)
(w/h > k) ? Eval("w=h*k x=(Width-w)/2.0") : Eval("h=w/k y=(Height-h)/2.0")

BilinearResize(Width,352,0,y,Width,h)

MergeChroma(LanczosResize(640,Height,x,0,w,Height),\
BilinearResize(640,Height,x,0,w,Height))I use PreCrop in d2v:Clipping=14,10,10,6

A_T
13th April 2006, 00:26
Thank you. I'll give that a try.