From adcf51b34ca89887945e5d1680d4c817bbb2ed28 Mon Sep 17 00:00:00 2001 From: Mark Sargent Date: Mon, 4 Sep 2017 16:38:34 +1200 Subject: [PATCH] Support CLOSED-CAPTIONS hls extension --- Source/Python/utils/mp4-hls.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Python/utils/mp4-hls.py b/Source/Python/utils/mp4-hls.py index 55a538e85..bc2ef4273 100644 --- a/Source/Python/utils/mp4-hls.py +++ b/Source/Python/utils/mp4-hls.py @@ -447,6 +447,10 @@ def OutputHls(options, media_sources): if len(subtitles_files): ext_x_stream_inf += ',SUBTITLES="subtitles"' + # captions info + if media['source'].spec.get('+captions'): + ext_x_stream_inf += ',CLOSED-CAPTIONS=' + media['source'].spec.get('+captions') + master_playlist.write(ext_x_stream_inf+'\r\n') master_playlist.write(media['dir']+'/stream.m3u8\r\n')