|
@@ -908,7 +908,7 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
|
|
|
*
|
|
|
* 删除录制视频的零时文件
|
|
|
*/
|
|
|
- public void deleteTmpFlv(int num) {
|
|
|
+ public void deleteTmpFlv() {
|
|
|
log.info("find /opt/streams/record/flv/*/*/ -mmin +5 -name *.flv -exec rm -rf {} \\;");
|
|
|
// cmdCameraUtil.cmd("find /opt/streams/record/flv/*/*/ -mmin +5 -name *.flv -exec rm -rf {} \\;");
|
|
|
|
|
@@ -916,7 +916,8 @@ ffmpeg -i "concat:1.ts|2.ts" -c copy output.mp4
|
|
|
Process proc = Runtime.getRuntime().exec("/bin/bash", null, null);
|
|
|
BufferedReader in = new BufferedReader(new InputStreamReader(proc.getInputStream()));
|
|
|
PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(proc.getOutputStream())), true);
|
|
|
- String commit = "find /opt/streams/record/flv/*/*/ -mmin +"+num+" -name *.flv -exec rm -rf {} \\;";
|
|
|
+// String commit = "find /opt/streams/record/flv/*/*/ -mmin +"+num+" -name *.flv -exec rm -rf {} \\;";
|
|
|
+ String commit = "find /opt/streams/record/flv/*/*/ -mmin +1 -name *.flv -exec rm -rf {} \\;";
|
|
|
List<String> commands = new ArrayList<>();
|
|
|
|
|
|
// 删除
|