d3fault 5831f6feef [postproc/ffmpeg] fix opus using default quality of 5 as bitrate (closes #28389)
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
2022-05-29 00:26:26 -07:00
..
2018-01-23 22:23:12 +07:00
2022-01-30 00:05:54 +00:00
2021-04-17 03:32:04 +07:00
2021-12-17 01:49:07 +07:00