Log in

View Full Version : Resize Video


SeiShinn
16th November 2009, 07:38
Hello

I have a little problem here...
I want to ask about resizing video..

I want to make a 854x480 video with my MeGUI..
When I opened my AVS Script Creator,I choose :

Input DAR = ITU 16:9 NTSC (1.822784)

MeGUI give me the default size 720x480.
When I want to change the size into 854x480,that size back again to 720x480
so I just wrote them manual in the scripting page.
I wrote : "BiCubicResize(854,480)"

and again...
When I save the script,error appear..

"AviSynth script error"
Resize YV12 width must be multiple of 4


How can I solve this problem if I want to resize this video to 854x480 no matter what..

I Really need your help..
Thanks before..

mariush
16th November 2009, 07:44
If you're encoding to h264, you don't really need to resize the video, you can just specify the AR by adding the parameter to the h264 command line when you check the h264 configuration in MeGUI... just be careful it's not 16:9, it's another value. If you search the forum here, you'll find a tool that does that.
Most players will recognize that and adjust the AR automatically.\

later edit: see http://forum.doom9.org/showthread.php?t=107039

thewebchat
16th November 2009, 07:47
1) Don't use MeGUI.
2) The error is a limitation in VFW. VFW requires that all YV12 videos have a width divisible by 4 (854/4 = 213.5). You can either encode to the nearest mod4 resolution (852x480 or 856x480) or you can use an avs2yuv pipe (if the error is from x264).
3) For a 720x480 widescreen NTSC source, the correct aspect ratio is not 16:9 (approx. 853x480) but rather 20:11 (approx. 872x480).

Gavino
16th November 2009, 09:44
"AviSynth script error"
Resize YV12 width must be multiple of 4

This error message comes from Avisynth 2.57 (or earlier). In Avisynth 2.58, any multiple of 2 is allowed in resize.

However, if Avisynth is being used through the VfW interface, the width restriction mentioned by thewebchat still applies on the final script result. Some encoders use the VfW interface and some don't - I don't know if MeGUI does.

Alex_ander
16th November 2009, 09:46
Anyway, if you want to get exactly 16:9 after resizing, only resize to 852x480 the part previously cropped to 704x480, which represents that standard AR. The visible part in original video might be a bit wider (like 711 of 720), but that's not 16:9.
Alternatively, you can first resize 720x480 to the already mentioned 872x480 (the correction comes from 872=853x720/704), then crop to a visually suitable mod4 or mod8.

SeiShinn
16th November 2009, 11:06
Thanks for the info anyway
I already solve my problem..
Really Thanks