@echo off setlocal EnableExtensions if "%~1"=="" goto usage if "%~2"=="" goto usage where ffmpeg >nul 2>nul if errorlevel 1 ( echo ffmpeg not found in PATH. exit /b 1 ) if not exist "%~1" ( echo Input file not found: %~1 exit /b 1 ) if /I "%~1"=="%~2" ( echo Output must differ from input. exit /b 1 ) if exist "%~2" ( echo Output already exists: %~2 exit /b 1 ) ffmpeg -hide_banner -nostdin -i "%~1" -map 0:v:0 -c copy -an "%~2" if errorlevel 1 ( echo ffmpeg failed. exit /b 1 ) echo Done: %~2 exit /b 0 :usage echo Usage: mute_video.bat input.mp4 output.mp4 exit /b 2