aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/static
diff options
context:
space:
mode:
authorJames Taylor <user234683@users.noreply.github.com>2021-08-31 13:38:28 -0700
committerJesús <heckyel@hyperbola.info>2021-08-31 16:40:19 -0500
commit7c79f530a53e9ff4a9fc61d6b7adde6e9c241c62 (patch)
treefb56107188cda2871799c15571cb98e21cfff286 /youtube/static
parent30e59081b14c98b49f718a1bc131ac46d09c84bf (diff)
downloadyt-local-7c79f530a53e9ff4a9fc61d6b7adde6e9c241c62.tar.lz
yt-local-7c79f530a53e9ff4a9fc61d6b7adde6e9c241c62.tar.xz
yt-local-7c79f530a53e9ff4a9fc61d6b7adde6e9c241c62.zip
Support more audio and video qualities
Adds support for AV1-encoded videos, which includes any videos above 1080p. These weren't getting included because they did not have a quality entry in the format table at the top of watch_extraction.py. So get the quality from the quality labels of the format if it's not there. Because YouTube often includes BOTH AV1 and H.264 (AVC) for each quality, after these are included, there will be way too many quality options and the code needs to choose which one to use. The choice is somewhat hard: AV1 is encoded in fewer bytes than H.264 and is patent-free, however, it has less hardware support, so might be more difficult to play. For instance, on my system, AV1 does not work on 1080p, but H.264 does. Adds a setting about which to prefer, set to H.264 as the default. Also adds support for the lower quality mp4 audio quality, which now gets used at 144p to save network bandwidth. For similar reasons, this was not getting included because it did not have an audio_bitrate entry in the table. Prefer bitrate instead for the quality. Signed-off-by: Jesús <heckyel@hyperbola.info>
Diffstat (limited to 'youtube/static')
0 files changed, 0 insertions, 0 deletions