mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-01-03 08:16:20 +00:00
5831f6feef
Fix #28389. When extracting audio, and the containing format isn't 'opus', but the requested format is, then youtube-dl will call ffmpeg to do the conversion. Without specifying the preferred quality, youtube-dl defaults to '5'. Integers 0-9 are currently sent to ffmpeg as the bitrate for 'opus', which is clearly an error and this commit fixes that. It uses an arbitrary (specific to opus) scale to convert 0-9 into reasonable bitrates between 6 kb/s to 210 kb/s.... with 5 (the default) giving 96 kb/s |
||
---|---|---|
.. | ||
downloader | ||
extractor | ||
postprocessor | ||
__init__.py | ||
__main__.py | ||
aes.py | ||
cache.py | ||
compat.py | ||
jsinterp.py | ||
options.py | ||
socks.py | ||
swfinterp.py | ||
update.py | ||
utils.py | ||
version.py | ||
YoutubeDL.py |