Skip to content

Instantly share code, notes, and snippets.

@seltzered
Forked from oboje/iPhone_ringtone.sh
Last active October 16, 2017 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seltzered/29f72fe182f5e26502acd6a0a89b64a2 to your computer and use it in GitHub Desktop.
Save seltzered/29f72fe182f5e26502acd6a0a89b64a2 to your computer and use it in GitHub Desktop.
Create iPhone ringtone from mp3 using ffmpeg
brew reinstall ffmpeg --with-fdk-aac # Needs ffmpeg with faac encoder
ffmpeg -i <input.mp3> -ac 1 -ab 128000 -f mp4 -acodec libfdk_aac -y -ss <beggining_second> -t <length_in_seconds> ringtone.m4r # Length can't be higher than 40 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment