lyhzzz 3 anni fa
parent
commit
8fc4d64b82

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

@@ -91,7 +91,6 @@ public class VideoUtil {
             StringBuilder tsPath = new StringBuilder();
             tsPath.append("ffmpeg");
             tsPath.append(" -i ");
-            tsPath.append("'");
             tsPath.append("concat:");
             for (int t = 0; t < voidTS.size(); t++) {
                 if (t != voidTS.size() - 1) {
@@ -100,14 +99,13 @@ public class VideoUtil {
                     tsPath.append(voidTS.get(t));
                 }
             }
-            tsPath.append("'");
             tsPath.append(" -vcodec ");
             tsPath.append(" copy ");
             tsPath.append(" -bsf:a ");
             tsPath.append(" aac_adtstoasc ");
             tsPath.append(" -movflags ");
             tsPath.append(" +faststart ");
-            tsPath.append(newVideoFile +"/"+fileName);
+            tsPath.append(newVideoFile).append("/").append(fileName);
             CreateObjUtil.callshell(tsPath.toString());
             //删除生成的ts文件
             for (String filePath : voidTS) {