Answer the question
In order to leave comments, you need to log in
Why don't variables work in bat file?
In general, here is such a batch file
::исходный и результирующий файлы
set src = %1
set out = %2
::стартовые секунда, минута и час
set /a sh = %3
set /a sm = %4
set /a ss = %5
::конечные секунда, минута и час
set /a eh = %6
set /a em = %7
set /a es = %8
if %ss% LSS %es% (
set /a ts = %es% - %ss%
) else (
set /a ts = 60 - %ss% + %es%
)
if %sm% LSS %em% (
set /a tm = %em% - %sm%
) else (
set /a tm = 60 - %sm% + %em%
)
set /a th = %eh% - %sh%
ffmpeg.exe -ss 3 -i %src% -c:a copy -c:v copy -map 0 -y -t 5 %out%
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question