hacks.mozilla.org

an update on open video codecs and quality

Two days ago we posted a comparison by Greg Maxwell of low and medium resolution YouTube videos vs. Theora counterparts at the same bit rates. The result in that test was that Theora did much better at the low bit rate and more or less the same at the slightly higher bit rate. The conclusion being that Theora is perfectly appropriate for a site like YouTube.

Now Maik Merten has done the same with videos at HD resolution, comparing videos encoded by YouTube and a video encoded with the new Theora encoder at a managed bitrate. The results? Go have a look at the images in the post. Tell us if you can honestly see a major difference. We can’t.

H.264
Theora

164 Responses to “an update on open video codecs and quality”


  1. 1 g

    The ogv’s actually appear slightly superior in sharpness from what I’m seeing here… hello YouTube?

  2. 2 Elijah Grey

    The person’s hair is much, much crisper in Theora.

  3. 3 Anonymous

    The hair and the tree branches both, yeah.

    Furthermore, according to the previous post, this encoding used the official Theora encoder. The one in FFMPEG does even better.

  4. 4 Xenom

    In the images in the post, the Theora quality is better, particularly for the person and his hair. But with the 1280*720 images I can’t notice differences.

  5. 5 me

    Actually, his face (skin) also looks much better in Theora. Look also to his ear, there is slightly more detail in the Theora version where it in H.264 looks blurrier.

  6. 6 Erunno

    “Tell us if you can honestly see a major difference. We can’t.”

    Fishing for compliments? ;-) The hair and the skin texture looks sharper on the Theora picture.

  7. 7 Da Scritch

    the grain of the picture, the aspect of the hair, details on the cars, and even subtle contrasts on each color zones, theora seems more pleasant.

    But this is a still image. Better haver a comparaison in moving images.

  8. 8 Olivier FAURAX

    The tree is also better in theora.

    Thanks.

  9. 9 Quezako

    Interresting… With Media Player Classic, the HD ogv is using nearly 10% less CPU. Although seeking is slightly longer…

  10. 10 Damiog

    Yeah right, let’s compare the worst h.264 encoder in the world with the latest theora encoder.
    Even quicktime h.264 encode it’s better than that.

  11. 11 Tian Bai

    Obviously, the Theora image is sharper.

  12. 12 sep332

    There is a stronger “blocking” artifact on the sweater in the Theora screenshot given.

  13. 13 Gustavo Noronha

    I can, in fact, see quite a difference there. The colors, and brightness are quite different, and look much better in the first one, in my opinion, but it is indeed hard to tell which one is the more correct without a reference rendering, I guess. The ‘HD’ screenshots look pretty much the same, though.

    Anyway, that’s not the whole point: if Apple and Google make using ogg theora a goal, I’m pretty sure the encoder will gain enough love to have the quality everyone desires.

    As for WebKitGTK+, ogg theora is certainly our primary target! Keep rocking!

  14. 14 Christopher Blizzard

    @Damiog – We don’t know what settings YouTube is using, but we do know that most people see that as the standard for video on the web today. And it wasn’t so much about being the most awesome quality for video, you can tune H.264 to produce higher quality videos at much higher computational cost. Miak says that in his post. This is about 1. showing that Theora is fine for a site like YouTube (it is) and that it wouldn’t cause YouTube to explode. (it wouldn’t.)

  15. 15 enefekt

    I visited the page and clicked on the Theora example, but it just started downloading in my Download manager.
    YouTube let’s you watch the videos right away.
    I am using the latest in browser tech, Safari 4.

  16. 16 Christopher Blizzard

    @enefekt – Install the xiph plugin for quicktime and it will likely work for you: http://www.xiph.org/quicktime/download.html

  17. 17 maxauthority

    The H.264 looks “better” – smooths the skin to have a much better taint without akne/wrinkles – just like a good make-up ;) .

    Encoding wise, of course, Theora looks crisper in this particular image in the post.

  18. 18 Gustavo Noronha

    @enefekt: also, notice that Safari 4’s behavior comes from the fact that Apple decided not to support ogg Theora by default; this is exactly what this discussion is about: if all the major vendors commit to support this open standard instead of only supporting closed/patent-encumbered codecs, everyone will benefit.

    Also, notice, that if you did not have Adobe’s Flash installed (I’m not sure whether Apple ships that by default), you’d not be able to view videos on Youtube.

  19. 19 Maik Merten

    @Damiog, that’s not the point. The point is *not* “Theora is better than H.264″ (it is not, and if you read carefully you’ll see nobody tried to make that point) or “YouTube is using the best H.264 encoder”. YouTube *cannot* possibly use the “best” available H.264 encoder at the best available quality parameters because they need a) high encoding speed and b) streaming-compatible “spike-free” bandwidth (ruling out e.g. traditional 2-pass encodings or plain “constant quality” VBR).

    The point is that YouTube isn’t delivering best-possible quality (they can’t) but still grew to a very very popular service and that one can have comparable quality with free codecs.

  20. 20 Shawn J. Goff

    Wow. Clearly on the smaller image, Theora is much better. It shows low-contrast details much better (sweater, hair, etc). On the larger one, the theora may be better, but it’s hard to tell without the original frame for comparison. I say it may be better, because there is higher fine-detail contrast (look around the mouth, corner of his lips). But this could just be perception, it could be achieved by applying a filter to the .h264 version. You really need to see the original to know for sure.

  21. 21 n0ns

    Since i have good enough connection + FF3.5 i tried to watch theora video and here what i think.
    Looks good and promising.
    But currently:
    1. No controls for resizing (full screen ?) but this is FF.
    2. No HW acceleration for the theora codec. I mean C2D was near 100% usage.

  22. 22 Anonymous (*)

    Are those frames from “Steal This Film 2″? ;)

  23. 23 sysKin

    Theora is definitely better here – but h264 uses about half of its bitrate to put a new keyframe every 60 frames, while Theora seems to have a keyframe interva of 10 seconds. I really hate to be a Theora-basher but I can’t see how this is fair.

    h264 also uses several other low-end settings (no cabac, no b-frames, etc) but it’s just a youtube’s weirdness.
    Still, I can’t see how this comparison can be seen as Theora vs h264 comparison – it’s a my-best-Theora-settings vs Youtube comparison. Use x264 and encode stuff yourself if you want to compare technologies.

  24. 24 Christopher Blizzard

    @sysKin – once again, this isn’t a comparison of H.264 at its best vs. Theora – it’s a question of whether or not Theora is appropriate for the world’s most popular video delivery services.

  25. 25 Maik Merten

    @sysKin: The keyframe setting of 170 frames was chosen because in the current alpha Theora encoder the bitrate management window is directly coupled to the keyframe frequency. Once there’s an API to change those independently one would perhaps choose a keyframe frequency to be more like 60-80 frames and a bitrate management window for ~8 to ~10 seconds (to be more-or-less similar to typical buffer sizes). Thus the keyframe interval of 170 frames is merely provisional a tradeoff.

  26. 26 Robert O'Callahan

    Greg’s idea of using Youtube to do the H.264 encoding was a stroke of genius.

    It’s amusing to see people argue that Youtube doesn’t know how to encode H.264 properly.

  27. 27 sysKin

    Hi again,

    > once again, this isn’t a comparison of H.264 at its best vs. Theora

    Yes you’re right, I apologise – it was referred to me as such comparison and I didn’t read it with open mind.

    > The keyframe setting of 170 frames was chosen because in the current alpha Theora encoder the bitrate management window is directly coupled to the keyframe frequency

    I was actually wondering about that, but are you saying you encoded using some kind of single-pass rate control? If so, you can definitely boost quality even further by encoding “properly”, using two passes (unless I’m missing some technicalities here).

    > It’s amusing to see people argue that Youtube doesn’t know how to encode H.264 properly.

    Yes it is. In fact if Google says Theora would cost them bandwidth, the easiest way to laugh them off is to point out that their h264 could easily be twice as efficient. I don’t know what encoder they use (most likely an early fork of x264) but number 2007 gives a clue.

  28. 28 Maik Merten

    @sysKin: Yes, the Theora encodes are using a single-pass rate control and yes, with a multipass encoding setup one could squeeze more quality for any given bitrate out of it. However, I feel that “classical” 2-pass encoding isn’t an option for streaming video (neither for H.264 or Theora) because the very reason multipass-encoding approaches increase quality is that they dynamically distribute available bits to those frames that can benefit most and saves bits on the “easy” frames. This means the video can have plenty of bitrate spikes that may empty the client’s buffer if the encoder has no buffering model in place to detect and prevent this – one would need a “buffer-aware” multipass encoder, and I’m not aware of such a thing being in existence (there for sure currently isn’t such a thing for Theora). It may be a worthy improvement provided one can afford the speed-hit of going multipass.

  29. 29 sysKin

    Hi Maik,

    > one would need a “buffer-aware” multipass encoder, and I’m not aware of such a thing being in existence

    Any multipass DVD encoder has that – because DVD also has buffer constraints. The thing is called Video Buffer Verifier. Let me assure you it’s commonplace in encoders. If you want to look it up in opensource then for example XviD uses VBV any time you specify a profile and level.

    > This means the video can have plenty of bitrate spikes that may empty the client’s buffer

    Yup, I suppose the distinction is whether client has restricted bandwidth or restricted data transfer. I’m an Aussie so I have plenty of bandwidth (~6 Mbit/s now) but every byte is counted towards my limited quota, so I want bits to be distributed as efficiently as it gets.

  30. 30 Maik Merten

    Hi sysKin,

    ah, right, should have thought about DVD encoders, those clearly need a restricted buffer management. Thanks for pointing that out.

    Traffic quotas for sure are a good argument for putting bits to maximum use, so having multipass Theora encoders for sure would be a worthwhile long-time goal.

  31. 31 Slick Denis 4000

    So it looks good. But which codec produces a smaller file? Are the theora files smaller or larger than the H.264 files?

  32. 32 hofodomo

    Probably should have compared the two with the names of their encoders hidden first…

  33. 33 A

    Hmm, yes, let’s use STILL IMAGES TO COMPARE VIDEO ENCODING. Fucking idiots. Why are you doing this? Why would you decide to push Theora of all things? There are tons of better alternatives out there, the best one probably being H.264. Theora can’t handle HD video, which definitely is essential for this to succeed.

  34. 34 A

    Also, LEAVE NVIDIA OUT OF THIS.

  35. 35 rjs

    Having worked and published in the area of image quality for years, I feel the Theora codec has produced a significantly better image than H.264.

    That said, evaluating codec quality is a complex task… H.264 only
    standardizes the bitstream and decoder. Encoder improvements might improved the image quality over what has been shown (same thing for Theora!)

    At a minimum, I would say the two codecs are at least comparable.

  36. 36 Maik Merten

    Well, this is most likely falling victim to a troll, but then…

    @A: If you would have cared enough to discover that the pictures in the blog post are actually links to a more elaborate comparison page you may have noticed that you are invited and advised to download the video files and have a look for yourself beyond still images. This comparison page also features encodes at HD resolution. Theora can handle content up to 1048560 × 1048560 pixels (but that’s an insane theoretical limit).

  37. 37 thinsoldier

    “1. No controls for resizing (full screen ?) but this is FF.”

    Isn’t full screen but

    video {
    left:0;
    position:fixed;
    top:0;
    width:70%;
    z-index:99;
    }
    applied via greasemonkey, firebug, or web developer toolbar works pretty well.

    Come to think of it, gametrailers.com uses this approach for “full screen” even though they use flash.

  38. 38 Merkats

    Maik, you’re doing great job, keep it up! Those idiots like the one named “A” are not even worth of your precious time. He didn’t even take few seconds of his time to click on those images, read through the page you prepared and posted… so why should you waste your time on him? Because if he did in the first place, he wouldn’t post those stupid remarks. Oh well, this World is full of trolling morons. Let him live in his own world and enjoy his stupidness in full. Maybe, but just maybe… one day he’ll leave his troll-room and finally meet a girl, and possibly soften a little bit so he won’t be wandering these pages bugging other people.

  39. 39 mosa

    I need glasses
    I can’t see oOH any differences

    Thanks

  40. 40 Eduardo B. da C. Krukoski

    This is a Historic Moment !!!
    … Open Video with out plug-in and free!!!
    Bye bye flash player …

    I just have one question… Where can I find the video encoder?

  41. 41 Jim H

    Not to be a wet blanket, because Theora does very well, but this is an overcast day. To do a complete assessment, you’d have to do a comparison in all lighting conditions, and all states of the codecs, all resolutions, one-pass, multiple passes, etc.

  42. 42 TGM

    I don’t mean any disrespect on the guy in the example but… I can see his spots on the Theora encoding!

  43. 43 TGM

    I don’t mean any disrespect on the guy in the encoding but… I can see his spots on the Theora encoding!

  44. 44 dave

    color saturation in H.264 is a little nicer… that might be controllable in preferences tho.

  45. 45 Tomas

    Hi Everyone,

    Clarification WHY USE THEORA + VORBIS:

    1.Theora should be used instead of patent an royalties constrained Adobe Flash. Adobe Flash sucks very much, because:

    a)for the playback of same quality video material it requires muuuuch more CPU power than any other decoder (Theora for that matter or Xvid);
    b)it crashes everything on its way (no matter what browser or operating system you use- I tried them all, really);

    2.Flash is closed source- speaks for itself and partially explained the above. Three words: security, quality, spyware;

    3.The profile used by google sucks all the way and any h.264/AVC takes way too much CPU power to compress and achieve the same (or as in case of youtube worse) quality for a small web video than any other encoder (vide Theora).

    4. Theres no point to use any AVC for the web as you have to pay royalties from 2010 to mpegLA even if they havn’t written a single line of code. The same goes for open source Xvid- they havn’t written a single line of code but claim its their patent. (Xvid is so good that some companies even tried to steal it an conceal the code, they failed miserably).

    5.In order to achive good results in Theora you need two passes, but even with one pass its GREAT. For compressing DVDs I use sth. like this: QPel+ Extreme Quality Profile+ Trellis Search Quantization+ Some Image Noise Reduction+ Gauss Scaler. I also use Vorbis for Audio (Q=3). To my surprise it produced sharper image than Xvid without Qpel (rest settings the same).

  46. 46 Eduardo B. da C. Krukoski

    What is most important?
    Create a default Audio & Video codec for WEB that can be open directly on browser.
    But this codec MUST be open source, with quality and low CPU power use. THEORA is a candidate. Let’s test him!

  47. 47 KeV

    Well said,

    I’m so glad we have native support and the codecs improving all the time, hopefully one day we can get rid of adverts that use flash to redirect you anywhere they like and flash LSO cookies and have code that’s ratified by responsible browser developers that is as cross platform as can be and make life easier for developers by only needing to support one open format. ;)

  48. 48 Dmitry

    Great thanks for new VIDEO tag. I use ogg for web TV streaming. But how I did understand, new VIDEO element not yet support stream video – infinite file. This element can only single files play. It is thuth?

  1. 1 颠覆网络35天 ─ “开放视频编码和质量”一文的更新 < MJiA
  2. 2 Links 17/06/2009: Microkernels Revisited, Mozilla Praises Ogg | Boycott Novell
  3. 3 Firefox 3.5 release candidate now available for download | Easy Firefox
  4. 4 Monthly Interesting Links Roundup (June 2009) - 2
  5. 5 Вийшов Firefox 3.5 ! » Mozilla Україна
  6. 6 Firefox 3.5 released | Ramoonus.nl
  7. 7 Mozilla Italia » Archivio » Firefox 3.5 è arrivato!
  8. 8 Firefox 3.5 Released | BestTechie.net
  9. 9 Mozilla Firefix 3.5 Has Just Been Released - Computer Juice - Forums
  10. 10 Bunnykins’ Blog » Blog Archive » Firefox v.3.5, released June 30th, 2009
  11. 11 Mozilla Firefox 3.5 Has Touched Down | Erictric
  12. 12 Firefox 3.5 Available Now | Business Hacks | BNET
  13. 13 Firefox 3.5 est disponible dans sa version finale | Hajen.fr
  14. 14 Firefox 3.5 publicado « GNU/Linux, una forma de vida
  15. 15 Firefox 3.5 finalmente disponible en argentino, chileno, español y mexicano : Blogografia
  16. 16 Firefox 3.5 中文正式版 | 六尾さそりの東
  17. 17 Firefox 3.5 is finally here |
  18. 18 Splact » La volpe alimenta la sua fiamma con Firefox 3.5
  19. 19 BlogZilla » Firefox 3.5 è arrivato!
  20. 20 Public Service Announcement: FF 3.5 — Get It! » Solo Technology
  21. 21 Mozilla Firefox 3.5
  22. 22 Firefox 3.5 finalmente disponible en chileno, español, mexicano y argentino : Blogografia
  23. 23 Firefox 3.5 Finalmente disponible! « freak dejavu
  24. 24 Descarga Firefox 3.5 Aqui! Gratis!!!!! | CibaoBlog.com
  25. 25 Ya disponible firefox 3.5 - TodoNintendo
  26. 26 Disponible la versión final de FireFox 3.5, más rápido que nunca | Macolaki
  27. 27 Firefox 3.5 - Atomatix
  28. 28 Firefox 3.5 » Andy´s Blog
  29. 29 Firefox 3.5 – Ein weiterer Meilenstein wurde gesetzt | PCInside
  30. 30 Firefox 3.5 Released « The Firefox Extension Guru’s Blog
  31. 31 A-Blog » Mozilla Firefox 3.5 – продолжает завоевывать Web…
  32. 32 Firefox 3.5 Released – Groovy New Features | groovypost.com
  33. 33 jakobmeyn.de » Mozilla Firefox 3.5
  34. 34 Firefox 3.5 is now available for download | Easy Firefox
  35. 35 Firefox 3.5 Available Now! | Easy Firefox
  36. 36 Firefox 3.5 finalmente disponible y en Español | Lo Tecnologico
  37. 37 Firefox 3.5 final (disponible en Español castellano, mexicano, chileno y argentino) « Mr. eDmOn…
  38. 38 Descargar Firefox 3.5 | Proyecto Aurora
  39. 39 Liberada la versión 3.5 de Firefox | Alfredo Juarez
  40. 40 Mozilla Firefox 3 3.5 Final « evilfantasy’s blog
  41. 41 Disk Inserted » Firefox 3.5 Officially Released Today!
  42. 42 Firefox 3.5 disponibile al Download | Tecnophone, tecnologia e cellulari per tutti i gusti!!
  43. 43 Firefox 3.5 foi lançado! :: O Blog da Mozilla no Brasil
  44. 44 Firefox 3.5 « kozmania.com
  45. 45 Firefox 3.5 | sisaR4k
  46. 46 Firefox 3.5 is out! « Nu!Netherlands News Weblog
  47. 47 Firefox 3.5 Listo para descargar! | Organizacion LuChOeDu
  48. 48 Mozilla Firefox 3.5 Released | Alien Babel Tech
  49. 49 Foxy ladies: Mozilla releases Firefox 3.5! | Thushan Fernando Uncut
  50. 50 Firefox 3.5 en la calle « Criado Indomable
  51. 51 Firefox 3.5 Officially Available for Download » The I.T Lounge
  52. 52 肥佳洛的Linux學習網 » Mozilla Firefox 3.5 可以更新了 – openSUSE 11.1
  53. 53 Firefox 3.5 正式发布 at 发布啦
  54. 54 Firefox 3.5 Stable, Here At Last « Forca Blog
  55. 55 笨師拉 – BenZilla » Archive » Firefox 3.5 Released!
  56. 56 Mozilla Firefox 3.5 Has Finally Arrived! «
  57. 57 Firefox 3.5 è arrivato! at rymstudio
  58. 58 جديد موزيلا Firefox 3.5 دعم للهوتمل الاصدار الخامس
  59. 59 Firefox 3.5 released «
  60. 60 Новая версия популряного браузера Firefox 3.5 « ИСКОС и ГГО
  61. 61 FireFox 3.5 - big update, new technologies, faster browsing « WhatwasIthinking.co.uk
  62. 62 shivabandaru.info » Blog Archive » Firefox 3.5 version Released
  63. 63 Firefox 3.5 release note « ReadySleep
  64. 64 Firefox 3.5 verfügbar « Die Online Seite
  65. 65 Firefox 3.5, le navigateur précurseur | Geekeries
  66. 66 the fly on the net » Firefox 3.5
  67. 67 Rilasciato Firefox 3.5 | Splesh!web - consigli e trucchi dal web
  68. 68 Aggiornamento: Firefox 3.5, la volpe brucia ancora di più | Appleecious
  69. 69 Rilasciato Mozilla Firefox 3.5
  70. 70 FireFox(火狐)3.5正式版 | IT狂人
  71. 71 [Thread Ufficiale] Mozilla Firefox 3.5 - Centerzone Forum
  72. 72 Firefox 3.5 – Der schnellste Firefox aller Zeit | SIDE-2.de - by Oliver Steiner
  73. 73 Mozilla Firefox 3.5, finalmente ci siamo | Appunti di viaggio di un ... informatico
  74. 74 What’s New in Firefox 3.5 « Techdew
  75. 75 Mozilla Firefox 3.5 released | Mahesh Kukreja - Webmaster, SEO Blog, Make Money Online
  76. 76 Mozilla released Firefox 3.5 on June 30th 2009
  77. 77 Firefox 3.5 Listo para descargar!
  78. 78 Firefox 3.5 中文正式版,瀏覽網頁更順暢 | 就是教不落
  79. 79 Firefox 3.5 whats new? | PinoyDeal Philippines Business, Franchise & Investment
  80. 80 Ya se puede descargar Firefox 3.5 « La Trapaleta es lo de hoy
  81. 81 TecMAX | Tu Web de Tecnología al Máximo » Blog Archive » Lanzamiento Mozilla Firefox 3.5
  82. 82 Tecnología All-In-One Blogs » Blog Archive » Firefox 3.5 finalmente disponible en chileno, español, mexicano y argentino
  83. 83 Mozilla Firefox 3.5 Released! | überdood!
  84. 84 Firefox 3.5 - Yellow Press
  85. 85 Firefox 3.5 Listo para descargar! « El Blog de los Anti-heroes
  86. 86 Firefox 3.5 Release Optimized Build
  87. 87 Firefox 3.5 Released! - Vitae Founder and Project Lead Mike Moceri’s Personal Blog
  88. 88 » Disponibile Firefox 3.5
  89. 89 Firefox 3.5 è arrivato! | Gioxx's Wall
  90. 90 Vinux.info » Firefox 3.5 est arrivé !
  91. 91 Firefox 3.5 en ligne • Colibrix.org
  92. 92 Talking » Yes!You can get Firefox 3.5 now!
  93. 93 What’s New in Firefox 3.5 | Free Code Collection
  94. 94 Firefox 3.5 download - Ele chegou para ficar | Lenoxweb Blog
  95. 95 Mozilla Firefox 3.5 | blog.hoeda.info
  96. 96 OpenSource Reporter » Blog Archive » Firefox 3.5… Its out!!!
  97. 97 Wrong Loop Blog » Blog Archive » Firefox 3.5 Release Optimized Build
  98. 98 Firefox 3.5 is now out and ready to download. But Wait! | Blazing Minds
  99. 99 Get 3.5 « Tech – for Everyone
  100. 100 Noticias – Firefox 3.5 oficialmente disponible mejoras y aceptacion de formatos abiertos | Tribulinux
  101. 101 Open Video looks to make Flash a dim spot on internet video’s future | TechSoup
  102. 102 Speedier New Firefox 3.5 — Aurum3 NewTech : New Technology, Games and Gadget Guide
  103. 103 Download dan Fitur Firefox 3.5 « Ceritahusnie's Blog
  104. 104 Download Firefox 3.5, the fastest ever Firefox web browser
  105. 105 Nirvanknight™ | Personal Blog » Mozilla Firefox 3.5
  106. 106 The Beauty of the Community « Aaron On Software
  107. 107 wanmus.com » Blog Archive » Firefox 3.5 Fastest, Smartest & Safest Browser?
  108. 108 Por fin Firefox 3.5 | Queni™
  109. 109 ExcEsc |
  110. 110 從tete009更換成Ayakawa(綾川版) | 六尾さそりの東
  111. 111 Algunas Actualizaciones « El Bl®ck de PuPiLo)
  112. 112 谋智社区 » Blog Archives » 颠覆网络35天 ─ “开放视频编码和质量”一文的更新
  113. 113 Zio Magazine Blog » Blog Archive » Mozilla Firefox 3.5
  114. 114 جديد موزيلا Firefox 3.5 دعم للهوتمل الاصدار الخامس « مدونة
  115. 115 Firefox 3.5 (A.K.A. Shiretoko)
  116. 116 Mozilla Firefox arriva alla 3.5! | Open your Mind . .

Leave a Reply