@echo off
setlocal

REM Verzeichnis von ffmpeg festlegen
set FFMPEG_DIR=C:\path\to\ffmpeg\directory

REM Das Ausgabeformat festlegen
set OUTPUT_FORMAT=mp4

REM Die Eingangs- und Ausgangsverzeichnisse festlegen
set INPUT_DIR=C:\path\to\input\directory
set OUTPUT_DIR=C:\path\to\output\directory

cd /d "%INPUT_DIR%"

for %%F in (*.*) do (
    "%FFMPEG_DIR%\ffmpeg.exe" -i "%%F" -vcodec libx264 -acodec aac "%OUTPUT_DIR%\%%~nF.%OUTPUT_FORMAT%"
    )

endlocal
