Log in

View Full Version : Conversion failing in Auto GK


Lester Burnham
16th June 2005, 08:48
Hi

I would appreciate any help with this, I'm converting one of my DVDs (Fight Club R1), and have converted it previously, but not been completely happy with the cropping, so have configured Auto GK to manually crop (got the pixel numbers from the cropping window in virtualdub).

It fails quite early on in the conversion, now. Below are the log file, and the AVS script that it doesn't seem to like. Other conversions seem to work just fine at the moment, it just falls over, reliably, at the same point. Seems the file frames.log doesn't get created, for whatever reason.

[15/06/2005 20:52:20] AutoGK 2.09b
[15/06/2005 20:52:20] OS: WinXP (5.1.2600).2
[15/06/2005 20:52:20] Job started.
[15/06/2005 20:52:20] Input file: Fight_Club.mpg
[15/06/2005 20:52:20] Output file: F:\FIGHTCLB\VIDEO_TS\Fight_Club.avi
[15/06/2005 20:52:20] Output codec: DivX
[15/06/2005 20:52:20] Audio1: Audio Stream 0 AC3
[15/06/2005 20:52:20] Subtitles: none
[15/06/2005 20:52:20] Format: .AVI
[15/06/2005 20:52:20] Target size: 1384Mb
[15/06/2005 20:52:20] Custom resolution settings: fixed width of 640 pixels
[15/06/2005 20:52:20] Custom audio settings: CBR MP3 with bitrate: 160Kbps
[15/06/2005 20:52:20] Started encoding.
[15/06/2005 20:52:20] Demuxing and indexing.
[15/06/2005 21:20:34] Processing file: F:\FIGHTCLB\VIDEO_TS\Fight_Club.mpg
[15/06/2005 21:20:34] Source aspect ratio: 16:9
[15/06/2005 21:20:34] Source resolution: 720x480
[15/06/2005 21:20:34] Found NTSC source.
[15/06/2005 21:20:34] Source seems to be pure FILM.
[15/06/2005 21:20:35] Output will contain 199150 frames
[15/06/2005 21:20:35] Decoding audio.
[15/06/2005 21:20:35] Running: C:\PROGRA~1\AutoGK\tools\azid_p3.exe -s stereo -c normal "F:\FIGHTCLB\VIDEO_TS\agk_tmp\Fight_Club AC3 T01 2_0ch 192Kbps DELAY 0ms.ac3" "F:\FIGHTCLB\VIDEO_TS\agk_tmp\Fight_Club AC3 T01 2_0ch 192Kbps DELAY 0ms.wav"
[15/06/2005 21:27:40] Normalizing audio.
[15/06/2005 21:27:40] Running: C:\PROGRA~1\AutoGK\tools\normalize.exe "F:\FIGHTCLB\VIDEO_TS\agk_tmp\Fight_Club AC3 T01 2_0ch 192Kbps DELAY 0ms.wav"
[15/06/2005 21:30:29] Encoding audio.
[15/06/2005 21:30:29] Running: C:\PROGRA~1\AutoGK\tools\lame\lame.exe -h --cbr -b 160 "F:\FIGHTCLB\VIDEO_TS\agk_tmp\Fight_Club AC3 T01 2_0ch 192Kbps DELAY 0ms.wav" "F:\FIGHTCLB\VIDEO_TS\agk_tmp\Fight_Club AC3 T01 2_0ch 192Kbps DELAY 0ms.mp3"
[15/06/2005 21:52:24] Picking up autocrop parameters.
[15/06/2005 21:52:24] Audio1 size: 166,134,720 bytes (158.44 Mb)
[15/06/2005 21:52:24] Overhead: 7,247,104 bytes (6.91 Mb)
[15/06/2005 21:52:24] Video size: 1,277,847,360 bytes (1218.65 Mb)
[15/06/2005 21:52:24] Target bitrate is: 1231kbps
[15/06/2005 21:52:24] Running compressibility test.
[15/06/2005 21:52:24] Writing the following script to F:\FIGHTCLB\VIDEO_TS\agk_tmp\Fight_Club_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("F:\FIGHTCLB\VIDEO_TS\agk_tmp\Fight_Club.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=0,aspect=0,threshold=0,samplestartframe=0,leftadd=2,rightadd=0,topadd=58,bottomadd=64)
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=0,aspect=new_aspect,threshold=0,samplestartframe=0,leftadd=2,rightadd=0,topadd=58,bottomadd=64)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
SelectRangeEvery(280,14)
===========================================================
[15/06/2005 21:52:25] Writing the following script to F:\FIGHTCLB\VIDEO_TS\agk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("F:\\FIGHTCLB\\VIDEO_TS\\agk_tmp\\Fight_Club_comptest.avs",0,0);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x78766964,0,10000,0);
VirtualDub.video.SetCompData(585,"zAEAAAAAAAABAAAAkccSAAAAAEABAAAAAAAAAAAAAAAAAAAAAAAAAPAAAAAyAAAAIBFqAAAAMAAAACQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAmpmZmZmZyT+amZmZmZnJPwAAAAAAAAAAAAAAAIACAADgAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOA/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAZAAAAAAAAAAAAAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAP////8CAAAAAQAAAAAAAAABAAAAAgAAAAAAAAAAAAAAAAAAAEY6XEZJR0hUQ0xCXFZJREVPX1RTXGFna190bXBcRmlnaHRfQ2x1Yl9jb2RlYy5sb2cAYzpcdGVzdC5kaXZ4AEY6XEZJR0hUQ0xCXFZJREVPX1RTXGFna190bXBcRmlnaHRfQ2x1Yl9jb2RlYy5tdgBjOlxuZXdyYy50eHQA");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("F:\\FIGHTCLB\\VIDEO_TS\\agk_tmp\\Fight_Club_comptest.avi");
===========================================================
[15/06/2005 22:26:20] Duration was: 33 minutes 55 seconds
[15/06/2005 22:26:20] Speed was: 4.89 fps.
*************************************
EXCEPTION: Cannot open file "F:\FIGHTCLB\VIDEO_TS\agk_tmp\frames.log". The system cannot find the file specified
*************************************
[15/06/2005 22:26:20] Job finished. Total time: 1 hour, 33 minutes 59 seconds

