Your Xvid Files Won't Play on Modern Devices? Convert Them to MP4 Free

Drop an old Xvid AVI on a 2026 iPhone, a modern smart TV, or a web browser, and nothing happens. The codec is over twenty years old. The container is older. Your files are fine - the world just moved on.
 

Glitched CRT monitor showing a corrupted Xvid AVI video frame with diagnostic and repair tool icons floating beside it

Here's how to convert your Xvid library to MP4 in minutes. Free, no quality loss, no online uploads required, no watermarks.

Four methods, ranked from easiest to most powerful.

If you're not sure whether converting is even worth the effort, jump to the last section first. Some files genuinely don't need it.

TL;DR

Use HandBrake for one-off conversions with maximum quality. Use XMedia Recode for fast batch jobs. Use FFmpeg if you want a single command that handles a whole folder. Use VLC only if you already have it open and don't want to install anything else.

Why Convert Xvid to MP4 in 2026

Xvid (and the AVI container that usually wraps it) was built for a different era. A 2003 era, specifically.

Modern hardware doesn't decode it natively, modern software treats it as a compatibility problem, and modern browsers won't touch it.

Three reasons people actually convert in 2026:

  • Device playback. iPhones, iPads, most smart TVs, Chromecast, Roku, web browsers, and modern game consoles either won't play Xvid AVI files or stutter through them.
  • Storage. H.264 and H.265 produce noticeably smaller files at the same visible quality. A 700 MB Xvid AVI typically becomes a 350 MB H.264 MP4 with no quality loss anyone can see.
  • Modern features. MP4 supports clean chapter markers, embedded subtitle tracks, multiple audio tracks, and metadata that AVI handles poorly or not at all.

If your Xvid files play fine on your current setup and storage isn't tight, you can skip this entirely. We'll come back to that.

Method 1: HandBrake (Best for Most People)

HandBrake is the default answer. It's free, open source, available on Windows, Mac, and Linux, and it produces excellent quality output without any setup.

It's also the slowest of the four methods. That's fine for one or two files, less fine for hundreds.

  1. Download and install HandBrake.
  2. Open HandBrake and drag your Xvid AVI file onto the window.
  3. On the right, under "Presets," pick Fast 1080p30. For older content recorded at 480p or 576p, Fast 480p30 works fine and is faster.
  4. Under the "Summary" tab, confirm the format is MP4.
  5. Click "Browse" at the bottom and choose where to save the output file.
  6. Click Start Encode at the top.

Conversion speed depends on your CPU and the source file. Expect roughly real-time speed on a modern machine - a 90-minute file takes around 90 minutes.

For better quality at the cost of slightly larger files, switch to the "Video" tab and lower the Constant Quality RF value. The default is 22. RF 18-20 is visually indistinguishable from the source.
 

Xmedia Recode GUI

Method 2: XMedia Recode (Faster Batch Conversion)

If you have more than a handful of files, XMedia Recode is significantly faster than HandBrake on the same hardware. User benchmarks on codecs.com show roughly half the encode time on identical files.

It's Windows-only, but the interface is straightforward.

  1. Download and install XMedia Recode.
  2. Click Open File and add one or many Xvid AVI files at once.
  3. In the format dropdown, pick MP4 as the container and H.264 (x264) as the video codec.
  4. Set audio to AAC at 192 kbps for stereo content. Leave it untouched if you want to keep the original audio (more on that in Method 3).
  5. Click Add to Queue for each file you want batched.
  6. Click Encode to run the whole queue.

XMedia Recode also includes a passthrough/remux option, which lets you change the container without re-encoding the video.

That's not useful for Xvid → MP4 specifically (Xvid video can't legally live inside MP4), but it's handy if you later want to convert MP4 to MKV or vice versa.
 

Decision crossroads illustration showing two paths from an Xvid AVI file - one leading to repair tools, one to a clean MP4 file

Method 3: FFmpeg (One Command, Whole Library)

FFmpeg is what HandBrake and XMedia Recode use under the hood. Skipping the GUI and using FFmpeg directly is faster, scriptable, and gives you full control.

The downside: it's a command-line tool. If that's not your thing, stick with the first two methods.

Download FFmpeg and add the bin folder to your system PATH. Then open a terminal in the folder containing your Xvid files.

Single file, balanced quality:

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

The CRF value controls quality. Lower numbers mean higher quality and bigger files. The sweet spot for Xvid sources is CRF 20-23.

Keep the original audio (no re-encode, instant):

ffmpeg -i input.avi -c:v libx264 -crf 22 -c:a copy output.mp4

This works if the original audio is MP3 or AAC, which most Xvid AVIs are. It saves time and avoids any audio quality loss.

Batch convert an entire folder (Windows PowerShell):

Get-ChildItem *.avi | ForEach-Object { ffmpeg -i $_.Name -c:v libx264 -crf 22 -c:a aac -b:a 192k "$($_.BaseName).mp4" }

Batch convert (Mac/Linux bash):

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

Either snippet processes every AVI file in the current folder and produces matching MP4 outputs. Run it before bed and your library is converted by morning.

Method 4: VLC Media Player (Quick One-Off Jobs)

