mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-12-23 12:40:11 +09: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 |
||
---|---|---|
.. | ||
__init__.py | ||
common.py | ||
embedthumbnail.py | ||
execafterdownload.py | ||
ffmpeg.py | ||
metadatafromtitle.py | ||
xattrpp.py |