My only request forced PGS Blu ray subtitle detection support that was present in PHT/Kodi

PS: and yes, the single subtitle track doesn’t have a forced flag. But some subtitle events within it are marked as forced, which is what the sub-forced-only option uses.

@vlang said:
So I downloaded this sample. If I play it with sub-forced-only=yes, I see subtitles, except when they speak English I don’t see any. Isn’t this what is expected?

Yes that is exactly what should happen.

Thats why I was wondering if you have any issue with the conf file I posted a picture of? I have it to send limited video levels as well but it had no effect, thats why I was not sure if this was working due to my mpv.conf file, I double checked and everything looks right to me? IS it possible the official build im using is not recognizing the mpv.conf file as an issue? (and I would love to see gui options for all of these, i know the purpose of hiding them but most players include them as gui options due to importance and editing files can always result in user error)

Can you look at the picture posted november 2nd if you see any issues?

Beyond that if this is working, the only request i have left is a gui option and a method to autoload the forced stream rather then requiring a user selection as it defeats the purpose of this (thats why blu rays dont require users to individually select subs for foreign dialog). Again mpc-hc solution posted above is much nicer where it parses the streams for forced streams and then the user can set the player to autoselect that forced dialog subtitle. Xbmc/pht also works but it just loads the default subtitle or first subtitle and looks at it. Luckily the first subtitle in these situations usually has the forced subtitles in it anyway.

@atrus said:

@Ghostm said:
This should work, it was 60 seconds and being blu ray I had to use dropbox it was still to large. Download the file… In plex home theater with subtitles disabled it would play the forced subtitles or foreign dialog. Currently as far as i can tell pmp can only play all the subtitles, including english speaking parts.

Dropbox - Error - Simplify your life

Thank you for that!
I downloaded it and added it to my setup. And it plays back the same way in PHT and PMP for me. It always shows subtitles, independent of language.
I checked the PMS XML output and noticed that that file does not have a forced flag for the subtitle:
<Stream id="507408" streamType="3" selected="1" default="1" codec="pgs" index="4" language="English" languageCode="eng" codecID="S_HDMV/PGS" format="pgs"/>

So to double check I opened it up in Media Info.app and this is the output for that file:

ID : 5
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Language : English
Default : Yes
Forced : No```

So that file has no forced subtitle according to any software I use. Less of all PMS. So I am starting to get confused on how you are getting it to work in PHT? Because my PHT is not showing it. Which PHT version are you using?

I will have to try the clip itself, but in the full blu ray mkv in PHT you have subtitles turned off, and it will display just the forced track, if you turn subtitles on it plays all the subtitles. Its mostly foreign dialog so their is only a few english sentences (maybe two?) that should not be displayed. I dont like how xbmc did this either as its confusing, mpc-hc solution is much nicer. But you should have subtitles turned off.

I will try it out here quickly to.

Btw i often edit my post, i am not sure if you guys read these over email notification if you do just a heads up i edit on here if its not quite clear.

@atrus I just tested the file and for me pht acted as it should, with subtitles disabled it only displayed the foreign forced dialog… Also

@vlang is correct in explaining why the subtitle does not display a forced flag in pms xml.

I did look at your mpv.conf screenshot, but saw nothing wrong with it. Maybe you could post a log, and I could look whether the config file is picked up correctly. (If possible, please use the 1.0.2 RC.)

When I play the sample in PHT and set the subtitles to none, then I see no subtitles there. So this confuses me a lot.

@atrus said:
When I play the sample in PHT and set the subtitles to none, then I see no subtitles there. So this confuses me a lot.

I have no idea, I tested it, it works as it should… Subtitles are disabled, but xbmc/pht loads the first/default subtitle and checks it for forced flags.

You are using apple? Since this code was all done by xbmc/kodi team I dont know why it would not work for you, I guess we would have to ask them. Maybe it does not work on apple?

Also could be since pht runs such an old version they had some issues refining this in later releases on different platforms, maybe it was an apple bug. I suppose you could see if it works in latest kodi.

@vlang said:
I did look at your mpv.conf screenshot, but saw nothing wrong with it. Maybe you could post a log, and I could look whether the config file is picked up correctly. (If possible, please use the 1.0.2 RC.)

I will give this a try when I have time and try to use the 1.0.2RC and report back.

@Ghostm said:
Also could be since pht runs such an old version they had some issues refining this in later releases on different platforms, maybe it was an apple bug. I suppose you could see if it works in latest kodi.

Actually I tried both in XBMC 12.3 (which PHT is originally based on, but PHT has a lot of patches on top of that so it is hard to designate a version for it) and I tried Kodi 15.2 (Isengard/Jarvis) and it worked in both. I suspect a bug in PHT. And not surprising as this was likely not ever something that the developers knew existed :slight_smile:

Interestingly enough, sub-forced-only=yes works just fine in PMP on my Mac. Even when I add the extra line about limited output levels that you added (which you do not need at the moment because there is a bug there which makes it not work I believe). It only shows the forced lines from that sample when I add it to my mpv.conf. So the tables are turned when it comes to PMP for some reason.

Does it work if you remove the video output levels line?

Oh, and also, remember that you have to leave subtitles turned on in PMP for it to work. In Kodi you turn subtitles OFF to see the forces subtitles. In PMP you leave the subtitles enabled to see the forced subtitles. And for now you need that line in mpv.conf for this to work.

Thanks for the reply, definitely had the subtitles enabled, they were just all showing up, not just the forced lines, i also removed the limited line as well for video levels… It would be awesome in the GUI if you could have a global option to enable just forced subtitles (like mpc-hc does), so you dont have to turn them on every time for each movie and select the appropriate stream. Would greatly improve wife acceptable factor. It would act like a blu ray player then. Xbmc/pht method my family also never had issues with and never had to touch anything either, but it is a bit more obscure way to deal with forced subtitles.

But there should also be a way to enable all subtitles as well, kodi and mpc-hc achieve this in different ways…I guess the team would have to figure out the best logic and gui option to deal with this. It sounds like the ability is already present however.

I still wonder if this logic could ever be done on the server as well so it could do this for all clients. But i assume since alot of players wont support pgs subtitles, and then transcoding it might be difficult or impossible.

I will try to fiddle with it some tomorrow if i get time. Usually with me its some obscure error i simply overlook, but this one i looked at a few times and it has me stumped. The location looks right to as far as i can tell.

I will also try the RC release and report back.

Ok think i fixed it, it had saved as a text document, had to remove that txt extension.

It appears to be working, so I suppose my only request left is a way to automate this so the user does not have to enable the subtitles and pick the proper one for every movie and tv show, and add gui options to deal with this like pht/xbmc and mpc-hc have which i discussed in the post above in paragraphs one and two.

Glad the ability is present in the player however to deal with these pgs forced subtitles from blu ray.

@vlang I need to bump this, after using pmp for awhile the way forced pgs subtitles are implemented is just a bit flawed. I love that it works, but a universal switch applied in the text editor is not a practical way of using it…

Some blu rays dont mark forced subtitle text as forced, you basically have two versions. Forced subs flagged in the main subtitle file (In which case your method works) and some blu rays include a totally separate subtitle file with just forced subtitles that are not flagged as forced, furthermore sometimes if i am having trouble understanding a film, i just want subtitles period (your switch hidden in the text file would not allow me to view these, hence you see my issue)

None of this works with the global switch the way its currently constructed stuck in a text file. Instead of forced subtitle only how about we make it like xbmc or mpc where it detects forced subtitles and displays them, but i can also enable subtitles if i want to somewhere in the gui when watching a movie if i need to? That would solve this issue.

Theirs probably a better way of doing this mpc-hc implementation i discussed is the best method from a user stand point where it creates an entirely separate “forced subtitle stream” and auto selects it when i watch a film (I posted pictures in here), then if i want to view a different subtitle stream i can just select it like you normally would, but how about even a simple option when you bring up subtitle selection an entry to disable the forced subtitle from on to off if i want to view a subtitle stream that is not forced?Just some way to turn this off should we need to for a movie. This should be done in the subtitle menu of a movie however, nobody wants to leave the movie and go into settings to disable or enable this and i would preferably prefer it to be on a per movie basis, not a global setting. The global setting is already done in the text file entry, we just need some easy way to disable it at times when watching a certain movie.

Also just to mention the way plex home theater/xbmc did this, was basically your switch (forced subtitles only) was activated by not turning on “enable subtitles” in this picture. Notice enable subtitles are not checked, that basically turned on “forced subtitles only” similar switch to yours. However if you wanted to turn it off and view all subs you clicked the box to checkmark enable subtitles, and that would play all subtitles like normal. Just another example of how different players made this easy watching a movie. We need a gui option to easily disable it though, quitting the application altogether and editing a text file every time you watch a movie is just not practical for the user.

I agree that we may have an issue here somewhere. But saying that it is good design having to disable subtitles to see forced subtitles is not accurate in my book. Your specific case involves the type of forced subtitles that was not supported by design. Rather by accident (xbmc added it and I am fairly sure that no Plex devs knew about this second type of forced subtitles).

I think Plex should support it by [design] though, do not get me wrong. But lets do it right. Lets make it work like the normal type of forced subtitles instead.

I tend to agree with the last paragraph but where i disagree is this is included by vlang in mpv player and it flat out works in pmp, so imo it is supported…

You need some way to turn it off though on a per movie basis like every other player has should you need to for that specific film, I think mpv player looking at documentation has a toggle even for it (F key)? Did not seem to do anything in pmp and I would prefer a graphical method then a toggle key.

Every player i have used from mpc-hc to xbmc to mpv supports forced blu ray subtitles. I likely would not be here today with a lifetime membership if it was not supported by plex home theater (thank xbmc/kodi team i suppose). I have hundreds of blu rays so it is unfortunately something i and others need, I know others on have discussed this on avsforum as well with me using pmp and blu ray subtitles.

But why would you want a feature that turns off subtitles so subtitles can be shown? It is backwards, and it is almost the only thing we disagree on. Why not add it so the subtitle is activated like any other subtitle?Like the normal type of forced subtitles that Plex supports fully in the interface today?

@atrus said:
But why would you want a feature that turns off subtitles so subtitles can be shown? It is backwards, and it is almost the only thing we disagree on. Why not add it so the subtitle is activated like any other subtitle?Like the normal type of forced subtitles that Plex supports fully in the interface today?

That is actually exactly what i want and what mpc-hc does and i have said many times that is the way to go, i posted pictures of it on the first page, i am just afraid the devs are going to find that to much work right now, so i asked for a simpler fix right now where we can at least just turn it on or off for now…

Otherwise i fully agree, create a separate forced subtitle stream and allow us an advanced setting in the mvp config file to auto select that stream like mpc-hc does so the user (my wife and kids) dont have to manually pick it for every single movie and i wont ever ask for another feature request on here again.

I would even give a donation for the time it takes to implement this as this is the only thing i need, its so vital to mpc-hc and xbmc blu ray users like me i cannot currently use pmp, and i purchased a lifetime membership 4 months ago just to support the htpc application. Vlang has forced subtitles already implemented, it just needs to be implemented properly for the end user like we are discussing.

@atrus said:
But why would you want a feature that turns off subtitles so subtitles can be shown? It is backwards, and it is almost the only thing we disagree on. Why not add it so the subtitle is activated like any other subtitle?Like the normal type of forced subtitles that Plex supports fully in the interface today?

This thread has gone on awhile already so i just wanted to simply sum up the last needed piece of the puzzle (user implementation) as this thread has become quite muddled. I will leave it for a number of months hoping this gets addressed since kodi and mpc-hc have this functionality and its vital to blu ray rip users like me and others in the community i speak with on avsforum, for now i will stick with plex home theater like most but i do want to switch later this year.

Essentially the simplified version is exactly what atrus said in the quote above, all thats needed is for the forced subtitle=only flag we can set in mvp config file (which was implemented by @vlang ) to simply display as a subtitle option in the subtitle selection interface when you watch a film in pmp (just like mpc-hc) and thus allow users to select other subtitles should they need to use them (perhaps when you select a different subtitle stream the forced subtitle only switch would then simply turn off for that movie, allowing us to view other subtitles and when you select the forced subtitle stream it simply turns back on). Thats about it, then users can select other subtitles when circumstances arise, its just unfortunately not practical currently stuck in a hidden text config file with an on and off switch.

It would be highly helpful if you could also set the forced subtitle stream as automatic or as the default in the mvp config file as well (just like mpc-hc) so my family does not have to select the forced stream constantly for nearly every movie that requires forced pgs blu ray subtitles.

i’m using PMP and I noticed that PGS Sub titles are not showing up for sections where audio is in another language - so for parts of some movies, its in another language and it simply shows no subtitles at all… Very annoying.

I used the conf file in this thread, and it didn’t seem to help. So what are the steps to get this working, I’m confused.

I hate to bump this but this is the only annoying issue and request i have. Can we please have some way to toggle forced flag on and off, either in the gui subtitle settings, or even with a hotkey, or create a totally separate subtitle stream option labeled as (forced) which we can select like mpc-hc? I keep encountering a few blu rays such as avengers which dont “mark” forced blu ray subtitles as forced, thus with the forced subtitle flag set to on located in a conf text file, i have no way to turn it off and view the subs in these rare cases except to edit the text file each time! Or if its a difficult to understand movie with very thick accents and i want all subtitles, i have to again edit the text file. 90% of the time the forced flag setting works, but the odd time you absolutely have to turn it off and it makes no sense to have the users edit a text file to accomplish this. This is of course better thought out and a non issue in mpc-hc and kodi.

It will be the only request you will see from me on this forum, i dont care about how this product looks, or special features, i just care about playback, and so far this is a huge gaping issue in my ability to watch blu ray movies and some movies in general.