Run ffmpeg for each file in subfolder “in” and store output in subfolder “out”.
@echo off
set _this=%~dp0
for /f "usebackq delims=|" %%f in (`dir /b "%_this%\in"`) do (
"%_this%\ffmpeg.exe" -hide_banner -threads 0 -y -i "%_this%\in\%%f" -movflags use_metadata_tags -c:v copy -c:s copy -c:a aac -b:a 512k "%_this%\out\%%f"
)
pause
exit