From 19227fc0e4f29b7a31b9f72340453e25d7d1c5cc Mon Sep 17 00:00:00 2001 From: nadav rahimi Date: Thu, 31 Dec 2020 21:54:12 +0000 Subject: [PATCH] Moved the reconnect options in ffmpeg to before the input file in order for them to take effect. --- encode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encode.go b/encode.go index 640e26b..be4cd60 100644 --- a/encode.go +++ b/encode.go @@ -202,11 +202,11 @@ func (e *EncodeSession) run() { // Launch ffmpeg with a variety of different fruits and goodies mixed togheter args := []string{ "-stats", - "-i", inFile, "-reconnect", "1", "-reconnect_at_eof", "1", "-reconnect_streamed", "1", "-reconnect_delay_max", "2", + "-i", inFile, "-map", "0:a", "-acodec", "libopus", "-f", "ogg",