Created
March 30, 2017 11:56
-
-
Save martin-damien/f56ae0892d062ebb1d1ac4e66e1b572e to your computer and use it in GitHub Desktop.
Extract audio track from various type of files
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 *.mp4; | |
do | |
echo -e "Processing video '\e[32m$FILE\e[0m'"; | |
ffmpeg -i "${FILE}" -vn -acodec libvorbis -y "${FILE%.mp4}.ogg"; | |
done | |
for FILE in *.webm; | |
do | |
echo -e "Processing video '\e[32m$FILE\e[0m'"; | |
ffmpeg -i "${FILE}" -vn -acodec libvorbis -y "${FILE%.webm}.ogg"; | |
done | |
for FILE in *.mkv; | |
do | |
echo -e "Processing video '\e[32m$FILE\e[0m'"; | |
ffmpeg -i "${FILE}" -vn -acodec libvorbis -y "${FILE%.mkv}.ogg"; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment