Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH 0/2] avformat/hls demuxer: Add WebVTT subtitle support
@ 2025-02-19 14:10 ffmpegagent
  2025-02-19 14:10 ` [FFmpeg-devel] [PATCH 1/2] " softworkz
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: ffmpegagent @ 2025-02-19 14:10 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: softworkz

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-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2025-02-21 15:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-19 14:10 [FFmpeg-devel] [PATCH 0/2] avformat/hls demuxer: Add WebVTT subtitle support ffmpegagent
2025-02-19 14:10 ` [FFmpeg-devel] [PATCH 1/2] " softworkz
2025-02-21  9:18   ` Andreas Rheinhardt
2025-02-21  9:23     ` Soft Works
2025-02-21 11:56     ` Soft Works
2025-02-19 14:10 ` [FFmpeg-devel] [PATCH 2/2] avformat/webvttdec: Add webvtt extension and MIME type softworkz
2025-02-21 15:13 ` [FFmpeg-devel] [PATCH v2 0/2] avformat/hls demuxer: Add WebVTT subtitle support ffmpegagent
2025-02-21 15:13   ` [FFmpeg-devel] [PATCH v2 1/2] " softworkz
2025-02-21 15:13   ` [FFmpeg-devel] [PATCH v2 2/2] avformat/webvttdec: Add webvtt extension and MIME type softworkz

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git