Skip to content

Instantly share code, notes, and snippets.

@mrprompt
Created March 13, 2020 18:17
Show Gist options
  • Save mrprompt/b0e058016c23b509651de76f9fe8f93d to your computer and use it in GitHub Desktop.
Save mrprompt/b0e058016c23b509651de76f9fe8f93d to your computer and use it in GitHub Desktop.
Convert BRAMON captures rercursively
@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