1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-29 19:47:54 +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:
Oleksis Fraga Menéndez 2020-07-30 17:12:12 -04:00 committed by GitHub
parent a4ed50bb84
commit 43d6937b65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4210,7 +4210,7 @@ def parse_codecs(codecs_str):
vcodec, acodec = None, None vcodec, acodec = None, None
for full_codec in splited_codecs: for full_codec in splited_codecs:
codec = full_codec.split('.')[0] 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: if not vcodec:
vcodec = full_codec vcodec = full_codec
elif codec in ('mp4a', 'opus', 'vorbis', 'mp3', 'aac', 'ac-3', 'ec-3', 'eac3', 'dtsc', 'dtse', 'dtsh', 'dtsl'): elif codec in ('mp4a', 'opus', 'vorbis', 'mp3', 'aac', 'ac-3', 'ec-3', 'eac3', 'dtsc', 'dtse', 'dtsh', 'dtsl'):