View Single Post
Old 2nd August 2008, 22:02   #1  |  Link
Zxian
Registered User
 
Join Date: Jul 2008
Posts: 3
wMultOf must be non-zero

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:

Code:
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:

Code:
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 is offline   Reply With Quote