|
@@ -402,6 +402,7 @@ public class CameraUtil {
|
|
|
|
|
|
//遍历每个进行视频录制的摄像头
|
|
|
File file = new File(transcribeFilePath);
|
|
|
+ log.info("file.Name()======================================" + file.getName());
|
|
|
log.info("file.exists()======================================" + file.exists());
|
|
|
if (file.exists() && file.isDirectory()) {
|
|
|
//获取文件夹中所有的子文件夹和文件
|
|
@@ -409,6 +410,7 @@ 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();
|
|
@@ -417,6 +419,7 @@ 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 > 0) {
|
|
|
//20230328
|