Poste em nome do OP que resolveu o problema:
_trim.bat :
@echo off
for %%i in (*.mp4) do (
call _trim2.bat "%%i"
)
_trim2.bat :
@echo off
for /f "tokens=*" %%a in ('_ffprobe -show_format -i %1 ^| find "duration"') do set _duration=%%a
set _duration=%_duration:~9%
for /f "delims=. tokens=1*" %%b in ('echo %_duration%') do set /a "_durS=%%b"
for /f "delims=. tokens=2*" %%c in ('echo %_duration%') do set "_durMS=%%c"
rem following line is seconds to cut
set /a "_durS-=30"
set "_newduration=%_durS%.%_durMS%"
set "_output=%~n1"
md _fixed
_ffmpeg -ss 0 -i %1 -t %_newduration% -c copy "_fixed\%_output%.mp4"
o arquivo processado será colocado em . \ _ fixed \ samename.mp4 e será 30 segundos mais curto.