diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-07-05 13:38:46 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-07-05 13:43:44 -0500 |
| commit | fd43b16213df68e2572ac4e31a19c0dd1611dd13 (patch) | |
| tree | 23678d5afe4cc2e3609951cf8fbbb4ba09688e69 /src | |
| parent | 5a455ec4f76e7a8ca339ec772911ea75ecb60cf7 (diff) | |
| download | invidious-fd43b16213df68e2572ac4e31a19c0dd1611dd13.tar.gz invidious-fd43b16213df68e2572ac4e31a19c0dd1611dd13.tar.bz2 invidious-fd43b16213df68e2572ac4e31a19c0dd1611dd13.zip | |
Add av01 formats to itag list
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/videos.cr | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index b5803e8a..dfaecbb2 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -182,7 +182,7 @@ VIDEO_FORMATS = { "135" => {"ext" => "mp4", "height" => 480, "format" => "DASH video", "vcodec" => "h264"}, "136" => {"ext" => "mp4", "height" => 720, "format" => "DASH video", "vcodec" => "h264"}, "137" => {"ext" => "mp4", "height" => 1080, "format" => "DASH video", "vcodec" => "h264"}, - "138" => {"ext" => "mp4", "format" => "DASH video", "vcodec" => "h264"}, # Height can vary (https=>//github.com/rg3/youtube-dl/issues/4559) + "138" => {"ext" => "mp4", "format" => "DASH video", "vcodec" => "h264"}, # Height can vary (https://github.com/ytdl-org/youtube-dl/issues/4559) "160" => {"ext" => "mp4", "height" => 144, "format" => "DASH video", "vcodec" => "h264"}, "212" => {"ext" => "mp4", "height" => 480, "format" => "DASH video", "vcodec" => "h264"}, "264" => {"ext" => "mp4", "height" => 1440, "format" => "DASH video", "vcodec" => "h264"}, @@ -239,6 +239,12 @@ VIDEO_FORMATS = { "249" => {"ext" => "webm", "format" => "DASH audio", "acodec" => "opus", "abr" => 50}, "250" => {"ext" => "webm", "format" => "DASH audio", "acodec" => "opus", "abr" => 70}, "251" => {"ext" => "webm", "format" => "DASH audio", "acodec" => "opus", "abr" => 160}, + + # av01 video only formats sometimes served with "unknown" codecs + "394" => {"ext" => "mp4", "height" => 144, "vcodec" => "av01.0.05M.08"}, + "395" => {"ext" => "mp4", "height" => 240, "vcodec" => "av01.0.05M.08"}, + "396" => {"ext" => "mp4", "height" => 360, "vcodec" => "av01.0.05M.08"}, + "397" => {"ext" => "mp4", "height" => 480, "vcodec" => "av01.0.05M.08"}, } struct VideoPreferences |
