From 4451458dc25308f31319fd207067eb2297db3d62 Mon Sep 17 00:00:00 2001 From: nxshock Date: Sun, 18 Jun 2023 15:17:20 +0500 Subject: [PATCH] Fix custom bitrate handling --- streamer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streamer.go b/streamer.go index a61d22b..23ddf6a 100644 --- a/streamer.go +++ b/streamer.go @@ -32,7 +32,7 @@ func encode(url string, w io.Writer, bitrateKbps uint64) error { "-i", url, "-vn", "-c:a", config.Codec, - "-b:a", fmt.Sprintf("%dk", config.Bitrate), + "-b:a", fmt.Sprintf("%dk", bitrateKbps), "-f", config.Format, "-ac", "2", "pipe:1")