Which codec should I use for HD YouTube Videos?

December 18th, 2010 Leave a comment Go to comments

We wanted to upload some of our video projects to YouTube.  But which format would produce the highest quality, after YouTube's processing?  We decided to test four of the most popular formats: MPEG-2, AVC, Windows Media, (16Mbit/sec each) and uncompressed (over 800 gigabytes per hour!).  Which do you like best?










In terms of artifacts in the image, we did not notice any differences between the formats, with the naked eye.  We did notice colour shifts, but none were dramatic enough for us to be able to decide that one format was clearly better than another.

Here is the amount of time it took our hardware to encode each version:

MainConcept MPEG-2 16Mbps - 10:01
Uncompressed - 13:19
AVC 16Mbps - 36:24
Windows Media 16Mbps - 24:14

For future projects, we anticipate using MPEG-2.  Since it encoded in the shortest amount of time, it is an excellent choice for our purposes.  It's true that AVC can theoretically produce a better quality image at the same bitrate, however since YouTube videos are re-encoded at a compartively low bitrate, we do not find the improvement worthwhile.

The above samples, in order: MPEG-2, Uncompressed, AVC, Windows Media.
 
  1. MAX
    September 9th, 2011 at 23:45 | #1

    I wold love to know what youtube's actual transcoding settings are for their various resolutions etc, as theoretically, if you transcode you video directly to the youtube HQ settings, they may not re-encode that version... resulting in no loss of transcoding quality to what you have given them.
     

  2. sk1939
    December 1st, 2011 at 16:17 | #2

    From what I could tell it looks like MPEG-2 and AVC have more artifacting then the others. Even with a Cinema display I can't really tell a difference in color between them, except for the occasional moment.
     

If you would like a reply to your comment, you must leave your email address! We receive dozens of questions every month from people who don't leave us with any way to contact them, so we have no choice but to ignore the question. We try to reply to as many questions as we can, if we know the email address of the person who asked the question. Thanks in advance for writing in :)

Allowed HTML: <b>, <i>, <em>, <strong>. All other < and > will be replaced with &lt; and &gt;.