Log in

View Full Version : Source resolution and resize


puddy
18th May 2007, 18:21
Does it matter what resolution I start with if I'm going to resize captured NTSC interlaced video using a sample script like the following? I'm basically deinterlacing, then resizing, then reinterlacing.

Load_Stdcall_plugin("C:\Program Files\AviSynth 2.5\plugins\yadif.dll")
AviSource("disney.avi")
ConvertToYV12(interlaced=true)
yadif(mode=1,order=1)
LanczosResize(720,480)
assumetff()
separatefields().selectevery(4,0,3).weave()

And then encode it to MPEG2 with the 16:9 flag set.

I ask because I have some Hi8 Camcorder footage shot in letterbox format (the top & bottom black bars are "hardcoded" into the video by the camera, it is not anamorphic). I want to convert it to real anamorphic. So, I crop off the black bars and what I'm left with is not the standard anamorphic target size of 720x360, it is 720x370. So, I have a little extra usable video that I'd like to keep rather than just crop it off.

So, can I deinterlace this, resize it to 720x480, and reinterlace and expect to get the same results as if I cropped it first to 720x360, deinterlaced, resized, and reinterlaced?

I'm just wondering if the extra 10 pixels are somehow going to cause a misalignment or some other distortion in the video after resizing up to 480 and then having the DVD player or TV's 16:9 setting squash it back down?

Humm... I guess when watching it is going to be squashed back down a little "too much" meaning images are going to appear a little wider than they would have if I stared with 720x360. But that is not really my concern. I'm more concerned about if the deinterlacing and reinterlacing will still work as well as if I had started with 720x360.

My goal is to keep all of the usable video that was captured, even if it is just 10 extra pixels. Why throw them away? It might be the difference in the shot looking correct or it looking like I almost cut off the top of somebody's head. :)

Any feedback would be great, thank you!

puddy

Fantacinni
21st May 2007, 19:34
Should be like this,

Load_Stdcall_plugin("C:\Program Files\AviSynth 2.5\plugins\yadif.dll")
AviSource("disney.avi")
ConvertToYV12(interlaced=true)
LanczosResize(720,last.height)
yadif(mode=1,order=1)
LanczosResize(last.width,480)
assumetff()
separatefields().selectevery(4,0,3).weave()

puddy
22nd May 2007, 03:11
Should be like this,

Load_Stdcall_plugin("C:\Program Files\AviSynth 2.5\plugins\yadif.dll")
AviSource("disney.avi")
ConvertToYV12(interlaced=true)
LanczosResize(720,last.height)
yadif(mode=1,order=1)
LanczosResize(last.width,480)
assumetff()
separatefields().selectevery(4,0,3).weave()

Thank you for taking the time to respond...

So you're change is "LanczosResize(last.width,480)".

Could you explain why?

Thanks!

puddy