Posts: 3
Joined: Jan 2014
Reputation:
0
Hi,
For forced subtitles (non English/foreign parts) contained in a mkv there is a "forced flag" that can be set and XBMC will override the subtitle settings and show them. For video files that may not have the forced subtitles or have them but dont have the "forced flag" set requires remuxing/editing the header of the file.
I think there should be away to include an external subtitle file and somehow tell XBMC that it is a forced subtitle.
For example,
The Matrix.mkv
The Matrix.English.FORCED.srt
Will behave the same as a subtitle with the forced flag within the mkv.
Posts: 819
Joined: Aug 2012
Reputation:
35
Ace
Team-Kodi Member
Posts: 819
This was added some months ago and is available in the gotham nightlies.
Posts: 819
Joined: Aug 2012
Reputation:
35
Ace
Team-Kodi Member
Posts: 819
Not yet, but it works like you suggested. The filename has to start with the video's filename followed by a permutation of <language>.<flag>*.<name>.extension
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
(2014-01-31, 09:53)Martijn Wrote: It's somewhere in here
https://github.com/xbmc/xbmc/compare/Frodo...master
We don't keep track of every single change on a wiki page
(2014-01-31, 10:45)ace20022 Wrote: Not yet, but it works like you suggested. The filename has to start with the video's filename followed by a permutation of <language>.<flag>*.<name>.extension
Here is a good chance for the OP t take part and contribute to wiki
we dont and some things need updating anyway
Posts: 19,982
Joined: May 2009
Reputation:
451
nickr
Retired Team-Kodi Member
Posts: 19,982
Yeah well you'd probably need SOME documentation before being able to write a wiki page.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
2014-02-02, 13:11
(This post was last modified: 2014-02-02, 13:14 by un1versal.)
If that's what you waiting for, then the wiki would be mostly empty. The information can be gleamed from here from both what already exists and what the user has noticed.
<- That would be a good place to start
Posts: 5
Joined: Mar 2013
Reputation:
0
2014-06-30, 00:06
(This post was last modified: 2014-06-30, 00:07 by anseld1986.)
I'm trying to get this working properly (and once I do so, would be more than happy to write up something for the wiki), but it still doesn't seem to be acting appropriately. Any suggestions would be welcomed.
Video filename: Jack Ryan Shadow Recruit (2014) [1080p].mp4
Standard subtitle: Jack Ryan Shadow Recruit (2014) [1080p].English.srt
Forced subtitle: Jack Ryan Shadow Recruit (2014) [1080p].English.Forced.srt
I'm running XBMC 13.1, Skin: Aeon Nox
Behaviour: When turning on the movie, it plays with the last subtitle used. I can switch between the two subtitles (but there is no way to identify which one is the forced file - it merely says "English - (External) (1/2)." I'm not sure if there is any way to actually identify which is which from the settings menu). When I go into the settings and turn subtitles off, it turns everything off - neither the forced subs nor the standard subs play.
I'm assuming something in the filename for the sub is wrong, but am not quite sure what that would be. Thoughts?
Posts: 5
Joined: Mar 2013
Reputation:
0
Kib,
Thanks for the response. I've been able to glean some further insight based on your post, but am still having some issues.
First:
In looking at the debug logs apparently XBMC is able to recognize both "english" and "en" when identifying the subtitle language. Just in case, I switched the filename to 'en' while testing. (I'll make a note of this when putting together the wiki).
Second:
If I have only one subtitle file in the movie folder and it is marked as 'forced' then it will turn the subs on when I start the video. If I manually turn them off while the video is playing, they stay off until the video is restarted. This would be the expected behavior with forced subs.
However, if I have two subtitle files in the movie folder, one is marked as forced and the other is not marked (ie, one is only the forced subs, the other is subs for everything), then nothing happens - the forced subs are not activated upon starting the video. So, it looks like there may be a bug preventing the forced flag from activating the proper subtitles if there are two subtitle files in the folder. I didn't see any errors popping up in the logs, but it does appear that it attempted to open the subtitle file (19:40:36 T:10232 NOTICE: Opening Subtitle stream: 0 source: 1024) - however, no subtitles were shown.
Posts: 19,982
Joined: May 2009
Reputation:
451
nickr
Retired Team-Kodi Member
Posts: 19,982
Painful I know, but you can always turn the forced ones on.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 5
Joined: Mar 2013
Reputation:
0
Yeah, that's what I had been doing previously - just kinda takes away from some of the ease-of-use.
I'm just thinking that there may be a glitch of some kind if the forced flag only works when there isn't a non-forced subtitle file present.