lyhzzz 2 年之前
父節點
當前提交
a0485f2cc8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/fdkankan/fusion/common/util/VideoUtil.java

+ 1 - 1
src/main/java/com/fdkankan/fusion/common/util/VideoUtil.java

@@ -21,7 +21,7 @@ public class VideoUtil {
             List<String> voidTS = new ArrayList<>();
 
             for (String fromVideoFile : fromVideoFileList) {
-                String format = "%s -y -i %s -vcodec copy  -f mpegts %s";
+                String format = "%s -y -i %s -vcodec h264 -f mpegts %s";
                 String name = UUID.randomUUID().toString().replace("-","");
                 String command = String.format(format, "ffmpeg", fromVideoFile, newVideoFile +"/"+name + ".ts");
                 ShellUtil.execCmd(command);