Slashdot Mirror


Comparing Codecs for 2004

MunchMunch writes "Popular encoding/guide/news site doom9.org has just put up its codec shoot-out for 2004, comparing 3ivx 5.0, Divx Fusion 5.9 (prerelease 6.0), Nero Digital Main Profile and High Profile, RealVideo 10, On2 VP6, VideoSoft's VSS, Xvid 1.0, MS's WMV9 and, last, newcomer Jomingo's HDX4. The comparison covers the speed, accuracy, target-file-size-adherence and other aspects of the codecs -- but also lets you compare yourself via high- and low-bandwidth framegrabs of each codec with a nice zoomable image-swap script."

38 of 233 comments (clear)

  1. Winner by Anonymous Coward · · Score: 3, Informative

    Nero Digital won on quality, but for both speed and quality, doom9.org concludes XviD is currently the best solution.

    1. Re:Winner by Hackeron · · Score: 3, Interesting

      What about libavcodec (mencoder's default)? I ran some xvid vs lavc myself and found lavc to be of better quality vs size. Isnt it ironic the best codec isnt even in the comparison?

      Reminds me of those sound codec tests where vorbis wasnt present :)

    2. Re:Winner by dsparil · · Score: 5, Informative

      NeroDigital was declared the overall winner, not XviD. XviD had the best quality versus encoding speed. TFA specically says

      Finally, XviD, one year after taking the crown, had to give it back. It would've won again, if it were not for ateme's AVC codecs. So, if you make DVD backups now that need to work on a standalone or slower machine, XviD is still a very good option, but I guess we'll see AVC capable decoder chips in 2005.

      and

      Looking at the encoding speed table, this was an easy pick: XviD clearly delivers the best quality per FPS and shows that high speed is not detrimental to quality at all. Also, ateme's Main Profile encoder delivered a good 31.40 fps, which is very respectable for an AVC codec, and thus it earned the 2nd place in this category.

  2. H.264 by daveschroeder · · Score: 4, Informative

    I realize it's not available yet, but it's coming...and frankly, it's pretty amazing. Scales from 3G handheld devices to HD content, already part of the forthcoming HD-DVD and Bluray Disc formats, not to mention being an ITU and MPEG standard, etc.

    1. Re:H.264 by Anonymous Coward · · Score: 5, Informative

      H.264 is MPEG-4 Advanced Codec (AVC). Some AVC codecs are included in the article, the Nero Digital and HP4X one's in particular.

    2. Re:H.264 by Anonymous Coward · · Score: 5, Informative

      I realize it's not available yet, Huh? You can get source code of the reference hode, or zillions of commercial implementations

    3. Re:H.264 by michaeldot · · Score: 5, Insightful

      Thank you for today's example of Apple fanboy hating curmudgeonliness.

      Fanboy or not, he gave useful information: H.264 does indeed have more industry credibility than the list of toy codecs who main use is to swap pirated TV shows on the eDonkey network.

      And the fact that you've started to get modded up informative is what gives Slashdot a bad taste in the mouth.

      Seriously, this place is looking more like comp.sys.advocacy.* every day...

    4. Re:H.264 by Bulln-Bulln · · Score: 4, Informative

      I don't see a codec called HP4X in the article and if you actually read the article (yeah, I know... this is /.) you'll see that the simmilar named HDX4 codec is an ASP (not AVC) codec.

      (HP4X has something to do with calculators from HP.)

  3. Wow by Chuck+Chunder · · Score: 3, Funny
    but also lets you compare yourself via high- and low-bandwidth framegrabs of each codec with a nice zoomable image-swap script
    If ever there was a summary that said "slashdotting", that was it.
    --
    Boffoonery - downloadable Comedy Benefit for Bletchley Park
  4. What no FLC? by Anonymous Coward · · Score: 5, Funny

    I'm an Amiga user, where is FLC you incensitive clod?

  5. snow is better and mplayer supports it now! by Anonymous Coward · · Score: 4, Interesting

    from my experiences with what i've played with, snow far surpasses all these codecs. its the only currently realistic wavelet choice, and it hasnt even been optimized for speed. you need a good processor though. mplayer has support for snow now!

    1. Re:snow is better and mplayer supports it now! by Anonymous Coward · · Score: 3, Informative

      Michael Niedermayer is the author and afaik he works for fraunhofer. but i believe the snow video codec is based on wavelets, no more blocks, and is open source.

      but i dont have an account so this will be buried at score 0.

      i cant believe nobody on slashdot knows of this great codec. which as i said is supported by mencoder/mplayer now!

  6. Theora? by mano78 · · Score: 5, Interesting

    From a quite-newbie point of view: is there a reason why Ogg Theora isn't included? Given the quality and increasing popularity of Vorbis, I would have expected at least a mention. And it would have been interesting to know its state relative to the others.

    1. Re:Theora? by Weird+O'Puns · · Score: 5, Informative

      Theora is still in alpha stages and still has many problems with it. Currently it doesn't stand a chance with the codecs in the shoot-out, especially with the bitrates they were using in the tests.

      That being said, remember that Theora is already pretty useful for low bitrate Internet streams.

    2. Re:Theora? by Inf0phreak · · Score: 4, Informative
      AFAIK, Theora doesn't fit into the toolchain that Doom9 uses with AviSynth because it doesn't have a DirectShow filter of VfW implementation (Please feel free to correct me though).

      I think you have to use a command line encoder that only accepts some weird raw picture format which by my (and most other persons', I presume) standards is just silly and in no way usable (*). Unless mencoder supports it, of course. But that still doesn't work with his usual toolchain.

      (*): And don't come with that "oh, but it's alpha software. Things like that can wait!" because it won't get any use or testing at all if they keep it that way. So when 1.0 finally comes out they get bashed for its horrible quality and have to spend months tuning their encoder again, doing work they could have saved themselves had they had better testing from the start. That's how I guess it's going to be when 1.0 finally comes around.

      PS: I still think it's a pretty cool project and with the java implementation for streaming, it would be very nice to see more wide-spread use of Theora, but I won't be holding my breath.

      --
      ________
      Entranced by anime since late summer 2001 and loving it ^_^
    3. Re:Theora? by Bulln-Bulln · · Score: 3, Informative

      Theora is based on On2's VP3 and this codec was removed from Doom9.org's codec comparisons long ago, because it's old and didn't have significant (if any) improvement in quality. The same thing happend with "DivX ;-) 3" (the hacked MS codec).
      These codecs have not been removed, because the Doom9 guy hate them or something, but because the old test results still apply and testing them over and over again would just be a waste of time.

      IIRC VP3 (and DivX 3) was removed in 2003. So check out a comparison from 2003 to see how it performs.

    4. Re:Theora? by Bulln-Bulln · · Score: 3, Insightful

      Argh, I don't like to reply to myself, but check out the first page:
      "I've re-included Microsoft's WMV9 (...)"
      This means that WMV9 was dropped in the past, too.

      It contimiues: "(...) especially since it is part of the specification of HD DVD and Blu-ray. There have been some improvements in WMV9 (...)"

      So this means that Theora is not dropped forever. When Theora hits a significant milestone (1.0?) and shows improvements in quality over VP3, it's likely to be tested again.

  7. Re:No OGM? by imsabbel · · Score: 4, Informative

    OGM is only a file container, so it doesnt matter.
    And ogg theora is a VERY outdated version of the vp codec. VP6.x was tested, theora is based on vp4.something, a more than 2 years outdated codebase.
    draw you own conclusions

    --
    HI O WISE PRINCE. WHT TOOK U SO DAM LONG?
  8. Re:What about Ogg Vorbis? by BladeMelbourne · · Score: 3, Informative
    Wow, most of your MP3 files must be 0 kbps or 0 KB in size.

    MP3 files most definately have frames:
    http://www.id3.org/mp3frame.html
    http://www.dv.co.yu/mpgscript/mpeghdr.htm

  9. Progress by bigberk · · Score: 5, Insightful

    Overall, the progress is just astounding. When I compare clips of say movies from 3 years ago to ones you can find now, the file sizes have remained the same but the quality of both video and audio have gone way up. I don't know much about video codecs but I do recall back then there still being MPEG 4 in the game, so maybe it's more about modern tweaks?

    1. Re:Progress by bigberk · · Score: 4, Insightful

      Also makes one snicker... I recall content producers saying that selling high quality television/video streaming over the Internet is not feasible (the amount of data that has to be shipped). Well, they were wrong it seems... instead of putting all that money in lawyers' pockets, they could have helped develop technologies to produce new revenue streams. As is, they sat idly by while others made the technologies that will probably obsolete TV/movie content producers.

    2. Re:Progress by lavaface · · Score: 4, Insightful
      they sat idly by while others made the technologies that will probably obsolete TV/movie content producers

      It's just a small point, but I think it's the distributors who are in for a rude awakening. The producers of content will continue to thrive.

  10. H264 and MPlayer : you can try x264 by Anonymous Coward · · Score: 5, Informative

    x264 is a free (GPL) implementation done by one of the French guys of the videolan team (who made the VLC player).
    http://www.videolan.org/x264.html
    MPlayer-pre6 now supports it. You just need to compile the x264 codec, and compile MPlayer with the x264 libraries linked (see ./configure options).

    I tried it, it is very promising.
    Apparently it also works with transcode and has a Win32 version too.

    See alsothis thread about using mencoder and x264:
    http://forum.doom9.org/showthread.php?threadid=830 39

  11. Theora works. by Anonymous Coward · · Score: 3, Interesting

    About five months ago I got the theora encoder compiling in OS X.. Encoded a test 5 minute short. It was TINY and playback (through VLC or MPlayer I think) was great. It should have been included in any comparison.

  12. Re:No OGM? by Bloater · · Score: 4, Informative

    Theora is based on VP3.2

    Theora also has some changes that allow potentially much higher quality - although the reference encoder doesn't use them yet. Also the current reference encoder tries to encode noise very faithfully, and that causes noticeable quality issues (especially "beating" at low bitrates on noisy source data). Having said that, I normally find Theora to be noticeably better quality at the same bitrate than DivX.

  13. Time to move on? by zmollusc · · Score: 3, Insightful

    Erm, this may only apply to old codgers with failing faculties like myself, but I think that a level of acceptability has been reached.
    Just as mp3(and similar) is good enough to listen to and jpg, bmp and gif are good enough for the various static images needs, divx(xvid) and mpeg2 fill the processing requirements for moving images.
    With the cost of storage falling there is less need to build a higher compression video codec. If you want to do some good, come up with faster and higher quality ways to transcode things to an existing open codec standard.

    --
    They whose government reduces their essential liberties for temporary security, receive neither liberty nor security.
    1. Re:Time to move on? by HFShadow · · Score: 5, Insightful

      No, they don't meet the processing requirements. "Just as mp3(and similar) is good enough to listen" - Mp3 files are small enough that even when encoded at a high bitrate, you can download a file reasonably fast. Audio quality is also alot more subjective to the listener then video is. Anyone can take a video and pause it and point out all the things that don't look quite right, something that can't be done with an MP3. Also since you know what a video is "supposed" to look like, you notice the errors more. Those stairs aren't blurry in real life, why are they in the movie? Same for faces, rain and other objects. Video codec's will always be worked on and updated, as higher quality video is demanded, sizes get larger and larger and more unworkable. When you have a large HDTV, do you really want to watch a divx video with blocky motion artifacts?

    2. Re:Time to move on? by liangzai · · Score: 5, Insightful

      What you are saying is that 640 kB should be enough for everyone, or that since we have Microsoft Word we have reached a level of acceptability...

      This is not so, since new codecs do so much more than conserve bandwidth (which is in itself a good purpose, considering the Slashdot effect and other congestions that will always occur on tah intarweb). Some of them DO have better quality per se than MPEG-2, and some of them DO scale enormously much better. MPEG-4 was developed for these and other reasons, and there is a tremendous need for such a codec, not least from a wireless perspecive.

      Furthermore, it would be desirable to have a codec that can handle as many things as possible, rather than relying on a bunch of different codecs for different purposes.

      Finally, I believe in standards rather than proprietary formats and codecs. DivX is fine, but it is a bastardized version of MPEG-4, and there are also many different implementations. Most of them generate errors in VLC, whereas I have yet to see a failing MPEG-4 video.

      There are also the aspects of cross platform implementation (forget WMV9), simplicity, scalability and ingenuity in the architecture (why Quicktime was chosen as the MPEG-4 file architecture), and industry support (everyone but Redmond City supports MPEG-4). There.

  14. Is WM9 part of AVC? by NeMon'ess · · Score: 3, Informative

    Googling for "What is AVC?" bring up this. I'm confused as to if they're saying AVC will be stardard in HD-DVD? Is WM9 an AVC? If not, will both be options for HD-DVD content providers? I ask because in the shootout WM9 didn't look very good. Relatively it blurs more of the scene than xvid.

  15. Re:nobody seems to have heard of this codec by Elledan · · Score: 5, Interesting
    Valid link to the thread about the Snow wavelet-based codec: Snow

    For those too lazy to click the above link, here's the content of the first post:

    "I think a new thread is a more fitting place to discuss about the Snow codec. :) If someone wouldn't know what is it, it's an experimental wavelet codec made by the ffmpeg developers, which borrows a lot of tools from h.264, and while it's still early in the development, it's already giving very good results, far surpasses other wavelet codecs (rududu, dirac) and imho Xvid too, quality-wise. Unfortunately it's only usable with mplayer/mencoder right now, but i think the next ffdshow will include it, so the testing will be more easier. [Update: The latest ffdshow build provided by Celtic_druid have Snow support]

    I've played with the settings, and so far this command-line gives the best result:

    code:mencoder in.avi -o out.avi -ovc lavc -lavcopts vcodec=snow:vstrict=-1:vqscale=3:qpel:v4mv:cmp=1:s ubcmp=1:mbcmp=1:pred=1

    This gives ~600-800 kbps, depending on the source, and the quality is excellent imo.

    vqscale is the quantizer, if it's not included it in the command line, Snow will compress losslessly.

    So far my opinion about the different settings: qpel always increases the quality - recommended v4mv - i would only recommended it at lower quantizers (max 4-5), above that the stronger artifacts it causes like ringing can hurt the quality xxxcmp=1 (using SSE comparison method instead of SAD) slows down the encoding, but prevents the color mismatches, which can occur otherwise (anyone who tried rududu codec can remember to that). using pred=1 or 2 (different wavelet functions instead of the default) can increase the quality, but these make the encoding (and pred=2 the decoding too) much slower."

    Wavelet-based encoding definitely sounds like a great idea. It's only too bad that it isn't universally usable (it can't compress certain images well, either), and requires a fast CPU. At least it gives that Athlon 64 3500+ you just got something to do :)

    --
    Site & blog: http://www.mayaposch.com
  16. An On2 derivative by Hal+XP · · Score: 4, Informative
    At this stage Theora is not much more than a mutation of the On2 VP3 codec, which On2 donated to the free software community.

    A quote from the Theora faq:

    Q. Is the Theora bitstream identical to VP3?

    Yes and No. Theora is a superset of VP3, so VP3 streams (with minor syntactic modifications) can be made into Theora streams without recompression (but not vice versa).

    Theora will be almost entirely based upon the VP3 codec designed by On2. However, Theora video data will be delivered inside of the Ogg container format (with Vorbis for audio), so Ogg Theora files will not be the same as VP3 files. There also may be quite a few performance advantages to using Theora when 1.0 is complete. While our focus is integration, there will certainly be a lot of optimization involved, as well.

    So there! Theora is optimized VP3, which means there's a good chance it would turn out to be a faster codec. But as far as visual quality is concerned Theora is likely to be just as good or just as bad as VP3.

    On2 itself is well represented in the survey by its VP6 codec, and judging from the pseudo version numbers on the codec names, it should be safe to assume that VP3 is inferior to VP6 (VP6 - VP3 = 3 generations of development).

    --
    I'm a sci-fi vegan: I don't want the aliens to think we have as much right to live as the fried chickens we eat.
  17. Re:The Problem with WMV9 video by Space+Coyote · · Score: 4, Funny
    on the Mac, the only player that supports it (Windows Media Player for Mac OS X) lacks so many features such as drag-n-drop support, displayal of the file's name during playback, AVI, MPEG, and MP3 support, etc.

    I'd just like to say that "displayal" is the greatest made-up word ever.

    --
    ___
    Cogito cogito, ergo cogito sum.
  18. Re:Video codec's will always be worked on by ambrosine10 · · Score: 4, Informative

    And, yes, those stairs, rain and especially faces ARE blurred in real life.

    What, you have glaucoma? Are you near-sighted? Go buy some glasses.

    The original picture WAS crisp, and there's no reason why the encoded version shouldn't be. We get most of our information from visual sources and so our demand for high-quality visuals will never go down. Normal people take time even distinguishing 64k AAC clips from the original sometimes. But with visuals it's easy to spot artifacts.

    divx is watchable and a good size/quality compromise.

    Yes, and maybe 64k MP3 is good enough for you. It's not for most people. Be happy, you have what you want. Let the developers develop for the rest of the human population who care.

    You can get a 90 minute film onto a cd, for instance.

    Yes and as development continues that same 90-minute film on the CD will look closer and closer to the original.

    If, in the future, you can encode a 90 minute hdtv into 700mb with no quality loss

    This is impossible to do losslessly - that's why we're developing lossy codecs. There will always be a tradeoff between quality and file-size, but it will continue to improve, barring people like you who claim everything is fine, fine. The point of technology is progress. If you're happy with your LPs and your black and white TV, fine, but don't go ruining it for the rest of us.

    hardware needed to decode and render the film will probably not use cds.

    Uh, what?

  19. Ultra high bandwidth PNG? by eggspurt · · Score: 3, Informative
    It's important to understand that most default PNG exporters are not very good. You should use a PNG optimizer, such as Ken Silverman's PNGOUT or Cosmin Truta's OptiPNG. Let us focus on the matrix3-3ivx-6364.png image:
    • Default: 129,002 bytes
    • OptiPNG: 121,967 bytes
    • PNGOUT: 113,759 bytes
    It may not seem much, but it adds up. Sometimes you can reduce the bit depth (for gray scale), make a palette (for drawings and charts that don't need 64 bits of color depth), and reduce resolution. Some more tricks are at Baseline JPEG and JPEG2000 Artifacts Illustrated.
  20. Theora is a victim of xiph's own anti-marketing by rseuhs · · Score: 3, Insightful
    The sad truth is that as long as xiph is dominated by stubborn, arrogant technocrats, it will have a pretty hard time.

    Ogg-Vorbis is the best audio-codec technically - but everybody calls it "ogg" and not "ogg-vorbis" because the file extension is .ogg

    Effectively, xiph does everything possible to sabotage their own product: It doesn't have a good sounding name, it doesn't have a consistent name ("ogg" versus "ogg-vorbis"), they don't have any buttons/banners to put on products on xiph.org and there is lots of confusion about container format (ogg) and codec (vorbis), which is the "U"-part from FUD.

    The only reason anybody uses ogg at all is because it is excellent technically and beats all other audio codecs by a longshot.

    Unfortunately, the guys at xiph don't acknowledge that fact and insist of wanting to have videos with .ogg extension, too, which is doomed to fail because nobody wants to have audio and video to have the same file extension.

    The users have created a pseudo standard file extension of .ogm for XVid/Vorbis streams which does quite well in the P2P-networks (= successful), but Ogg/Theora has the problem that it isn't as mature and even when they mature probably won't be *that* much better than the others. So even if the xiph guys manage to put out a competitive Theora codec, their own confusion and uncertainity (especially their stubborn and idiotic decision to have .ogg for both audio and video) will sabotage any hopes of success, the way I see it.

    Which is really unfortunate.

    Things would be much better if they would use .ogt or something for ogg/Theora, but the guys at xiph just refuse to :-(

  21. best codec is one I can use in a $60 DVD player by Anonymous Coward · · Score: 5, Informative

    I love my $60 Philips DVP 642 Divx/Xvid stand-alone DVD Player:
    http://www.theinquirer.net/?article=20465
    http://walmart.com/catalog/product.gsp?product_id= 2598455
    http://www.amazon.com/exec/obidos/tg/detail/-/B000 204SWE

    When they make a $60 DVD player for other codecs than MPEG2/MPEG4 I'll be interested. Until then, why bother if something is a little bit better? A WMV9 DVD player would probably be another $50 and not worth it (not that they even exist right now).

  22. Re:nobody seems to have heard of this codec by Anonymous Coward · · Score: 3, Funny

    ... except SNOW doesn't work on Atari ST/E [at least my MC68000 with TOS 1.4].

    I was trying to encode the DavesLanParty dvd with it [it was handy] and it segfaulted on the first frame.

    In fact the mplayer crew largely ignore Atari alltogether which pisses me off as several months ago I offered shell accounts on my STE box (8mhz 4M) just so they could actually get to adding proper support !.

    For instance, the STE has no MMX, no 3dNOW and no SSE [1 or 2] NONE of which a stock build of mplayer [up to pre8.785] will use. It's not like they changed how they work (just now you get 16 registers instead of 8). Even if they just stuck to the first 8 to keep it Jaguar compatible that would be loads better than using BASIC based routines for everything !.

    OSS is only as good as the developers. And well while mplayer is coming along it still lacks some proper support for Atari STE which is rather annoying.

    --
    AS

  23. Transcoding? by cooldev · · Score: 3, Interesting

    Can any video experts comment how transcoding from MPEG-2 affects video quality?

    This is a good test for comparing the quality of codecs for ripping DVDs, but do the results hold true when an uncompressed master is used as the source?