Skip to content

Commit

Permalink
- [!] fix bug of incorrect transpose, by using rubberband
Browse files Browse the repository at this point in the history
  • Loading branch information
suntong committed Sep 9, 2023
1 parent 15851a1 commit 4feeb6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ffcvt.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ func transcodeFile(inputName string) {
}
}

args := []string{"-i", inputName}
args := []string{"-hide_banner", "-i", inputName}
args = append(args, strings.Fields(Opts.OptExtra)...)
//debug(strings.Join(args, " "), 4)
args = encodeParametersS(encodeParametersA(encodeParametersV(args)))
Expand All @@ -463,7 +463,7 @@ func transcodeFile(inputName string) {
}
if len(transpFrom) != 0 {
args = append(args, "-af")
af := fmt.Sprintf("atempo=%s/%s,asetrate=44100*%[2]s/%[1]s",
af := fmt.Sprintf("rubberband=pitch=%[2]s/%[1]s",
transpFrom, transpTo)
args = append(args, af)
}
Expand Down

0 comments on commit 4feeb6a

Please sign in to comment.