Log in

View Full Version : Avisynth open failure:


badbod
21st June 2005, 09:02
Hi,
Im trying to backup National Treasure region 3. The original problem with this was MPEG1 streams not supported. All my other DVDs backup no problem. This was cured by updating to dgindex 1.4 RC1, however i am now getting error:

Avisynth open failure:
Evaluate: Unrecognized exception!
(D:/%path%/agk_tmp/%movie%.avs, line 19)


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

movie = mpeg2source("D:\NATIONAL_TREASURE\agk_tmp\NATIONAL_TREASURE.d2v")
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.18518518518519
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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
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)
RemoveGrain(mode=2)
SelectRangeEvery(300,15)

NATIONAL_TREASURE_agk.log
[6/19/2005 9:13:11 AM] AutoGK 2.09b
[6/19/2005 9:13:11 AM] OS: WinXP (5.1.2600).2
[6/19/2005 9:13:11 AM] Job started.
[6/19/2005 9:13:11 AM] Input dir: D:\NATIONAL_TREASURE\VIDEO_TS
[6/19/2005 9:13:11 AM] Output file: D:\NATIONAL_TREASURE\NATIONAL_TREASURE.avi
[6/19/2005 9:13:11 AM] Output codec: XviD
[6/19/2005 9:13:11 AM] Audio1: English AC3 6ch
[6/19/2005 9:13:11 AM] Subtitles: none
[6/19/2005 9:13:11 AM] Format: .AVI
[6/19/2005 9:13:11 AM] Target size: 700Mb
[6/19/2005 9:13:11 AM] Custom audio settings: VBR MP3 with average bitrate: 128Kbps
[6/19/2005 9:13:11 AM] Started encoding.
[6/19/2005 9:13:11 AM] Demuxing and indexing.
[6/19/2005 9:14:48 AM] Processing file: D:\NATIONAL_TREASURE\VIDEO_TS\VTS_01_PGC_01_1.VOB
[6/19/2005 9:14:48 AM] Processing file: D:\NATIONAL_TREASURE\VIDEO_TS\VTS_01_PGC_01_2.VOB
[6/19/2005 9:14:48 AM] Processing file: D:\NATIONAL_TREASURE\VIDEO_TS\VTS_01_PGC_01_3.VOB
[6/19/2005 9:14:48 AM] Processing file: D:\NATIONAL_TREASURE\VIDEO_TS\VTS_01_PGC_01_4.VOB
[6/19/2005 9:14:48 AM] Processing file: D:\NATIONAL_TREASURE\VIDEO_TS\VTS_01_PGC_01_5.VOB
[6/19/2005 9:14:48 AM] Source aspect ratio: 16:9
[6/19/2005 9:14:48 AM] Source resolution: 720x480
[6/19/2005 9:14:48 AM] Found NTSC source.
[6/19/2005 9:14:48 AM] Source seems to be pure FILM.
[6/19/2005 9:14:48 AM] Output will contain 188570 frames
[6/19/2005 9:14:48 AM] Decoding audio.
[6/19/2005 9:18:35 AM] Normalizing audio.
[6/19/2005 9:19:33 AM] Encoding audio.
[6/19/2005 9:27:50 AM] Audio1 size: 125,329,560 bytes (119.52 Mb)
[6/19/2005 9:27:50 AM] Overhead: 7,542,784 bytes (7.19 Mb)
[6/19/2005 9:27:50 AM] Video size: 601,130,856 bytes (573.28 Mb)
[6/19/2005 9:27:50 AM] Running compressibility test.
[6/19/2005 9:27:50 AM] Writing the following script to D:\NATIONAL_TREASURE\agk_tmp\NATIONAL_TREASURE_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrain.dll")

movie = mpeg2source("D:\NATIONAL_TREASURE\agk_tmp\NATIONAL_TREASURE.d2v")
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.18518518518519
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
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
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)
RemoveGrain(mode=2)
SelectRangeEvery(300,15)
===========================================================
[6/19/2005 9:30:15 AM] Duration was: 2 minutes 24 seconds
[6/19/2005 9:30:15 AM] Speed was: 65.20 fps.
*************************************
EXCEPTION: Cannot open file "D:\NATIONAL_TREASURE\agk_tmp\frames.log". The system cannot find the file specified
*************************************
[6/19/2005 9:30:15 AM] Job finished. Total time: 17 minutes 3 seconds


Hope you can shed some light on this.

Guest
21st June 2005, 13:26
If you update DGIndex, you have to update DGDecode as well. Have you done that? Also, these new versions that support MPEG1 have a new D2V file format. It could be that AGK needs to be modified for that. I don't know the internals of AGK, so can't be sure it is wired for a specific D2V format. len0x can answer that.

badbod
22nd June 2005, 04:59
The update was using the files from http://forum.doom9.org/showthread.php?p=675054#post675054 from neuron2 which includes DGDecode.dll. I did see from the docs about a change in the D2V format so I guess this may be the problem. I have been reading in these forums about the 'false header sequence' problem which sounds like the original issue of 'MPEG1 streams not supported' i was getting, but the resolution of using vobblanker and other tools would not work for me as none of the mentioned tools would touch my VOBs. The VOBs would play in powerdvd though. I think I will give up on this issue for now as it seems that as one issue is resolved another is opened up, so for only one DVD out of so many it is not worth the effort, especially as the movie isn't that good anyway. Thanks anyway. Ill let you know if I start to see more DVD's like this one, or if the movie is just sooooooo good it has to be backed-up to prevent loss or mishap :D

Guest
22nd June 2005, 13:16
You can always use DGIndex/DGDecode on their own without (A)GK.

At some point you have to leave the nest. :)

len0x
22nd June 2005, 21:06
It is indeed a change in d2v format that broke AutoGK (comments got removed from header) - morale is: do not use versions that are not bundled and wait for official support.

badbod
24th June 2005, 05:35
I guess the next version of AutoGK will fix this then? :)

PS: Great tool LenOx :thanks: As Neuron2 states I could spend the time to learn the functions of his tools, plus the others needed, and do things manually, but your AutoGK saves all that. 2 minutes to get to grips with and backing up without problems, apart from this one DVD, plus support for any problems. Can't beat it.