Skip to content

Instantly share code, notes, and snippets.

@dkam
Created April 26, 2024 06:31
Show Gist options
  • Save dkam/78695d2272ed3f835f984148b0e7cff4 to your computer and use it in GitHub Desktop.
Save dkam/78695d2272ed3f835f984148b0e7cff4 to your computer and use it in GitHub Desktop.
Create iOS ringtone from mp3
ffmpeg -i input.mp3 -c:a aac -b:a 192k -vn output.m4a && mv output.m4a output.m4r
# -i input.mp4: Specifies the input video file (replace with your input file path).
# -vn: Tells FFmpeg to ignore the video stream.
# -c:a aac: Sets the audio codec to AAC.
# -b:a 192k: Sets the audio bitrate to 192 kbps (adjust as needed).
# output.m4a: Specifies the output M4A file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment