2011-07-12, 12:18
Before we finish of some work for http://trac.xbmc.org/ticket/1070 and 267 (PR) I'd like some input from whomever cares to give it.
This seems reasonable, but I'm not really the target audience.
User can choose to define a "Default Audio Language"
User can choose to define a "Default Subtitle Language"
Choosing the Audio Stream
1) If "Default Audio Language" is set, XBMC looks at all the audio streams in a video and if there is one of the "Default Audio Language" it chooses that.
2) If there is more than one stream with the default audio language it chooses the one with the most number of channels / best codec if same number of channels.
3) If none found with "Default Audio Language" revert to what dvdplayer does already.
Choosing the Subtitle Stream
1) If "Default Subtitle Language" is set, XBMC looks at all the subtitle streams in a video and chooses the first that matches the "Default Subtitle Language" and turns on subtitles.
2) If no match found then see if there is a subtitle stream that matches the "Default Audio Language" with the "forced" flag set on it. I doubt there are many users that would want to set the "Default Audio Stream" and "Default Subtitle Stream" to be the same language. Perhaps those hard of hearing may want to though?
3) If still no matches, revert to what dvdplayer does already.
1a) If "Default Subtitle Language" is not set, and "Default Audio Stream" is set and there is a subtitle stream of "Default Audio Language", should that be turned on if there was no audio stream found for the "Default Audio Language"?
This seems reasonable, but I'm not really the target audience.
User can choose to define a "Default Audio Language"
User can choose to define a "Default Subtitle Language"
Choosing the Audio Stream
1) If "Default Audio Language" is set, XBMC looks at all the audio streams in a video and if there is one of the "Default Audio Language" it chooses that.
2) If there is more than one stream with the default audio language it chooses the one with the most number of channels / best codec if same number of channels.
3) If none found with "Default Audio Language" revert to what dvdplayer does already.
Choosing the Subtitle Stream
1) If "Default Subtitle Language" is set, XBMC looks at all the subtitle streams in a video and chooses the first that matches the "Default Subtitle Language" and turns on subtitles.
2) If no match found then see if there is a subtitle stream that matches the "Default Audio Language" with the "forced" flag set on it. I doubt there are many users that would want to set the "Default Audio Stream" and "Default Subtitle Stream" to be the same language. Perhaps those hard of hearing may want to though?
3) If still no matches, revert to what dvdplayer does already.
1a) If "Default Subtitle Language" is not set, and "Default Audio Stream" is set and there is a subtitle stream of "Default Audio Language", should that be turned on if there was no audio stream found for the "Default Audio Language"?