[ie] Extract supplemental codecs from DASH manifests (#16827)

Authored by: chrisellsworth
This commit is contained in:
chrisellsworth
2026-06-09 06:42:48 +00:00
committed by GitHub
parent bc90c36b13
commit 618b5e446c
3 changed files with 76 additions and 1 deletions
+3 -1
View File
@@ -2970,6 +2970,8 @@ class InfoExtractor:
content_type = representation_attrib.get('contentType', mime_type.split('/')[0])
codec_str = representation_attrib.get('codecs', '')
supplemental_codecs = representation_attrib.get(
'{urn:scte:dash:scte214-extensions}supplementalCodecs')
# Some kind of binary subtitle found in some youtube livestreams
if mime_type == 'application/x-rawcc':
codecs = {'scodec': codec_str}
@@ -3025,7 +3027,7 @@ class InfoExtractor:
'asr': int_or_none(representation_attrib.get('audioSamplingRate')),
'fps': int_or_none(representation_attrib.get('frameRate')),
'language': lang if lang not in ('mul', 'und', 'zxx', 'mis') else None,
'format_note': f'DASH {content_type}',
'format_note': join_nonempty(f'DASH {content_type}', supplemental_codecs, delim=', '),
'filesize': filesize,
'container': mimetype2ext(mime_type) + '_dash',
**codecs,