Last active
June 9, 2023 23:54
-
-
Save eugrus/90459ac82e0ee11eaac9cbbe2a676367 to your computer and use it in GitHub Desktop.
Extract audio from MKVs in the folder using ffmpeg
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
FOR /F "tokens=*" %G IN ('dir /b *.mkv') DO ffmpeg -i "%G" -acodec copy "%~nG.aac" |
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
Get-ChildItem *.mkv | ForEach-Object {ffmpeg -i $_.FullName -acodec copy ($_.BaseName + ".aac")} |
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
for file in *.mkv; do ffmpeg -i "$file" -acodec copy "${file%.*}.aac"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment