Developers

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tim_beynart
Channel Surfer

Multiple Embedded Caption Tracks

Hi! We are trying to test multiple language captions. We use embedded EIA-608 captions in HLS.
I do not understand how to get multiple captions to appear as options in the captions selector (pressing the * button during playback). Is there some configuration I am expected to do?

Here's a pseudo example of our code, it work for default English captions. 
videoContent = createObject("RoSGNode", "ContentNode")
videoContent.url = my_media_url
videoContent.streamformat = "hls"
videoContent.SubtitleConfig = {TrackName:"eia608/1"}
m.videoplayer.content = videoContent
Tags (1)
0 Kudos
2 REPLIES 2
tim_beynart
Channel Surfer

Re: Multiple Embedded Caption Tracks

anyone?  😐
Tags (1)
0 Kudos
RokuCC
Binge Watcher

Re: Multiple Embedded Caption Tracks

In general, instead of SubtitleConfig, use SubtitleTracks.
eia608 is a special case though... it basically tells the firmware to search for the tracks. When it finds data it will add tracks for the ones it finds data for (like CC1, CC2, Service1 etc).
So in your case it may not be able to find the data, or the data is encrypted. If part of the slice header is in the clear - it will use picture order counts from the H.264 stream to reorder the captions. If only the SEI headers are in the clear, it will use the PTSs to reorder the captions.
Tags (1)
0 Kudos
Community is Being Upgraded!

We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.

Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality. In the meantime, for additional assistance, visit our Support Site.

We're sorry for this disruption — we’re excited to share what’s next!