Log in

View Full Version : AutoGK didnt encode subs


DR. GiGa BYTe
23rd August 2004, 00:27
Hi,

I'm using AutoGK 1.52b. Everything works fine besides the forced subs. The forced subs are in a single stream. If i choose this stream in AutoGK it doesn't matter if the "Display only forced subtitles" option is selected or not. The subtitles are not in the final Video. It works if i use the sub files (idx,sub) with a software player. Therefore the ripping process should not be the problem. I will add the log file, perhaps someone can help me to find a solution...

[22.08.2004 22:50:25] AutoGK 1.52b
[22.08.2004 22:50:25] OS: WinXP (5.1.2600).2
[22.08.2004 22:50:25] Job started.
[22.08.2004 22:50:25] Input dir: F:\24_S2_DVD1\VIDEO_TS
[22.08.2004 22:50:25] Output file: F:\24_S2_DVD1\02.avi
[22.08.2004 22:50:25] Audio: Deutsch
[22.08.2004 22:50:25] Subtitles: Deutsch / Normal Captions : Wide/Letterbo
[22.08.2004 22:50:25] Display only forced subtitles.
[22.08.2004 22:50:25] Codec: DivX
[22.08.2004 22:50:25] Target size: 373Mb
[22.08.2004 22:50:25] Custom resolution settings: minimum width of 576 pixels
[22.08.2004 22:50:25] Custom audio settings: VBR MP3 with average bitrate: 128Kbps
[22.08.2004 22:50:25] Started encoding.
[22.08.2004 22:50:25] Demuxing and indexing.
[22.08.2004 22:51:54] Source aspect ratio: 16:9
[22.08.2004 22:51:54] Source resolution: 720x576
[22.08.2004 22:51:55] Found PAL source.
[22.08.2004 22:51:55] Analyzing source.
[22.08.2004 22:51:55] Writing the following script to F:\24_S2_DVD1\agk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("F:\\24_S2_DVD1\\agk_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("F:\\24_S2_DVD1\\agk_tmp\\_.avi");
===========================================================
[22.08.2004 22:54:32] Source has percentage of interlacing in motion areas: 0,00
[22.08.2004 22:54:32] Source is considered to be progressive.
[22.08.2004 22:54:32] Found 62909 frames
[22.08.2004 22:54:32] Encoding audio.
[22.08.2004 23:01:17] Indexing subtitles.
[22.08.2004 23:01:17] Writing the following script to F:\24_S2_DVD1\agk_tmp\vobsub.params
===========================================================
F:\24_S2_DVD1\VIDEO_TS\VTS_03_PGC_02_0.ifo
F:\24_S2_DVD1\agk_tmp\02
2
0
2 cc
CLOSE
===========================================================
[22.08.2004 23:02:30] Audio size: 41,305,808 bytes (39.39 Mb)
[22.08.2004 23:02:30] Overhead: 4,060,544 bytes (3.87 Mb)
[22.08.2004 23:02:30] Video size: 345,752,496 bytes (329.74 Mb)
[22.08.2004 23:02:30] Target bitrate is: 1099kbps
[22.08.2004 23:02:30] Running compressibility test.
[22.08.2004 23:02:30] Writing the following script to F:\24_S2_DVD1\agk_tmp\02_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")

movie = mpeg2source("F:\24_S2_DVD1\agk_tmp\02.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34)
fixed_aspect = 1.42222222222222
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
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34)
Undot()
VobSub("F:\24_S2_DVD1\agk_tmp\02.idx")
LanczosResize(out_width,out_height)
SelectRangeEvery(280,14)
===========================================================
[22.08.2004 23:02:31] Writing the following script to F:\24_S2_DVD1\agk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("F:\\24_S2_DVD1\\agk_tmp\\02_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.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("F:\\24_S2_DVD1\\agk_tmp\\02_comptest.avi");
===========================================================
[22.08.2004 23:05:19] Duration was: 2 minutes 47 seconds
[22.08.2004 23:05:19] Speed was: 18,74 fps.
[22.08.2004 23:05:19] Compressibility percentage is: 43,85
[22.08.2004 23:05:19] Using softer resizer.
[22.08.2004 23:05:19] Using softer resizer.
[22.08.2004 23:05:19] Chosen resolution is: 576x336 ( AR: 1,71 )
[22.08.2004 23:05:19] Predicted comptest value is: 56,77
[22.08.2004 23:05:19] Running first pass.
[22.08.2004 23:05:19] Writing the following script to F:\24_S2_DVD1\agk_tmp\02_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")

movie = mpeg2source("F:\24_S2_DVD1\agk_tmp\02.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34)
fixed_aspect = 1.42222222222222
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 = 576
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)
Undot()
VobSub("F:\24_S2_DVD1\agk_tmp\02.idx")
BicubicResize(out_width,out_height,0,0.5)
===========================================================
[22.08.2004 23:05:19] Writing the following script to F:\24_S2_DVD1\agk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("F:\\24_S2_DVD1\\agk_tmp\\02_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(0x78766964,0,10000,0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("F:\\24_S2_DVD1\\02.avi");
===========================================================
[22.08.2004 23:49:59] Duration was: 44 minutes 39 seconds
[22.08.2004 23:49:59] Speed was: 23,48 fps.
[22.08.2004 23:49:59] Running second pass.
[22.08.2004 23:50:01] Writing the following script to F:\24_S2_DVD1\agk_tmp\lastjob.vcf
===========================================================
VirtualDub.Open("F:\\24_S2_DVD1\\agk_tmp\\02_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(0x78766964,0,10000,0);
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource("F:\\24_S2_DVD1\\agk_tmp\\02 AC3 T02 3_2ch 384Kbps DELAY -7ms.mp3",0x00000202,1);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,1,0,-7);
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","Deutsch");
VirtualDub.SaveAVI("F:\\24_S2_DVD1\\02.avi");
===========================================================
[23.08.2004 00:30:14] Duration was: 40 minutes 13 seconds
[23.08.2004 00:30:14] Speed was: 26,07 fps.
[23.08.2004 00:30:14] Job finished.

cu
DR.GB

manono
23rd August 2004, 04:15
Hi-

[22.08.2004 22:50:25] Display only forced subtitles.

If they have their own separate stream, as you say, then setting AutoGK to display only Forced Subs won't work, as technically they're not Forced Subs. Yes, I know you said they don't display either way. Did you run the Preview beforehand to check for the subs? Are you sure that you chose the correct Sub Stream in AutoGK?

If worse comes to worst, you can always get them into the video by substituting the idx/sub file that works with the AutoGK one, renaming it appropriately. Make the switch while AutoGK is making the audio, or running the Compression Test. I think that'll work.

DR. GiGa BYTe
23rd August 2004, 05:49
- it's the correct stream
- although the "Display only forced subtitles" option is on or off the subs didnt show up in the final video. (currently verifying)
- if i use the final video (w/o subs) together with the idx and sub file (ripped by AutoGK from the agk_tmp dir) the subs were displayed correct. Tested with Media Player Classic (6.4.8.2)

currently i'm testing with the disabled "Display only forced subtitles" option, but the last attempts fail so i think i will get a video w/o subs again. let's see...

Edit:
Demonstration Failure... Ok this time I got subs by disabling the "Display only forced subtitles" option... confusing... nevertheless i dont give up :) there are many other episodes where i can get into trouble :)

Thanx
DR.GB

manono
23rd August 2004, 08:58
Hi-

I was under the impression that you got the subs to work externally by ripping them outside of AutoGK. So, AutoGK gave you the correct subs. In that case, the only way that I can understand them not appearing in the final video is if you had the Forced Subs box checked.

Forced Subs are usually subs for a different language than that of the movie. For example, if there is some French spoken in what is basically an English language movie, then there might be some Forced Subs for the French parts. They will be contained within the much larger English language Sub Stream. But in your case, because the Subs you want have their own stream, you don't check the Forced Subs box.

Edit: I was typing when you responded. Good, I'm glad you got it sorted out.