Skip to content

Instantly share code, notes, and snippets.

@gdm
Created June 27, 2018 21:35
Show Gist options
  • Select an option

  • Save gdm/5dbab13a28cb985d69780157667532b7 to your computer and use it in GitHub Desktop.

Select an option

Save gdm/5dbab13a28cb985d69780157667532b7 to your computer and use it in GitHub Desktop.
for FILE in *.webm; do
echo -e "Processing video '\e[32m$FILE\e[0m'";
ffmpeg -i "${FILE}" -vn -ab 128k -ar 44100 -y "${FILE%.webm}.mp3";
done;
# find . -type f -iname "*.webm" -exec bash -c 'FILE="$1"; ffmpeg -i "${FILE}" -vn -ab 128k -ar 44100 -y "${FILE%.webm}.mp3";' _ '{}' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment