Log in

View Full Version : GK problem


tekman8
5th November 2003, 06:19
I hope I'm in the right spot. I'm having trouble encoding movies that use forced subtitles with GK0.28.6.2, as it reports a runtime error message with VdubMod and stops.

When I try to open a video file with AviSynth directly, using the avs file created by GK, it reports a failed to create script error.

An examination of an avs file generated by GK yielded the following information:
#
# Created with Gordian Knot
#
# http://gknot.doom9.org
#
# PLUGINS
LoadPlugin("C:\Program Files\Gordian Knot\VobSub\mpeg2dec3.dll")
LoadPlugin("C:\Program Files\Gordian Knot\VobSub\undot.dll")
#LoadPlugin("C:\Program Files\Gordian Knot\VobSub\decomb.dll")
#LoadPlugin("C:\Program Files\Gordian Knot\VobSub\dgbob.dll")
#LoadPlugin("C:\Program Files\Gordian Knot\VobSub\Convolution3d.dll")
#LoadPlugin("C:\Program Files\Gordian Knot\VobSub\FluxSmooth.dll")
#LoadPlugin("C:\Program Files\Gordian Knot\VobSub\TomsMoComp.dll")
#LoadPlugin("C:\Program Files\Gordian Knot\VobSub\VSFilter.dll")
#LoadPlugin("C:\Program Files\Gordian Knot\VobSub\SimpleResize.dll")
#
# SOURCE
mpeg2source("C:\DVD\Projects\DVD_VIDEO_VTS_01_PGC1\DVD_VIDEO_ForceFilm.d2v")
#
# TRIM
#trim(startframe,endframe)
#
# IVTC
#Telecide(order=1,guide=1).Decimate()
# or use
#IVTC(44,11,95)
#GreedyHMA(1,0,4,0,0,0,0,0)
#
# CROPPING
crop(0,6,720,468)
#
# DEINTERLACING (1)
#FieldDeinterlace()
#FieldDeinterlace(blend=false)
#TomsMoComp(1,5,1)
#
# DEINTERLACING (2)
#SeparateFields().SelectEven()
# or maybe
#DGBob(order=1,mode=0)
# DEINTERLACING (3) - special requests
#GreedyHMA(1,0,0,0,0,0,0,0)
#Telecide()
#SeparateFields()
#
#
# SUBTITLES
#VobSub("FileName")
#
# RESIZING
LanczosResize(448,240)
#
Undot()
#
# DENOISING: choose one combination (or none)
# 1) little noise
#Temporalsoften(2,3,3,mode=2,scenechange=6)
#mergechroma(blur(1.3))
#FluxSmooth(5,7)
#
# 2) medium noise
#Temporalsoften(3,5,5,mode=2,scenechange=10)
#Convolution3d("moviehq")
#FluxSmooth(7,7)
#
# 3) heavy noise
#Temporalsoften(4,8,8,mode=2,scenechange=10)
#Convolution3d("movielq")
#FluxSmooth(10,15)
#
# BORDERS
#AddBorders(left,top,right,bottom)
#
# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
#SelectRangeEvery(280,14)
#
# FOOL CCEnc
#empty = BlankClip()
#AudioDub(last,empty)