VLC has a built-in converter most people never find. It's not as good as the dedicated tools above, but it's already installed on millions of machines and works in a pinch.

Open VLC, go to Media → Convert / Save, add your Xvid file, choose the Video - H.264 + MP3 (MP4) profile, and click Start.

VLC's progress bar acts as a silent indicator - the video won't play during conversion. That's normal.

For the full walkthrough including audio extraction and quality tweaks, see the dedicated guide on converting audio and video files with VLC.

Best Settings for Quality and Compatibility

Most people get this wrong by either over-compressing (visible quality loss) or wildly over-shooting (huge files for no benefit). The right settings for Xvid sources are conservative.

  • Container: MP4 for universal playback. MKV if you need multiple subtitle tracks or chapter markers.
  • Video codec: H.264 (libx264) for universal compatibility. H.265 (libx265) only if every device you'll play it on supports HEVC - smaller files, but iPhones older than the XS, older smart TVs, and most browsers will struggle.
  • Quality: CRF 20-23 for HandBrake or FFmpeg. Below 18 is wasted bits; above 24 starts showing artifacts on Xvid sources.
  • Audio: AAC at 192 kbps stereo, or "copy" the original if it's already MP3/AAC.
  • Resolution: Don't upscale. Old Xvid content was usually mastered at 480p or 576p. Outputting at 1080p just makes the file bigger without adding any actual detail.
Quality reality check

You cannot improve on the original. Conversion preserves what's there or loses some of it. If your Xvid file looks soft, the MP4 will look equally soft.

AI upscalers like Topaz Video AI can genuinely add detail, but that's a separate workflow that runs before conversion.  



Before-and-after comparison showing an Xvid video with green and pink color distortion next to the same frame playing correctly

Common Problems and Quick Fixes

"There's no audio after conversion"
The original AVI probably uses an unusual audio codec. Re-run with -c:a aac -b:a 192k in FFmpeg, or switch to the AAC profile in HandBrake or XMedia Recode.

"The output looks blurrier than the original"
Your CRF is too high. Drop it by 4-5 (e.g. from 26 down to 21) and re-encode. Hardware encoders (NVENC, QuickSync) also produce slightly softer output than software x264 - use software unless you're converting hundreds of files and need the speed.

"My iPhone or Apple TV still won't play the MP4"
Lock H.264 to Profile High, Level 4.0, and pair it with AAC audio in an MP4 container. HandBrake's "Apple 1080p30 Surround" preset does this automatically.

"Conversion is painfully slow"
HandBrake has hardware encoding under Video → Video Encoder. NVIDIA NVENC, Intel QuickSync, or AMD VCE will speed up encoding 5-10x with a small quality cost. For archive-quality work, stick with software x264.

"FFmpeg says 'codec not currently supported in container'"
You probably tried to keep the original Xvid video stream (-c:v copy) inside an MP4 container. MP4 doesn't legally hold MPEG-4 ASP video. Re-encode with libx264 instead.

When You Shouldn't Convert at All

Not every Xvid file needs to become an MP4. Three situations where converting is wasted effort:

  • The files play fine where you watch them. If your media setup is a Windows PC running VLC or a Kodi box on your TV, both handle Xvid AVI natively. Conversion adds nothing.
  • Storage isn't tight. A 4 TB drive holds thousands of Xvid AVI files. Re-encoding to save space only matters when space is actually scarce.
  • The content isn't worth the time. Old home videos that you watch once a year don't justify hours of transcoding. Just install the Xvid codec on whatever device you're using and move on.

For a deeper look at where Xvid still belongs in 2026 (and where it doesn't), see this 2026 relevance breakdown.

Frequently Asked Questions

Will I lose quality converting Xvid to MP4?
Re-encoding always loses some quality, but at CRF 20-22 the loss is invisible to human eyes. If you copy the audio stream (-c:a copy), audio loses zero quality.

Can I convert Xvid to MP4 online without installing anything?
Yes, but file size limits and upload times make online converters impractical for anything over 1 GB or for batch jobs. Local tools like HandBrake or FFmpeg are faster and don't expose your files to third-party servers.

Should I use MP4 or MKV?
MP4 if you want universal playback (phones, TVs, browsers, consoles). MKV if you need multiple subtitle tracks, multiple audio languages, or chapter markers.

What's the difference between H.264 and H.265?
H.265 (HEVC) produces smaller files at the same quality but isn't supported everywhere. For Xvid conversions in 2026, H.264 is the safer default unless you know every playback device handles HEVC.

Can I convert Xvid AVI directly to MP4 without re-encoding?
No. Xvid is MPEG-4 Part 2 (ASP), and the MP4 container doesn't support that codec. The video stream has to be re-encoded to H.264 or H.265. Audio can be copied without re-encoding if it's already MP3 or AAC.

How long does conversion take?
Roughly real-time with software encoding (a 90-minute file takes ~90 minutes). Hardware encoding cuts that to 10-20 minutes. Batch jobs run overnight.

LATEST REVIEWS (0)
Be the First to Write a COMMENT!
Verification Code
Click the image or refresh button to get a new code.
Quick heads up: Reviews & comments get a fast check before posting - no spam allowed.