34 lines
686 B
Batchfile
Executable File
34 lines
686 B
Batchfile
Executable File
@echo off
|
|
setlocal enabledelayedexpansion
|
|
|
|
REM Process all video files in the parent directory.
|
|
REM Copies the video stream without re-encoding and removes all audio.
|
|
REM Output files are written to the current directory.
|
|
|
|
for %%F in (
|
|
"..\*.mp4"
|
|
"..\*.mkv"
|
|
"..\*.mov"
|
|
"..\*.avi"
|
|
"..\*.webm"
|
|
"..\*.m4v"
|
|
"..\*.ts"
|
|
"..\*.mts"
|
|
"..\*.m2ts"
|
|
"..\*.flv"
|
|
"..\*.wmv"
|
|
) do (
|
|
if exist "%%~F" (
|
|
echo Processing: %%~nxF
|
|
ffmpeg -hide_banner -loglevel error -y ^
|
|
-i "%%~F" ^
|
|
-map 0:v ^
|
|
-c:v copy ^
|
|
-an ^
|
|
"%%~nxF"
|
|
)
|
|
)
|
|
|
|
echo.
|
|
echo Done.
|
|
pause |