Skip to content

Instantly share code, notes, and snippets.

@rewinfrey
Created December 31, 2012 18:11
Show Gist options
  • Select an option

  • Save rewinfrey/4421712 to your computer and use it in GitHub Desktop.

Select an option

Save rewinfrey/4421712 to your computer and use it in GitHub Desktop.
Audio file conversion for Josh (m4a to mp3)
First, we need FFMpeg's binary (put binary where it can be found in the load path):
http://ffmpegmac.net/
Next, in order to encode a file as mp3, we need Lame (currently tested with 3.99.5):
http://sourceforge.net/projects/lame/files/lame/3.99/
Untar the library:
$ tar -zxvf { file_name }
Run Lame's configure script (using the default configuration for this is fine):
$ ./configure
Then run make
$ make
Then install
$ make install
Now Lame and FFMeg binaries are installed, let's convert an m4a file to an mp3 file:
ffmpeg -i {file.m4a} -acodec libmp3lame -ab 160k {file.mp3}
And that's it. ^_____________________^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment