Log in

View Full Version : A Nasty Bug in AGK 1.95: Job Queue Contamination


PaulM2
31st March 2005, 17:13
A week or so ago, I created four jobs to run overnight; the next day I noticed that all my four movies have identical subtitle although only the fourth movie should have subtitle. To be exact, Movie1, Movie2, and Movie3 got subtitle from Movie4 burned into them. I created the jobs in this order:
Movie1: divx5 codec, ac3 audio, 848-fixed width, 100% quality, no subtitle
Movie2: divx5 codec, ac3 audio, 848-fixed width, 100% quality, no subtitle
Movie3: divx5 codec, ac3 audio, 848-fixed width, 100% quality, no subtitle
Movie4: divx5 codec, ac3 audio, 848-fixed width, 100% quality, forced subtitle
Note: I ran preview on the fourth movie before I started encoding.

len0x
1st April 2005, 21:09
without logs from all the encodings I can't comment on that

PaulM2
2nd April 2005, 06:32
Hi len0x,
Here're the logs of Movie1. I see the culprit now, fifth line from the bottom:

[3/25/2005 12:28:32 AM] AutoGK 1.95
[3/25/2005 12:28:32 AM] OS: WinXP (5.1.2600).2
[3/25/2005 12:28:32 AM] Job started.
[3/25/2005 12:28:32 AM] Input dir: E:\Recode\Movies\X Men
[3/25/2005 12:28:32 AM] Output file: E:\Recode\Movies\X Men\X Men.avi
[3/25/2005 12:28:32 AM] Audio: English
[3/25/2005 12:28:32 AM] Subtitles: none
[3/25/2005 12:28:32 AM] Codec: DivX
[3/25/2005 12:28:32 AM] Target quality: 100%
[3/25/2005 12:28:32 AM] Custom resolution settings: fixed width of 848 pixels
[3/25/2005 12:28:32 AM] Custom audio settings: AC3
[3/25/2005 12:28:32 AM] Started encoding.
[3/25/2005 12:28:32 AM] Demuxing and indexing.
[3/25/2005 12:30:21 AM] Processing file: E:\Recode\Movies\X Men\VTS_04_PGC_01_1.VOB
[3/25/2005 12:30:21 AM] Processing file: E:\Recode\Movies\X Men\VTS_04_PGC_01_2.VOB
[3/25/2005 12:30:21 AM] Processing file: E:\Recode\Movies\X Men\VTS_04_PGC_01_3.VOB
[3/25/2005 12:30:21 AM] Processing file: E:\Recode\Movies\X Men\VTS_04_PGC_01_4.VOB
[3/25/2005 12:30:21 AM] Processing file: E:\Recode\Movies\X Men\VTS_04_PGC_01_5.VOB
[3/25/2005 12:30:21 AM] Source aspect ratio: 16:9
[3/25/2005 12:30:21 AM] Source resolution: 720x480
[3/25/2005 12:30:21 AM] Found NTSC source.
[3/25/2005 12:30:21 AM] Analyzing source.
[3/25/2005 12:34:01 AM] Source has percentage of interlacing in motion areas: 43.69
[3/25/2005 12:34:01 AM] Source has percentage of telecined patterns: 96.26
[3/25/2005 12:34:01 AM] Source has percentage of progressive patterns: 3.74
[3/25/2005 12:34:01 AM] Source has percentage of interlaced patterns: 0.00
[3/25/2005 12:34:01 AM] Source is considered to be FILM.
[3/25/2005 12:34:02 AM] Output will contain 150034 frames
[3/25/2005 12:34:02 AM] Running single pass encoding.
[3/25/2005 12:34:02 AM] Writing the following script to E:\Recode\Movies\X Men\agk_tmp\X Men_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\decomb.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\vsfilter.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE2.dll")

movie = mpeg2source("E:\Recode\Movies\X Men\agk_tmp\X Men.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)
input_par = input_par > 1.4 ? input_par : (4.0/3.0)
out_width = 848
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
Telecide(movie,order=1,guide=1,post=2).Decimate(mode=0)
autocrop(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)
VobSub("E:\Recode\Movies\XXX\agk_tmp\XXX.idx")
===========================================================
[3/25/2005 2:03:46 AM] Duration was: 1 hour, 29 minutes 42 seconds
[3/25/2005 2:03:46 AM] Speed was: 27.87 fps.
[3/25/2005 2:03:46 AM] Job finished. Total time: 1 hour, 35 minutes 13 seconds

len0x
2nd April 2005, 13:16
You discovered very interesting bug indeed - preview caches IDX file for later preview(s) but since its global, it was also used during normal job. If you run a preview on non-last job, then you would have not noticed this. Anyway fixed for 2.02