Skip to content

Commit

Permalink
probesize and analyzeduration added in transcode (TUM-Dev#1259)
Browse files Browse the repository at this point in the history
  • Loading branch information
DawinYurtseven committed Dec 7, 2023
1 parent a74d95e commit 70bc1f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions worker/worker/transcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...)
}

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 70bc1f3

Please sign in to comment.