Skip to content

Instantly share code, notes, and snippets.

@zachattack
Last active May 3, 2016 16:55
Show Gist options
  • Save zachattack/12e6c9503418353d84d6317cdaaff8e9 to your computer and use it in GitHub Desktop.
Save zachattack/12e6c9503418353d84d6317cdaaff8e9 to your computer and use it in GitHub Desktop.
Easy FFMPEG Audio Converter Script
for a in *.audio ; do
f="${a[@]/%audio/mp3}"
ffmpeg -i "$a" -acodec libmp3lame -q:a 0 "$f"
done
@zachattack
Copy link
Author

zachattack commented May 3, 2016

Want to convert any audio format you have to high-quality mp3 for portability?

Simply follow these steps:

  1. install ffmpeg via brew brew install ffmpeg
  2. cd to the directory you would like to affect this change
  3. replace the audio with the file extension you are trying to change
  4. run the file eg: ~/Desktop/audio-converter.sh
  5. watch the magic happen
  6. enjoy smaller audio files with ease :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment