From fa23bb6899ce237e1b30669172cd305a228d9369 Mon Sep 17 00:00:00 2001 From: Alexey Khit Date: Fri, 16 Sep 2022 17:00:24 +0300 Subject: [PATCH] Handle FFmpeg RTMP as HTTP source --- cmd/ffmpeg/ffmpeg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ffmpeg/ffmpeg.go b/cmd/ffmpeg/ffmpeg.go index d5c10a6f..80260c8f 100644 --- a/cmd/ffmpeg/ffmpeg.go +++ b/cmd/ffmpeg/ffmpeg.go @@ -70,7 +70,7 @@ func Init() { var input string if i := strings.IndexByte(s, ':'); i > 0 { switch s[:i] { - case "http", "https": + case "http", "https", "rtmp": input = strings.Replace(tpl["http"], "{input}", s, 1) case "rtsp", "rtsps": // https://ffmpeg.org/ffmpeg-protocols.html#rtsp