In times past I have downloaded videos which contained the H264 compression codec, only to be viewed from my hard drive. Although I think this codec is much better than the Xvid and Divx codecs because of the lower bit rates it uses making for smaller file sizes while quality is maintained, most dvd players cant play this format.
Avidemux is able to convert H264 (among other formats) to Xvid/avi. I will show how I have achieved this task through practice using Avidemux.

First download FFdshow here [Only registered and activated users can see links. ]. It will allow you to decode and encode various formats.(or google it)

FFDshow must be configured to decode H264 by going to: Start menu, all programs, FFDshow, VFW configuration, click on Codecs, and the Decoder tab, and enable H.264/AVC format to be decoded by libavcodec. This might be already done by default, but check that this setting is in effect.

Download Avidemux here: [Only registered and activated users can see links. ]
(or google it)

Open Avidemux. You may drag and drop your H264/.MP4 file onto it.

[Only registered and activated users can see links. ]

Or Click on the Open button and navigate to your file and click Open.

[Only registered and activated users can see links. ]

When you get the notice (in the case of H264 videos) Just click on the Use safe mode option.

[Only registered and activated users can see links. ]

Your video will then appear opened.

[Only registered and activated users can see links. ]

At the video drop down arrow choose MPEG-4 ASP (Xvid4). This will cause our target video to use the xvid
compression codec.

[Only registered and activated users can see links. ]

You may choose to click on the Configure button should you want to change the config of the Xvid codec.
I think the default settings work fine. So I leave it as is. should you change anything click OK when done.

[Only registered and activated users can see links. ]

You may click on the Filters button if you wish to resize, sharpen, change the fps of the video. There are a number of
filters here, should you wish to use them. You may preview them also. Click close when done.

[Only registered and activated users can see links. ]

To change Audio click the drop down menu under audio. I have chosen MP3 (LAME) as the target audio format.

[Only registered and activated users can see links. ]

You may click on the Configure button to make any changes to the default values here.
Click OK when done.

[Only registered and activated users can see links. ]

Should you choose to use any audio Filters you may make your changes here.
When done click OK.

[Only registered and activated users can see links. ]

If your audio is out of sync with your video, you may advance or delay audio by checking
the Shift box and entering a positive (to delay-start later) or negative
(to advance-start earlier)(latinhack.org) number value.
Next to Format, click the drop down menu and choose AVI.

[Only registered and activated users can see links. ]

At the top click on the Save button.

[Only registered and activated users can see links. ]

When the save option box opens, Name your file followed by the .avi extension,
(example: test.avi) Choose a place to save your file, and click the Save button.

[Only registered and activated users can see links. ]

Wait for the app to finish, it will give a Done dialogue box when its finished.
Here are 2 screenshots of the properties of the file in GSpot before encoding and after.
The clip used was a small sample for the sake of this guide.

BEFORE

[Only registered and activated users can see links. ]

AFTER

(I changed the audio format to mp3 and the bit rate to 128kbps
I kept the original frame rate (fps) and resolution of the video
and the Xvid compression codec was used)

[Only registered and activated users can see links. ]

Again, I find H264 videos to be superior to Divx/Xvid, and the only reason I would convert
them to Xvid is to be able to burn them to disc and play them on a dvd player which handles Dvix/Xvid (but cant decode the H264 codec).
One alternative we could use is to run a VGA or DVI cable from the pc to a Hi def. tv (with VGA or DVI inputs) and play the file
from our hard drive in a media player in full screen. (if you wanted to view it on a larger screen of course, otherwise
just viewing them from our hard drives on our computer monitors would be sufficient)


Latin-hack dont take any credits.
Credits:
HITTZ