[downloader/ism] Support muxing TTML subtitles

This commit is contained in:
Felix S
2021-04-18 12:48:39 +02:00
parent 15828bcf25
commit 66a1b8643a
2 changed files with 10 additions and 3 deletions

View File

@@ -2816,7 +2816,7 @@ class InfoExtractor(object):
for track in stream.findall('QualityLevel'):
fourcc = track.get('FourCC', 'AACL' if track.get('AudioTag') == '255' else None)
# TODO: add support for WVC1 and WMAP
if fourcc not in ('H264', 'AVC1', 'AACL'):
if fourcc not in ('H264', 'AVC1', 'AACL', 'TTML'):
self.report_warning('%s is not a supported codec' % fourcc)
continue
tbr = int(track.attrib['Bitrate']) // 1000