rem 実際のエンコードを担当するスクリプト @echo off cd /d %~dp0 if "%~1" == "" goto end if "%~2" == "" goto end rem エンコードの開始 bin\ffmpeg.exe -i "%~1" -an -vf bwdif=1 -c:v libx264 -preset medium -crf 23 -s 1280x720 -aspect 16:9 "%~dpn1_tmp.mp4" bin\ffmpeg.exe -i "%~1" -vn -c:a copy "%~dpn1.aac" bin\mp4box.exe -new -add "%~dpn1_tmp.mp4" -add "%~dpn1.aac" "%~2" rem 一時ファイルの削除 del "%~dpn1_tmp.mp4" del "%~dpn1.wav" del "%~dpn1.aac"