lyhzzz 2 vuotta sitten
vanhempi
commit
f920192063

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

@@ -21,7 +21,7 @@ public class VideoUtil {
             List<String> voidTS = new ArrayList<>();
             List<String> voidTS = new ArrayList<>();
 
 
             for (String fromVideoFile : fromVideoFileList) {
             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 name = UUID.randomUUID().toString().replace("-","");
                 String command = String.format(format, "ffmpeg", fromVideoFile, newVideoFile +"/"+name + ".ts");
                 String command = String.format(format, "ffmpeg", fromVideoFile, newVideoFile +"/"+name + ".ts");
                 ShellUtil.execCmd(command);
                 ShellUtil.execCmd(command);