AVI to MP4 for old Xvid, DivX and camera videos

Converting AVI to MP4 usually means encoding the picture again, since MP4 players don't expect Xvid or DivX. What decides it, and the free ways to do it.

On this page
  1. What’s inside your AVI
  2. Convert AVI to MP4 with Vidray
  3. Will the MP4 be smaller than the AVI?
  4. Free ways to convert AVI to MP4
  5. AVI to MP4 with FFmpeg
  6. Why are there lines on moving things after converting?
  7. Match the method to your files
  8. Common questions

An AVI file from the 2000s usually holds Xvid or DivX video, which MP4 players don’t expect, so converting AVI to MP4 means encoding the picture again as H.264. That happens once, at a high quality setting, and the sound can often come along untouched. Only an AVI that already holds H.264 goes across frame for frame.

What’s inside your AVI

AVI is a container: a box Microsoft defined in 1992 for a picture and its sound. The box says little about the video, because almost any codec fits in it. What’s inside decides what an MP4 can take:

Inside the AVI Usually from In the MP4
Xvid or DivX video Videos made and passed around on PCs in the 2000s Encoded again as H.264
Motion JPEG video The movie mode of older digital cameras Encoded again as H.264
DV video DV camcorder tapes copied to a computer Encoded again as H.264
H.264 video Later cameras, screen recorders, other converters Copied as it is
MP3 or AC-3 sound Xvid and DivX files Copied as it is
PCM sound (uncompressed) Cameras and DV Converted to AAC

Xvid and DivX are two encoders for the same codec, MPEG-4 Part 2. The Library of Congress, which documents formats for its archive, says H.264 “provides better quality at the same data rate, or equal quality at a lower data rate” (MPEG-4 Part 2). So encoding an Xvid file as H.264 isn’t a step down in format. The cost is one more generation of compression, which is why the setting matters.

Motion JPEG and DV are camera formats. Motion JPEG stores “an image of each frame” as its own JPEG picture (Library of Congress), and DV “does not use frame-to-frame temporal encoding” (Library of Congress). Neither compares one frame with the next, the trick that keeps H.264 small. Video file formats explained covers containers and codecs in more depth.

Convert AVI to MP4 with Vidray

Vidray is a video compressor and converter for Windows and Mac that works on your own computer. Its Convert tool copies what MP4 can take and encodes only what it can’t, so you don’t need to know which codec your AVI holds.

  1. Open Vidray and choose Convert.
  2. Pick MP4.
  3. Drop the AVI in, or a whole folder of them. You can also right-click a file: Vidray, then Convert in File Explorer on Windows, or the Quick Action on a Mac.

H.264 video is copied, and its row says “No re-encoding”. Anything else is encoded as H.264 at the same size in pixels, on your graphics card when it can. Convert encodes at a fixed high quality setting, not to a size. We haven’t measured an AVI with it, but on a 1.38 GB ProRes file that setting made a 51.9 MB MP4 that scored 98.3 on VMAF, a picture-quality score from 0 to 100, against the original, on our test PC (MOV to MP4).

The sound follows the table above: MP3, AC-3 and AAC are copied, and anything else becomes AAC at 192 kbit/s. If the file marks its video as interlaced, Vidray turns the fields into whole frames first, at the same frame rate.

Vidray never overwrites a video. The new file goes beside it, or into a folder you choose in Settings. Free does all of this, 10 videos a month, with no watermark. Pro makes as many as you like, with no monthly limit. $24.99, once.

Will the MP4 be smaller than the AVI?

It depends on what’s inside, and Convert doesn’t aim for a size: it keeps the quality and lets the size follow. Camera AVIs usually shrink the most, because they start big. DV’s picture alone runs at 25 megabits a second (the Library of Congress cites the standard as “Video Compression at 25 Mb/s”), which is about 11 GB an hour before the sound. Motion JPEG files are large for the same reason: every frame is a whole picture.

Xvid and DivX files are usually compressed hard already. An H.264 copy at a high quality setting can come out close to the AVI’s size, or even larger.

When the MP4 has to fit somewhere, convert and compress in one step instead. In Vidray, choose Compress and “Fit a size”: you type the number, and it makes an H.264 MP4 that lands under it, usually on the first try (compress a video to a specific size).

Free ways to convert AVI to MP4

All of these re-encode Xvid, DivX, Motion JPEG and DV, as Vidray does. They differ in what they ask of you.

VLC

VLC is a free player for Windows and Mac that also converts. Its documentation gives the steps: Media, Convert/Save, Add, choose the file and Open, type a name in Destination file, pick a profile, then Start (VLC documentation, checked on 18 Nov 2026). The “Video - H.264 + MP3 (MP4)” profile does the job. To change its settings, or to copy an H.264 AVI instead, click “Edit selected profile” next to it (VLC 3.0.21).

HandBrake

HandBrake is free and open source, for Windows, Mac and Linux, and makes MP4, MKV and WebM files. Its quick start: Open Source, keep the default preset, Fast 1080p30, set Save As, then Start (HandBrake documentation, checked on 18 Nov 2026). It has a free queue for many files, and it always encodes the video, which for an AVI is what you want anyway. HandBrake’s quality is a number called RF: its guide suggests 18-22 for standard-definition video, and “a lower RF number produces higher quality video” (HandBrake documentation).

Clipchamp on Windows 11

Clipchamp, the video editor that comes with Windows 11, opens AVI: Microsoft lists it among the files the editor “will accept”, and says some types are “automatically converted before they can be used in your project” (Microsoft Support). Add the AVI, drag it onto the timeline, click Export and pick a resolution. You get “an MPEG-4 (.mp4) video file with a frame rate of 30fps”, with 480p, 720p and 1080p on the free plan (Microsoft Support). A 25 fps PAL video comes out at 30 fps. Both checked on 18 Nov 2026.

Online converters

An online converter needs nothing installed, but the AVI is uploaded first. FreeConvert’s AVI to MP4 page shows “Max file size 1GB”, says files are “automatically deleted after 8 hours”, and has a “Copy” choice for the video codec that “reuses the video as-is” when the format allows it (FreeConvert). Free use is limited to 5 conversion minutes per file and 20 a day; the Basic plan is $12.99 a month for files up to 1.5 GB (FreeConvert pricing). Both checked on 18 Nov 2026. A long DV or Motion JPEG file is often over 1 GB.

Copies H.264 AVIs Quality setting File stays on your computer Price
Vidray Yes Set for you Yes Free, 10 videos a month; Pro $24.99 once
FFmpeg Yes, with -c:v copy CRF number Yes Free
HandBrake No, always encodes RF number Yes Free, with a queue
VLC Only by editing the profile In the profile Yes Free
Clipchamp No, exports at 30 fps Resolution only Yes Free up to 1080p
FreeConvert Yes, with “Copy” as the video codec Not stated No, uploaded Free up to 1 GB; paid from $12.99 a month

Checked on 18 Nov 2026 on each tool’s own documentation and pricing pages.

AVI to MP4 with FFmpeg

FFmpeg is free and runs on Windows, Mac and Linux from the command line. First see what’s inside the AVI:

ffprobe -v error -show_entries stream=codec_name,codec_type -of compact=p=0 input.avi

mpeg4 is Xvid or DivX, mjpeg is Motion JPEG, dvvideo is DV, and h264 can be copied. For everything but h264, this encodes the picture as H.264 and the sound as AAC:

ffmpeg -i input.avi -c:v libx264 -crf 20 -pix_fmt yuv420p -c:a aac -b:a 192k -movflags +faststart output.mp4

-crf 20 sits inside HandBrake’s suggested range for this kind of video; lower is better and bigger. -pix_fmt yuv420p matters for Motion JPEG: without it, our test file came out in H.264’s High 4:2:2 profile, made for professional work, instead of the usual High profile. -movflags +faststart puts the index at the start, so a web page can play the file before it has fully arrived.

If ffprobe says h264, copy the picture and convert only the sound:

ffmpeg -i input.avi -c:v copy -c:a aac -b:a 192k -movflags +faststart output.mp4

On our H.264 test AVI, all 300 frames of the MP4 decoded identical to the AVI’s.

DV and other interlaced video needs its fields joined into frames. FFmpeg’s bwdif filter does it, and mode=send_frame gives “one frame for each frame”, so 50 fields a second become 25 frames (FFmpeg filters):

ffmpeg -i input.avi -vf bwdif=mode=send_frame -c:v libx264 -crf 20 -pix_fmt yuv420p -c:a aac -b:a 192k -movflags +faststart output.mp4

All four commands ran as written in FFmpeg 7.0.2 on 18 Nov 2026, on test AVIs with Xvid, Motion JPEG, DV and H.264 video.

Why are there lines on moving things after converting?

Because the video is interlaced and nothing joined its fields. DV camcorders record half-pictures called fields, every other line in turn, and the two halves of a frame are taken a fiftieth or a sixtieth of a second apart. Shown together on a computer screen, they leave thin horizontal lines along every edge that moves.

A converter can only fix what it knows about. Vidray deinterlaces when the file says its video is interlaced; some older AVIs don’t say. If the lines are still there, run the FFmpeg command with bwdif above, or use HandBrake’s deinterlace filter. MTS to MP4 shows the same problem in camcorder files from later years.

Match the method to your files

  • “A folder of old Xvid and DivX files.” Vidray takes the folder in one drop: Free makes 10 videos a month, Pro has no limit. HandBrake’s queue is free and asks you to pick a preset.
  • “Movie clips from an old digital camera.” Convert to MP4 and expect a much smaller file. Keep the AVIs until you’ve watched a few of the MP4s.
  • “DV tapes I copied to the computer years ago.” Convert, then look at a scene with movement. If you see lines, use FFmpeg with bwdif.
  • “One small file and no way to install anything.” An online converter, if it’s under its size limit and you’re fine uploading it.
  • “It has to fit in an email or a chat.” Skip Convert and use Compress with “Fit a size”.

An old AVI is worth converting once, carefully, and keeping both until you’re sure: an MP4 plays on phones, TVs and in every browser, and the AVI may not. To do the whole folder at once, download Vidray for Windows or Mac.

Common questions

Does converting AVI to MP4 lose quality?

A little, when the picture is encoded again, which Xvid, DivX, Motion JPEG and DV always need. Each encode adds one more generation of compression, so encode once at a high quality setting and keep the AVI. Only an AVI that already holds H.264 can be copied into an MP4 with no loss.

Why is my AVI file so big?

Usually because it came from a camera. Motion JPEG stores every frame as a separate JPEG picture, and DV video runs at 25 megabits a second, about 11 GB an hour before the sound. Neither compares one frame with the next, which is how H.264 keeps files small.

Can VLC convert AVI to MP4?

Yes. In VLC, choose Media, Convert/Save, add the AVI, pick the Video - H.264 + MP3 (MP4) profile, name the destination file and click Start. VLC is free on Windows and Mac, and its profile can be edited to change the settings or to copy H.264 video.

Can HandBrake convert AVI to MP4?

Yes. Open the AVI as the source, keep the Fast 1080p30 preset, choose where to save and click Start. HandBrake always encodes the video again, which an Xvid or DivX AVI needs anyway, and its free queue handles many files in a row.

Is there an AVI to MP4 converter without a file size limit?

Yes. Desktop tools read the file on your own computer, so there’s no upload and no upload limit: Vidray, HandBrake, VLC and FFmpeg all work that way. Online converters cap what you can send; FreeConvert’s AVI to MP4 page shows a 1 GB maximum per file.