Skip to content

Commit

Permalink
生成ogg同时删除标签
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyiming748 committed Feb 1, 2024
1 parent 18b92ef commit 8ced888
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions conf.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[main]
# mission = i&v
mission = video
# mission = OGG
# mission = video
mission = OGG
# mission = audio
# mission = image
# mission = rotate
Expand Down Expand Up @@ -32,7 +32,7 @@ txt = txt
[root]
folder = /Users/zen/git
image = /Volumes/noname
audio = /mnt/c/Users/zen/Videos/bili
audio = /Users/zen/Documents/柒柒音声/music
video = /mnt/f/large/AV/other
gif = /Users/zen/Downloads/Fugtrup collection/archive/webp
txt = /Users/zen/Downloads/tele
Expand Down Expand Up @@ -64,7 +64,7 @@ port = 3306
links = /Users/zen/github/processAVIWithXorm/telegraph/list.txt
proxy = http://127.0.0.1:8889
[speed]
audition = 70
audition = 65
# 需要被1整除
ffmpeg = 1.25
[yt-dlp]
Expand Down
2 changes: 1 addition & 1 deletion processAudio/ogg.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func Audio2OGG(in GetFileInfo.BasicInfo) {
fname := replace.ForFileName(in.PurgeName)
//fname=r
out := strings.Join([]string{in.PurgePath, fname, ".ogg"}, "")
cmd := exec.Command("ffmpeg", "-i", in.FullPath, "-ac", "1", "-c:a", "libvorbis", out)
cmd := exec.Command("ffmpeg", "-i", in.FullPath, "-ac", "1", "-c:a", "libvorbis", "-map_metadata", "-1", out)
err := util.ExecCommand(cmd)
if err == nil {
if err = os.RemoveAll(in.FullPath); err != nil {
Expand Down

0 comments on commit 8ced888

Please sign in to comment.