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

Hello,

I have live streams packetized into HLS with

cupertinoLiveCaptionsUseWebVTT

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.

subtitlelist_leng.m3u8

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:15
#EXT-X-MEDIA-SEQUENCE:462
#EXTINF:11.929
subtitlechunk_leng_462.webvtt

chunklist.m3u8

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:11
#EXT-X-MEDIA-SEQUENCE:467
#EXT-X-DISCONTINUITY-SEQUENCE:23
#EXTINF:10.01
media-ujvb74pq5_467.ts

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

Hello!

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

Regards,

Jermaine