-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Duplicate Captions for MP4 Content #6392
Comments
Please provide a link to the HLS content (subtitle playlist and segments) that reproduce this issue. |
According to the logs only one subtitle playlist and segment was loaded, so this could very well be an issue with the WebVTT content. We cannot confirm or troubleshoot without sample content. |
@robwalch I can reproduce it. I'll try and get a video together that demonstrates it. Might be the presence of 608 and WebVTT captions both being present. |
We have test assets with both 608 and WebVTT subtitles. They each get their own respective TextTracks which are not enabled at the same time. |
The label cannot reproduce means that the issue does not include the information or assets needed to reproduce the issue (or root cause and fix it).
Please do. That is exactly what we need ( Need sample stream ). Thanks! |
I did look through all the changes between releases and could not find anything that jumped out as a root cause. A repro asset is critical to bisecting build changes and finding the root cause. |
I played around with the manifests... It looks like the issue is tied to having
Where the caption names are the same but not. Notice that the CC NAME="english", while the VTT NAME="English". If I change the name of the VTT to "eng_vtt", I have 2 choices for captions show up in the drop down, and I no longer get dual captions. So to reproduce, we just need to create an asset with both VTT and 608 captions, and label them with only a case difference. |
Can you share the output of |
With the same playlist, when I open the HTMLVideoElement captions menu in Chrome or Safari, I am presented with the options "Off", "English", "Unknown CC", and "Spanish". The last two options are the 608 captions. Picking "English" only enables/shows the subtitle TextTrack, but I don't have to pick it because it is the default track (DEFAULT=YES,AUTOSELECT=YES).
That doesn't work for me. I'm not sure how you are getting 608 captions enabled this way with 1.5.8. Please provide a page that reproduces the issue. Only one track is showing and the NAME of the CC item is not applied and does not impact selection using the media element controls or hls.subtitleTrack = index:
|
Are you using another player API or custom controls on top of HLS.js? HLS.js does not use |
…ns names to be reused by timeline-controller Fixes #6392
Hi @jcekstrom, You should use a different NAME attribute value for captions to differentiate them from subtitles. As another workaround you could also try adding the characteristics attribute to the #EXT-X-MEDIA:TYPE=CLOSED-CAPTIONS I've posted a fix with #6440. Please let me know if it resolves the issue for you. |
What version of Hls.js are you using?
1.5.8
What browser (including version) are you using?
Chrome 124.0.6367.93 (Official Build) (arm64)
What OS (including version) are you using?
MacOS Ventura (13.5)
Test stream
No response
Configuration
Additional player setup steps
N/A
Checklist
Steps to reproduce
Expected behaviour
There should only be one set of subtitles
What actually happened?
Subtitles are duplicated. The issue seems to stem from changes between
hls.js
v1.4.14 to v1.5 (Change logs). Playing content on v1.4.14 does not have duplicate captionsConsole output
Chrome media internals output
No response
The text was updated successfully, but these errors were encountered: