Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Extract audio track from various type of files
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