Browse Source

替换合并视频代码

hexiao 1 year ago
parent
commit
98b3614673
1 changed files with 6 additions and 6 deletions
  1. 6 6
      hazard-admin/src/main/java/com/ozs/web/core/util/CameraUtil.java

+ 6 - 6
hazard-admin/src/main/java/com/ozs/web/core/util/CameraUtil.java

@@ -403,12 +403,12 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.flv
             log.info("合并命令:{}", sm.toString());
             cUtil.cmd(sm.toString());
         }
-        for (String fileT : fileTs) {
-            File ft = new File(fileT);
-            if (ft.exists()) {
-                ft.delete();
-            }
-        }
+//        for (String fileT : fileTs) {
+//            File ft = new File(fileT);
+//            if (ft.exists()) {
+//                ft.delete();
+//            }
+//        }
     }
 
     @PostConstruct