Kaynağa Gözat

ffmpeg自动覆盖

Aladding 9 ay önce
ebeveyn
işleme
6896e2eeea

+ 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);