0

この小さなスクリプト コンパイラが返すエラー「無効なスイッチ -f」に問題があります。これは私をループさせます:-| 私たちを手伝ってくれますか?どうもありがとう。

@echo off

set maxbytesize=2000000000 
set /a c=1
setlocal ENABLEDELAYEDEXPANSION

FOR /f %%i in ('dir /b /a-d %D:\Temp\IKS\MAO\*.MP4%') do ffmpeg\bin\ffmpeg.exe -i %%i -c copy -bsf:v h264_mp4toannexb -f mpegts %%~ni.ts
FOR /f %%i in ('dir /b /a-d %D:\Temp\IKS\MAO\*.ts%') do ( 

if %%~zi GTR %maxbytesize% (
    echo file '%%i' >> ts_list.txt
) else ( 
    echo file '%%i' >> ts_list.txt
    set /a c=c+1
    ffmpeg\bin\ffmpeg.exe -f concat -i ts_list.txt -c copy output_!c!.mp4
    del /f ts_list.txt
    del /f *.ts
)

)

endlocal
4

1 に答える 1