|
@@ -438,7 +438,7 @@ public class CameraUtil {
|
|
|
calendar.add(Calendar.DAY_OF_YEAR, -45);
|
|
|
}
|
|
|
date = calendar.getTime();
|
|
|
- log.info("date======================================" + sdf.format(date));
|
|
|
+ log.info("过期date======================================" + sdf.format(date));
|
|
|
//遍历每个进行视频录制的摄像头
|
|
|
File file = new File(transcribeFilePath);
|
|
|
log.info("file.Name()======================================" + file.getName());
|
|
@@ -449,7 +449,6 @@ public class CameraUtil {
|
|
|
if (!ObjectUtils.isEmpty(files) && files.length > 0) {
|
|
|
for (File file1 : files) {
|
|
|
// file1=/opt/streams/record/flv/34020000001320000167
|
|
|
- log.info("file1.Name()======================================" + file1.getName());
|
|
|
if (file1.exists() && file1.isDirectory()) {
|
|
|
//相机文件
|
|
|
File[] fs = file1.listFiles();
|
|
@@ -458,9 +457,9 @@ public class CameraUtil {
|
|
|
// f=/opt/streams/record/flv/34020000001320000167/20230328_192033_192037-91509173-cd5a-11ed-8a42-fa163e4e1e9f.flv
|
|
|
//fName=20230328_192033_192037-91509173-cd5a-11ed-8a42-fa163e4e1e9f.flv
|
|
|
String fName = f.getName();
|
|
|
- log.info("fName======================================" + fName);
|
|
|
String[] split = fName.split("_");
|
|
|
if (split.length > 1) {
|
|
|
+ log.info("遍历文件===========================" + fName);
|
|
|
//20230328
|
|
|
String s = split[0];
|
|
|
Date parse = sdf.parse(s);
|