Implement suggestion

This commit is contained in:
Robert Resch
2024-11-11 11:16:12 +01:00
parent d372597bdb
commit 831aa03c9f
3 changed files with 44 additions and 32 deletions
+2
View File
@@ -223,6 +223,8 @@ func parseArgs(s string) *ffmpeg.Args {
s += "?video&audio"
}
s += "&source=ffmpeg:" + url.QueryEscape(source)
// change codec not matched error level to debug
s += "&" + string(streams.CodecNotMatchedErrorCode) + "=" + zerolog.DebugLevel.String()
args.Input = inputTemplate("rtsp", s, query)
} else if i = strings.Index(s, "?"); i > 0 {
switch s[:i] {