>>620
こんなのを作ってみた。 レターボックス 4:3 二ヶ国語の .ts や .mp4 を 1024x768 .mp4 に変換する。
start を使ってるので余計なウインドウが開くが、御勘弁。 ffmpeg.exe の場所は環境に合わせて要変更。
動作確認した ffmpeg は ttp://ffmpeg.zeranoe.com/builds/ にあった ffmpeg-20130817-git-2c1a215-win32-static.7z 。 最新版でもいいと思う。
使い方: ファイルエクスプローラでこのバッチファイルに .ts や .mp4 ファイル(複数指定可)をドラッグアンドドロップする。
----- ここから LB1024x768mp4Bilingual.bat
setlocal
set LOG="%USERPROFILE%\My Documents\ffmpeg.log"
set EXE="%ProgramFiles%\ffmpeg\ffmpeg.exe"

:start
if "%~1" == "" goto end
if not exist "%~1" goto end
if "%~x1" equ ".ts" goto do_ffmpeg
if "%~x1" equ ".mp4" goto do_ffmpeg
goto next
:do_ffmpeg
set starttime=%date% %time%
start "" /low /min /wait %EXE% -i "%~1" -y -f mp4 -vcodec libx264 -r 30000/1001 -vf crop=ih:ih,setsar=4:3,setdar=4:3 -s 1024x768 -aspect 4:3 -async 2 -vsync 1 -ac 2 -filter_complex channelsplit "%~d1%~p1%~n1.mp4"
set ffmpegstatus=%ERRORLEVEL%
if "%starttime%" neq "" echo %starttime% - %time% "%~1" >>%LOG%
:next
shift
goto start

:end
:: 休止モードへ移行
rem %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState
endlocal
pause
goto :eof
----- ここまで