Skip to content

Commit

Permalink
vp9+ogg
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyiming748 committed Apr 5, 2024
1 parent d70b86b commit a93f272
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions conf.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion processVideo/h265.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a93f272

Please sign in to comment.