Log in

View Full Version : Avisynth : Illegal instruction


Steuerzahler
9th April 2002, 19:57
Hello,

I am experiencing a strange problem with avisynth. I try to compress dvds according to doom9s gknot-guides. I use the recomended progs and the divx 5 codec and everything seems to work fine. When the avi is ready, the first minutes (up to 20 and more) are okay but then the pictures turns black and the phrase „ Avinsynth: illegal instruction at 0X0bbc4391“ is to be seen.

When encoding with divx 3.11, virtualdub crashes with this error (the adresses change).

What is wrong? I have no idea

My machine: Celeron 700, 512MB, OS Win2K SP2
:confused:

DJ Bobo
10th April 2002, 00:47
what was the AVS you used?

And take a look at this! http://forum.doom9.org/showthread.php?s=&threadid=22564

Steuerzahler
10th April 2002, 15:07
Thanks for the reply. The avs is:

#
# Created with Gordian Knot
#
# http://thewef.nav.to
#
# PLUGINS
# get them from http://users.win.be/dividee
LoadPlugin("C:\PROGRA~1\DVD\GORDIA~1\mpeg2dec.dll")
#LoadPlugin("C:\PROGRA~1\DVD\GORDIA~1\InverseTelecine.dll")
#LoadPlugin("C:\PROGRA~1\DVD\GORDIA~1\Avisynth_Spatial.dll")
#LoadPlugin("C:\PROGRA~1\DVD\GORDIA~1\GreedyHMA.dll")
#LoadPlugin("C:\WINNT\System32\vobsub.dll")
#
# SOURCE
mpeg2source("D:\temp\A_KNIGHTS_TALE\knights.d2v")
#
# TRIM
#trim(startframe,endframe)
#
# IVTC
#InverseTelecine(40,10,15)
# or use
#GreedyHMA(1,0,4,0,0,0,0,0)
#
# CROPPING
crop(6,73,703,431)
#
# DEINTERLACING
#SmartDeinterlace(2,15,true,true,true)
# or use
#VerticalReduceBy2
# or maybe
#GreedyHMA(1,0,0,0,0,0,0,0)
#
# SUBTITLES
#VobSub("FileName")
#
# RESIZING
BilinearResize(608,256)
#
# DENOISING: choose one combination (or none)
# 1) little noise (fast)
#TemporalSmoother(2,1)
#
# 2) medium noise (slow)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#TemporalSmoother(2)
#
# 3) heavy noise (very slow, you have been warned)
#SpatialSoftenMMX(2,4,6,false,false,4,4,6,8)
#TemporalSmoother(3)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#
# BORDERS
#AddBorders(left,top,right,bottom)
#
# COMPRESSIBILITY CHECK
# !Snip Size has to be 13 for use in GKnot!
#SelectRangeEvery(260,13)
#
# FOOL CCEnc
#ResampleAudio(44100)

dividee
10th April 2002, 15:26
Only use even values in horizontal crop, such as:
crop(6,73,704,431)
instead of
crop(6,73,703,431)

Avisynth is supposed to round them internally anyway, but it seems this fixed other peoples problems.

DJ Bobo
10th April 2002, 15:28
As I said in the other topic, verify your crop line
You entered wrong values: the values must be divisible by 2

That means, correct your crop line to be as following:

crop(6,73,702,430)

Steuerzahler
10th April 2002, 20:22
Thanks a lot. I`ll give it a try. Didn`t it would be this easy.

Steuerzahler
11th April 2002, 19:28
Well, actually it didn`t work. Gknot crashed with the well known phrase. Is still anything wrong in my avs?

#
# Created with Gordian Knot
#
# http://thewef.nav.to
#
# PLUGINS
# get them from http://users.win.be/dividee
LoadPlugin("C:\PROGRA~1\dvd\GORDIA~1\mpeg2dec.dll")
#LoadPlugin("C:\PROGRA~1\dvd\GORDIA~1\InverseTelecine.dll")
#LoadPlugin("C:\PROGRA~1\dvd\GORDIA~1\Avisynth_Spatial.dll")
#LoadPlugin("C:\PROGRA~1\dvd\GORDIA~1\GreedyHMA.dll")
#LoadPlugin("C:\WINNT\System32\vobsub.dll")
#
# SOURCE
mpeg2source("D:\temp\A_KNIGHTS_TALE\knights.d2v")
#
# TRIM
trim(0,147175)
#
# IVTC
#InverseTelecine(40,10,15)
# or use
#GreedyHMA(1,0,4,0,0,0,0,0)
#
# CROPPING
crop(0,74,720,428)
#
# DEINTERLACING
#SmartDeinterlace(2,15,true,true,true)
# or use
#VerticalReduceBy2
# or maybe
#GreedyHMA(1,0,0,0,0,0,0,0)
#
# SUBTITLES
#VobSub("FileName")
#
# RESIZING
BilinearResize(608,256)
#
# DENOISING: choose one combination (or none)
# 1) little noise (fast)
#TemporalSmoother(2,1)
#
# 2) medium noise (slow)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#TemporalSmoother(2)
#
# 3) heavy noise (very slow, you have been warned)
#SpatialSoftenMMX(2,4,6,false,false,4,4,6,8)
#TemporalSmoother(3)
#SpatialSoftenMMX(1,4,6,false,false,4,4,6,8)
#
# BORDERS
#AddBorders(left,top,right,bottom)
#
# COMPRESSIBILITY CHECK
# !Snip Size has to be 13 for use in GKnot!
#SelectRangeEvery(260,13)
#
# FOOL CCEnc
#ResampleAudio(44100)


Thanks in advance

DJ Bobo
11th April 2002, 21:53
can you play this AVS in Media Player?

Steuerzahler
12th April 2002, 05:47
I`m trying to play it right now in the media-player. For the first 25 minutes it worked fine. Seems to be all right. let`s see how long it will work.

DJ Bobo
12th April 2002, 10:54
Well, if it's playable in Media Player, it should be no problem to use it in any encoding software.
May be GKnot has a bug or something, try to encode directly in VirtualDub, or use the new encoding utility of Jonny (in the DivX5 forum)

alex jackson
25th April 2002, 11:58
I get the same prblem when I try to encode with DivX 4.12 in
Gknot or using DVD2SVCD. The crop lines are even numbers and they play in windows media player for a while and then crash showing the same error message. The odd thing is I can load the .avs in virtualdub and scan through all the way to the end. I have done 2 pass DivX 4.12 rips of small video clips in Gknot following the exact same procedure with no problem. The error only seems to occur after AVIsynth has been frameserving for a while. I don't know what is causing this but it has promted me to reinstall W2K only to have the same problem. Slightly annoying. I am using Xmpeg again for now.

Steuerzahler
30th April 2002, 09:53
I finally solved the problem.
I changed my os from Win 2k back to win 98 SE and everything works fine again.
Thanks to all who tried to help me.

Milkman Dan
1st May 2002, 12:59
: /

It must have been something in your install, 'cause there are obviously tons of people using Win2k who didn't have a problem.

But if you're satisfied with the 'stability' of Win98SE, then have at it. Good you solved the problem.