mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 12:50:01 +00:00
api/stream: add support for 8kbps option for mp3 downloads
This commit is contained in:
parent
c6385f1842
commit
9a504443fd
1 changed files with 4 additions and 0 deletions
|
@ -225,6 +225,10 @@ const convertAudio = (streamInfo, res) => {
|
||||||
args.push("-b:a", `${streamInfo.audioBitrate}k`)
|
args.push("-b:a", `${streamInfo.audioBitrate}k`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (streamInfo.audioFormat === "mp3" && streamInfo.audioBitrate === "8") {
|
||||||
|
args.push("-ar", "12000");
|
||||||
|
}
|
||||||
|
|
||||||
if (streamInfo.audioFormat === "opus") {
|
if (streamInfo.audioFormat === "opus") {
|
||||||
args.push("-vbr", "off")
|
args.push("-vbr", "off")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue