Xvid to M4R: Turn a Clip's Audio into an iPhone Ringtone
Xvid is the open-source MPEG-4 Part 2 video codec, a project that began in 2001 and became the codec behind a decade of AVI movie and TV rips. Xvid only encodes picture; the sound beside it is a separate track, usually MP3 or AC-3 (Dolby Digital), occasionally uncompressed PCM. This page reads that track, discards the video, and re-encodes the part you pick as AAC in an .m4r file, the extension an iPhone recognises as a ringtone. M4R and M4A are the same AAC-in-MPEG-4 file; only the extension, and what iOS does with it, differ.
Because Apple says ringtones can be up to 30 seconds long, the most important control on this page is Trim, not bitrate.
How to Convert Xvid to M4R
- Upload Your Xvid File: Drag the
.xvidfile onto the page or click "+ Add Files"; batches are fine. Most Xvid video is saved as.avior.mkv, and for those AVI to M4R or MKV to M4R is the right page. - Cut the 30 Seconds with Trim: Turn Trim on and set a Start time and a Duration, either in plain seconds such as
95.5or asHH:MM:SS.sss. Under Duration the page reminds you to stay at 30 seconds or less. - Pick File Compression, Channel and Sample Rate: Constant Bitrate offers 8 to 384 kbps; Custom Bitrate takes any figure; Variable Bitrate has five AAC bands from 20k-32k to 96k-112k; Specific file size works backwards from a target. Quality Preset is the hands-off mode. Audio Codec stays AAC. Use Audio Channel to fold an AC-3 5.1 track to Stereo.
- Convert and Download: Click Convert and save the
.m4r. Your file is uploaded over HTTPS, processed on our servers and deleted automatically after a few hours. No sign-up, no watermark.
Xvid Video vs M4R
| Property | Xvid video (source) | M4R (output) |
|---|---|---|
| Video codec | MPEG-4 Part 2 Advanced Simple Profile | None |
| Audio | MP3 (constant or variable bitrate), AC-3, sometimes PCM | AAC-LC |
| Container | Usually AVI; sometimes MKV | MPEG-4, extension .m4r |
| Licence | Xvid is GPL open source | AAC is an MPEG standard; .m4r is Apple's ringtone extension |
| Length | Full episode or film | 30 seconds or less |
| Use | Watching on a PC or a DivX/Xvid-capable player | iPhone ringtone or text tone |
Choosing the Clip
A ringtone works best when it starts on the sound, not before it. Some practical starting points:
| You want | Where to look | Trim idea | Settings |
|---|---|---|---|
| A theme song | Opening or closing credits | Start on the first beat, Duration 30 | Constant Bitrate 160-192 kbps, Stereo |
| A line of dialogue | The scene's timestamp in your player | Start half a second early, Duration 5-10 | 96 kbps, Mono |
| A sound effect | Any scene | A Duration of a few seconds | 128 kbps |
| A score cue | Under a quiet scene | Pick a passage with no dialogue over it | 192 kbps, Stereo |
At 192 kbps a 30-second tone is about 720 KB; at 96 kbps a 10-second line is about 120 KB (bitrate × seconds ÷ 8 = kilobytes).
From Download to Ringing
On a Mac with macOS Catalina or later, connect the iPhone and drag the .m4r onto it in the Finder sidebar; on Windows use iTunes. The tone then shows up under Settings > Sounds & Haptics > Ringtone. To assign it to one caller, go to Contacts, choose the person, tap Edit and pick it under Ringtone or Text Tone. Or save it to Files, import it into GarageBand on the iPhone, and use Share > Ringtone.
Making a Film Clip Work as a Ringtone
Movie and TV soundtracks are mixed for a living room, not a phone speaker, and that changes which 30 seconds make a good tone:
- Pick a loud passage. Film mixes have wide dynamics, so quiet dialogue can be hard to hear when the phone rings in a bag. A theme over the titles or a big score cue carries far better than a whispered line.
- Start right on the sound. Any lead-in silence becomes a pause before your phone appears to ring. Set the Start time a fraction of a second before the first note or word, not at the start of the scene.
- End on a natural break. Finish at the end of a phrase or bar rather than mid-word; the tone will sound deliberate instead of cut off.
- Avoid dialogue over music if you want the theme alone, and music under dialogue if you want the line alone. Scenes where both compete rarely work at phone volume.
Frequently Asked Questions
Can't I just rename an M4A to .m4r?
Often that works, because M4A and M4R are the same AAC-in-MPEG-4 file. What renaming does not do is shorten it: a full-length track still runs past Apple's 30-second guidance. Converting here trims and encodes in one step. If you already have an M4A, M4A to M4R does the same trimming.
How long should the ringtone be?
30 seconds or less. Apple's support page says ringtones can be up to 30 seconds long, and the GarageBand for iPhone guide gives 30 seconds as the maximum for exported ringtones. The 40-second figure found in older guides is from the iTunes era and is not in Apple's current documentation.
My Xvid rip's audio is MP3. Is the M4R a lossless copy?
No. MP3 to AAC is a re-encode, one more lossy generation. At a bitrate equal to or above the MP3's, the difference is very hard to hear through a phone, but nothing can make the ringtone better than the rip.
What happens to an AC-3 5.1 track?
With Audio Channel on Original, the source channel layout is carried over. For a ringtone, set Stereo, and the six channels are mixed down to an ordinary two-channel file that suits a phone.
Will it work for Android?
Android does not need M4R; it takes MP3 or OGG ringtones. Use Xvid to MP3 with the same Trim settings.
Why is the M4R so much smaller than the Xvid file?
Because the video, which is nearly all of an Xvid file's size, is dropped, and a ringtone is at most 30 seconds of AAC: about 480 KB at 128 kbps.
Is my file private?
It is uploaded over TLS, processed on our servers and deleted automatically after a few hours. It is never shared or made public.