Skip to content

Instantly share code, notes, and snippets.

@sugi-cho
Created March 21, 2019 05:31
Show Gist options
  • Save sugi-cho/4ec9019c95128c24df10de18cdd578be to your computer and use it in GitHub Desktop.
Save sugi-cho/4ec9019c95128c24df10de18cdd578be to your computer and use it in GitHub Desktop.
ffmpeg convert batches
ECHO OFF
:REPEAT
ffmpeg.exe -i %1 -vcodec hap -format hap "%~n1-hap.mov"
if "%~2"=="" GOTO EXIT
shift
GOTO REPEAT
:EXIT
pause
ECHO OFF
:REPEAT
ffmpeg.exe -i %1 -vcodec hap -format hap_alpha "%~n1_a.mov"
if "%~2"=="" GOTO EXIT
shift
GOTO REPEAT
:EXIT
pause
ECHO OFF
:REPEAT
ffmpeg.exe -i %1 "%~n1.wav"
if "%~2"=="" GOTO EXIT
shift
GOTO REPEAT
:EXIT
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment