Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyiming748 committed Dec 5, 2023
1 parent 4229430 commit 0ecac0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion processVideo/h265.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func ProcessVideo2H265(in GetFileInfo.BasicInfo, threads string) {
cmd := exec.Command("ffmpeg", "-threads", threads, "-i", in.FullPath, "-c:v", "libx265", "-c:a", "aac", "-ac", "1", "-tag:v", "hvc1", "-map_chapters", "-1", "-threads", threads, mp4)
// info := GetFileInfo.GetVideoFileInfo(in.FullPath)
if strings.Contains(cpuid.CPU.BrandName, "Intel") {
if mi.VideoBitRate != "" && mi.VideoBitRate != "0" {
if mi.VideoBitRate == "" || mi.VideoBitRate == "0" {
b := strings.Join([]string{mi.VideoBitRate, "k"}, "")
//ffmpeg -i in.mp4 -c:v hevc_qsv -c:a aac -ac 1 -b:v 100k,
cmd = exec.Command("ffmpeg", "-threads", threads, "-i", in.FullPath, "-c:v", "hevc_qsv", "-b:v", b, "-c:a", "aac", "-ac", "1", "-tag:v", "hvc1", "-map_chapters", "-1", "-threads", threads, mp4)
Expand Down

0 comments on commit 0ecac0f

Please sign in to comment.