Log in

View Full Version : AutoGK - error compressing XviD AVI file


esojmc
26th March 2005, 17:04
I'm trying to re-compress a XviD AVI (with AGK 2.01) file so that it will play on my standalone but I get the following error message during "Analyzing source":

Avisynth open failure:
Trim: Cannot trim if there is no video
D:\tmp\......\agk_tmp\_.avs, line 8

Here is what's int the _.avs file:

LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\decomb.dll")
file="D:\tmp\01_Palins_Pole_To_Pole\agk_tmp\interlace.log"
global sep="-"
function IsMoving() {
global b = (diff < 1.0) ? false : true}
DirectShowSource("D:\tmp\01_Palins_Pole_To_Pole\01_Palins_Pole_To_Pole.avi",25).KillAudio()
c = SelectRangeEvery(180,18)
global clip = c
c = WriteFile(c, file, "a", "sep", "b")
c = FrameEvaluate(c, "global a = IsCombed(clip, 32)")
c = FrameEvaluate(c, "IsMoving")
c = FrameEvaluate(c,"global diff = 0.50*YDifferenceFromPrevious(clip) + 0.25*UDifferenceFromPrevious(clip) + 0.25*VDifferenceFromPrevious(clip)")
crop(c,0,0,4,4)

I used AGK on a DVD VOB file and it worked fine. Any ideas...

Thanks

esojmc
27th March 2005, 04:42
OK, finally figures out what was causing the error. I was running AGK on a headless workstation and using VNC to get into the machine and setup the encode. I used XP Remote Desktop Connection and now I can get past the original error message. I don't understand why it failed with VNC. If anyone knows, please let me know.

I have a new problem now. I am getting the following error from VirtualDubMod:

Avisynth open failure:
wMultOf must be non zero
(D:\.........movie.avs, line 7)

Following is what I have in the AVS file:

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

movie = DirectShowSource("D:\tmp\04_Palins_Pole_To_Pole\04_Palins_Pole_To_Pole.avi",25).KillAudio()
movie = isRGB(movie) ? ConvertToYUY2(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 : (4.0/3.0)
out_width = 512
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)
BicubicResize(out_width,out_height,0,0.5)

wmultof is a non zero value so I'm not sure why it's failing. Any ideas on this on?

Thanks

esojmc
27th March 2005, 18:33
Oops, didn't realize I posted this to the development forum. Can a moderator move it to the (A)GK forum?

Thanks

len0x
27th March 2005, 20:38
Sorry I was moving it back and forth - at first i thought you're asking about recompressing AVI file (i.e. only beta feature atm). Topic would be better described as "Autocrop error in AutoGK".

P.S. No idea about VNC :)

BaronVlad
2nd August 2005, 23:13
Hi,

sorry for refreshing this quite old thread but I get the same error message as described above.

AGK Version 2.13b

I get the message "Trim: Cannot trim if there is no video...." everytime I want to encode an avi file (Huffy or XVid for testing). And I am quite sure that there is a video. :p When trying to encode DV avis I did not get this message but agk freezes when analyzing the video.

Uninstalling of avi file handler from VDub and debug frameserver did not help

Avisynth 2.55 is installed and was tested successfully ;)

Thanks

BaronVlad
3rd August 2005, 19:20
Problem solved:

turn off huffyuv decoding via ffdshow and it works. Strange problem...

Thanks for your help ;)