Browse Source

ffmpeg自动覆盖

Aladding 9 months ago
parent
commit
6896e2eeea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hazard-admin/src/main/java/com/ozs/web/core/util/CameraUtil.java

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

@@ -463,7 +463,7 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
         }
         
         StringBuilder cmd = new StringBuilder(ffmpegPath);
-        cmd.append(" -f concat -safe 0 -i ")
+        cmd.append(" -f concat -safe 0 -y -i ")
         		.append(argFile.getAbsolutePath())
 	        	.append(" -c copy ")
 	        	.append(newfilePath);