Created
April 5, 2014 07:44
-
-
Save yannickwurm/9988636 to your computer and use it in GitHub Desktop.
Create iPhone ringtones from directory of mp3s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir converted | |
find . -regex .*mp3 | ruby -pe 'gsub(".mp3", "")' | xargs -I __ ffmpeg -i __.mp3 -ss 0 -t 30 -ac 1 -ab 256000 -f mp4 -acodec libfaac -y __.m4r | |
#important: limit to 30 seconds otherwise iTunes won't transfer it to iphone. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment