Skip to content

Instantly share code, notes, and snippets.

View martin-damien's full-sized avatar
🦖
Pixelosaurus Rex

Damien martin-damien

🦖
Pixelosaurus Rex
View GitHub Profile
@martin-damien
martin-damien / extract_audio.sh
Created March 30, 2017 11:56
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";