Skip to content

Instantly share code, notes, and snippets.

@chrisji
Created March 13, 2015 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisji/b48f41e591a836a90ebe to your computer and use it in GitHub Desktop.
Save chrisji/b48f41e591a836a90ebe to your computer and use it in GitHub Desktop.
Concatenate all m4a files in a directory. 192k bitrate. First argument is the output file name.
#!/bin/bash
for f in *.m4a; do ffmpeg -i "$f" -acodec mp3 -ac 2 -ab 192 "$f.mp3"; done
find . -name '*.mp3' -exec lame --decode '{}' - ';' | lame -b 192 - $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment