Slashdot Mirror


Concrete Comparisons of Theora Vs. Mpeg-4

icknay writes "With the upcoming Firefox 3.5 and HTML5 video, there's natural interest in Theora vs. Mpeg-4, but without much evidence either way. Here's clips encoded at various rates to provide concrete comparison between Theora and Mpeg-4. Theora performs decently, but requires more bandwidth than Mpeg-4 (although this is a 1.1alpha release of Theora and Theora has a much better license than Mpeg-4). The quality comparisons are very subjective, but you can try the clips yourself and see how it breaks down. There was an earlier discussion about this, but it lacked much concrete evidence. (Disclosure: it's my page.)"

29 of 325 comments (clear)

  1. My results by Anonymous Coward · · Score: 5, Funny

    Both make terrible concrete. I recommend you buy some mix at the hardware store instead.

  2. Disclosure by WED+Fan · · Score: 5, Funny

    Disclosure: I'm trying to stress test my server. Please nuke it into the slag of its constituent parts.

    --
    Politics is the art of looking for trouble, finding it everywhere, diagnosing it incorrectly and applying the wrong fix.
  3. Surprisingly different by spud603 · · Score: 4, Informative

    I sort of knew Theora was a bit behind than Mpeg-4, but I didn't realize by how much. The Theora clip that has a 60% higher bitrate than the Mpeg-4 still looks fuzzier to my eyes (especially the moving grass).

    1. Re:Surprisingly different by stdarg · · Score: 5, Informative

      I noticed in the last discussion that Theora does better when you take a single frame and look. It seems to have a lot more details. However, it's apparent in the clips that the detail comes at the expense of smoothness between frames. If you watch the background it's jumping around a lot, making it look fuzzy, presumably as Theora tries to preserve various details.

    2. Re:Surprisingly different by TheRaven64 · · Score: 4, Informative

      Theora is based on VP3, which is a generation older than MPEG-4. It's been improved a lot, but it's still old technology. Tarkin had a lot more potential, but a few years ago Theora was doing something and Tarkin was still mostly theoretical so the developers focussed on Theora. In hindsight, this may have been a mistake. Theora competes well with MPEG-2, but no one is using MPEG-2 for web distribution.

      Longer term, Dirac looks more promising. It's comparable quality to H.264, is royalty-free, and has two open source implementations. Schroedinger, the newer one, is MIT licensed, and so can be use anywhere. Currently, the CPU load is too high for everyday use, however.

      --
      I am TheRaven on Soylent News
  4. Subjective Measures by Anonymous Coward · · Score: 4, Informative

    Subjective measures are really the best way to evaluate video quality. There are (objective) quantitative measures such as PSNR, but they don't really tell you what the impact of video compression does for the eye. Video quality evaluations mostly involve showing clips (like these) to a large amount of people and asking them which they liked better. There is a lot to consider in terms of how the video responds to packet loss, jitter, etc.

  5. 60% more bitrate for same quality by hattig · · Score: 5, Informative

    The important line from the article: "Theora uses 1600kbps, or about 60% more bandwidth than Mpeg-4 to reach about the same quality."

    Also useful to get some scale: "The uncompressed clip is 349 megabytes, while the 1600kbps Theora clip is 2 megabytes -- Theora may lag Mpeg-4 at this time, but it still yields great compression."

    and "Theora is significantly better than Mpeg-2. Mpeg-2 required about 2400 kbps to hit the subjective quality level above, 50% higher than Theora's bandwidth."

    Some things I would have liked to have seen: 250kbps, 500kbps, 2mbps, 8mbps videos, with subjective quality difference (rather than same subjective quality at different bitrates). Theora is apparently very good at lower bitrates, and not everybody has an awesome broadband connection, so they may be forced to watch lower-bitrate streams. Does the HTML5 video tag support selecting streams based upon available bandwidth?

  6. Seems pretty clear to me by steveha · · Score: 5, Insightful

    The situation seems pretty clear to me.

    Theora is just not as good as H.264; you can get better quality with the same bits in H.264, or similar quality in fewer bits.

    Theora is, however, good enough for general use for Internet video. It's at least as good as H.263, which actually has been used for years. (Breathless claims that Theora would need twice as many bits as H.264 are just silly.)

    Since Theora is free in all ways, browsers can just build it in, and sites like Wikipedia are going to use it. Since H.264 is better, sites with money will pay the H.264 fees to save money on bandwidth. And, if I had a web business, I'd hesitate to paint myself into a corner with H.264; the patent owners have the power to jack up the royalties if they decide to.

    In short, both Theora and H.264 will be found on the Internet in the near future. And we can all just get along.

    (Now watch Theora fanboys and H.264 fanboys team up to mod this post down through the floor... :-)

    P.S. Ogg Vorbis never toppled MP3 from the throne. However, the existence of Vorbis may have exerted some downward pressure on the licensing fees for the paid codecs. In a similar way, the existence of Theora may cause the patent holders for the other video formats to not try to charge quite as much.

    steveha

    --
    lf(1): it's like ls(1) but sorts filenames by extension, tersely
    1. Re:Seems pretty clear to me by wren337 · · Score: 3, Insightful

      Ogg Vorbis died because it had a stupid name. Really, Ogg Vorbis? Or just "ogg" for short. You might as well have named it "Ugg". Or "blech".

      Next time try something that doesn't sound like retching. Never underestimate the power of a really terrible name to kill a product.

    2. Re:Seems pretty clear to me by chebucto · · Score: 3, Insightful

      and MP3 is such a totally alluring name? people don't care what it's called as long as it's what they're used to.

      Acronyms like MP3 are used all the time - my laptop is a T500, the military has guns called M1 through M1000, cars have V6 engines, etc, etc, etc. Number-letter acronyms are commonly used in technology nomenclature; when people hear 'MP3' they expect something technological, and that's what they get.

      Ogg, on the other hand, could be onomatopoeia - it sounds like a grunt. It's very off-putting. The only place I can imagine it fitting in well is as a name for a hardcore punk band.

      --
      The English word fart is one of the oldest words in the English vocabulary.
  7. License by XanC · · Score: 4, Informative

    The license is the single most important thing. It determines whether or not you can use the software at all, or for your specific purpose, whatever that is.

    When we're talking about establishing a standard for the Web, which everybody is expected to be a) able and b) allowed to use, there is nothing more important than the license.

  8. Re:License by XanC · · Score: 3, Insightful

    The license is the single most important thing. It determines whether or not you can use the software at all, or for your specific purpose, whatever that is.

    When we're talking about establishing a standard for the Web, which everybody is expected to be a) able and b) allowed to use, there is nothing more important than the license.

  9. More to than bandwidth by RiotingPacifist · · Score: 4, Interesting

    60% is bit of a price to pay, however IMHO the point of the video tag is tighter integration with your website than is easily achievable with flash. Hopefully theora will improve and compete with mpeg-4, but there are still many advantages to using it over flash for embedded video (for stand alone pages, it doesn't matter so much as most users have a plugin to handle mpeg-4)
    *Interacts with the rest of the page easily (TBF actionscript, et al can achieve this)
    *Much lower cpu usage. While flash is particularly bad, theora is particularly good
    *Cross architecture. As people browse the web on phones, pdas, etc, this does actually matter
    *Much less likely to be exploitable (TBF webhosts don't care, but users should)
    *Open standards.

    I don't think theora should be seen as simply a tool to replace flash videos but it should be seen as an opportunity to better integrate video into sites and/or make video content available to more people annoy people with video backgrounds

    --
    IranAir Flight 655 never forget!
  10. Porn Industry by sycodon · · Score: 3, Insightful

    Let the porn industry sort it out.

    Seeing as they are the only people that actually make real money on the web, we can count on them to pick the most cost effective and highest quality video technology.

    --
    When Fascism comes to America, it will call itself Anti-Fascism, and tell you to give up your guns.
  11. Why nobody speaks about Dirac? by diegocgteleline.es · · Score: 3, Interesting

    Dirac is supposed to be a great opensource, patent-free codec, yet nobody seems to care a lot about it in all those HTML5 video talks....

  12. Re:I thought Theora was GPL-ed? by Draek · · Score: 3, Informative

    The reference implementation of Theora, like that of Vorbis is under a BSD-style license to help it gain wider adoption, so your point is valid even for propietary browser makers such as Opera.

    --
    No problem is insoluble in all conceivable circumstances.
  13. Three "errors" in this test by YA_Python_dev · · Score: 5, Informative

    There are three things that this test doesn't consider:

    1. for the same bitrate (1000 kbit/s) the Mpeg-4 file is 5.2% bigger than the Ogg one;
    2. nobody uses video alone like in this test, there's always audio and the audio codec associated with Theora (Vorbis) rocks: same quality as MP3 for half the bitrate. Bits saved on the sound can be used to improve the video; and, yes, it is apples-to-apples comparing the overall bitrate of Ogg/Theora+Vorbis against an all-Mpeg-4 solution.
    3. but the most important detail is that they used a constant average bitrate encoding with Theora, which is known to give inferior results for the same bitrate to simply setting the quality to match the desired bitrate.

    For real life examples, that also include sound see "YouTube / Ogg/Theora comparison" and "Another online-video comparison".

    --
    There's a hidden treasure in Python 3.x: __prepare__()
    1. Re:Three "errors" in this test by clone53421 · · Score: 3, Informative

      If the codec is included with their browser, that won't be a problem.

      --
      Alexander Peter Kristopeit bought his basement from his mommy for one dollar.
    2. Re:Three "errors" in this test by Machtyn · · Score: 4, Informative

      I believe the issue is that, even though Ogg Theora has a better license, the codec was really bad compared to other, similar codecs. At least, that has been the going concern. Given a choice between a better user experience or a better license *most* users will choose experience.

      The need to prove Ogg Theora is better is to attempt to counter this concern.

    3. Re:Three "errors" in this test by hairyfeet · · Score: 4, Interesting

      Not to mention the one that comes with hardware acceleration. even my cheapo $50 HD4650 comes with H.264, DivX, and WMV hardware acceleration out of the box with stock drivers. Does Theora even have hardware acceleration yet? With the move to netbook/Nettop and green computing hardware video acceleration is the present and the future. If Theora doesn't want to be DOA they need to get hardware acceleration for the big three (ATI, Intel, Nvidia) working NOW and get the GPU manufacturers to pack it in.

      Because even on may nice super fast AMD Dual core having 1080p decoded on the GPU instead of the CPU just makes for a nicer experience overall. Not to mention the fact that GPUs use less power and create less heat than modern CPUs and with it already 100f in the shade here in AR temp matters.

      --
      ACs don't waste your time replying, your posts are never seen by me.
    4. Re:Three "errors" in this test by ShieldW0lf · · Score: 4, Insightful

      The thing you're missing is that users are irrelevant in this situation. The decision lies with the publishers.

      If a publisher had to pay a lot of money to MPEG-LA, and suddenly they have another option, that is a big deal.

      If you want to become a publisher and you don't have a lot of money or a large legacy of content, then this is an option where before you had none. That is an even bigger deal.

      As far as user choice goes, the vast majority just watch what is there and have no clue what the difference is. Discussing their opinion is pointless.

      --
      -1 Uncomfortable Truth
    5. Re:Three "errors" in this test by ShieldW0lf · · Score: 4, Insightful

      Customers don't type in "mpeg-4". They don't type in "theora". They type in "britney spears nude". When they find something, they don't react with "ewh, yuck, theora... back button". Either their browser plays it, or it doesn't, and if it doesn't, they install something, or they don't. That's it. With Theora baked into major browsers, the browser plays it, and that's it.

      --
      -1 Uncomfortable Truth
  14. Re:Help me out, please by TheRaven64 · · Score: 4, Informative

    The license means that every product that includes an encoder or decoder for MPEG-4 (including AVC / H.264) needs to pay the MPEG-LA a small free for every version they sell (or give away). This is incompatible with Free Software. Imagine that FireFox included an MPEG-4 implementation. The Mozilla Corporation makes enough money that they could afford to pay the maximum annual fee for this license, but what happens after you download it? If you give a copy of FireFox to someone else, then you need to pay the license fee (except you can't, because the MPEG-LA doesn't offer licenses except in large quantities). Maybe Moz. Corp. could pay that license too, but what happens in a few years time when they decide to stop? Suddenly, no one can redistribute any copies or derived works of FireFox. The root problem is that it is not possible to get a license for MPEG-4 that permits the kind of arbitrary redistribution that Free Software entails. Although the license fees are capped, they are capped annually, so each year you need to pay again or you no longer have a license to distribute code implementing the patents.

    This is why Theora is better as a standard format. Anyone can implement it, at no cost and with no restrictions. H.264 is better quality, and so makes sense as an optional format for HTML 5 to support, but requiring it would mean that it would be impossible for the second-most-popular web browser to be HTML compliant. Of course, in an ideal world, the W3C, Mozilla Corporation, Google, or some other interested party would just buy the H.264 patents outright and let them lapse, but somehow I don't think that's very likely.

    --
    I am TheRaven on Soylent News
  15. Re:Surprised? Don't be, it's open source. by kthejoker · · Score: 3, Insightful

    I don't want to disagree with your overall point or start a flame war, but really, putting MySQL up against Oracle/MSSQL?

    C'mon.

  16. Re:Theora sucks a nut by squizzar · · Score: 3, Insightful

    Who is this 'Anonymous Cowardon' who keeps posting? Somewhere behind my computer a small pile of spaces seems to have leaked out...

  17. The specific encoder matters too by xiphmont · · Score: 4, Insightful

    Only one point I wanted to mention (since the article and comments have all been--- oddly balanced for Slashdot)

    The article points out that current Thusnelda is not as high quality as the best available h264 encoder at high bitrate video and unlimited encoding time. No argument there, it's true. Thusnelda still has a ways to go, despite the distance it's come; the current alpha still has no Adaptive Quant whatsoever, which will go in before final release.

    However, the vast majority of users are not using x264. If you look at the h264 YouTube encoder, which has been designed for speed rather than 'work as long as you like to optimize the output', suddenly Theora is exactly on-par. In short--- Theora is every bit as good as the way that the real world is going to end up using h264 for the forseeable future. And the users of that 'inferior' h264 encoder seem pretty happy with it.

    Anyway, this isn't disagreeing with anything you've said, it's simply a practical way to look at the difference.

    Monty

  18. Re:Help me out, please by legirons · · Score: 4, Insightful

    Could somebody please explain to me why the license matters?

    Because $x per copy costs a lot when you're distributing an infinite number of copies, as most Free Software programs are.

  19. Re:License by Quantumstate · · Score: 5, Informative

    People providing decoders have to pay the license fee.

    "Royalties to be paid by end product manufacturers for an encoder, a decoder or both (âoeunitâ) begin at US $0.20 per unit after the first 100,000 units each year. There are no royalties on the first 100,000 units each year. Above 5 million units per year, the royalty is US $0.10 per unit."

    This causes issues for free software especially with the gpl because there is a clause which says you cannot restrict the distribution of the code but by having to pay a license fee this is a restriction.

  20. Re:Surprised? Don't be, it's open source. by Doomdark · · Score: 4, Insightful


    Basically, open source projects that weren't initiated by a commercial vendor suck.

    Huh? This is an utterly ignorant claim, almost not worth replying to.

    But if you look at good open source projects, I doubt you can find even a significant minority (much less majority) that were initiated by a commercial vendor.
    Anything from things like Linux to most libraries should in no uncertain terms confirm the idea that no, it's not commercial entities that seed most good open source products or projects. It is useful to also have companies starting OS projects, and sometimes taking ownership. But it's not much of a requirement. Just icing on the cake.

    What is much more useful is the opposite: good open source projects resulting in new companies. That is much more common than the reverse.

    --
    I like paying taxes. With them I buy civilization -- Oliver Wendell Holmes