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);