From: Sergey M․ Date: Thu, 13 Jun 2019 18:59:05 +0000 (+0700) Subject: [youtube] Hardcode codec metadata for av01 video only formats (closes #21381) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=b85eae0f057a0afdf1da9d6034c19327c8de33cf;p=youtube-dl [youtube] Hardcode codec metadata for av01 video only formats (closes #21381) --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 963c73a2d..7b630b191 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -500,6 +500,12 @@ class YoutubeIE(YoutubeBaseInfoExtractor): # RTMP (unnamed) '_rtmp': {'protocol': 'rtmp'}, + + # av01 video only formats sometimes served with "unknown" codecs + '394': {'acodec': 'none', 'vcodec': 'av01.0.05M.08'}, + '395': {'acodec': 'none', 'vcodec': 'av01.0.05M.08'}, + '396': {'acodec': 'none', 'vcodec': 'av01.0.05M.08'}, + '397': {'acodec': 'none', 'vcodec': 'av01.0.05M.08'}, } _SUBTITLE_FORMATS = ('srv1', 'srv2', 'srv3', 'ttml', 'vtt')