Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hls.js seems not support 708 closed captions but 608 only #6754

Open
featheast opened this issue Oct 6, 2024 · 3 comments
Open

hls.js seems not support 708 closed captions but 608 only #6754

featheast opened this issue Oct 6, 2024 · 3 comments
Labels

Comments

@featheast
Copy link

What do you want to do with Hls.js?

I'd like to ask if 708 captions are actually supported by hls.js.

The main reason I'm asking here is comparing to 708, 608 is not able to display non-Latin based languages. And I did find hls.js is not the only one having this issue, Bitmovin player seems not able to show the same 708 captions as well. But since it's displaying fine for VHS (VideoJS), I am more wondering if there is a reason for 708 getting ignored, or any specific configs controls the behavior here.

Plus 708 captions can support more than 4, but there is no such configuration within hls.js similar to captionsTextTrack1Label , which is up to 4 only and seems only applied to 608 captions, even though the Doc is showing for CEA-708 caption tracks.

I can share the source link separately if that is helpful. But below are things I have tried:

With HLS sources (both Vod & Live) where both 608 and 708 caption tracks are embedded, it appears only 608 captions will be able to select and display on the player, while 708 ones will be ignored.

For the same sources, if I load into VHS (VideoJS) page: https://videojs-http-streaming.netlify.app/, I am able to see the captions for both 608s and 708s.

Attached a couple screenshots for the closed caption selector to show the difference:
VHS:
Screenshot 2024-10-06 at 7 19 19 PM
Hls.js
Screenshot 2024-10-06 at 7 19 52 PM

Here is an output from the MediaInfo to outlining the Text Tracks:
Screenshot 2024-10-06 at 7 21 35 PM

And I have also tried to use ccextractor to confirm those captions are able to be extracted and exported into srt files separately.

What have you tried so far?

No response

@featheast featheast added Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. Question labels Oct 6, 2024
@robwalch
Copy link
Collaborator

robwalch commented Oct 6, 2024

HLS.js only supports 608 captions tracks with some support for 708 characters.

@robwalch robwalch removed the Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. label Oct 6, 2024
@featheast
Copy link
Author

Hi @robwalch, thanks for the reply. Is this something on the roadmap for hls.js to support? Also I'm a bit confused about the concept of "support for 708 characters", and how does the flag enableCEA708Captions from the API.md mean here, if 708 caption tracks are not supported?

@robwalch
Copy link
Collaborator

robwalch commented Oct 6, 2024

It's not on the HLS.js roadmap but we'd gladly accept a contribution that adds support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants