mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 02:14:32 +01:00
Add Codecs Parameter String
Some videos use the codecs like: 'vp09.00.11.08' 'vp09.00.20.08' 'vp09.00.21.08' 'vp09.00.30.08' 'vp09.00.31.08' See more in: https://www.webmproject.org/vp9/mp4/
This commit is contained in:
parent
a4ed50bb84
commit
43d6937b65
@ -4210,7 +4210,7 @@ def parse_codecs(codecs_str):
|
||||
vcodec, acodec = None, None
|
||||
for full_codec in splited_codecs:
|
||||
codec = full_codec.split('.')[0]
|
||||
if codec in ('avc1', 'avc2', 'avc3', 'avc4', 'vp9', 'vp8', 'hev1', 'hev2', 'h263', 'h264', 'mp4v', 'hvc1', 'av01', 'theora'):
|
||||
if codec in ('avc1', 'avc2', 'avc3', 'avc4', 'vp09', 'vp08', 'vp9', 'vp8', 'vp10', 'hev1', 'hev2', 'h263', 'h264', 'mp4v', 'hvc1', 'av01', 'theora'):
|
||||
if not vcodec:
|
||||
vcodec = full_codec
|
||||
elif codec in ('mp4a', 'opus', 'vorbis', 'mp3', 'aac', 'ac-3', 'ec-3', 'eac3', 'dtsc', 'dtse', 'dtsh', 'dtsl'):
|
||||
|
Loading…
Reference in New Issue
Block a user