Thanks to a number of universal video players in Market, playing videos with different formats on Android devices is no longer a problem.
However, there are a number of occasions where you want to convert them.
* when the videos are on a DVD (or ripped to PC)
* when you have a complex video which your phone cannot play (like 1080p full HD videos)
* when you want to have a video that is natively supported by Android OS.
Handbrake is a very suitable software to use for such conversions. It is an open-source, GPL-licensed, multiplatform, multithreaded video transcoder, available for MacOS X, Linux and Windows. It is suitable both for the beginners and advanced users, and can produce excellent results. For this reason, I'm making this guide for everyone, with screenshots (who doesn't like screenshots?
Download Handbrake from here: HandBrake
Install and run.
Click "Source" and select the video file you want to convert. I'll select the Full HD 1080p trailer from Thor movie (source: Youtube).
Set the Destination path and output file name. Select MP4 as the file extension/container. Now select "Universal" from the right side Presets section.
In Picture tab set the resolution so that the lower number equals to that of the lower number of your phone's screen resolution. For example, my phone has 800x480 screen resolution, so here I make sure that the display size says "1129x480". Note: you can only change the larger number, the smaller one just follows.
In Video tab, set Video codec to "H.264(x264)", Framerate to "Same as Source", Avg Bitrate to "1000". Optional - you can also select "2 Pass encoding" for a bit better quality, but it takes the conversion process too long.
A note here: I selected Avg Bitrage mode, because it is more suitable for all source videos. The experienced users can select "Constant quality" mode to get a better bitrate allocation across video frames, aka get better quality for smaller file size.
In Audio tab, select the necessary settings as in picture and remove any extra tracks.
If you want to add subtitles, then add them here. If you do, then check "Burned In" box so that you don't have issues with most of the players.
Go to "Advanced" tab and make sure that the settings are like this - Don't change anything there!
Press the "Start" button and wait for the program to finish the job.
Note: One time action - you can add these settings and create your phone preset just before the conversion on step 6. Press "Add" button under the Presets, type a name, and "Set Default". Next time, when you load a new file, just use this new preset and all your settings should be restored.