Log in

View Full Version : Resize problems in avisynth


Chugalug
15th March 2004, 11:55
hey I am capturing alot of HDTV from channels like FoxHE, and NBCHE etc. I am having some troubles when encoding them with avisynth with the aspect ratio it is producing. lets say a show like American Dreams on NBC , I am trying to re-encode it into SVCD and using this here for resizing it:
LanczosResize(480,360)
addborders(0,60,0,60)

Now whats happening is it is taking the show and kind of squeezing it into the center, it doesn't look stretched or squished but it is not filling the left and right sides all the way to the edge.
there is a screen shot of how it looks at the bottom of this. If I do the resize to this:
LanczosResize(720,360)
addborders(0,60,0,60)
Then it looks fine, but 720x480 is not an SVCD standard resolution. If anyone has any ideas that would be great thanks.

http://www3.telus.net/chugspictures/american.JPG

timecop
15th March 2004, 12:50
is the show 4:3?
(it doesnt look like it, but I dont watch TV anyway)

if it is, crop out all the black shit and resize to SVCD resolution.
I don't remember if SVCD supports aspect ratio flags, if it does, and this crap is 16:9, crop all the black bars and resize to 4:3 and set 16:9 flag, and if it doesn't support 16:9, crop off all black stuff and add 16:9 borders.

Chugalug
15th March 2004, 13:33
it was a widescreen show the original looks like below...so I would say that it is probably 16:9 right? I couldn't get a very good cap of the original so I loaded it inot vdub...



http://www3.telus.net/chugspictures/proper.JPG

timecop
15th March 2004, 15:26
ok, according to our friends at Doom9 (http://www.doom9.org/aspectratios.htm), SVCD *does* support aspect ratios, though not on all players.

So, you shall take that video (which does look 16:9, and start by cropping out all the black junk. Then resize it to valid SVCD resolution (which is 4:3, 480x480 i believe), and during MPEG2 encoding (or after, using something like ReStream or pulldown.exe),
set the 16:9 flag.
Write the resulting MPEG2 in correct format on a SVCD, and try it
in your player. If it works, you are all set. If it doesn't, keep the same 480x480 resolution but after cropping off the black junk, instead add borders to top + bottom.