How To Convert AVI Video Files to MP4 (H.264)

With so many different media devices out there, sometimes you’ll need to convert your AVI video files to another format. Here’s how to use Handbrake to convert AVI files to MP4 (H.264).

I recently showed you how to use Roku USB Media Player to watch videos that aren’t available for streaming. Unfortunately, it only supports  MKV and MP4 (H.264) file types. If you have many AVI files that need converting, my favorite free video converter is HandBrake.

Convert AVI Video Files to MP4 (H.264)

First, download and install the latest version of HandBrake if you don’t have it already. It’s available for Windows, Mac, and Linux. I am using the Windows version for this article, but the process is essentially the same in Mac and Linux.

Installation is straightforward following the install wizard. After it’s installed, go ahead and launch HandBrake.

HandBrake UI

Browse to the destination directory where you want the converted file to be placed after it’s converted.

Now click Source and select Video File from the dropdown.

HandBrake Source

Then browse to the location of the AVI file you want to convert and double click on it. Under Source, you’ll see the AVI file name, its length, and other info.

For the Output Settings, set the Container to MP4 File. If you want to tweak the output settings, you can. I’ve had good luck leaving the Preset to Normal with all the defaults.

Start Encoding

Keep in mind I am converting the file to play on my Roku. If you’re converting the AVI file for another device, I recommend using one of the presets for the device you will be playing the video on.


Click Start to begin the encoding process. While it’s working, the progress is displayed in the lower-left corner of the UI, along with the amount of time remaining.


That’s it. The encoding process has finished successfully.

Encoding Finished

Now go into the destination directory you set up, and you’ll see the MP4 file.

MP4 File

Now you can transfer it to the device you want to watch the video on. I will play the video in VLC to verify the encoding process was successful, and it’s not corrupted.


HandBrake is arguably the best utility for converting video files. I use it quite a bit when converting Blu-ray discs to MKV format. Not to mention, it’s completely free.



  1. Chaitanya

    May 30, 2012 at 7:03 pm

    Which format and resolution is best to watch videos on Sony Xperis S??

    • Brian Burgess

      June 5, 2012 at 4:28 pm

      Good question. I would go with the devices max resolution and experiment with different file types.

      Maybe one of our other readers has one and would be able to let you know their experience with it?

  2. Chaitanya

    June 5, 2012 at 11:33 pm

    I tried with many formats and resolution but it never met the quality what the pre-loaded video has in Xperia S mobile. :-( . Please help I invested on this mobile :-)

    • Julia Softorino

      August 19, 2015 at 7:01 am

      If you use WALTR, then there is no quality loss at all, iphone 6 even able to playback 4k video with it
      I`m a developer of this app, so i can say for sure

  3. yongcomeon

    March 9, 2015 at 1:12 am

    You may try iDealshare VideoGo which is the best AVI to MP4 Converter for Mac and Windows to batch convert AVI to MP4 at fast speed and with original video quality..

    Besides converting AVI to MP4, it also allows you to batch convert AVI to MOV, Apple ProRes, DV, FLV, WebM, 3GP, MP3, WAV, AAC, M4A, FLAC, AIFF and etc.

  4. T Ding

    April 2, 2021 at 7:54 am

    I have a file that the video plays on my roku ultimate but no audio. can I just convert audio and which codec should I use?

Leave a Reply

Your email address will not be published. Required fields are marked *


To Top