diff --git a/__pycache__/vidModeFunctions.cpython-312.pyc b/__pycache__/vidModeFunctions.cpython-312.pyc deleted file mode 100644 index f3bbdce..0000000 Binary files a/__pycache__/vidModeFunctions.cpython-312.pyc and /dev/null differ diff --git a/ffmpeg-windows/clip.bat b/ffmpeg-windows/clip.bat new file mode 100755 index 0000000..3659148 --- /dev/null +++ b/ffmpeg-windows/clip.bat @@ -0,0 +1,30 @@ +@echo off +setlocal + +if "%~3"=="" ( + echo Usage: %~nx0 input_file start_time end_time + echo Example: %~nx0 video.mp4 00:01:30 00:02:45 + echo Example: %~nx0 video.mp4 90 165 + exit /b 1 +) + +set "INPUT=%~1" +set "START=%~2" +set "END=%~3" + +set "OUTPUT=%~dpn1_cropped%~x1" + +ffmpeg -hide_banner -loglevel error ^ + -ss %START% ^ + -to %END% ^ + -i "%INPUT%" ^ + -c copy ^ + "%OUTPUT%" + +if errorlevel 1 ( + echo Failed. + exit /b 1 +) + +echo Done. +echo Output: "%OUTPUT%" \ No newline at end of file diff --git a/ffmpeg-windows/remove-sound.bat b/ffmpeg-windows/remove-sound.bat new file mode 100755 index 0000000..7bccdf5 --- /dev/null +++ b/ffmpeg-windows/remove-sound.bat @@ -0,0 +1,34 @@ +@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 \ No newline at end of file