View Full Version : Cannot force subtitle stream
kpic
30th April 2011, 23:54
In BDEdit 0.39b I have thought I set everything correctly to set my subtitle #1 (only sub present) to come on auto - unfortunately I am having issues making the guides I found to work.
Now in the pic it says "grp" but when I set it it was at "imm" - not sure why it does that? I have it set to "49153" which is supposed to be the first stream (my only stream). Also disregard where it is located, this was my most recent try at position #8 (I tried position #1 & 2 as well).
I tried it these ways with both a mounted image & in my stand-alone player (neither will autostart the subtitle).
The only thing I can think of is my title that I ripped has a intro & then a top menu that loads first (to choose between playing the movie directly and going into another menu with further choices) so not sure if that is hanging up the "setstream command".
http://forum.doom9.org/attachment.php?attachmentid=12200&d=1304203634
rik1138
1st May 2011, 00:50
Can't see your JPG yet (pending approval, if you can see the image, just post the exact path to the image in your message), so I'm not 100% sure how you are doing it... But, if you are setting the subtitles to 'on', and then playing a piece of video with no subtitles (intro/menu), the player will set the subtitles to 'off' (since none exist), and that's the state it will be in when the movie starts.
Try either adding a dummy subtitle stream to the Intro and Top Menu video, or executing the setstream command at the head of the feature.
(Even studio titles have this problem, they are frequently built with dummy aud/sub streams on the menu video to avoid this problem.)
Ok, I have provided the link. So it is not like DVD then, where you can set an overall command to the structure telling it to auto start the subtitle stream when that "title" is played? Hmm, that could be a problem then - what I should try is just the main movie and I would bet that would work ok.
There is a short video intro - then to the short video menu that gives two buttons "main movie" or " additional features" - I thought I could set that command just prior to the main title when that main movie button is set? If it does not work that way and it has to be set prior to the first intro even being played then I guess there would be no other way other than to add an empty SUP to both the intro and the menu. Although the guides I saw floating around did not specify that this could not be done to a "full" disc and a "main movie" only. BTW the disc is BD-J btw (not sure if that matters).
Sorry to add, just thought of this - on the "movieobject" side do those commands refer to groups of titles? So if I could find out where my "main movie" is (I already tried at 0001 & 0002) and set that command prior to it would it work?
rik1138
2nd May 2011, 09:34
If the disc BDJ, then all the subtitle commands have to be handled in the Java code itself. The Java code _is_ the title, and it plays PlayLists through programming. Any commands added at the title level are ignored once the Java is run. You can set GPRs and read those in the Java, but if you set a subtitle stream at the HDMV level, then jump to a Java title, those streams will be reset according to the programming of the Java code.
In the Java code, you can program the subtitles to come on anytime a certain PlayList is playing...
Ahh, ok now that makes sense as to why it does not work. So I have BDJO files that I assume would be edited in a Hex editor but I would have no idea of what goes where or what they (BDJO) files do. I also have a JAR folder where I have looks like the menu & button structures.
Would I be editing the BDJO or the .xml files in the JAR folder? If it is the .xml files I think I found kind of what I would need;
Here is the "MainMenu.xml" in there I can see the reference to play "title1";
http://forum.doom9.org/attachment.php?attachmentid=12207&stc=1&d=1304374927
Here is the "MainTM.xml" (this is the menu that comes up after the intro & has two buttons; a button to the "mainmenu" and a button to play "title1");
http://forum.doom9.org/attachment.php?attachmentid=12208&stc=1&d=1304374927
Here is the "SetM.xml" this then tells me that that the subtitle streams that are set in here;
http://forum.doom9.org/attachment.php?attachmentid=12209&stc=1&d=1304374927
So, if that would need to be done I would need to know the exact code to use (I guess something like - streamNum="1" and place that after - titleID="1") on both my main menu & title menu? If that's the case the only question I would then wonder is both audio & subtitle are referenced as "streamNum="1" how would it know that I want the "subtitle" stream1 and not the "audio" stream1?
Sorry if this is too complicated and it seems more trouble than it's worth I guess but at this point I just want to learn about it and actually see if I can make it work.
rik1138
3rd May 2011, 00:33
You don't want the BDJOs, there's no code in there. It'd be in the JAR folder somewhere. You might be able to edit the XMLs to do what you want, or you may have to get into the actual java programming itself (which would be in the .JAR files).
What title are you working on? I assume it's a studio title you are trying to modify? Some studio's code are easier to mess with than others...
Thanks rik1138 for all of your help, I've learned a lot here and one of those things is that after opening up those executable .JAR files and it seems as though it would be looking for a needle buried in there somewhere. This is a foreign disc with foreign subs, I was able to replace those subs with english subs fine but I wanted to keep all of the menus to it and prompt the subs to start on their own. In reality it seems much easier to not be so lazy and just use the remote button to turn on the subs!
Anyway I'm learning that these Blu-Rays are much different (and more difficult) to edit than DVDs.
rik1138
4th May 2011, 02:24
Yeah, it can definitely be tricky... There could be an XML file somewhere that declares the default state of the disc, you'd just have to look through them... I'd need to know what studio released the disc to see if it's something I know how to modify.
But, yeah, you can just surf on the subs manually... :)
rickwj324
31st January 2025, 17:48
In BDEdit 0.39b I have thought I set everything correctly to set my subtitle #1 (only sub present) to come on auto - unfortunately I am having issues making the guides I found to work.
Now in the pic it says "grp" but when I set it it was at "imm" - not sure why it does that? I have it set to "49153" which is supposed to be the first stream (my only stream). Also disregard where it is located, this was my most recent try at position #8 (I tried position #1 & 2 as well).
I tried it these ways with both a mounted image & in my stand-alone player (neither will autostart the subtitle).
The only thing I can think of is my title that I ripped has a intro & then a top menu that loads first (to choose between playing the movie directly and going into another menu with further choices) so not sure if that is hanging up the "setstream command".
http://forum.doom9.org/attachment.php?attachmentid=12200&d=1304203634
I've managed to do this procedure you show for a couple of blu-rays and it worked fine. I'm now trying to do the same for a 4k UHD rip and can't get it to work. I'm assuming the "49153" isn't a valid option for 4k discs?! The disc I'm doing this on is the 4k UHD for PULSE. It only has 1 subtitle stream (English) and it's off by default. I also have the blu-ray of the film and this procedure worked fine for it. I just need to know how to do it for the 4k disc. Any ideas?
ocean
31st January 2025, 23:21
Hi rickwj324, to force English subtitles C001:
https://i.ibb.co/v6DNB07W/Sub.jpg (https://ibb.co/v6DNB07W)
rickwj324
1st February 2025, 18:17
Hi rickwj324, to force English subtitles C001:
https://i.ibb.co/v6DNB07W/Sub.jpg (https://ibb.co/v6DNB07W)
Thank you! I will try it later today. You guys rock!!
Arrasa_340
2nd March 2025, 11:57
Good morning,
I wanted to ask you if you could tell me how to identify which is the main movie on a UHD or Blu-ray, so that I can put the corresponding command after this row to force a subtitle included with the corresponding audio.
Since in some with little content it is more detectable but when it has so much I don't know how to identify it.
If you can find out with mpls, clip, etc.
Thank you very much
https://thumbs2.imgbox.com/4b/d3/XdWQ8cAl_t.png (https://imgbox.com/XdWQ8cAl)
Emulgator
2nd March 2025, 19:23
DGDemux, BDInfo.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.