Skip to content

Instantly share code, notes, and snippets.

@MohamedKiouaz
Created December 30, 2019 15:12
Show Gist options
  • Select an option

  • Save MohamedKiouaz/b41453ba435dff6d93ee33736af35ed2 to your computer and use it in GitHub Desktop.

Select an option

Save MohamedKiouaz/b41453ba435dff6d93ee33736af35ed2 to your computer and use it in GitHub Desktop.
Script to convert using HandbrakeCLI recursively.
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