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

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

@@ -245,7 +245,6 @@ public class CameraUtil {
             ffmpeg -f concat -i mylist.txt -c copy output.flv
         * */
 
-        List<String> rspList = new ArrayList<String>();
         File file = new File(newfilePath);
         boolean flay = false;
         if (!file.getParentFile().exists()) {
@@ -309,11 +308,9 @@ public class CameraUtil {
             out.println("exit");// 这个命令必须执行,否则in流不结束。
             String rspLine = "";
             while ((rspLine = in.readLine()) != null) {
-                System.out.println(rspLine);
-                rspList.add(rspLine);
+                log.info("*****", rspLine);
             }
             int i = proc.waitFor();
-            log.info("执行结果:{}", i);
             //删除生成的ts文件
             File file1 = new File(substring);
             if (file1.exists()) {
@@ -326,7 +323,6 @@ public class CameraUtil {
             out.close();
             proc.destroy();
         }
-        log.info("返回结果:{}", rspList);
     }