Login Form

Welcome, Guest. Please login or register.
August 30, 2008, 04:28:29 AM
Username: Password:
Login with username, password and session length

Forgot your password?

Sponsors

Home arrow Guides arrow FAQs arrow H.264 FAQ & Basic Conversion Guide
H.264 FAQ & Basic Conversion Guide Print E-mail

The purpose of this article is to explain with simple words what H.264 is, its advantages (and disadvantages) comparing to well known codecs like DivX and XviD as well as simple instructions to create and playback H.264 video files. I decided to write this guide as a FAQ, so that its easier to understand and read, attaching a small guide about converting any video file to H.264 at the end. I have tried to stay clear from technical stuff, as I understand that they do not interest most people. However if you fell that there should be some addition or correction in this FAQ, use the contact form to let me know.

So, what is H.264?
H.264 is a new video codec standard which can achieve high quality video in relatively low bitrates. You can think it as the “successor” of the existing formats (MPEG-2, DivX, XviD etc) as it aims in offering similar video quality in half the size of the formats mentioned before.

OK. What is H.264/AVC then?
AVC stands for Advanced Video Coding. Actually its identical to H.264 so you can find it as H.264, H.264/AVC, H.264/MPEG-4 AVC or MPEG-4 Part 10.

I want to use it! Where can I download this H.264 codec from?
As we said, H.264 is a codec standard, so there are various implementations around. Lets name the most important (and easy to use) tools you can use to create a H.264 video:
-Nero Recode 2. Their latest version (comes with Nero 7) includes an H.264 encoder called NeroDigital AVC. It can be used in the other video-related program in Nero suite, Nero Vision.
-Apple Quicktime. Using Quicktime 7 Pro you can encode videos using H.264 in both Windows and Mac OS X platforms.
-x264. An open source solution. It is command-line only, but its being used in various free programs like SUPER (simple video conversion program, guide below), Fairuse Wizard (DVD to AVI program, guides coming soon) and various other projects.
There are various other solutions like the MainConcept H.264 encoder, Sorenson and VSS to name a few, but they are either too expensive for the average user or hard to find. Some of them are pretty unstable as well.

Which one do you suggest I use to encode an H.264 video?
Depends on your needs actually. However, one can say that right now x264 is the right choice. Compared to the commercial solutions, not only it doesn't lack features, speed or quality, but in most areas it even surpasses encoders that cost hundreds of dollars. It's a perfect example of open source software's power! If you just need to do a simple conversion, I suggest SUPER, a GUI for ffmpeg and mencoder that can use x264 to create an H.264 encoded file. We show how you can do that in the guide below this FAQ. If you want to convert DVD to H.264 the best choice would be Fairuse Wizard. Other free solutions to convert DVD to H.264 are MeGUI and Gordian Knot.
From the commercial solutions, Nero Recode is a very good choice. However it is not worth it to buy Nero just to get the H.264 encoder. If you already have Nero 7, give it a try and compare it against x264 yourself. Quicktime Pro is very, very slow at the moment, therefore we don't suggest using it.

How can I playback H264 videos?
The latest version of ffdshow supports H264 playback. You can get it from here. Remember, ffdshow is a DirectShow filter so after you install it you'll be able to play H264 in most video players you already have installed, including Windows Media Player. Alternatively you can download VideoLAN player from here. It can play H264 without need of any codec or DirectShow filter. Nero Showtime and Apple Quicktime players support H264 too, but their support is not so great for all formats (they play better H264 content that was created using Nero Recode or Quicktime Pro) so I don't suggest using them for general H264 playback. Generally most players or codec packs nowadays include H264 support so you shouldn't have any problems. For Linux Mplayer offers excellent playback as well as Xine and VLC. Totem (using Gstreamer as a backend) seems to have many troubles however, especially low speeds.

The playback is slow / with pauses. Why does this happen?
H264 requires a fast CPU and lots of RAM to playback fine. If you have one of those old PIIIs or any CPU less than 1GHz plus less than 256RAM you may have trouble decoding H264 content fast.

My standalone player plays DivX/XviD. Can it play H264 too?
No, the standalone MPEG4 players that are supporting DivX/XviD do not support H264 videos. You would have to buy one that plays AVC/H264, you can find some in this list .

What about support of H264 in mobile devices?
The new iPod can playback H264, Sony PSP is able to do so too. PocketPCs can play H264 too, using the CorePlayer however you are advised to use small resolutions or the processor won't be fast enough.

What extension does H264 use? Is it an .avi file or does it have its own extension like .divx?
You may come across all kind of file extensions and still the codec can be H264:
- .avi - Yes, people use .avi for H264 videos too!
- .mp4 - Nero Recode and Quicktime use this format. Better than AVI as you can store AAC audio as well.
- .mkv - Matroska container - can support many video and audio formats. Have a look here for more info.
- .h264 - This extension is not commonly used. Maybe in the future.

Do you have any video I can see for myself the quality of H264?
I always say that before selecting what codec to use it is better to do some testing and decide for yourself. But we do have some small video you can download and see for yourself. You can get it from our downloads database here. There are also versions of exactly the same video in DivX and XviD to do a comparison. All videos where encoded from a DVD using Fairuse Wizard and all codec quality settings are set to maximum. The bitrate used was approximately 860kbps, an average bitrate someone uses to store a movie in one CD.

Can Xbox play H264 using XBMC (Xbox Media Center)? What about Xbox 360?
Yes it can. However some files play pretty slow, not sure why it happens (my H264 encodes work fine, 2-3 other files I tried play very slow). I'll have to do some tests to confirm what caused that. Remember that Xbox doesn't have the fastest CPU out there (Pentium 3 733MHz) so to be honest the nice playback of most H264 files impressed me. About the new Xbox 360, the media player it contains plays pretty much nothing besides WMV files, so until something like XBMC comes out for 360 you can only display H264 by a streaming solution using a PC.

Nice FAQ, but I still have more questions!
Come to our forums and ask! There is always a kind person there to help you out.

I think you have a mistake here and there, you could also add that there and explain this better.
Use the Contact Us button at the menu on the top of the site and let me know of your thoughts and suggestions about this FAQ. Let me know of other programs, newer developments etc. Thanks!


Convert any video file to H264 using SUPER.

There is certainly no quality improvement when you are converting a video from XviD for example to H264. The big quality boost happens when you convert to H264 from the DVD source, which will be the subject of the Fairuse guide that this about to come. However the way shown here is easy, uses a nice freeware tool and is useful if for some reason you want to compress your AVI files a bit more (to distribute in the internet for example) and not lose much audio quality. Also using that program you can create H264 content for video iPods and Sony PSP.
The program itself is very simple so we just need to explain you the options and the features. You can download it for free from our software downloads database here.


This is the main SUPER window. Let explain what all these options do. (1) Here you can select the output between all the formats SUPER supports. We have selected mp4 here to create an H264 file. If you are creating video for a mobile device (like an iPod), select the right option. In (2) you can select the codec you want to use for the video. Obviously H.264/AVC was our choice. Also we used AAC as the audio codec (3). Make sure you select Use DirectShow (4).

