Skip to content

Commit

Permalink
[youtube] Hardcode codec metadata for av01 video only formats (closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Jun 13, 2019
1 parent 28cc224 commit b85eae0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions youtube_dl/extractor/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit b85eae0

Please sign in to comment.