ffmpeg/doc
Limin Wang cd8c5e89ba avformat: add subtitle support in master playlist m3u8
Test with the following command for the webvtt subtitle:
$ ./ffmpeg -y -i input_with_subtitle.mkv \
 -b✌️0 5250k -c:v h264 -pix_fmt yuv420p -profile:v main -level 4.1 \
 -b🅰️0 256k \
 -c:s webvtt -c:a mp2 -ar 48000 -ac 2 -map 0:v -map 0🅰️0 -map 0:s:0 \
 -f hls -var_stream_map "v:0,a:0,s:0,sgroup:subtitle" \
 -master_pl_name master.m3u8 -t 300 -hls_time 10 -hls_init_time 4 -hls_list_size \
 10 -master_pl_publish_rate 10  -hls_flags \
 delete_segments+discont_start+split_by_time ./tmp/video.m3u8

Check the master m3u8:
$ cat tmp/master.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subtitle",NAME="subtitle_0",DEFAULT=YES,URI="video_vtt.m3u8"
#EXT-X-STREAM-INF:BANDWIDTH=6056600,RESOLUTION=1280x720,CODECS="avc1.4d4829,mp4a.40.33",SUBTITLES="subtitle"
video.m3u8

Check the result by convert to mkv:
$ ./ffmpeg -strict experimental -i ./tmp/master.m3u8 -c:v copy -c:a mp2 -c:s srt ./test.mkv

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2020-04-08 23:02:41 +08:00
..
doxy
examples examples/avio_dir_cmd: drop support for move/delete operations 2020-03-16 09:23:37 +01:00
.gitignore
APIchanges avformat/avformat: Update av_read_frame() documentation 2020-03-29 03:58:30 +02:00
Doxyfile
Makefile
authors.texi
bitstream_filters.texi doc/bitstream_filters: Fix copy an paste typo 2019-11-05 21:21:32 +01:00
bootstrap.min.css
build_system.txt tools: add a fuzzer tool for bitstream filters 2019-12-05 20:49:15 -03:00
codecs.texi avcodec: add an AVCodecContext flag to export PRFT side data on demand 2020-02-22 23:19:07 -03:00
decoders.texi avcodec/libzvbi-teletextdec: add option to set default G0 character set 2020-02-24 00:14:21 +01:00
default.css
demuxers.texi doc/demuxers: update mov section 2020-03-06 11:05:30 +05:30
developer.texi doc/developer.texi: Add variadic macros to allowed C language features 2020-03-26 19:29:54 +01:00
devices.texi
doxy-wrapper.sh
encoders.texi avcodec/libvpxenc: add a way to explicitly set temporal layer id 2020-02-11 11:55:36 -08:00
errno.txt
faq.texi
fate.texi
fate_config.sh.template
ffmpeg-bitstream-filters.texi
ffmpeg-codecs.texi
ffmpeg-devices.texi
ffmpeg-filters.texi
ffmpeg-formats.texi
ffmpeg-protocols.texi
ffmpeg-resampler.texi
ffmpeg-scaler.texi
ffmpeg-utils.texi
ffmpeg.texi doc/ffmpeg: Document device selection for Vulkan 2020-02-09 20:36:45 +00:00
ffmpeg.txt
ffplay.texi ffplay: always show stats at all log levels if requested by user 2020-04-04 15:17:24 +05:30
ffprobe.texi
ffprobe.xsd
fftools-common-opts.texi avutil/log: drop support for NO_COLOR environment variable 2020-02-09 20:31:44 +01:00
filter_design.txt
filters.texi avfilter/vf_xfade: add slice transitions 2020-04-07 13:51:25 +02:00
formats.texi avformat: Add max_probe_packets option 2019-11-03 11:52:32 +01:00
general.texi doc/general: update avisynth docs with a way to install just the headers using CMake 2020-04-05 11:51:08 +02:00
git-howto.texi
indevs.texi avdevice/decklink: deprecate the -list_devices option 2020-01-03 18:13:22 +01:00
issue_tracker.txt
lexicon
libav-merge.txt
libavcodec.texi
libavdevice.texi
libavfilter.texi
libavformat.texi
libavutil.texi
libswresample.texi
libswscale.texi
mailing-list-faq.texi
metadata.texi
mips.txt
multithreading.txt
muxers.texi avformat: add subtitle support in master playlist m3u8 2020-04-08 23:02:41 +08:00
nut.texi
optimization.txt
outdevs.texi doc/outdevs: Mention "sdl2" alias for "sdl". 2020-01-26 13:15:07 +01:00
patchwork
platform.texi
print_options.c
protocols.texi avformat/libzmq: Make default pkt_size value consistent with amqp 2020-03-09 22:07:18 +01:00
rate_distortion.txt
resampler.texi
scaler.texi
snow.txt
style.min.css
swresample.txt
swscale.txt
t2h.init
t2h.pm
tablegen.txt
texi2pod.pl
texidep.pl
undefined.txt
utils.texi doc/utils: add hexadecagonal channel layout 2019-10-19 13:00:36 +05:30
writing_filters.txt