Rename param source to video for ffmpeg virtual source

This commit is contained in:
Alex X
2024-05-12 15:58:17 +03:00
parent 778245dd1c
commit 5ccbd7c1c2
2 changed files with 14 additions and 8 deletions
+6
View File
@@ -280,6 +280,12 @@ func parseArgs(s string) *ffmpeg.Args {
}
}
if query["bitrate"] != nil {
// https://trac.ffmpeg.org/wiki/Limiting%20the%20output%20bitrate
b := query["bitrate"][0]
args.AddCodec("-b:v " + b + " -maxrate " + b + " -bufsize " + b)
}
// 4. Process audio codecs
if args.Audio > 0 {
for _, audio := range query["audio"] {