This add support for WebVTT subtitles in HLS streams. similar like for
separate audio streams, it supports all available WebVTT streams in all
renditions. No new options are added, it just works and provides subtitles
streams like other demuxers.

The code prevents downloading subtitle segments which are much farther in
the future than the main segments to avoid loading hundreds of subtitle
segments in advance.

orig, 2022/10; scenarios tested: ffmpeg transcoding, ffprobe, MPV player

Example command for testing:

ffmpeg -i
https://playertest.longtailvideo.com/adaptive/elephants_dream_v4/index.m3u8
-map v:0 -map a:0 -map s:1 -map s:0 -c:v copy -c:a copy -c:s srt -to 120s
test1.mkv

...produces an MKV with two SRT sub tracks from WebVTT subs via HLS.

softworkz (2):
  avformat/hls demuxer: Add WebVTT subtitle support
  avformat/webvttdec: Add webvtt extension and MIME type

 libavformat/hls.c       | 218 +++++++++++++++++++++++++++++++++-------
 libavformat/webvttdec.c |   3 +-
 2 files changed, 182 insertions(+), 39 deletions(-)


base-commit: e18f87ed9f9f61c980420b315dc8ecb308831bc5
Published-As: 
https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-53%2Fsoftworkz%2Fsubmit_hlsvtt-v1
Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg 
pr-ffstaging-53/softworkz/submit_hlsvtt-v1
Pull-Request: https://github.com/ffstaging/FFmpeg/pull/53
-- 
ffmpeg-codebot
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to