Log in

View Full Version : Help with Preview in AutoGK 2.4x


Lance
15th October 2008, 09:17
Hi :)

I try to convert a few of my dvds with forced subtitles and encountered some problems with the "preview" - function.

I worked with the stable 2.45 and tried now with 2.48b on a Windows XP SP2 System. Same problem:

When I hit the preview button, mpc appears with an error message like this:

Evaluate: System exception - Integer Divide by Zero
(E:\agk_tmp\test3_preview.avs, line 6)

that file "test3_preview.avs" says:

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

movie = mpeg2source("E:\agk_tmp\test3.d2v")
audio = DirectShowSource("E:\agk_tmp\test3 T01 3_2ch 448Kbps DELAY 0ms.ac3")
audio = DelayAudio(audio,0)
movie = AudioDub(movie,audio)
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,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 < 1.25) ? input_par : (4.0/3.0)
out_width = 480
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=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
VobSub("E:\agk_tmp\test3.idx")

Line 6 means:

audio = DirectShowSource("E:\agk_tmp\test3 T01 3_2ch 448Kbps DELAY 0ms.ac3")

This file is present and can be played with VLC and seems to me allright.

Here is the cpmplete Log:

[15.10.2008 10:04:21] AutoGK 2.48b
[15.10.2008 10:04:21] OS: WinXP (5.1.2600).2
[15.10.2008 10:04:21] Job started.
[15.10.2008 10:04:21] Indexing input for preview.
[15.10.2008 10:05:55] Processing file: E:\LOTR_TWO_TOWERS_SEE_D2\VIDEO_TS\VTS_02_1.VOB
[15.10.2008 10:05:55] Processing file: E:\LOTR_TWO_TOWERS_SEE_D2\VIDEO_TS\VTS_02_2.VOB
[15.10.2008 10:05:55] Processing file: E:\LOTR_TWO_TOWERS_SEE_D2\VIDEO_TS\VTS_02_3.VOB
[15.10.2008 10:05:55] Processing file: E:\LOTR_TWO_TOWERS_SEE_D2\VIDEO_TS\VTS_02_4.VOB
[15.10.2008 10:05:55] Processing file: E:\LOTR_TWO_TOWERS_SEE_D2\VIDEO_TS\VTS_02_5.VOB
[15.10.2008 10:05:55] Processing file: E:\LOTR_TWO_TOWERS_SEE_D2\VIDEO_TS\VTS_02_6.VOB
[15.10.2008 10:05:55] Processing file: E:\LOTR_TWO_TOWERS_SEE_D2\VIDEO_TS\VTS_02_7.VOB
[15.10.2008 10:05:55] Source resolution: 720x576
[15.10.2008 10:05:55] Found PAL source.
[15.10.2008 10:05:55] Source aspect ratio: 16:9
[15.10.2008 10:05:55] Color correction enabled.
[15.10.2008 10:05:55] Output will contain 185331 frames
[15.10.2008 10:05:55] Preparing subtitles for preview.
[15.10.2008 10:07:22] Job finished. Total time: 3 minutes 1 second.
====================================================


Who has an Idea ?

Thanks in advance

Lance

gizmo27
15th October 2008, 20:07
Does the subtitles work without the preview ?

Lance
16th October 2008, 09:51
No, and that is the point :)

To determine, which subtitle track it is and to find out if I have to use the "forced" mode, I wanted to use the preview function. It is mostly frustrating to convert the whole movie and after 1 hour you know: damn, again no success.

But I came closer. I installed "AC3 File" and "AC3 Filter" and now I can see the preview :)

Nevertheless, I am working on a film right know (The Peacemaker, Clooney&Kidman) and I am NOT able to show the 96 subtitles (the russians talk). I worked all night through this forum and others to find out. I want them hardcoded in the picture.

I extract the subs with DVDSubEdit which I find very comfortable. But it can only save them as *.sup. I can convert them to *.srt with OCR but that sucks, all the i-dots are commata, brackets are missing, "nt" are beeing reckognized as "k" and so on...

Then I tried to convert them with "Subtitle Creator" . Subtitle Creator runs very unstable, on startup it often crashes. When it occasionally starts, I tried to work with "Translate SUP or VOBSUP to SRT". I load the correct IFO, the *.SUP File and specified a new srt-file. Then a screen pops up where I can see all subs here I can change bold, italic and so on. A click on finish returns to rhe main screen. A list at the bottom shows all timestamps but the subs are probably transparent, they are no longer visible. Hmmmm. I saved the subs as *.srt and also as VobSub *.idx.

Both I tried to fill into AutoGK after pressing ctrl-F8.

But I cant see a preview of it. The error message says:

TextSub: Can't open "E:\test.sub"
[path]the_peacemaker_preview.avs, line 22

I assume, that happens also if I convert the movie.

How can I easy hardcode the external subs with AutoGK in my converted movie ?

manono
16th October 2008, 20:27
I extract the subs with DVDSubEdit which I find very comfortable. But it can only save them as *.sup. I can convert them to *.srt with OCR but that sucks, all the i-dots are commata, brackets are missing, "nt" are beeing reckognized as "k" and so on...
Geez, you're a glutton for punishment, eh? When there are a lot of sub streams and you're trying to figure where the foreign language talk is, whether they're Forced Subs in a larger stream, or if they have their own stream, it often makes sense to extract the subs yourself to figure it out, rather than going through the tedious process of running the AutoGK Preview one at a time. You were doing the right thing the wrong way.

First, extract the subs, not in SUP format but in IDX/SUB format. Open the IFO for the movie in VobSub Configure (comes included with VobSub) and get the subs. Then open the sub streams one at a time in Sub Resynch (comes included with VobSub). If there are Forced Subs, the individual lines of dialog will be marked as Forced. Otherwise they will have their own small stream. Once you've figured it out, you can either use AutoGK to pick out the stream you identified, or you can demux only the stream you want using VobSubStrip and, if necessary, edit the IDX to play only the Forced Subs:

# ON: displays only forced subtitles, OFF: shows everything
forced subs: ON

Then you can use the CTRL-F8 trick to get them into AutoGK. No OCR necessary.

Lance
17th October 2008, 14:50
Thanx, Manono :)

I tried your suggestion before and could not succeed. But after all I found out, that there where difficulties with that special CD.

I did not try every subtitle track with the preview function. When I determine the correct track, THEN I use preview just to check if it works fine. This movie I was trying to convert has some strange specialties. If I strip this sub with VobSub and open it with Sub Resynch it is blank!!! No titles at all. It seems that they are set to transparent or so. Therefore AutoGK could of course not show them. Also I can't feed them as external sub. If I try, the preview does not work becaus of a "textSub-Error" produced by avisynth. I just tried on "The mummy" and here it works fine just as you described it. But here the normal AutoGK Routine also showed the subs.

With the peacemaker only one way works:

- Open with DVDSubEdit.exe with "full Domain" and only pick the first vob
- Search the correct subtitle
- run OCR
- Save as .srt
- edit the textfile (grmblfx...was only 96 Lines...grrr)
- give the corrected file as ext. sub in AutoGK
- run preview...voilá


This way has one advantage : You can immediately see if the alien subs are at the correct location. Also good for checking the final converted movie. Generating the sub with DVDSubEdit does not take longer then VobSub if it is only for checking.