Created
March 13, 2020 18:17
-
-
Save mrprompt/b0e058016c23b509651de76f9fe8f93d to your computer and use it in GitHub Desktop.
Convert BRAMON captures rercursively
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
@echo off &setlocal | |
set /a nfile=0 | |
set "sourcefolder=%~1" | |
for /R "%sourcefolder%" %%a in (*.avi) do ( | |
echo converting "%%~nxa" ... | |
set "sourcefile=%%~fa" | |
set "sourcepath=%%~dpa" | |
set "targetfile=%%~na.mp4" | |
setlocal enabledelayedexpansion | |
c:\bramon\tools\ffmpeg -n -v quiet -i "!sourcefile!" -c:v libx264 -profile:v baseline -level 3.0 -pix_fmt yuv420p "!sourcepath!!targetfile!" | |
endlocal | |
set /A nfile+=1 | |
) | |
echo Done! Converted %nfile% file(s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment