oldjamey
6/21/2013 - 4:55 AM

(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,

(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