Skip to content

Instantly share code, notes, and snippets.

@phx
Created June 21, 2013 04:55
Show Gist options
  • Save phx/5828942 to your computer and use it in GitHub Desktop.
Save phx/5828942 to your computer and use it in GitHub Desktop.
(for use with jailbroken iphones): this is one of those things that may sound like a scenic route to most people who have "an app for that," but for command line ninjas, this is must-have knowledge. this one-liner will dump an mp3 file to wav, then convert the wav to m4r, which can be easily copied over to the iphone's file system via scp/sftp/etc.
#!/bin/bash
mplayer -vo null -vc null -ao pcm:fast:file=file.wav file.mp3; faac -b 128 -c 44100 -w file.wav
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment