lyhzzz 2 years ago
parent
commit
f920192063
1 changed files with 1 additions and 1 deletions
  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 -bsf:v h264_mp4toannexb -f mpegts %s";
+                String format = "%s -y -i %s -vcodec copy  -f mpegts %s";
                 String name = UUID.randomUUID().toString().replace("-","");
                 String command = String.format(format, "ffmpeg", fromVideoFile, newVideoFile +"/"+name + ".ts");
                 ShellUtil.execCmd(command);