keepcalculator

06 Numbers and Powers

Convert AVI to iTunes Mac: 3 Ways That Work

Card No. 06·13093 · Updated · Standard formula, shown below

To play an AVI file in iTunes on a Mac, you must first convert it to a format iTunes natively supports, such as MP4 (H.264) or MOV. You can do this using the built-in QuickTime Player, the free HandBrake app, or the command-line tool ffmpeg. This article walks through each method step by step, explains why AVI files often fail to play, and answers common questions about the process.

Why AVI Files Don’t Play in iTunes

iTunes (and the modern Music app on macOS Catalina and later) relies on QuickTime for video playback. QuickTime supports a limited set of container formats and codecs. AVI is a container format from 1992 that can hold video compressed with many different codecs—most commonly DivX, Xvid, or MPEG-4 Part 2. QuickTime does not include decoders for these codecs, so iTunes either refuses the file or plays it without sound (if the audio track uses a codec like MP3 or AC3 that QuickTime partially supports).

Converting the AVI to MP4 (H.264 video + AAC audio) solves both problems: H.264 is hardware-accelerated on every modern Mac, and AAC is the standard audio codec for Apple devices. The resulting file will also be much smaller than the original AVI in most cases, because H.264 compresses more efficiently than older codecs.

Method 1: QuickTime Player (Built-In, No Install)

QuickTime Player on macOS can open many AVI files and export them as MP4. This is the fastest option if your AVI uses a codec QuickTime can decode (e.g., MJPEG, some MPEG-4 variants). However, it will fail on DivX/Xvid files.

  1. Open the AVI file in QuickTime Player (File > Open File).
  2. If the video plays, go to File > Export As > 1080p, 720p, or 480p (choose based on your source resolution).
  3. Name the file and choose a destination. QuickTime will create an .mp4 file with H.264 video and AAC audio.
  4. If you get an error like “The document could not be opened,� the codec is unsupported—use HandBrake instead.

Note: QuickTime’s export re-encodes the video, so the quality will be slightly lower than the original. For archival quality, use HandBrake with a high bitrate or a lossless setting.

Method 2: HandBrake (Free, Handles All Codecs)

HandBrake is a free, open-source video transcoder that supports virtually all AVI codecs. It runs on macOS and produces high-quality MP4 files. Here’s how to use it:

  1. Download HandBrake from the official website (handbrake.fr) and install it.
  2. Open HandBrake and click “Open Source� to select your AVI file.
  3. Under “Presets,� choose “Fast 1080p30� (or “Very Fast 720p30� for older Macs). This preset uses H.264 video and AAC audio, which iTunes plays perfectly.
  4. Click “Start Encode.� The time depends on your Mac’s CPU and the video length—a 90-minute movie can take 10–30 minutes.
  5. Once done, the MP4 file appears in your chosen output folder. Drag it into iTunes or the Music app and it will sync to your iPhone, iPad, or Apple TV.

HandBrake also lets you tweak settings like resolution, frame rate, and quality. For best quality, set the “Quality� slider to RF 18–20 (lower = better). For smaller files, use RF 23–25.

Method 3: ffmpeg (Command Line, Power Users)

If you’re comfortable with Terminal, ffmpeg is a lightweight, scriptable tool that gives you full control. Install it via Homebrew (brew install ffmpeg) or download a static build. Then run:

ffmpeg -i input.avi -c:v libx264 -preset medium -crf 20 -c:a aac -b:a 128k output.mp4

This command converts the video to H.264 with quality factor 20 and audio to AAC at 128 kbps. Adjust -crf (lower = better quality, larger file) and -preset (slower = better compression) as needed.

ffmpeg is especially useful when you have many files to convert—you can write a loop to process them all. For example:

for f in *.avi; do ffmpeg -i "$f" -c:v libx264 -crf 20 -c:a aac "${f%.avi}.mp4"; done

How to Choose the Right Conversion Settings

The best settings depend on your playback device and storage space. Here are the key factors:

  • Container: MP4 (.mp4) is the safest choice for iTunes. MOV also works, but MP4 is more universal.
  • Video codec: H.264 (also called AVC) is supported by every Apple device. H.265 (HEVC) is newer and more efficient, but only supported on Macs from 2017 or later and iOS 11+.
  • Resolution: Keep the original resolution unless you need to save space. Upscaling never improves quality.
  • Frame rate: Match the source. Most AVI files are 24, 25, or 30 fps. HandBrake’s presets handle this automatically.
  • Audio: AAC at 128–192 kbps is the standard. If the AVI has AC3 audio, converting to AAC avoids compatibility issues.

For a quick reference, the table below summarizes common scenarios:

Source Recommended Output
Old TV rip (DivX, 640×480) MP4, H.264, 480p, RF 20
DVD rip (Xvid, 720×480) MP4, H.264, 720p, RF 18
HD camcorder (AVI, 1080p) MP4, H.264, 1080p, RF 18

Common Problems and Fixes

Even with the right tools, you might hit issues. Here are the most frequent ones:

  • “The document could not be openedâ€� in QuickTime: The AVI uses a codec QuickTime doesn’t support. Use HandBrake or ffmpeg.
  • Video plays but no sound: The audio codec (e.g., AC3) isn’t supported. Re-encode with AAC using HandBrake or ffmpeg.
  • Converted file is huge: Increase the RF value (e.g., from 18 to 22) or lower the resolution.
  • File won’t sync to iPhone: Make sure the file is MP4 or MOV and that “Sync Moviesâ€� is enabled in Finder (macOS Catalina+) or iTunes.
  • Subtitles missing: HandBrake can burn subtitles into the video if you select them in the “Subtitlesâ€� tab. ffmpeg can do it with the -c:s mov_text option.

Alternatives to Converting

If you don’t want to convert, you can use a media player that plays AVI directly, such as VLC, IINA, or MPV. These apps bundle their own codecs and can play almost any AVI without conversion. However, they don’t integrate with iTunes or the Music app, so you won’t be able to sync videos to your iPhone via Apple’s ecosystem. Another option is to stream the AVI to your Apple TV using a third-party app like Infuse, which plays AVI over the network without converting.

If you only need to watch the video once, streaming is faster than converting. But if you want a permanent library that works across all Apple devices, conversion is the better long-term solution.

Frequently Asked Questions

Is it legal to convert AVI to MP4?

Yes, converting a video you own for personal use is legal in most jurisdictions. It becomes problematic only if you distribute the converted file without permission from the copyright holder.

Will converting reduce video quality?

Any re-encoding reduces quality slightly, but with a high bitrate (low RF), the difference is invisible to the human eye. If you want zero quality loss, you can remux the AVI into an MP4 container without re-encoding using ffmpeg’s -c copy option—but this only works if the codecs are already compatible (rare for AVI).

How long does conversion take?

It depends on your Mac’s CPU and the video length. A 2-hour movie on a modern Mac with HandBrake takes about 15–30 minutes. On an older Mac, it could take over an hour.

Can I convert AVI to iTunes on Windows?

Yes, the same tools (HandBrake, ffmpeg) work on Windows. The resulting MP4 file can be added to iTunes on Windows or transferred to a Mac via AirDrop or a USB drive.

What if my AVI is corrupted or won’t open?

Try opening it in VLC first—VLC is more tolerant of damaged files. If VLC plays it, you can use VLC’s “Convert/Save� feature to export it as MP4. If VLC also fails, the file may be beyond repair.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →