Log in

View Full Version : problems embedding subs


jacks13579
14th October 2004, 13:48
I keep having problems doing rips with subs. I'm using agk 1.60 with divx5.11. When trying to encode using subs one of two things happen. Either my system reboots durning some part of the process (i think during the running of vob sub) or the encode finishes but no subs are in the avi.

I'm doing another attempt as I write this and its on the 1st pass now.

One thing that I notice is that the .sub file always seems to be 0 bytes. I'm assuming this is not normal and this file should contain the text of the subs??

This is the directory list with the current file sizes. The name of the output file is subs6 (hence test #6)

60,297 frames.log
986 lastjob.vcf
91,982,336 sub6 AC3 T01 1_0ch 128Kbps DELAY 0ms.ac3
1,788 sub6 AC3 T01 1_0ch 128Kbps DELAY 0ms.log
43,288,736 sub6 AC3 T01 1_0ch 128Kbps DELAY 0ms.mp3
616,375 sub6.d2v
1,622 sub6.idx
0 sub6.sub
0 sub6_codec.log
20,074,399 sub6_codec.mv
117,651,456 sub6_comptest.avi
1,083 sub6_comptest.avs
1,063 sub6_movie.avs
85 vobsub.params


Here is the VTS_01 - Stream Information.txt
as you can see the structre is simple.

0x20 - Subtitle - English - [SubPicture 01: Normal] / LBA: 57977 / PTS: 00:00:30.854 / Delay: 30563ms
0x80 - Audio - AC3 / 1ch / 48kHz / DRC / Japanese / LBA: 51068 / PTS: 00:00:00.223 / Delay: -66ms
0xE0 - Video - MPEG-2 / 720x480 (NTSC) / 4:3 / LBA: 51059 / PTS: 00:00:00.290 / Delay: 0ms


And here are some of the other files:


*** vobsub.params ****

H:\rip\movie\VTS_01_0.ifo
H:\rip\movie\agk_tmp\sub6
1
0
0 cc
CLOSE

*** vobsub.params ****




*****sub6_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("H:\rip\movie\agk_tmp\sub6.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0)
fixed_aspect = 0.888888888888889
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,samplestartframe=0)
Undot()
VobSub("H:\rip\movie\agk_tmp\sub6.idx")
BicubicResize(out_width,out_height,0,0.5)

*****sub6_movie.avs *****

len0x
18th October 2004, 21:51
Reboot is definitely a sign of unstable system and some kind of hardware problem. For your subs problem make sure to check out FAQ Q 3.4 (and yes, sub file should not be zero in size).