Created
August 9, 2022 15:07
-
-
Save Dinir/d3c17c4b432538bdabcc773ff6471508 to your computer and use it in GitHub Desktop.
Extract aac audio from a video file. Default audio track is 3 (0-index).
This file contains 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 | |
set "inputfile=%1" | |
set "filename=%1" | |
shift | |
set track=3 | |
:loop | |
if not "%1"=="" ( | |
if "%1"=="-t" ( | |
set "track=%2" | |
shift | |
) | |
if "%1"=="-o" ( | |
set "filename=%2" | |
shift | |
) | |
shift | |
goto :loop | |
) | |
ffmpeg -i "%inputfile%" -map 0:a:%track% "%filename%".aac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment