Log in

View Full Version : adding subtitles problem


EcchiNut
23rd March 2004, 18:16
Based originally on this thread (http://forum.doom9.org/showthread.php?s=&threadid=73111) , I was able to add the subtitles in (automatically it seems when i replaced the vob, (on software players), the only problem was messed up colors (which I have fixed already)), BUT, on my standalone players they wouldnt play the subs, not unless I watched the movie with subs on, and went back to the menu to play the video/trailer (hitting the subtitle button on my remote during the video just produces a Subs: -/- (basically meaning no subs to choose from)). So then I tried 2cool's guide on subs on by default (http://forum.doom9.org/showthread.php?s=&threadid=45440) - interesting to note, that MPC acted like my dvd players concerning this matter, and wouldnt play the video with subs, unless i jumped to the main movie, with subs on, and then back to the menu, to watch the "Trailer" with subs (my other software players always played with subs on no matter what (which is what confuzed me)). Once I tried 2cool's method, MPC played the subs automatically, BUT, my standalone's still had the same problem. Hopefully someone can help me out here:

VTS_02_0.ifo
VTS overview:
Menu attributes:
Video: Mpeg-2 720x480 (NTSC) (NTSC 525/60) (16:9) (not specified perm.dispaly)
SubPicture 1: English (2-bit rle)

Title set (movie) attributes:
Video: Mpeg-2 720x480 (NTSC) (NTSC 525/60) (16:9) (not specified perm.display)
Audio 1: English (Dolby AC-3) 5ch 48Kbps DRC (ID:0x80)

PGC_1 (program chain): [Title(TTN): 1] [00:00:00.16 / 30 fps] (programs: 1) (cells: 2) (uses VOB-IDs: 1,2)
[Ch 01] [Pg 01] [Cell 01] [V/C Id: 1/1] :time 00:00:00.08 / 30fps [Pos: 00:00:00.08] [Frames: 8]
[Cell 02] [V/C Id: 2/1] :time 00:00:00.08 / 30fps [Pos: 00:00:00.16] [Frames: 16]

PGC_2 (program chain): [Title(TTN): 2] [00:03:41.00 / 30 fps] (programs: 1) (cells: 1) (uses VOB-IDs: 3)
[Ch 01] [Pg 01] [Cell 01] [V/C Id: 3/1] :time 00:03:41.00 / 30fps [Pos: 00:03:41.00] [Frames: 6630]

As you can see PGC 1 is a dummy pgc that I put in to replace the original trailers, and I havent had any problems doing so, it simply links to PGC 2 (since PGC 1 is linked from the main menu).

On a quick demux my sub stream is 0x20 so I used c0 for this command in my pre PGCITI for PGC_2(never had a pre till now):
PGC Command Table:
Number of Pre Commands 1
Number of Post Commands 1
Number of Cell Commands 0
Size of Command Table in bytes 23
1.Pre Command (SetSTN) Set Subpicture stream: 0 (off)
1.Post Command (CallSS VMGM) Call VMG PGC: 2 [Resume Cell: 1]

VIDEO_TS.IFO
Title Set 2:
VTS_2 Video: Mpeg-2 720x480 (NTSC) (NTSC 525/60) (16:9)
VTS_2 Audio 1: English (Dolby AC-3) 5ch 48Kbps DRC (ID:0x80)

The main cause I'm guessing, is because the the Sub stream isnt listed in both/either of the Title set (movie) attributes for the IFO's - which is why it isnt being listed in my standalone players. Since in my original ifo (the one this vob is from, remember i replaced this move trailers vob, with another that had these subtitles (mentioned in my first link), it has:

Title set (movie) attributes:
Video: Mpeg-2 720x480 (NTSC) (NTSC 525/60) (16:9)
Audio 1: English (Dolby AC-3) 5ch 48Kbps DRC (ID:0x80)
SubPicture 1: English (2-bit rle) (ID:20)

Any ideas? Help! ^_^

EcchiNut
23rd March 2004, 22:43
Im starting to think, re-authoring maybe my only option. But I need to maintain original structure as much as possible. IFOedit is out of the question since the additional PGC is in it (and it cant multiple pgc's, despite the other one is a dummy that just links to the other pgc).

I suck at Scenarist though, and thats going to need manual work. Going to fiddle with Big 3 and modifiying the re-authorist script maybe. I haven't had any luck though. (Unless someone can name a feasible alternative with ifoedit).

violao
24th March 2004, 10:07
Originally posted by EcchiNut
The main cause I'm guessing, is because the the Sub stream isnt listed in both/either of the Title set (movie) attributes for the IFO's - which is why it isnt being listed in my standalone players.
If this is the case then you just need to set subpicture attributes in IFO files with IfoEdit:

in VTS_02_0.IFO
VTS_PGCITI/VTS_PGC_2/Sub-picture stream 1 status - set to -2147483648 (if you use sub stream 0x20)
VTSI_MAT/Number of subpicture streams in VTS_TT_VOBS - set to 1
VTSI_MAT/Sub-p_01: Subpicture stream attributes - double-click, set Language type to present and set Language

in VIDEO_TS.IFO
VMG_VTS_ATRT/VTS_2: Number of sub-picture streams in Title (VTSTT_VOBS) - set to 1.
root-level/VTS_1 Subpicture 1: - double-click and set language type and language

EcchiNut
24th March 2004, 22:14
Originally posted by violao

root-level/VTS_1 Subpicture 1: - double-click and set language type and language

I did everything (except your quoted command, obviouslly should have been VTS_2), it works perfectly now. Thanks a bunch. I was really worried there for a moment. YAY! :D