mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-07-22 17:37:16 +00:00
[ie] Extract supplemental codecs from DASH manifests (#16827)
Authored by: chrisellsworth
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user