AVS script:-

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("F:\FIGHTCLB\VIDEO_TS\agk_tmp\Fight_Club.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=0,aspect=0,threshold=0,samplestartframe=0,leftadd=2,rightadd=0,topadd=58,bottomadd=64)
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=0,aspect=new_aspect,threshold=0,samplestartframe=0,leftadd=2,rightadd=0,topadd=58,bottomadd=64)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
SelectRangeEvery(280,14)

Many thanks in advance for any help with this.

unskinnyboy
16th June 2005, 15:36
Please read:
http://forum.doom9.org/showthread.php?t=92360
http://forum.doom9.org/showthread.php?s=&threadid=85413
http://forum.doom9.org/showthread.php?s=&threadid=85088

Lester Burnham
17th June 2005, 09:29
Please read:
http://forum.doom9.org/showthread.php?t=92360
http://forum.doom9.org/showthread.php?s=&threadid=85413
http://forum.doom9.org/showthread.php?s=&threadid=85088

Thanks for the reply.

I read those threads and tried many permutations of deleting individual files from the Avisynth plugins directory, and ultimately deleting them all.

It didn't make any difference. And there was nothing in the plugins directory for virtualdubmod that's part of the Auto GK install.

Sorry, but this didn't fix the problem.

The problem being that for whatever reason line 6 of the AVS script seems to barf - I'm not sure whether that's an absolute line 6, or if it's interpreted and blank lines are ignored, it means the 6th instruction it comes across.

Lester Burnham
20th June 2005, 09:14
Is there anything else I can do to debug this?

I've supplied the log files and script, and tried the remedial actions?

I'm just wondering whether it's something I'm doing wrong, something wrong within the app, or just one of those odd circumstances that causes a glitch.

If I use autocrop, the same source mpeg converts.

jggimi
20th June 2005, 19:29
The first pass is not completing. The log from the first pass (the frame-by-frame analysis used by the 2nd pass) is missing:EXCEPTION: Cannot open file "F:\FIGHTCLB\VIDEO_TS\agk_tmp\frames.log". The system cannot find the file specifiedThere's a sticky: http://forum.doom9.org/showthread.php?t=48936

Lester Burnham
21st June 2005, 09:04
The first pass is not completing. The log from the first pass (the frame-by-frame analysis used by the 2nd pass) is missing:EXCEPTION: Cannot open file "F:\FIGHTCLB\VIDEO_TS\agk_tmp\frames.log". The system cannot find the file specifiedThere's a sticky: http://forum.doom9.org/showthread.php?t=48936

Thanks - that's given me something to work with.

Given what I've read from these links, I'm inclined to think it's a resolution issue. Perhaps with the manual cropping details I'm entering, the output resolution isn't divisable by 4.

Just a question about the file that gets produced (frames.log) - clearly I have some runs that do convert - autocropped conversions, is the contents of this file (the frame by frame analysis that gets input to the second pass), going to be largely the same, between autocropped runs, and runs with manual cropping?

And if it is, would saving a copy of the file from a run that was successful, and substituting at the appropriate time in a failing run by a valid workaround?

Many thanks for the reply.

Lester Burnham
22nd June 2005, 09:09
As a slight update to this, the conversion with the same settings, doesn't fall over if I use Xvid rather than DivX.

jggimi
22nd June 2005, 14:19
Then this is a DivX installation issue. Remove and reinstall 5.2.1. That may resolve the problem.