msdossys
22nd July 2008, 07:59
So I'm working on a source that is 624x352 (wierd, yes). That calculates to a 1.77 Aspect ratio. Well after some reading on the DVD spec i thought i'd plug my video into HCEnc via AviSynth attempting to do some funky resizing to keep the aspect ratio. I ended up doing the math to match up 624x352 with 720x??? which ended up being 406 and lots of decimals. To get to mod8, i round up to 408. So i do Lanczos4Resize(720,408). So now i have 480-408 = 72 pixel lines to make up for the vertical resolution, so I put AddBorders (0,36,0,36) next.
At this point I think i'm doing great until I see the preview in HCEnc. I load up the original AVI in MPC and resize it so the width is the same as the preview... well it sure doesnt match up with the height when i drag the window to compare. Thinking its the aspect ratio setting in HCEnc i change it to 4:3. Better, but still off, now the other way (stretched vertically). After a few frustrating hours I just delete the AddBorders and change the resize to 720x480 in the AVISynth script for the hell of it. Load that up and lo and behold, the thing is perfect in 16:9 in HCEnc... what the heck is going on?
At this point I think i'm doing great until I see the preview in HCEnc. I load up the original AVI in MPC and resize it so the width is the same as the preview... well it sure doesnt match up with the height when i drag the window to compare. Thinking its the aspect ratio setting in HCEnc i change it to 4:3. Better, but still off, now the other way (stretched vertically). After a few frustrating hours I just delete the AddBorders and change the resize to 720x480 in the AVISynth script for the hell of it. Load that up and lo and behold, the thing is perfect in 16:9 in HCEnc... what the heck is going on?