Log in

View Full Version : Second audio trouble with AutoGK 1.25 [solved]


ydobon
29th May 2004, 10:04
Hi, all.

I've had problems when trying to convert a TV show episode with two audio tracks. It looks like the same track is demuxed twice (same file name & size in the two DVD2AVI runs), and then AutoGK says "audio 2 not found, turning it off".

This is the stream info (the underlined ones are the ones I'm interested in):

0x20 - Subtitle - Dansk - [SubPicture 01: Normal] / LBA: 470 / PTS: 00:00:02.600 / Delay: 2320ms
0x21 - Subtitle - Deutsch - [SubPicture 02: Normal] / LBA: 295 / PTS: 00:00:02.200 / Delay: 1920ms
0x22 - Subtitle - English - [SubPicture 03: Normal] / LBA: 298 / PTS: 00:00:02.200 / Delay: 1920ms
0x23 - Subtitle - Español - [SubPicture 04: Normal] / LBA: 302 / PTS: 00:00:02.200 / Delay: 1920ms
0x24 - Subtitle - Français - [SubPicture 05: Normal] / LBA: 304 / PTS: 00:00:02.200 / Delay: 1920ms
0x25 - Subtitle - Italiano - [SubPicture 06: Normal] / LBA: 312 / PTS: 00:00:02.200 / Delay: 1920ms
0x26 - Subtitle - Nederlands - [SubPicture 07: Normal] / LBA: 338 / PTS: 00:00:02.240 / Delay: 1960ms
0x27 - Subtitle - Norsk - [SubPicture 08: Normal] / LBA: 472 / PTS: 00:00:02.600 / Delay: 2320ms
0x28 - Subtitle - Svenska - [SubPicture 09: Normal] / LBA: 474 / PTS: 00:00:02.600 / Delay: 2320ms
0x29 - Subtitle - English - [SubPicture 10: Normal] / LBA: 315 / PTS: 00:00:02.200 / Delay: 1920ms
0x80 - Audio - AC3 / 2ch / 48kHz / DRC / Deutsch / LBA: 7 / PTS: 00:00:00.280 / Delay: 0ms
0x81 - Audio - AC3 / 6ch / 48kHz / DRC / English / LBA: 6 / PTS: 00:00:00.280 / Delay: 0ms
0x82 - Audio - AC3 / 2ch / 48kHz / DRC / Español / LBA: 8 / PTS: 00:00:00.280 / Delay: 0ms
0x83 - Audio - AC3 / 2ch / 48kHz / DRC / Français / LBA: 9 / PTS: 00:00:00.280 / Delay: 0ms
0x84 - Audio - AC3 / 2ch / 48kHz / DRC / Italiano / LBA: 10 / PTS: 00:00:00.280 / Delay: 0ms
0xE0 - Video - MPEG-2 / 720x576 (PAL) / 4:3 / LBA: 1 / PTS: 00:00:00.280 / Delay: 0ms


This is the log (I've underlined the relevant lines):

[29/05/2004 10:06:31] AutoGK 1.25
[29/05/2004 10:06:31] OS: WinXP (5.1.2600).2
[29/05/2004 10:06:31] Job started.
[29/05/2004 10:06:31] Input dir: C:\ST-TNG\175
[29/05/2004 10:06:31] Output file: C:\ST-TNG\175.avi
[29/05/2004 10:06:31] Audio: English
[29/05/2004 10:06:31] Audio2: Español
[29/05/2004 10:06:31] Subtitles: English : Normal
[29/05/2004 10:06:31] Subtitles 2: Español : Normal
[29/05/2004 10:06:31] Codec: XviD
[29/05/2004 10:06:31] Target size: 493Mb
[29/05/2004 10:06:31] Custom audio settings: CBR MP3 with bitrate: 128Kbps
[29/05/2004 10:06:31] Started encoding.
[29/05/2004 10:06:31] Demuxing and indexing.
[29/05/2004 10:11:51] Analyzing source.
[29/05/2004 10:11:51] Writing the following script to C:\ST-TNG\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("C:\\ST-TNG\\gk_tmp\\_.avs",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\ST-TNG\\gk_tmp\\_.avi");
===========================================================
[29/05/2004 10:15:21] Source has percentage of interlacing in motion areas: 7,50
[29/05/2004 10:15:21] Source is considered to be interlaced.
[29/05/2004 10:15:21] Analyzing PAL source with different field order.
[29/05/2004 10:15:21] Writing the following script to C:\ST-TNG\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("C:\\ST-TNG\\gk_tmp\\_.avs",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\ST-TNG\\gk_tmp\\_.avi");
===========================================================
[29/05/2004 10:18:53] Source has percentage of interlacing in motion areas: 7,49
[29/05/2004 10:18:53] Source is considered to be interlaced.
[29/05/2004 10:18:53] Found 65437 frames
[29/05/2004 10:18:53] Encoding audio.
[29/05/2004 10:22:58] Audio 2 is not found.
[29/05/2004 10:22:58] Indexing subtitles.
[29/05/2004 10:22:58] Writing the following script to C:\ST-TNG\gk_tmp\vobsub.params
===========================================================
C:\ST-TNG\175\VTS_02_PGC_01_0.ifo
C:\ST-TNG\gk_tmp\175
1
0
2 3 cc
CLOSE
===========================================================
[29/05/2004 10:25:31] Compressing subtitles.
[29/05/2004 10:25:40] Audio size: 41,883,008 bytes (39.94 Mb)
[29/05/2004 10:25:40] Audio 2 is not found. Switching it off.
[29/05/2004 10:25:40] Overhead: 777,088 bytes (0.74 Mb)
[29/05/2004 10:25:40] Subtitles size: 1,096,083 bytes (1.05 Mb)
[29/05/2004 10:25:40] Video size: 473,191,789 bytes (451.27 Mb)
[29/05/2004 10:25:40] Running compressibility test.
[29/05/2004 10:25:40] Writing the following script to C:\ST-TNG\gk_tmp\175_comptest.avs
===========================================================
LoadPlugin("C:\ARCHIV~1\AutoGK\filters\mpeg2dec3dg.dll")
LoadPlugin("C:\ARCHIV~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\ARCHIV~1\AutoGK\filters\undot.dll")
LoadPlugin("C:\ARCHIV~1\AutoGK\filters\kerneldeint.dll")

function getOrder(clip c) {
order = GetParity(c) ? 1 : 0
return order }

movie = mpeg2source("C:\ST-TNG\gk_tmp\175.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=35)
c_width = width(cropclip)
c_height = round(height(cropclip) / 1.09401709401709)
input_par = float(c_width)/float(c_height)
fixed_aspect = 1.09401709401709
flag_halfdvd = input_par > 1.0 ? 0 : 1
input_par = input_par > 1.0 ? input_par : input_par * 2
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
new_aspect = flag_halfdvd > 0 ? new_aspect/2.0 : new_aspect
KernelDeInt(movie,order=getOrder(movie),sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=35)
Undot()
LanczosResize(out_width,out_height)
SelectRangeEvery(300,15)
===========================================================
[29/05/2004 10:25:40] Writing the following script to C:\ST-TNG\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("C:\\ST-TNG\\gk_tmp\\175_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(0x64697678,0,10000,0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\ST-TNG\\gk_tmp\\175_comptest.avi");
===========================================================
[29/05/2004 10:34:58] Duration was: 9 minutes 17 seconds
[29/05/2004 10:34:58] Speed was: 5,87 fps.
[29/05/2004 10:35:00] Compressibility percentage is: 107,22
[29/05/2004 10:35:00] Using sharper matrix
[29/05/2004 10:35:00] Chosen resolution is: 704x528 ( AR: 1,33 )
[29/05/2004 10:35:00] Predicted comptest value is: 76,38
[29/05/2004 10:35:00] Running first pass.
[29/05/2004 10:35:00] Writing the following script to C:\ST-TNG\gk_tmp\175_movie.avs
===========================================================
LoadPlugin("C:\ARCHIV~1\AutoGK\filters\mpeg2dec3dg.dll")
LoadPlugin("C:\ARCHIV~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\ARCHIV~1\AutoGK\filters\undot.dll")
LoadPlugin("C:\ARCHIV~1\AutoGK\filters\kerneldeint.dll")

function getOrder(clip c) {
order = GetParity(c) ? 1 : 0
return order }

movie = mpeg2source("C:\ST-TNG\gk_tmp\175.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=35)
c_width = width(cropclip)
c_height = round(height(cropclip) / 1.09401709401709)
input_par = float(c_width)/float(c_height)
fixed_aspect = 1.09401709401709
flag_halfdvd = input_par > 1.0 ? 0 : 1
input_par = input_par > 1.0 ? input_par : input_par * 2
input_par = input_par > 1.4 ? input_par : (4.0/3.0)
out_width = 704
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
new_aspect = flag_halfdvd > 0 ? new_aspect/2.0 : new_aspect
KernelDeInt(movie,order=getOrder(movie),sharp=true)
autocrop(mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=35)
Undot()
LanczosResize(out_width,out_height)
===========================================================
[29/05/2004 10:35:02] Writing the following script to C:\ST-TNG\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("C:\\ST-TNG\\gk_tmp\\175_movie.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(0x64697678,0,10000,0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\ST-TNG\\175.avi");
===========================================================
[29/05/2004 12:08:48] Duration was: 1 hour, 33 minutes 46 seconds
[29/05/2004 12:08:48] Speed was: 11,63 fps.
[29/05/2004 12:08:48] Expected quality of first pass size: 76,74
[29/05/2004 12:08:48] Running second pass.
[29/05/2004 12:08:49] Writing the following script to C:\ST-TNG\gk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("C:\\ST-TNG\\gk_tmp\\175_movie.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(0x64697678,0,10000,0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource("C:\\ST-TNG\\gk_tmp\\175 AC3 T02 3_2ch 384Kbps DELAY 0ms.mp3",0x00000202,0);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,2,0,0);
VirtualDub.stream[0].SetClipMode(1,1);
VirtualDub.stream[0].SetConversion(0,0,0,0,0);
VirtualDub.stream[0].SetVolume();
VirtualDub.stream[0].SetCompression();
VirtualDub.video.AddComment(0x00000000,"IAS1","English");
VirtualDub.SaveAVI("C:\\ST-TNG\\175.avi");
===========================================================
[29/05/2004 14:22:45] Duration was: 2 hours 13 minutes 56 seconds
[29/05/2004 14:22:46] Speed was: 8,14 fps.
[29/05/2004 14:22:46] Job finished.


When "Demuxing and indexing" I expect to see these two files being created by DVD2AVI:

175 AC3 T02 3_2ch 384Kbps DELAY 0ms.ac3
175 AC3 T01 2_0ch 192Kbps DELAY 0ms.ac3

but only the first one is written (twice).

I've run DVD2AVI manually and when I save the project (F4) all tracks are demuxed correctly, so I'd say it's a problem of track selection. The weird thing is that I've encoded several movies with the same configuration without problems (it's the first time I do it with TV episodes, though). Maybe I should also point out that each episode is in a different VTS (always PGC1), instead of different PGCs in the same VTS, as the ones mentioned in Doom9's tutorial.

Any ideas?


Regards,

ydobon
29th May 2004, 14:14
I've repeated the encode reversing the order of the streams, so the missing one is the first audio track. The "3_2ch" is the demuxed one again, but this time the job is aborted with the message:

EXCEPTION: Audio is not found. Encoding aborted.


I've found a partial workaround to the problem: I demux manually the "2_0ch" track and, after AutoGK starts the job, put the .ac3 file in the gk_tmp directory.

Unfortunately this doesn't allow me to do batch encodes :(


Regards,

len0x
29th May 2004, 14:28
Looks to me like IDs from stream info file don't correspond to the actual IDs in vobset which happens when you manually edit IFO files after ripping with DVDDecrypter or when DVDDecrypter produced wrong stream info file... Either way its not a fault of AutoGK.

ydobon
29th May 2004, 18:51
Hello,

Len0x, thanks for your quick answer.

Luckily I've found the reason of the problem: It was the f&%k#*g hyphen in the directory name.

More precisely, it was the substring "-TN" in the path, as DVD2AVIdg uses that as the command-line switch to extract a particular audio track.

So let that be a general recommendation for filenames and paths: Stick with good ol' english alphabet :P


### CASE CLOSED ###