When running makemkvcon -r info disc:0, the number of subtitle channels reported seems to be twice the number found by the player (in this case xbmc). It appears that every subtitle channel is reported twice, once with StreamFlags="0" and then with StreamFlags="6144". The audio channels are fine. Here is an example of the French subtitles being repeated from the first track of "Harry Potter and the Sorcerer's Stone":
Code: Select all
SINFO:0,17,1,6203,"Subtitles"
SINFO:0,17,3,0,"fra"
SINFO:0,17,4,0,"French"
SINFO:0,17,5,0,"S_HDMV/PGS"
SINFO:0,17,6,0,""
SINFO:0,17,7,0,"HDMV PGS Subtitles"
SINFO:0,17,22,0,"0"
SINFO:0,18,1,6203,"Subtitles"
SINFO:0,18,3,0,"fra"
SINFO:0,18,4,0,"French"
SINFO:0,18,5,0,"S_HDMV/PGS"
SINFO:0,18,6,0,""
SINFO:0,18,7,0,"HDMV PGS Subtitles"
SINFO:0,18,22,0,"6144"
I've written a program that takes the "-r info" output and creates a .asx playlist and an HTML page listing the audio and subtitle tracks. I could arbitrarily select one set of subtitle tracks to display based on the StreamFlag value, but I was hoping there might be a systematic way to choose. The number 6144 corresponds to the flags:
DerivedStream and ForcedSubtitles
IIUC, I should probably only display subtitle tracks that don't have the forced bit set.