PDA

View Full Version : Avisynth open failure problem


tgbyhn10
12th August 2005, 19:00
Hi all

I'm new to all and need a little help with the following error:

Avisynth open failure:
Evaluate: Unrecognized exception!
(C:\ASS_PRE_13\VIDEO_TS\agk_tmp\Assault on Precinct 13_movie.avs, line 6)


-----> Start of file >Assault on Precinct 13_movie.avs
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE2.dll")

movie = mpeg2source("C:\ASS_PRE_13\VIDEO_TS\agk_tmp\Assault on Precinct 13.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=0,aspect=0,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1.42222222222222
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 = 720
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=0,aspect=new_aspect,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
----------------------------> end of file

This is what has happend:

A week ago I installed AutoGordianKnot 1.96 and the first dvd I converted to divx 5 worked fine but the aspect ration was wrong. The picture had been stretched vertically. This, I found out, was because my standalone divx player didn't know it was supposed to put the black bars at the top and bottom of the screen so they need to be included in the divx file. So went into the advanced settings and in the crop section I selected not to sample any frames. This stopped the black bars being removed from the outputed divx. This worked perfectly and played back fine.

Then I installed the 2.13 beta which I didn't get on with so I uninstalled it and went back to version 1.96.

Now I get the problem reported above. If I change samples to 10 in the above script it works fine but that puts the black bars back which is no good for me.

It seems like part of the beta pack is still on my machine even though I have removed it and re-installed 1.96.

I tried to open the above script in virtualdub 1.54 but I get the avisynth error shown above. Hope someone can help as I have very little idea what I am doing.

Oh. I also installed the divx6 converter pack after AGK 1.96

Thanks

Pete

len0x
12th August 2005, 20:39
This is what happens when a newbie goes to mess around with hidden options :(
If you read the tutorial you'd know that setting number of frames for autocrop to 0 is not the right method to disable autocrop. What for do I write documentation and FAQ if no one reads them???

tgbyhn10
12th August 2005, 21:01
Sorry Len0x. I've read the instructions properly this time and all is OK.

Thanks

Pete