Skip to content

Instantly share code, notes, and snippets.

@Ickerday
Forked from oboje/iPhone_ringtone.sh
Last active March 24, 2024 14:30
Show Gist options
  • Save Ickerday/93dfba6f2023af1a0eec7ebb1db0f2c4 to your computer and use it in GitHub Desktop.
Save Ickerday/93dfba6f2023af1a0eec7ebb1db0f2c4 to your computer and use it in GitHub Desktop.
Create iPhone ringtone from any music format using ffmpeg
$ brew install ffmpeg
$ ffmpeg -i <input.*> -ac 1 -ab 128000 -f mp4 -acodec aac -y -ss <beggining_second> -t <length_in_seconds> output.m4r # Length can't be higher than 30 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment