Skip to content

Instantly share code, notes, and snippets.

@oboje
Created March 17, 2016 11:25
Show Gist options
  • Save oboje/4a972475f006bae75cc2 to your computer and use it in GitHub Desktop.
Save oboje/4a972475f006bae75cc2 to your computer and use it in GitHub Desktop.
Create iPhone ringtone from mp3 using ffmpeg
brew reinstall ffmpeg --with-faac # Needs ffmpeg with faac encoder
ffmpeg -i <input.mp3> -ac 1 -ab 128000 -f mp4 -acodec libfaac -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