我正在通过 VLC 从 ip-cam 录制视频。录制视频的长度 - 1 小时。此时,所有视频都记录在一个目录中,非常不方便。我想在主文件夹中创建子文件夹并将其重新编号为月份中的日期,即 01、02、03 ... 到 31。我可以使用在 00:00:01 自动传输视频的批处理脚本吗记录到第二天的目录?即每天仅记录 24 个文件/小时(01 - 24 小时 02 - 24、03 - 24 小时等)以下是我当前的批处理脚本:
@echo off
SET C=1
:L
set hour=%time:~0,2%
if "%hour:~0,1%" == " " set hour=0%hour:~1,1%
set min=%time:~3,2%
if "%min:~0,1%" == " " set min=0%min:~1,1%
set secs=%time:~6,2%
if "%secs:~0,1%" == " " set secs=0%secs:~1,1%
set year=%date:~-4%
set month=%date:~3,2%
if "%month:~0,1%" == " " set month=0%month:~1,1%
set day=%date:~0,2%
if "%day:~0,1%" == " " set day=0%day:~1,1%
set datetimef=%day%.%month%.%year%__%hour%.%min%
vlc -vvv rtsp://10.10.22.225/h264 --sout=file/mp4:"D:\IP-CAM\%c%-%datetimef%.mp4" --run-time=3600 --play-and-exit --qt-start-
minimized
SET /a C+=1
IF %c% GTR 744 SET C=1
goto :L