Multiple Language Tracks

867 views
Skip to first unread message

Rodrigo Ramos Silva

unread,
Apr 16, 2015, 12:58:51 PM4/16/15
to shaka-pla...@googlegroups.com
Hi Joey,

Is there any plan to support multiple audios with different languages?
We have a manifest file with 2 AdaptationSets related to audio content in each language.

Thanks!
Rodrigo

Joey Parrish

unread,
Apr 16, 2015, 1:49:45 PM4/16/15
to Rodrigo Ramos Silva, shaka-pla...@googlegroups.com
Hi Rodrigo,

Yes, that has been been supported since our very first release.  See assets/angel_one.mpd in the sources for an example of an MPD with multiple audio languages and multiple subtitle languages.  You can see this asset in action at http://shaka-player-demo.appspot.com/?tng;dash .  The test app UI allows you to switch audio and subtitle tracks manually.

The audio and subtitle tracks chosen by default are based on the user's language preference.  There's a field for that in the test app called "preferred language".  You can pre-fill this field using the "lang=" parameter to the test app.  For example, http://shaka-player-demo.appspot.com/?tng;dash;lang=it or http://shaka-player-demo.appspot.com/?tng;dash;lang=el .

More details can be found in the docs at http://shaka-player-demo.appspot.com/docs/tutorial-language.html .  Please let me know if you have any other questions.

Thanks,
Joey


--
You received this message because you are subscribed to the Google Groups "Shaka Player Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-us...@googlegroups.com.
To post to this group, send email to shaka-pla...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shaka-player-users/f633b9d0-528b-47ef-bf4c-5983c608bced%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rodrigo Ramos Silva

unread,
Apr 16, 2015, 2:55:42 PM4/16/15
to shaka-pla...@googlegroups.com, rramos...@gmail.com
Hi Joey,

Oh that's nice. Unfortunatelly, the player doesn't recognize the audios in my mpd file.

I noticed a difference: the audio tracks in angel_one are not protected. I'm attaching our manifest file.


Thanks for your help!




On Thursday, April 16, 2015 at 2:49:45 PM UTC-3, Joey Parrish wrote:
Hi Rodrigo,

Yes, that has been been supported since our very first release.  See assets/angel_one.mpd in the sources for an example of an MPD with multiple audio languages and multiple subtitle languages.  You can see this asset in action at http://shaka-player-demo.appspot.com/?tng;dash .  The test app UI allows you to switch audio and subtitle tracks manually.

The audio and subtitle tracks chosen by default are based on the user's language preference.  There's a field for that in the test app called "preferred language".  You can pre-fill this field using the "lang=" parameter to the test app.  For example, http://shaka-player-demo.appspot.com/?tng;dash;lang=it or http://shaka-player-demo.appspot.com/?tng;dash;lang=el .

More details can be found in the docs at http://shaka-player-demo.appspot.com/docs/tutorial-language.html .  Please let me know if you have any other questions.

Thanks,
Joey

On Thu, Apr 16, 2015 at 9:58 AM, Rodrigo Ramos Silva <rramos...@gmail.com> wrote:
Hi Joey,

Is there any plan to support multiple audios with different languages?
We have a manifest file with 2 AdaptationSets related to audio content in each language.

Thanks!
Rodrigo

--
You received this message because you are subscribed to the Google Groups "Shaka Player Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-users+unsub...@googlegroups.com.
0004444_audioFix.mpd

Joey Parrish

unread,
Apr 16, 2015, 9:11:53 PM4/16/15
to Rodrigo Ramos Silva, shaka-pla...@googlegroups.com
Ah, I see the problem.  What we don't support is this:

<ContentProtection
  schemeIdUri="urn:mpeg:dash:mp4protection:2011"
  value="cenc"
  cenc:default_KID="ec01333b-e152-41ef-b19e-3fbfd01045bf" />

This doesn't provide enough information to generically choose a key system and acquire a license.  See the documentation for DashVideoSource.ContentProtectionCallback and the test app's implementation of this callback in app.js.

In your application, you can construct the appropriate DrmSchemeInfo object to provide the key system and license server URL.  But our test app can't be expected to know those details if they are not provided by the MPD in some form we recognize.

Thanks,
Joey


To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-us...@googlegroups.com.

To post to this group, send email to shaka-pla...@googlegroups.com.

Rodrigo Ramos Silva

unread,
May 28, 2015, 12:46:52 PM5/28/15
to shaka-pla...@googlegroups.com, rramos...@gmail.com
Hi Joey,

I was able override ContentProtectionCallback and keep it as simple as possible. Our app is only using MDRM Widevine so our app doesn't require any other DRM system. However, the player still not recognize all audio tracks (just the first one).

I also noticed that the example Angel One does have multiple track audio but they are not protected.

Furthermore, I had a debug session here and I found out that the method EmeManager.chooseEncrypted_ does not push more than one StreamConfig per Content-Type/KeySystem. Although I'm not sure if it's actually a bug, it's "sibling" method EmeManager.chooseUnencrypted_ (in the Angel One example) does return a StreamConfig for each audio track.


Thank you so much for your help,
Rodrigo
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Player Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-pla...@googlegroups.com.

Joey Parrish

unread,
May 29, 2015, 1:54:05 PM5/29/15
to Rodrigo Ramos Silva, shaka-pla...@googlegroups.com
Hi Rodrigo,

It's hard to say without digging into the details, but that could well be a bug.  If it's possible for you to publish your content and license server URL, would you please file all the details on github so that we can investigate?  Also, since you are knee-deep in the problem already, if you find a fix, we would always be happy to accept a pull-request.

Thanks,
Joey


To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-users+unsub...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Player Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-us...@googlegroups.com.

To post to this group, send email to shaka-pla...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Player Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-us...@googlegroups.com.

To post to this group, send email to shaka-pla...@googlegroups.com.

Joey Parrish

unread,
Jul 6, 2015, 8:52:21 PM7/6/15
to Rodrigo Ramos Silva, shaka-pla...@googlegroups.com
I know this thread has been dead for some time, but I believe this is the same as issue #112, which has just been fixed.

Thanks,
Joey

Rodrigo Ramos Silva

unread,
Jul 7, 2015, 8:34:58 PM7/7/15
to shaka-pla...@googlegroups.com, rramos...@gmail.com
OK!

Thanks for your help.

Rodrigo
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-users+unsubscribe@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Player Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-pla...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Shaka Player Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shaka-player-users+unsub...@googlegroups.com.
To post to this group, send email to shaka-pla...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages