question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support HLS w/ MP4 subtitles without MIME type info

See original GitHub issue

Have you read the FAQ and checked for duplicate open issues? Yes

What version of Shaka Player are you using? 2.5.1-master

Can you reproduce the issue with our latest release version? yes

Can you reproduce the issue with the latest code from master? Yes

Are you using the demo app or your own custom app? Both

If custom app, can you reproduce the issue using our demo app? Yes

What browser and OS are you using? Windows 10 & Chrome Version 74.0.3729.169

For embedded devices (smart TVs, etc.), what model and firmware version are you using? N/A

What are the manifest and license server URIs? https://irtdashreference-i.akamaihd.net/dash/live/901161/keepixo1/playlistBR2.m3u8 No DRM

What did you do? I want to read the content with the subtitles, they are not working, I don’t understand why.

What did you expect to happen? The subtitles working properly

What actually happened? When the subtitles are activated, I can’t see them on the video.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kqyangcommented, Feb 26, 2021

There is a related bug on Shaka Packager: https://github.com/google/shaka-packager/issues/645.

HLS Authoring Specification for Apple Devices specifies that

5.10. The kind of subtitles SHOULD be specified in the CODECS attribute of the associated EXT-X-STREAM-INF tags. You SHOULD use “stpp.ttml.im1t” to identify IMSC1 subtitles. You MAY use “wvtt" to identify WebVTT subtitles.

So the codec information for WebVTT is optional, but recommended for TTML.

Would it work in the player to properly support TTML codec (stpp.ttml.im1t) and WebVTT codec (wvtt) if they are present and assume webvtt subtitles if the codec information is missing (since codec information for TTML should be present)?

0reactions
johndeucommented, Mar 1, 2022

Following this issue also, as I can’t get any of the live streams using HLS and MP4/IMSC1 (ISO 14496 part 30) fragments to render in the Shaka player at all.

Having the same issue with this HLS manifest. We can share some live stream samples as well. I’m asking my team if they can possibly take this PR @joeyparrish

#EXTM3U #EXT-X-VERSION:7 #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID=“audio”,NAME=“audio”,DEFAULT=YES,CHANNELS=“2”,URI=“QualityLevels(128000)/Manifest(audio,format=m3u8-cmaf)” #EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID=“subs”,NAME=“Auto-generated”,LANGUAGE=“en-us”,DEFAULT=YES,AUTOSELECT=YES,CHARACTERISTICS=“public.accessibility.transcribes-spoken-dialog”,URI=“QualityLevels(4800)/Manifest(Auto-generated,format=m3u8-cmaf)” #EXT-X-STREAM-INF:BANDWIDTH=2702136,RESOLUTION=1280x720,CODECS=“avc1.64001f,mp4a.40.5,stpp.ttml.im1t”,AUDIO=“audio”,SUBTITLES=“subs” QualityLevels(2500000)/Manifest(video,format=m3u8-cmaf) #EXT-X-I-FRAME-STREAM-INF:BANDWIDTH=2702136,RESOLUTION=1280x720,CODECS=“avc1.64001f”,URI=“QualityLevels(2500000)/Manifest(video,format=m3u8-cmaf,type=keyframes)” #EXT-X-STREAM-INF:BANDWIDTH=138976,CODECS=“mp4a.40.5”,AUDIO=“audio”,SUBTITLES=“subs” QualityLevels(128000)/Manifest(audio,format=m3u8-cmaf)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support HLS w/ MP4 subtitles without MIME type info #1959
We need to detect the MIME type and codec of the streams when we parse the manifest. We usually use the info in...
Read more >
HTTP Live Streaming (HLS) Authoring Specification for Apple ...
Learn the requirements for live and on-demand audio and video content delivery using HLS.
Read more >
Subtitles - Unified Streaming
The MIME type of the subtitle track listed in the MPD is application/mp4 , the @contentType attribute is text , the @codecs attribute...
Read more >
Subtitles, Captions, WebVTT, HLS, and those magic flags
This week we announced support for subtitles and captions in Mux Video. ... with no option for custom styling or colour information, ...
Read more >
Adding captions and subtitles to HTML video - Developer guides
In this article, we will refer to the Video player with captions example ... to the text file that contains the actual subtitle...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found