Fix custom bitrate handling

This commit is contained in:
nxshock 2023-06-18 15:17:20 +05:00
parent 09c8b3d69e
commit 4451458dc2

View File

@ -32,7 +32,7 @@ func encode(url string, w io.Writer, bitrateKbps uint64) error {
"-i", url, "-i", url,
"-vn", "-vn",
"-c:a", config.Codec, "-c:a", config.Codec,
"-b:a", fmt.Sprintf("%dk", config.Bitrate), "-b:a", fmt.Sprintf("%dk", bitrateKbps),
"-f", config.Format, "-f", config.Format,
"-ac", "2", "-ac", "2",
"pipe:1") "pipe:1")