Multiple Sub Audio Tracks

How can I change between different sub audio tracks

I have 3 sub audio tracks with different audiocommentaries where I want to switch. In the spec I didn't find any possibility to choose the sub audio track where the mixing is done. The only thing I found is Player.audio.sub.setMixing(). But I can't figure out how to tell the player which track it should use.



Answer this question

Multiple Sub Audio Tracks

  • Slawek Dobrzanski

    4.3.19.4.3 says that sub-audio track number matches currentTrack of main audio, or is 1 if there is no match. This means that (eg) if tracks 1-4 of your main audio are EN, DE, FR, JPN then you can encode the sub audio commentaries in EN, DE, FR, and JPN and they will automatically match.

    Here's a theory (I haven't tried it or tested it...): If you wanted only one main audio track (let's say it is English Dolby True-HD) but you wanted three commentaries (Director, Producer, and Main Star) you could do the following:

    Main audio has three tracks, but they all point to the same stream (so you only encode the high-bitrate data once). Sub audio has the three low-bitrate stereo commentaries. Switching between commentaries is just switching between the three main audio tracks; since they point to the same stream number in the EVOB, it's always the same Dolby True-HD soundtrack, but the sub-audio commentary will change.

    You can of course mix and match various ways to have (eg) two main audio streams, as long as you don't use more than 8 tracks of audio.



  • lil_isie

    That's it!!

    Thanks a lot!


  • BrunoAMSilva

    When the player changes tracks, it uses the TrackNavigationList in the playlist. According to 6.2.3.21 in the spec, you can't put subAudio in the TrackNavigationList. And, since there is no API to switch subAudio, I don't think its possible to switch between subAudio tracks. Although 6.2.3.20 certainly seems to imply that you can have up to 8 subAudio tracks - so that is certainly confusing.

    Why do you have the commentary as subAudio Do you need to do mixing with the mainAudio Perhaps a better solution would be to create mainAudio streams that has the commentary pre-mixed with the title audio and use the regular track selection API



  • Multiple Sub Audio Tracks