Log in

View Full Version : EXCEPTION: ' ' is not a valid integer value


bugmenot
27th September 2004, 04:16
Hi i installed latest AutoGK 1.60 and now i cant encode anything because i get this error: EXCEPTION: ' ' is not a valid integer value. With version 1.57 everything worked fine, i started to get this errors after upgrade to stable. [25.9.2004 16:59:55] AutoGK 1.60 [25.9.2004 16:59:55] OS: WinXP (5.1.2600).2 [25.9.2004 16:59:55] Job started. [25.9.2004 16:59:55] Input dir: C:\1_NA_1\VIDEO_TS [25.9.2004 16:59:55] Output file: C:\1_NA_1\VIDEO_TS\New Folder\1na1.avi [25.9.2004 16:59:55] Audio: Serbian [25.9.2004 16:59:55] Subtitles: Slovenian : Wide/Letterbox/Pan & Scan [25.9.2004 16:59:55] Codec: XviD [25.9.2004 16:59:55] Target size: 700Mb [25.9.2004 16:59:55] Custom audio settings: VBR MP3 with average bitrate: 128Kbps [25.9.2004 16:59:55] Started encoding. [25.9.2004 16:59:55] Demuxing and indexing. [25.9.2004 17:04:26] Processing file: C:\1_NA_1\VIDEO_TS\VTS_07_1.VOB [25.9.2004 17:04:26] Processing file: C:\1_NA_1\VIDEO_TS\VTS_07_2.VOB [25.9.2004 17:04:26] Processing file: C:\1_NA_1\VIDEO_TS\VTS_07_3.VOB [25.9.2004 17:04:26] Processing file: C:\1_NA_1\VIDEO_TS\VTS_07_4.VOB [25.9.2004 17:04:26] Source aspect ratio: 4:3 [25.9.2004 17:04:26] Source resolution: 720x576 [25.9.2004 17:04:26] Found PAL source. [25.9.2004 17:04:26] Analyzing source. [25.9.2004 17:10:15] Source has percentage of interlacing in motion areas: 63,45 [25.9.2004 17:10:15] Source is considered to be interlaced. [25.9.2004 17:10:16] Found 135014 frames [25.9.2004 17:10:16] Encoding audio. [25.9.2004 17:28:57] Indexing subtitles. [25.9.2004 17:34:47] Audio size: 86,168,216 bytes (82.18 Mb) [25.9.2004 17:34:47] Overhead: 5,400,576 bytes (5.15 Mb) [25.9.2004 17:34:47] Video size: 642,434,408 bytes (612.67 Mb) [25.9.2004 17:34:47] Running compressibility test. [25.9.2004 17:34:47] Writing the following script to C:\1_NA_1\VIDEO_TS\New Folder\agk_tmp\1na1_comptest.avs =========================================================== LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll") LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll") LoadPlugin("C:\PROGRA~1\AutoGK\filters\vsfilter.dll") LoadPlugin("C:\PROGRA~1\AutoGK\filters\undot.dll") LoadPlugin("C:\PROGRA~1\AutoGK\filters\kerneldeint.dll") movie = mpeg2source("C:\1_NA_1\VIDEO_TS\New Folder\agk_tmp\1na1.d2v") cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0) fixed_aspect = 1.06666666666667 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 = 640 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 KernelDeInt(movie,order=1,sharp=true) autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=0) Undot() VobSub("C:\1_NA_1\VIDEO_TS\New Folder\agk_tmp\1na1.idx") LanczosResize(out_width,out_height) SelectRangeEvery(300,15) =========================================================== [25.9.2004 17:47:46] Duration was: 12 minutes 58 seconds [25.9.2004 17:47:46] Speed was: 8,67 fps. [25.9.2004 17:47:47] Compressibility percentage is: 44,88 [25.9.2004 17:47:47] Chosen resolution is: 512x384 ( AR: 1,33 ) [25.9.2004 17:47:47] Predicted comptest value is: 70,12 [25.9.2004 17:47:47] Running first pass. [25.9.2004 17:47:47] Writing the following script to C:\1_NA_1\VIDEO_TS\New Folder\agk_tmp\1na1_movie.avs =========================================================== LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll") LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll") LoadPlugin("C:\PROGRA~1\AutoGK\filters\vsfilter.dll") LoadPlugin("C:\PROGRA~1\AutoGK\filters\undot.dll") LoadPlugin("C:\PROGRA~1\AutoGK\filters\kerneldeint.dll") movie = mpeg2source("C:\1_NA_1\VIDEO_TS\New Folder\agk_tmp\1na1.d2v") cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0) fixed_aspect = 1.06666666666667 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 = 512 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 KernelDeInt(movie,order=1,sharp=true) autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=0) Undot() VobSub("C:\1_NA_1\VIDEO_TS\New Folder\agk_tmp\1na1.idx") LanczosResize(out_width,out_height) =========================================================== [25.9.2004 18:41:42] Duration was: 53 minutes 54 seconds [25.9.2004 18:41:42] Speed was: 41,74 fps. ************************************* EXCEPTION: ' ' is not a valid integer value ************************************* [25.9.2004 18:41:42] Job finished.

len0x
27th September 2004, 10:56
Failing after first pass? All movies or just this?

I didn't not change anything between 1.57 and 1.60 in that area.
Please zip and attach frames.log that is left after first pass in agk_temp dir.

bugmenot
27th September 2004, 12:59
I tryed only this movie 3 times.

len0x
27th September 2004, 15:04
try others...

If you have a look at frames.log you can see that last frame is missing size info, so that's why AutoGK is failing. This file is generated by VDubMod and I have no idea why last record is corrupt (may be last frame of the source is broken). Its definitely not a common problem for all DVDs.

P.S. I can build in a protection against last corrupted frame, but this will be a bit later...

bugmenot
28th September 2004, 02:26
I tryed other movie and it works fine. Sorry about false alarm

dkny
4th October 2004, 08:34
I’ve got the same problem:

AutoGK 1.60
OS: Win2003 (5.2.3790).2
Job started.
Input dir: X:\Video\DVD\BattleRoyale
Output file: G:\battleroyale.avi
Audio: Russian
Subtitles: none
Codec: XVid
Target size: 700Mb
Custom audio settings: VBR MP3 with average bitrate: 96Kbps
Started encoding.
Demuxing and indexing.
Processing file: X:\Video\DVD\BattleRoyale\VTS_01_1.VOB
..........
Processing file: X:\Video\DVD\BattleRoyale\VTS_01_5.VOB

*************************************
EXCEPTION: '2.21' is not a valid integer value
*************************************


2.21 is the aspect ration of my movie (DVD “Battle Royale” riped with DVD Decrypter 3.5.1.0). I tried both codecs DivX & XVid without success (both cases ended with the same “exception” error). Previously I normally encoded four XVid movies using AutoGK 1.60 and similar technique.

Haven’t tried any other version of AutoGK but 1.60 (stable) yet. I’ll tell you results.


Follow up:

Just found in battleroyale_agk.log that the source aspect ratio was calculated incorrectly. My movie is in 720x480 resolution (I must notice, that FFDShow 1.02 codec shows me: “720x480, Aspect: 221:100 (1061x480)”). When I play the film in BSPlayer 1.2 it opens just as it was 2.21 movie (1061x480!), but if I manually change Aspect Ration from BSPlayer menu to “Original” it changes to 720x480 and looks normal. Have any idea why that happens?

len0x
4th October 2004, 12:10
Originally posted by dkny
I’ve got the same problem:


please post FULL log file and header of D2V file from agk_tmp dir.