Skip to content

Commit

Permalink
Use audio filter instead of vol
Browse files Browse the repository at this point in the history
vol is deprecated and removed in ffmpeg 6.0
  • Loading branch information
hafeoz authored Jun 24, 2023
1 parent d015176 commit d182032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func silk2ogg(rawData []byte) ([]byte, error) {
defer os.Remove(wavFile.Name())
{
cmd := exec.Command(
"ffmpeg", "-f", "s16le", "-ar", "24000", "-ac", "1", "-vol", "2000", "-y", "-i", pcmFile.Name(), "-f", "wav", wavFile.Name())
"ffmpeg", "-f", "s16le", "-ar", "24000", "-ac", "1", "-y", "-i", pcmFile.Name(), "-f", "wav", "-af", "volume=7.812500", wavFile.Name())
if err := cmd.Start(); err != nil {
return nil, err
}
Expand Down

0 comments on commit d182032

Please sign in to comment.