Created
December 30, 2019 15:12
-
-
Save MohamedKiouaz/b41453ba435dff6d93ee33736af35ed2 to your computer and use it in GitHub Desktop.
Script to convert using HandbrakeCLI recursively.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for /R E:\ %%F in (*.avi) do ( | |
| echo "%%~dpF%%~nF_conv.mp4" | |
| "D:\Downloads\HandBrakeCLI-1.3.0-win-x86_64\HandBrakeCLI.exe" -i "%%~fF" -o "%%~dpF%%~nF_conv.mp4" | |
| if exist "%%~dpF%%~nF_conv.mp4" ( | |
| del "%%~fF" | |
| ) | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment