Wowza Community

Set EXT-X-TARGETDURATION for WebVTT captions in live HLS


I have live streams packetized into HLS with


set to true. The WebVTT manifests & segments are produced properly, however the EXT-X-TARGETDURATION value in the subtitle m3u8 is different than the duration in the rendition’s chunklist.





This disparity can cause the subtitles to drift apart from the media content & is a violation of Apple’s guidlines

5.4. For live/linear content, target durations for subtitle playlists MUST be identical to other media.

I also believe this is causing issues with playback on Apple devices. When subtitles are active on an iOS device, and the HLS stream encounters an EXT-X-DISCONTINUITY flag, the video/audio stream stops, but subtitles continue to be displayed. This does not occur on the same stream with subtitles disabled.

Is there a setting available to force the WebVTT segment duration to a desired value for HLS?

Thank you


Thanks for contacting Wowza Forums!

What version of Wowza are you running? What are your keyframes set to on the encoder? The live stream may not have a consistent key frame interval, that is a factor of the target chunk duration. I would double check the encoder, a good keyframe interval is anywhere beween 1-5. You can check the log files to see what Wowa is seeing as the keyframe interval.

In additon, you can enable detailed debugging and check the logs after enabling to also figure out what is going on. Instructions are listed HERE

If you need additonal help in reading the logs, I would suggest opening a ticket HERE