Closed joeyparrish closed 4 months ago
Apple requires WebVTT subtitles in text files, see HLS Authoring Specification for Apple Devices
5.3. WebVTT subtitles MUST be in text files, with an X-TIMESTAMP-MAP according to the HLS specification.
We removed the codecs attribute for WebVTT intentionally for legacy device compatibility as old Apple devices do not recognize "wvtt" in codecs, see #402 for details.
Another section of the specification says
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 codec information for WebVTT is optional and codec information for TTML is recommended.
@joeyparrish Would it work in the player to assume webvtt subtitles if the relevant codec information is missing? (since codec information for TTML should be present)
We can also introduce a flag in packager to let users decide whether to write the codec information for WebVTT in the playlist.
System info
Operating System: gLinux Shaka Packager Version: v2.3.0
Issue and steps to reproduce the problem
Packager Command:
What is the expected result?
The master playlist should have codec information on the VTT-in-MP4 subtitles so that Shaka Player can differentiate between VTT-in-MP4 and TTML-in-MP4.
What happens instead?
The HLS master playlist has no codec info for the text stream: