Skip to content

Commit

Permalink
同步删除标签
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyiming748 committed Feb 1, 2024
1 parent 8ced888 commit f9ddfa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion processAudio/louder.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func LouderAudio(in GetFileInfo.BasicInfo) {
仅使用输入输出和增大电平
*/
func Louder(in, out string) {
cmd := exec.Command("ffmpeg", "-i", in, "-filter:a", "volume=3.0", "-c:a", "libvorbis", out)
cmd := exec.Command("ffmpeg", "-i", in, "-filter:a", "volume=3.0", "-c:a", "libvorbis", "-map_metadata", "-1", out)
util.ExecCommand(cmd)
if err := os.RemoveAll(in); err != nil {
slog.Warn("删除失败", slog.String("源文件", in), slog.Any("错误内容", err))
Expand Down
2 changes: 1 addition & 1 deletion processAudio/speedUp.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func SpeedupAudio(in GetFileInfo.BasicInfo, speed string) {
func speedUp(in, out string, speed string) {
ff := audition2ffmpeg(speed)
atempo := strings.Join([]string{"atempo", ff}, "=")
cmd := exec.Command("ffmpeg", "-i", in, "-filter:a", atempo, "-vn", "-c:a", "libvorbis", "-ac", "1", out)
cmd := exec.Command("ffmpeg", "-i", in, "-filter:a", atempo, "-vn", "-c:a", "libvorbis", "-ac", "1", "-map_metadata", "-1", out)
util.ExecCommand(cmd)
if err := os.RemoveAll(in); err != nil {
slog.Warn("删除失败", slog.String("源文件", in), slog.Any("错误内容", err))
Expand Down

0 comments on commit f9ddfa8

Please sign in to comment.