The example encodes properly and generates no errors. However, if I want to add a movie's forced subtitles, GK generates an avs file as follows:
#
# Created with Gordian Knot
#
# http://gknot.doom9.org
#
# PLUGINS
LoadPlugin("C:\Program Files\Gordian Knot\VobSub\mpeg2dec3.dll")
LoadPlugin("C:\Program Files\Gordian Knot\VobSub\undot.dll")
#LoadPlugin("C:\Program Files\Gordian Knot\VobSub\decomb.dll")
#LoadPlugin("C:\Program Files\Gordian Knot\VobSub\dgbob.dll")
#LoadPlugin("C:\Program Files\Gordian Knot\VobSub\Convolution3d.dll")
#LoadPlugin("C:\Program Files\Gordian Knot\VobSub\FluxSmooth.dll")
#LoadPlugin("C:\Program Files\Gordian Knot\VobSub\TomsMoComp.dll")
LoadPlugin("C:\Program Files\Gordian Knot\VobSub\VSFilter.dll")
#LoadPlugin("C:\Program Files\Gordian Knot\VobSub\SimpleResize.dll")
#
# SOURCE
mpeg2source("C:\DVD\Projects\DVD_VIDEO_VTS_01_PGC1\DVD_VIDEO_ForceFilm.d2v")
#
# TRIM
#trim(startframe,endframe)
#
# IVTC
#Telecide(order=1,guide=1).Decimate()
# or use
#IVTC(44,11,95)
#GreedyHMA(1,0,4,0,0,0,0,0)
#
# CROPPING
crop(0,6,720,468)
#
# DEINTERLACING (1)
#FieldDeinterlace()
#FieldDeinterlace(blend=false)
#TomsMoComp(1,5,1)
#
# DEINTERLACING (2)
#SeparateFields().SelectEven()
# or maybe
#DGBob(order=1,mode=0)
# DEINTERLACING (3) - special requests
#GreedyHMA(1,0,0,0,0,0,0,0)
#Telecide()
#SeparateFields()
#
#
# SUBTITLES
VobSub("C:\DVD\Projects\DVD_VIDEO_VTS_01_PGC1\DVD_VIDEO_ForceFilm")
#
# RESIZING
LanczosResize(448,240)
#
Undot()
#
# DENOISING: choose one combination (or none)
# 1) little noise
#Temporalsoften(2,3,3,mode=2,scenechange=6)
#mergechroma(blur(1.3))
#FluxSmooth(5,7)
#
# 2) medium noise
#Temporalsoften(3,5,5,mode=2,scenechange=10)
#Convolution3d("moviehq")
#FluxSmooth(7,7)
#
# 3) heavy noise
#Temporalsoften(4,8,8,mode=2,scenechange=10)
#Convolution3d("movielq")
#FluxSmooth(10,15)
#
# BORDERS
#AddBorders(left,top,right,bottom)
#
# COMPRESSIBILITY CHECK
# !!!!Snip Size now has to be 14 for use in GKnot!
#SelectRangeEvery(280,14)
#
# FOOL CCEnc
#empty = BlankClip()
#AudioDub(last,empty)

When GK starts encoding the example, a runtime error is reported and encoding stops. I do not know whether I'm dealing with a GK, AviSynth, VdubMod, or user error. Any help forthcoming will be appreciated.

manono
5th November 2003, 06:59
Hi-

What happens when you open that .avs directly in VDubMod and then scroll around? Does it give you an error message?

Is "DVD_VIDEO_ForceFilm" really the name of the .idx and .sub files, or did you change them?

And what happens when you put the VobSub line after the Resize, like so:

LoadPlugin("C:\Program Files\Gordian Knot\VobSub\mpeg2dec3.dll")
LoadPlugin("C:\Program Files\Gordian Knot\VobSub\undot.dll")
LoadPlugin("C:\Program Files\Gordian Knot\VobSub\VSFilter.dll")
mpeg2source("C:\DVD\Projects\DVD_VIDEO_VTS_01_PGC\DVD_VIDEO_ForceFilm.d2v")
crop(0,6,720,468)
LanczosResize(448,240)
VobSub("C:\DVD\Projects\DVD_VIDEO_VTS_01_PGC1\DVD_VIDEO_ForceFilm")
Undot()

And that's how you should give us the .avs's-without all that unused stuff. But try opening that in VDubMod and scrolling around. If I'm correct, that should be OK, and should encode from GKnot.

tekman8
7th November 2003, 02:33
You’re help is appreciated. The following is my response as follows:

What happens when you open that .avs directly in VDubMod and then scroll around? Does it give you an error message?

When I try to open an avs for a movie that uses forced subtitles I get a runtime error message. I can’t scroll around unless I’m in GK and select the edit button.

Is "DVD_VIDEO_ForceFilm" really the name of the .idx and .sub files, or did you change them??

That is the name assigned by R4R; I changed nothing.

And what happens when you put the VobSub line after the Resize, like so: …?

Nothing changes; I still get a runtime error message.

And that's how you should give us the .avs's-without all that unused stuff. But try opening that in VDubMod and scrolling around. If I'm correct, that should be OK, and should encode from GKnot.

I made the changes you suggested and nothing happens; I still get a runtime error message.

On my own initiative, at the suggestion of Suiryc of virtualdub, I downloaded the latest release of VdubMod and drivers, but nothing changed. Then I downloaded the latest release of GK and reloaded it. Still, the problem persists. I still do not know whether I’m seeing a GK, AviSynth, VdubMod, or some kind of user error. Any further help will be appreciated.

pirecrompir
18th November 2003, 19:56
hi!

i had the exact same problem, adding permanent subs to a movie generated an error in virtualdubmod, whereas no subs worked flawlessly.

i encode the main movie and credits seperately, so i get 2 avisynth scrips generated by gknot: the_movie.avs and the_movie_credits.avs. the credits script loaded without problems in vdubmod and the main movie script didn't. i found that the only main difference between the two was this line:

LoadPlugin("C:\PROGRA~1\GORDIA~1\VSFilter.dll")

so the problem had to be the filter!

i searched the net and found that old os's (win 9x & me) can have problems with the unicode version of the filter. so, the solution is: go to

http://sourceforge.net/projects/guliverkli

and download the latest version of vsfilter. the .zip package comes with two versions of the filter, the unicode and non-unicode. replace the existing vsfilter.dll in your gknot folder (and everywhere else vsfilter.dll resides on your computer) with the NON-UNICODE version found in the package. restart the computer (i'm not sure that's necessary BTW) and there you go!

this ended a very, VERY long search for the solution to my problem with addind the permanent subs :-))))).

i really hope this helps.

cheers,
grega

tekman8
19th November 2003, 04:16
@pirecrompir

Hi,

Hooray...Your solution works! Many thanks and much applause for your efforts. I was stuck with a bug I suspected in VDubMod, which Suiryc of virtualdub later confirmed and who will get around to fixing it someday. Meanwhile I only suspected VSFilter.dll, and then I drew a blank everywhere else.

Thanks again and happy dvd backups.

LaFouine
20th November 2003, 22:58
@pirecrompir

You're a master !!
I upgraded yesterday from GK 0.25b to 0.28 and I was quiet happy with it, until I discovered this problem.
I was ready to spend hours and hours to search the solution to this.

Thank you again for your job. My backups will start again...

tekman8
4th December 2003, 03:59
Hi,

I'm using divx 5.1.1 and GK encoded files are oversize.

GK.28.6.3 was either encoded for divx 5.0.5 or 5.1.0, does anyone know the correct answer?:stupid:


Thank You!

colordog
4th December 2003, 05:08
I've been using DivX 5.1.1 with GKnot, filesizes are never oversized. Could you provide more information? Log files?

tekman8
5th December 2003, 03:22
Hi,

At work I use XP and files are never oversized. At home I use 98SE and files are consistently 3-7 mb oversized. The other difference in my computer at home and the one at work is I use non-unicode version of VSFilter.dll with 98SE, else VdubMod quits working.

I suspect the diference lies with Divx Pro, and I would like to try using the version used by lenOx when he originally encoded GK.28.6.2 or GK.28.6.3 versions. Do you know which version was used?:thanks:

As to my logfiles, memory limits force me to erase everything when I start a new encode task. I am currently encoding "The Hulk" for the third try.

Thanks for helping.