Skip to content

Instantly share code, notes, and snippets.

@GianpaMX
Created August 23, 2012 15:45
Show Gist options
  • Save GianpaMX/3437880 to your computer and use it in GitHub Desktop.
Save GianpaMX/3437880 to your computer and use it in GitHub Desktop.
m4a to mp3
for i in *.m4a; do mplayer -quiet -ao pcm:fast:waveheader:file=output.wav "$i" && lame --quiet -h -b 320 output.wav "$i.mp3" && mv "$i.mp3" "`echo "$i.mp3" | sed -e 's/m4a.mp3/mp3/'`" && rm output.wav && rm "$i"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment