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
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