diff --git a/conf.ini b/conf.ini index 1c5b47f..43571e8 100644 --- a/conf.ini +++ b/conf.ini @@ -1,10 +1,10 @@ [main] # mission = i&v -# mission = video -mission = OGG +#mission = video +# mission = OGG # mission = audio # mission = image -# mission = rotate +mission = rotate # mission = resize # mission = avmerger # mission = extractAAC @@ -33,13 +33,13 @@ txt = txt folder = /Users/zen/git image = /Users/zen/Downloads/图片助手(ImageAssistant)_批量图片下载器/telegra.ph audio = /mnt/e/Virtual Machines -video = /mnt/f/large/AV/other +video = /mnt/d/git/AVmerger/.telegram gif = /Users/zen/Downloads/Fugtrup collection/archive/webp txt = /Users/zen/Downloads/tele bilibili = /mnt/d/git/processAll/merge/downloads louder = E:\aac [thread] -threads = 1 +threads = 4 [rotate] direction = ToRight # direction = ToLeft diff --git a/processVideo/h265.go b/processVideo/h265.go index 9d84e03..59b6c8c 100644 --- a/processVideo/h265.go +++ b/processVideo/h265.go @@ -69,7 +69,7 @@ func ProcessVideo2H265(in GetFileInfo.BasicInfo, threads string) { slog.Debug("", slog.String("out", out), slog.String("extName", in.PurgeExt)) mp4 := strings.Replace(out, in.PurgeExt, "mp4", -1) slog.Debug("调试", slog.String("输入文件", in.FullPath), slog.String("输出文件", mp4)) - cmd := exec.Command("ffmpeg", "-threads", threads, "-i", in.FullPath, "-c:v", "libx265", "-ac", "1", "-tag:v", "hvc1", "-map_chapters", "-1", "-threads", threads, mp4) + cmd := exec.Command("ffmpeg", "-threads", threads, "-i", in.FullPath, "-c:v", "libvpx-vp9", "-crf", "31", "-c:a", "libvorbis", "-ac", "1", "-tag:v", "hvc1", "-map_chapters", "-1", "-threads", threads, mp4) if mi.VideoWidth > 1920 && mi.VideoHeight > 1920 { slog.Warn("视频大于1080P需要使用其他程序先处理视频尺寸", slog.Any("原视频", in)) ResizeVideo(in, threads)