Last active
March 26, 2019 06:08
-
-
Save nickcheng/e55b8e38264fe396c1454f097e15c1e7 to your computer and use it in GitHub Desktop.
Batch extract audio from video.
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
#! /bin/zsh | |
array=(*.mkv);for i ($array){num=$(echo $i|grep -Eo "第[0-9]+"|grep -Eo "[0-9]+");ffmpeg -i $i -vn xnj$num.m4a;} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment