Log in

View Full Version : wMultOf must be non-zero


Zxian
2nd August 2008, 22:02
Hello everyone,

I'm trying to fix a problem I'm having with AGK. VOB encoding works just fine using just about any settings I can think of, but when I try to encode any AVI file (and I mean any...), I get the following error message after Demuxing audio:

VirtualDub Error

Avisynth open failure:
wMultOf must be non zero.
(Z:\TEMP\probka\agk_tmp\1_agk_movie.avs, line 8)

Here are the contents of the above mentioned AVS file:

LoadPlugin("C:\PROGRA~2\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~2\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~2\AutoGK\filters\RemoveGrainSSE3.dll")

movie = DirectShowSource("Z:\TEMP\probka\1.avi",23.976).KillAudio()
movie = isRGB(movie) ? ConvertToYV12(movie) : movie
movie = isYUY2(movie) ? ConvertToYV12(movie) : movie
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
input_par = (input_par > 1.4) || (input_par < 1.25) ? input_par : (4.0/3.0)
out_width = 608
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=0,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)

As you can see... wMultOf=4, which last time I checked, is indeed non-zero. Anyone have any ideas why this is happening? I've tried this with AGK 2.45 and 2.48b with the same results. I've even tried updating VDubMod to the latest version available on their site.

For the record, this is running on a system that has NO other codecs installed. The video file used in the above example is listed as being originally encoded using XviD 1.2 SMP (using GSpot to detect this). The OS is Server 2003 x64.

Any help would be greatly appreciated. If you need any more information from me, just say so.

Zxian
7th August 2008, 07:32
Bump. Anyone?

setarip_old
9th August 2008, 07:28
Hi!

Have you previously had success with AutoGK - or is this your first attempt?

I'm not a user of AutoGK, but I'd speculate that the program doesn't interpret "wMultOf" as being the same as "wmultof" (or "hMultOf" as being the same as "hmultof")...

Zxian
9th August 2008, 11:21
I've used AutoGK on other systems just fine, and on the same machine, while running Server 2003 (32-bit).

My XP x64 computer is able to run AGK without any troubles. The AVS script looks exactly the same as it does from the Server computer. Your thinking is logical, but not the case here.

This is the first time I've run into troubles like this... as you can easily understand, it's quite frustrating, since that machine is my video ripping machine as well as file storage (I'll typically set queues of 20-30 movies or episodes to rip/convert at a time).

setarip_old
9th August 2008, 20:48
If I'm interpreting your posts correctly, this is the first time you're running AutoGK under Server 2003 x64 O/S.

If so, perhaps you can placate an old man who's seen many strange computer anomalies over the years - and, if you haven't already done so, try what I suggested once...