AVI files are often the reason a video plays fine on an old Windows laptop but refuses to upload to a website, open on a phone, or attach to a message. After reading this, you’ll know how to convert AVI to MP4 for free, which settings to choose, how to avoid quality loss, and what to do if the sound goes missing or the file becomes too large.
Why AVI to MP4 conversion usually fixes playback and upload problems
AVI is a container format, not a single video format. That means an AVI file can hold many different video and audio codecs: DivX, Xvid, MJPEG, DV, PCM audio, MP3 audio, and others. This is why two AVI files can behave completely differently. One may open everywhere, while another may fail in your browser or upload tool.
MP4 is also a container, but the common MP4 combination is much more widely accepted: H.264 video with AAC audio. If your goal is sharing, uploading, emailing, or playing on phones, that combination is usually the safest choice.
A practical target for most conversions is:
The most common mistake is thinking “MP4” alone guarantees compatibility. It does not. An MP4 file encoded with an unusual video codec may still fail in some apps. For broad compatibility, choose H.264 + AAC inside MP4.
Method 1: Convert AVI to MP4 free with VLC
VLC is a good first choice if you want a free converter without many technical controls. It works on Windows, macOS, and Linux, and it handles many older AVI files that basic apps struggle with.
Steps in VLC
If VLC produces an MP4 with no audio, go back into the profile settings and check the audio tab. Make sure Audio is enabled. For best compatibility, choose AAC, sample rate 44100 Hz or 48000 Hz, and bitrate 128 kbps for speech or 160–192 kbps for music-heavy clips.
VLC is convenient, but it is not always the best tool for controlling file size. It may also fail silently with damaged AVI files. If the output file is zero bytes, has only audio, or looks distorted, use HandBrake or FFmpeg instead.
Method 2: Convert AVI to MP4 free with HandBrake
HandBrake is better than VLC when you want predictable quality and smaller MP4 files. It is especially useful for large AVI files from cameras, screen recordings, old editing exports, or archives.
Recommended HandBrake settings
For most AVI files, HandBrake’s Fast 1080p30 preset is a reasonable starting point. If your source is 720p or smaller, use Fast 720p30 or keep the source dimensions. If the original AVI is interlaced, such as footage from an old camcorder, open the Filters tab and set Deinterlace to Decomb. This helps remove horizontal comb lines during motion.
A common HandBrake mistake is changing too many settings at once. If you are unsure, only set MP4, H.264, AAC, Same as source frame rate, and RF 20–22. Test 30 seconds first before converting a long file.
Method 3: Convert AVI to MP4 free with FFmpeg
FFmpeg is the best option if you are comfortable with command-line tools or need to batch convert many AVI files. It is also useful for unusual AVI files that fail in visual converter apps.
Basic high-quality conversion command
```bash ffmpeg -i input.avi -c:v libx264 -crf 22 -preset medium -c:a aac -b:a 160k output.mp4 ```
This creates an MP4 with H.264 video and AAC audio. The important parts are:
Keep the original resolution and frame rate
By default, FFmpeg keeps the source resolution and frame rate unless you tell it otherwise. That is usually what you want. If you need a smaller 720p version, use:
```bash ffmpeg -i input.avi -vf "scale=-2:720" -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 128k output-720p.mp4 ```
The `-2` tells FFmpeg to calculate the width automatically while keeping it divisible by 2, which prevents encoding errors.
Batch convert multiple AVI files
On Windows PowerShell:
```powershell Get-ChildItem *.avi | ForEach-Object { ffmpeg -i $_.FullName -c:v libx264 -crf 22 -preset medium -c:a aac -b:a 160k "$($_.BaseName).mp4" } ```
On macOS or Linux:
```bash for f in *.avi; do ffmpeg -i "$f" -c:v libx264 -crf 22 -preset medium -c:a aac -b:a 160k "${f%.avi}.mp4" done ```
FFmpeg is also the easiest way to fix audio delay. If the converted MP4 has audio that starts half a second late, try:
```bash ffmpeg -i input.avi -itsoffset 0.5 -i input.avi -map 0:v -map 1:a -c:v libx264 -crf 22 -c:a aac -b:a 160k output-fixed.mp4 ```
Use a positive offset if the audio is too early, and a negative value if the audio is too late. Test with small values like `0.2`, `0.5`, or `-0.3`.
Choosing the right settings for your use case
The best AVI to MP4 settings depend on where the video will go. A file for archiving should not use the same settings as a file for email.
For email or messaging, aim for a smaller file:
For YouTube, websites, or social uploads, keep more detail:
For editing later, prioritize consistency:
For old camcorder AVI files, check for interlacing. If moving objects have jagged horizontal lines, use HandBrake’s Decomb filter or FFmpeg’s `yadif` filter:
```bash ffmpeg -i input.avi -vf yadif -c:v libx264 -crf 21 -preset medium -c:a aac -b:a 160k output.mp4 ```
If your converted MP4 is still too large after using the right settings, compress the finished file rather than repeatedly re-exporting from random apps. You can use Compress Video to reduce the MP4 size for sharing after you have converted it.
Common AVI to MP4 problems and fixes
The MP4 has no sound
This usually happens because the AVI contains an audio codec the converter did not handle correctly, or the audio track was disabled during conversion. In HandBrake, open the Audio tab and make sure a track is listed. Set the codec to AAC. In FFmpeg, force audio conversion with:
```bash ffmpeg -i input.avi -c:v libx264 -crf 22 -c:a aac -b:a 160k output.mp4 ```
If FFmpeg says there is no audio stream, the AVI may not actually contain audio, or it may be damaged.
The video looks stretched
Older AVI files sometimes use non-square pixels or incorrect aspect ratio flags. If a 4:3 video appears wide, force the aspect ratio.
For a standard 4:3 file:
```bash ffmpeg -i input.avi -aspect 4:3 -c:v libx264 -crf 22 -c:a aac -b:a 160k output.mp4 ```
For widescreen:
```bash ffmpeg -i input.avi -aspect 16:9 -c:v libx264 -crf 22 -c:a aac -b:a 160k output.mp4 ```
In HandBrake, check the Dimensions tab and preview the result before encoding the full video.
The converted MP4 is bigger than the AVI
That can happen if the AVI was already heavily compressed or low resolution, and your MP4 settings are too generous. Use a higher RF/CRF value, such as 23 or 24, and reduce audio bitrate to 128 kbps if the audio is mostly speech.
Do not increase the resolution. Exporting a 640×480 AVI as 1920×1080 creates a larger file without adding real detail.
The video is choppy after conversion
Use Same as source for frame rate. If the file will be used in PowerPoint, video editors, or older playback devices, choose Constant Framerate in HandBrake. Variable frame rate can sometimes cause sync and playback issues in editing software.
If FFmpeg creates a choppy file from an odd AVI, try:
```bash ffmpeg -i input.avi -vsync cfr -c:v libx264 -crf 22 -preset medium -c:a aac -b:a 160k output.mp4 ```
The converter freezes or fails
First, test whether the AVI plays from start to finish in VLC. If it stops at the same point every time, the file may be damaged. With FFmpeg, you can try ignoring some errors:
```bash ffmpeg -err_detect ignore_err -i input.avi -c:v libx264 -crf 22 -c:a aac -b:a 160k output.mp4 ```
If the file is very old or comes from a camera, copy it to your local drive before converting. Converting directly from a USB stick, network folder, or external drive can cause failures if the connection drops or slows down.
Quick decision guide
Use VLC if you need a simple one-off conversion and do not care much about advanced settings.
Use HandBrake if you want a good-looking MP4 with reasonable file size and clear controls.
Use FFmpeg if you need batch conversion, repair options, automation, or better handling of unusual AVI files.
For a safe default, use MP4 with H.264 video, AAC audio, same resolution, same frame rate, and RF/CRF 20–22. Lower the resolution to 720p and use RF/CRF 23–24 if the file needs to be easier to share.
Once your AVI is converted, play the MP4 from beginning to end before deleting the original. Check the first minute, a middle section, and the final minute for audio sync, missing sound, stretched video, or glitches. If the MP4 is larger than you need, try the BestAIFinds Compress Video tool to make the finished file easier to send or upload.