Skip to content

Commit

Permalink
probesize and analyzeduration added in transcode
Browse files Browse the repository at this point in the history
  • Loading branch information
DawinYurtseven committed Dec 7, 2023
1 parent e337d87 commit eb42805
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 eb42805

Please sign in to comment.