Explorar el Código

报警回放本地测试

gao.qiang hace 1 año
padre
commit
dd7252b0a2
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      business-service/src/main/java/com/ozs/utils/CameraUtil.java

+ 2 - 2
business-service/src/main/java/com/ozs/utils/CameraUtil.java

@@ -745,8 +745,8 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
      * RTSP流下载
      */
     public static void streamUrlDownload(String url, String code) {
-        log.info(ffmpegPath + " -i " + url + " -c copy /opt/streams/map/" + code);
-        cUtil.cmd(ffmpegPath + " -i " + url + " -c copy /opt/streams/map/" + code);
+        log.info(ffmpegPath + " -i " + url + " -c copy /opt/streams/map/" + code+".mp4");
+        cUtil.cmd(ffmpegPath + " -i " + url + " -c copy /opt/streams/map/" + code+".mp4");
     }