mexs 当前离线
列兵
@echo off for /f "tokens=2 delims=, " %%a in ('ffmpeg -i "1.mp4" 2^>^&1 ^| find "Duration:"') do ( set str=%%a ) echo %str% pause复制代码
flashercs 当前在线
中校
@echo off cd /d "%~dp0" for %%A in (*.mp4) do ( for /f "tokens=2 delims=, " %%a in ('ffmpeg -i "%%~fA" 2^>^&1 ^| find "Duration:"') do ( set str=%%a echo %%a ) ) echo %str% pause复制代码
TOP