From eb42805c35a34121fd2e85603ea784c263fbb9bc Mon Sep 17 00:00:00 2001 From: Dawin Yurtseven Date: Thu, 7 Dec 2023 16:36:26 +0100 Subject: [PATCH] probesize and analyzeduration added in transcode --- worker/worker/transcode.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/worker/worker/transcode.go b/worker/worker/transcode.go index 3658e1e66..dca766353 100644 --- a/worker/worker/transcode.go +++ b/worker/worker/transcode.go @@ -26,6 +26,7 @@ func buildCommand(niceness int, infile string, outfile string, tune string, crf c = append(c, "-tune", tune) } c = append(c, "-c:a", "aac", "-b:a", "128k", "-crf", fmt.Sprintf("%d", crf), outfile) + c = append(c, "-probesize 100M -analyzeduration 250M") return exec.Command("nice", c...) } @@ -204,6 +205,8 @@ func transcodeAudio(ctx *StreamContext) error { cmd := exec.Command("ffmpeg", "-y", "-v", "quiet", + "-probesize", "100M", + "-analyzeduration", "250M", "-i", input, "-c:a", "aac", "-vn", output)