Skip to content

Commit

Permalink
确认无误后删除
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyiming748 committed Jul 31, 2024
1 parent 990f47a commit 4e55951
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ WORKDIR /root/app
RUN rm -rf ffmpeg-7.0.1.tar.xz ffmpeg-7.0.1
CMD ["conv"]
# docker build -t videos:latest .
# docker run -dit --rm --name vp9 -e root=/data -e to=vp9 -e level=Debug -v /media/zen/swap/pikpak/telegram:/data videos:latest
# docker run -dit --rm --name h265 -e root=/data -e to=h265 -v /home/zen/Videos:/data zhangyiming748/convertvideo:latest bash
4 changes: 3 additions & 1 deletion conv/h265.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ func ProcessVideo2H265(in mediainfo.BasicInfo) {
return
}
log.Printf("生成的命令:%v\n", cmd.String())
util.ExecCommand(cmd, FrameCount)
if err := util.ExecCommand(cmd, FrameCount); err != nil {
return
}
log.Println("视频编码运行完成")
originsize, _ := util.GetSize(in.FullPath)
aftersize, _ := util.GetSize(mp4)
Expand Down

0 comments on commit 4e55951

Please sign in to comment.