Now lets move on to the Video settings. (5) It's a good idea not to alter the video resolution and the aspect ratio. If you know the frame / sec set it know, if not I'll show you how to find out later. For the bitrate, use a little lower than your original file (I'll show you how to find the bitrate as well in the next step). For mobile devices a value about 500 should be OK, for a computer everythingover 700 should look OK too. If you source is high quality you might want to use even higher bitrates. From the options select High quality. In the audio settings (6) select 96 or 128 in the audio bitrate. The rest settings should be left the same as your source file.

So it's about time to load the source file and show you how to find all these info about it, right? Right-click anywhere in the program and select Add Multimedia Files (7). When you do so, make sure "Enable File Analyzing Engine" is selected as well. Time to move to the next step!



When you click on "Add Multimedia Files" the well-known Windows dialog will appear. You can select all the files you want to convert and click Open.


As you can see the files are now loaded. When you double click on the file name of one of the files an infomation window like the one below appears.

There you can see all the important info about the source file. In our example we can see that he video is DivX, a bitrate of 1086 KBps and a frame rate of 29.97. So in the video settings in Step 1 you should select a bitrate of about 900 or 1000 and the same frame rate.
In the audio info we can see the bitrate is 128KBps, it has two channels and the sampling rate is 48KHz. So in Step 1, in the audio settings, you can select 96 or 128 as the bitrate and the same channels and frequency settings.

When you are done, have a last look to the settings to make sure everything is OK and click Encode now! In a while you'll have a H264 file waiting for you in your hard disk!

Hits: 216984
Comments (22)Add Comment
...
written by johan1391, July 22, 2006
i wish it gave an estimated time, ill see how the output and speed vs nero recode is
report abuse
vote down
vote up
Votes: +4
...
written by johan1391, July 23, 2006
it doesnt work when i use direct show, it makes a file about 700kb big
report abuse
vote down
vote up
Votes: -1
BB PEARL
written by Maverick, March 14, 2007
Any suggestions for output file type compatible with a Blackberry Pearl? I was told by t-mobile support that any avi file with an h.264 codec would play, but converting an avi to an avi with h.264 codec still did not play. :(
report abuse
vote down
vote up
Votes: -1
how about other way around?
written by Yoruma, April 19, 2007
I have Ulead VideoStudio plus 10 and it doesn't allow me to open h.264/avc video. It's not that big of a problem, i just need to convert it back to avi or whatsoever. Is that even possible?
report abuse
vote down
vote up
Votes: +0
...
written by Tekno, May 01, 2007
Nero Recode supports 5.1 channels with high bit rates. But SUPER fricken rocks for converting other formats to H.264 :)
report abuse
vote down
vote up
Votes: +1
What about
written by Pjoto, May 04, 2007
How does Super work the other way? Can I make h264 files into normal regual XviD in order to run smooth on my Xbox?
report abuse
vote down
vote up
Votes: +4
...
written by Mike Moff, May 26, 2007
I tried encoding to home movies with SUPER, and they have *erightsoft* proudly displayed in the middle of all the frames. Is this normal?
report abuse
vote down
vote up
Votes: +2
...
written by Margaret, July 14, 2007
Give this a try for converting any codec to another. I am very impressed with it!!

mediacoder.sourceforge.net
report abuse
vote down
vote up
Votes: +4
ppc
written by nickxxx, August 01, 2007
core player / codec for PPC will play x264 videos on pocketpc
report abuse
vote down
vote up
Votes: +1
Mr
written by M Smith, August 11, 2007
OK to convert to H264,but how to convert H264 to Xvid or Divx.This is the questions being asked by all those who have stand alone DivX/Mpeg 4 players and streaming media players that as yet do not play H264 encoded media
report abuse
vote down
vote up
Votes: +5
PS3 owners
written by moonmonkey, August 12, 2007
Just to let all the PS3 owners know that PS3 will play SUPER encoded H.264 files from external USB drive. PS3 does not recognise H.264 file over DLNA server connection. I spend hours and many endcoding sessions figuring this one out!
report abuse
vote down
vote up
Votes: +1
...
written by Tarnhouse46, August 16, 2007
I am considering buying a Casio Exelim Z1200 which uses H.264 Mpeg-4 part 10 for video. Are there any utilities that can convert from H.264 to divx or xvid to play on a standalone dvd player
report abuse
vote down
vote up
Votes: +1
...
written by toner, September 12, 2007
can you convert a lower quality dvd(video_ts) to better quality like 480p?
report abuse
vote down
vote up
Votes: +2
...
written by z@ini900, October 04, 2007
can this software convert h.264 files to AVI?
report abuse
vote down
vote up
Votes: +5
...
written by StephenK, October 19, 2007
I've got a newer Casio Exilim (the s880) and have been joining/converting my h264 files to Divx/Mp3 with Allok. Allok Video Joiner is well worth the purchase price. It's fast and easy, and also I've been "updating" my old movie clips from the last decade taken with various cameras (motion jpeg mostly) to the h264 for archiving/playing on my pc (playback with videolan is best and I hate using Quicktime).
report abuse
vote down
vote up
Votes: +1
Direct Show Problem
written by Leviathan72, November 17, 2007
Ive gone through your tutorial exactly how it is written out.
I selected MP4 for the container and H.264 for the output then did everthing as you said.

The source file is AVI,XVID.

The Problem is with Directhow decode. When i enable it and start encoding i get the error:
"you might not have the required Directshow activex filters installed"
When i try the same but Avi as the container the finished file has no audio.

I have the latest K-lite codec pack installed.
report abuse
vote down
vote up
Votes: -2
HD rips as .mkv to DVD
written by Faisal, December 11, 2007
Hello,
I need some help here. I have downloaded a HD DVD rip as .mkv which used x264 as codec. I can play it on my PC using VLC player. But, I was wondering how I can convert this file to DVD and play it on a standalone DVD player without degradation of quality?
Thanks!
report abuse
vote down
vote up
Votes: +6
PPC
written by freddyzdead, December 17, 2007
"core player / codec for PPC will play x264 videos on pocketpc"

Yes, but don't expect it to be watchable unless you've got a very fast CPU and lots of RAM.
report abuse
vote down
vote up
Votes: +1
SUPER is anything but.
written by freddyzdead, December 17, 2007
SUPER is one of the worst programs I've ever seen. The UI is confusing, the options are restrictive and there is little feedback, such as a progress indicator. If the makers repackaged it and made it a lot more intuitive, then it'd be great!
report abuse
vote down
vote up
Votes: +6
Re: Super
written by callous, January 01, 2008
How much time did you spend using Super? 4 mins? including 2 of those just staring at it right?

All the options are on top. The encode button's on bottom. If you dont even know what is an avi, and which codec to use then that program isnt for u.
report abuse
vote down
vote up
Votes: -2
hehe
written by ElTorito, March 13, 2008
Quote:
--------
written by Mike Moff, May 26, 2007

I tried encoding to home movies with SUPER, and they have *erightsoft* proudly displayed in the middle of all the frames. Is this normal?
--------

You just starred too long at the screen, so that a previous text was on Your retina !
report abuse
vote down
vote up
Votes: +1
H.264 Video Codecs: Pros & cons
written by john_jk, June 26, 2008
Even i really thinks that H.264 is one of the best video codec but still it has certain cons. one of this is licensing complexity

may be u can go through

http://videocodecs.wordpress.com/
report abuse
vote down
vote up
Votes: +0

Write comment
smaller | bigger

security code
Write the displayed characters


busy