Change FFmpeg output for MJPEG to pipe

This commit is contained in:
Alexey Khit
2023-05-04 07:38:49 +03:00
parent 4656086985
commit 3c371e7046
2 changed files with 13 additions and 4 deletions
+2 -2
View File
@@ -33,10 +33,10 @@ func GetInput(src string) (string, error) {
video = value[0]
case "audio":
audio = value[0]
case "framerate":
input += " -framerate " + value[0]
case "resolution":
input += " -video_size " + value[0]
default: // "input_format", "framerate", "video_size"
input += " -" + key + " " + value[0]
}
}
}