From 8ced888d560f339209d12abb11454609a2c9d3f4 Mon Sep 17 00:00:00 2001 From: zen Date: Thu, 1 Feb 2024 16:18:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90ogg=E5=90=8C=E6=97=B6?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf.ini | 8 ++++---- processAudio/ogg.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/conf.ini b/conf.ini index 71bcde0..21286d7 100644 --- a/conf.ini +++ b/conf.ini @@ -1,7 +1,7 @@ [main] # mission = i&v -mission = video -# mission = OGG +# mission = video +mission = OGG # mission = audio # mission = image # mission = rotate @@ -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 @@ -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] diff --git a/processAudio/ogg.go b/processAudio/ogg.go index 10cfab1..7023706 100644 --- a/processAudio/ogg.go +++ b/processAudio/ogg.go @@ -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 {