Slashdot Mirror


Video Codec Comparison

FonkiE writes "Doom9 wrote a good article: After more than 3 weeks of work and no free time during that period it has been done: The latest codec comparison is online. 7 codecs have been put through one of the hardest tests in the history of codec testing. The results: find out on your own ;) I had planned to change the presentation somewhat but certain events (forum problems and such) prevented me from completing this for the release. I plan to eventually supply an updated version of the comparison."

74 of 264 comments (clear)

  1. Spoiler! by Anonymous Coward · · Score: 5, Informative

    In conclusion: When encoding regular movies, if you look for a quick and dirty average solution DivX5 is your fix. If you're an SBC guru, want maximal details at high speed you can still stick to SBC, if you want details and are not worried about the alpha status and speed you should give XviD a shot. DivX5 and XviD also offer standalone playback capability on selected devices. If you don't worry about details too much and prefer to remain almost blockfree you should give RV9 a shot, or alternatively WMV9. Interestingly, the lead developer of XviD has offered to send me a build that would perform just like RV9.. I might take up that offer one day when I'm bored.

    For animated features, the two proprietary solutions deliver good results with XviD pulling slightly ahead.

  2. heh by Anonymous Coward · · Score: 5, Funny

    test 1: The Matrix
    test 2: Saving Private Ryan
    test 3: Futurama

    Heh, the pinnacle of humankind's moving image creations

    1. Re:heh by Wheaty18 · · Score: 3, Informative

      The DVD's of The Matrix and SPR are pretty well done, transfer wise.

      I agree that some better choices could have been made though (keeping in mind this is a video test only), such as:

      - Terminator 2: Ultimate Edition.
      - LOTR: Fellowship Extended DVD.
      - Star Wars EP 1 or 2.
      - Bridge on the River Kwai (awesome 2.40:1 transfer).
      - Lawrence of Arabia
      - Doctor Zhivago

      The last 3 are about as visually stunning as movies can get.

  3. Re:after working with lots of them by NanoGator · · Score: 5, Informative

    " I haven't really gotten mpeg4 to look as well as mpeg2 even with the lowest compression setting. I'm not sure if mpeg4 was simply designed for streaming or whatnot. "

    I had that problem early on, then I found the 'Maximum Quantizer' setting. It defaults to 16. I think what that means is "How big of artifact should you allow?" (I'd appreciate some correction on that if I'm wrong...) I turned that down to 8 (sometimes even 4) and it behaved MUCH better.

    Just thought I'd recommend you try that. If you already have, I'm not sure what to tell ya. I've had pretty good luck with it, but I haven't compared it to MPEG2 because the video I do is pretty much for web delivery.

    --
    "Derp de derp."
  4. Comment removed by account_deleted · · Score: 5, Funny

    Comment removed based on user account deletion

  5. Why use Jpeg? by Nutt · · Score: 5, Insightful

    Along a few of the pictures he says along the lines of "jpeg helped this codec. In this one it hurt this codec.." Granted he probably wanted to save bandwidth but why couldnt he post zipped up uncompressed files to download? Also, I think a single image with side by side comparisons of parts of each scene would be nice as I cant flip back and forth between all the pictures and remember what I liked and disliked about them all.

    1. Re:Why use Jpeg? by zakezuke · · Score: 2, Informative

      Right click, save picture as.

      View in your favorite slideshow program.

      --
      There is no sanctuary. There is no sanctuary. SHUT UP! There is no shut up. There is no shut up.
    2. Re:Why use Jpeg? by sffubs · · Score: 2

      Does the phrase 'slashdotted' mean anything to you?

      -s

      --
      ݼ)s$æúßðíÊ'öX'îò5^àûßQç£
    3. Re:Why use Jpeg? by wmansir · · Score: 2, Insightful

      If this were a still image compression test I would agree that using a lossy format for presentation would be completely unacceptable. But, as Doom9 stated several times in the review, the real judgment comes from watching these codecs in motion. As such the screen-caps are merely aids which, while useful in demonstrating differences, are not meant to be used solely to determine the quality of the codec. Unfortunately, offering clips to be downloaded is out of the question for practical and legal reasons.

      It would be nice to use a lossless format, but as it is the codec reviews take up a large amount of the sites bandwidth (even without slashdot's help). In addition to hosting the codec comparisons, many guides (in 9 languages), and an active forum, Doom9 also hosts a large library of video backup software. All of this is done without commercial sponsors, advertisements or fees.

  6. music codecs by goombah99 · · Score: 2, Insightful
    speaking of codecs i've been doing my own anaylys of the apple acc and mpw and aiff formats. I've been converting acc to Aiff then to mp3 by two methods 1) use audio hijack to grab the itunes output and 2) use imovie to convert the acc to aiff.

    what is odd is that while the final mp3 shows only 12% rms distortion (actually that's a fair bit if you're an audiophile) the intermediate AIFF shows massive added noise when I convert by imovie. this added noise is spread over the spectrum but has significant components at 10Khz. the final mp3 converted by method 1 or 2 are simmilar and show the same level of distortion 12% rms.

    being a signals processing expert but not a codec expert I'm totally at a loss to explain how distortion can show up in the aiff then vanish when reconverted to mp3 (or back to ACC). this makes no sense, and is actually impossible from an information from a (naive) signal/noise point of view unless the noise/distortion is either predictable or out of band form the codec's point of view. never-the-less this is reproiducible.

    I'd like to publish this analysis on slashdot but first want to clear this up.

    anyone got a clue?

    --
    Some drink at the fountain of knowledge. Others just gargle.
    1. Re:music codecs by eht · · Score: 5, Informative

      Real easy answer, the distortion is part of what mp3 just throws away, it's actually quite a lossy codec in some areas.

      Like you said, out of band from the codec's point of view is the most likely answer I can give without playing with the files myself.

    2. Re:music codecs by viper66 · · Score: 2

      so you are converting a lossy format to lossless to lossy? what is the point of that?

  7. Re:after working with lots of them by phreak404 · · Score: 4, Informative

    You can use the exact same compression matrices and quants from Mpeg-2 with Mpeg-4. Both support interlaced and progressive video (although you may have a harder time finding a reliable field-based format for Mpeg-4) and both support HD resolutions. The main difference between the two, is that Mpeg-4 video is part of a much larger specification designed to deal with not only video, but content delivery mechanisms (i.e. interactive things). If the specs could have been finalized quicker, it would have been a Flash killer.

    In any event, the differences in quality you see are more than likely related to implementation (i.e. differences in spec implementation between XviD, DivX 5, MS Mpeg-4, etc.), user error, and the fact that you're taking a compressed video source and compressing it again. Although many people do insist that Mpeg-4 over-quantanizes black and other 'dark' colors, resulting in no true 'black', that could just be perception.

    For a better view of how something like this works, open a PNG, save it as a JPG with a high compression level. Open the JPG, save it as a another JPG with a high compression level. Repeat 10 times and tell us the result.

  8. Mirror available by paulproteus · · Score: 5, Informative

    To avoid Slashdotting the poor server, a mirror is available here:

    mirror.

    --
    |/usr/games/fortune
  9. nice article, but.. by Squarewav · · Score: 5, Interesting

    there is lots of things left out like bitrate/quality comparisons, some codecs, like realvideo do a much better job at low bitrates (200k/s) then say xvid at the same bitrate.

  10. Re:For my fellow ADD'ers by cscx · · Score: 5, Funny

    For my fellow ADD'ers

    Yes, this comparison of video codecs is quite HEY LOOK A GUY ON A BICYCLE!

  11. many things left out... by pinqkandi · · Score: 3, Informative

    there are a lot of common codecs left out of here, for example Sorenson. (yeah yeah, can't view on Linux, but it's popular and quite good)

    1. Re:many things left out... by TenPin22 · · Score: 4, Informative

      Yes you can view ALL sorenson material on linux, try the latest STABLE version of mplayer or the latest beta10 of xine-lib.

  12. Bink? by Anonymous Coward · · Score: 4, Interesting

    I keep hearing good things about Bink. Anyone have any experience with it, one way or the other? Seems to be used in a lot of games.

    1. Re:Bink? by Necroman · · Score: 2

      One thing that I noticed was Blizzard used to use this Video Codec when they released trailers of their games and such. This would make me believe that they also used Bink for their in game footage. But with the release of Warcraft 3, all their in-game movies are encoded with DivX....

      Who knows.

      --
      Its not what it is, its something else.
    2. Re:Bink? by benwaggoner · · Score: 2, Informative

      I've done a lot of Bink encoding (Bink is featured in one of the tutorials in my book).

      Bink's adavantages are a really mature, widely ported (lots of consoles, Mac, Windows, Linux), fast, and highly-featured API. However, its internal codec isn't really THAT great in terms of compression efficiency (bang for the bit). It's fine for CD-ROM games where having a rich, fast, stable video playback system is more important than keeping space to a minimum. But I certainly wouldn't use it for content to be downloaded from the web.

  13. quite the wrong way to go about it by Trepidity · · Score: 4, Interesting

    A signals-processing attempt to measure audio quality isn't useful in general, and especially when dealing with lossy codecs. The various measured distortion values aren't really interesting -- the only relevant result is audio quality. As such, the only interesting tests are blind listening tests.

  14. 3ivx and encoding by shepmaster · · Score: 5, Interesting

    Well, if you have read the article, you can see that 3ivx (not 3ivX as the article states :) ) does not fare well. However, 3ivx does have one thing that the others do not have whatsoever... it was built from scratch for QuickTime compatability. The reason that this is a good thing is the versatility you can achieve with a QuickTime movie. I have personally ripped and encoded an anime movie, and was able to put both English and Japanese, as well as English subtitles, all controlled by a flash menu. The few OGMs I have seen have similar capabilites, but nothing quite as nice as QuickTime.

    The video quality is actually pretty damn good, IMO. I suggest trying it out for yourself. Check my webpage for more relevant information.

  15. Sigh, Quicktime and MP4-video? by 2nd+Post! · · Score: 3, Interesting

    I wish they tested that too, the encoder isn't free, but it is cheap. Then the question is, is the price worth it?

    1. Re:Sigh, Quicktime and MP4-video? by RzUpAnmsCwrds · · Score: 3, Informative

      Quicktime is a container format (like AVI), not a codec.

    2. Re:Sigh, Quicktime and MP4-video? by Dynedain · · Score: 4, Informative

      I believe he meant the Quicktime MPEG-4 codec...which is specific only to quicktime (and is quite good IMHO)

      --
      I'm out of my mind right now, but feel free to leave a message.....
    3. Re:Sigh, Quicktime and MP4-video? by 2nd+Post! · · Score: 3, Informative

      mov is a container format, like avi.

      Quicktime is a framework, with encoding, codecs, playback, and other features.

      Quicktimes also has an mp4 implementation, as well as Sorenson, h264, mpeg2, and others.

    4. Re:Sigh, Quicktime and MP4-video? by benwaggoner · · Score: 2, Informative

      The QuickTime MPEG-4 encoder is actually pretty bad (single pass only, speed instead of quality tuned). Sorenson Squeeze, Envivio Encoding Station, and plenty of other tools can make a QuickTime-compatible MPEG-4 file without a hitch, and with much better compression efficiency.

  16. Which formats are the most durable? by astrashe · · Score: 5, Interesting

    If you wanted to make video files that will have the best chance of being viewable in 10 or 20 years, what are the best file formats and codecs?

    Are any file formats and codecs likely to be visible?

    1. Re:Which formats are the most durable? by Raster+Burn · · Score: 5, Informative

      Fully standards compliant mpeg4. It's not going to look nearly as good as XviD or DivX5, but it will be "durable."

    2. Re:Which formats are the most durable? by Kris_J · · Score: 3, Insightful
      If you wanted to make video files that will have the best chance of being viewable in 10 or 20 years, what are the best file formats and codecs?
      Burn a Video CD or DVD. If you can produce a disk that will play on 90% of the stand-alone (DVD) players in any given electronics store then you'll probably still be able to play it in 20 years time, so long as the media hasn't degraded.
    3. Re:Which formats are the most durable? by Sangui5 · · Score: 4, Informative

      Both XviD and DivX5 can be fully standards complaint mpeg4. They offer a few (very few, optional, generally experimental) features which are outside the standard, but for the most part, they *are* mpeg4. Some of the seemingly basic differences between XviD and DivX5 is that mpeg4 has a lot of features which are not mandatory for encoders, and (for the longest time at least) they implemented different sets of optional features. And while the XviD and DivX5 teams are both attempting to implement as many of the fancy features as possible, they haven't polished them all off yet.

      To repeat: DivX5 and XviD are both implementations of the core MPEG4 specification, plus some set of optional features which are included in the MPEG4 specification, plus an extra or two which don't really make any quality differences (yet).

    4. Re:Which formats are the most durable? by BlueArchon · · Score: 2, Informative

      I use huffyuv to archive my videos, it's a quite simple lossless codec with the source code available. If it dies it shouldn't be too hard to write a own decoder to it after 10 years...

      Only disadvantage is the size of the videos, it only compresses to about 40% of the uncompressed original.

    5. Re:Which formats are the most durable? by TheRaven64 · · Score: 2, Informative
      AVI instead of the standard file format (MP4)

      Actually, the 'official' container format for MPEG-4 is Apple's .mov format used in QuickTime. .MP4 files are usually just raw MPEG-4 bitstreams dumped into a file with no real container format.

      --
      I am TheRaven on Soylent News
    6. Re:Which formats are the most durable? by Petteri+Kangaslampi · · Score: 3, Informative
      Actually, the 'official' container format for MPEG-4 is Apple's .mov format used in QuickTime. .MP4 files are usually just raw MPEG-4 bitstreams dumped into a file with no real container format.

      This is incorrect. MP4 is a container file format, originally based on the QuickTime .MOV format. Google: mp4 file format, or see ISO/IEC 14496-1, "Information technology - Coding of audio-visual objects - Part 1: Systems" (MPEG/4 systems specification).

  17. MPEG1, still the best by Anonymous Coward · · Score: 4, Interesting

    All these years and MPEG1 is still the only truly universal video format.

    1. MPEG1 is not encumbered by patent problems as MPEG2 and 4 are. http://www.mpegla.com Thus it is effectively free-as-in-beer by default.

    2. MPEG1 is playable everywhere from the old Solaris and SGI boxen to the newest PCs.

    3. No finding out after the fact that the .mov or .avi you downloaded requires a codec you don't have.

    4. It is not a tool to let Microsoft, Sorenson, or Real dominate all online video and divide the web into gated communities.

    1. Re:MPEG1, still the best by updog · · Score: 4, Informative
      It may be more open, but even MPEG-2 has enormous advantages and features over MPEG-1. Here are just a few:

      Defines the "transport stream", for delivery over unreliable networks (Internet). MPEG-1 only has the concept of "program streams", useful only for data stored on a reliable media (eg CDROM or DVD);

      Defines profiles and levels, which put contraints on ranges and parameters. For example, MainProfile @ MainLevel is good for standard def video, while MainProfile @ HighLevel is suitable for HD;

      Support for interlaced pictures;

      16:9 aspect ratio, pan and scan;

      scalable coding profiles, 3:2 pulldown, concealment motion vectors, 9-10 bit quantization, etc, etc etc

      MPEG-2 is really what spawned the digital video age, and it's the standard used for practically all of the digital video that you watch (digital cable, satellite TV), DVD, SVCD, and many PC codecs.

      MPEG-1 just doesn't cut it for all of these applications.

  18. Where's libavcodec/ffmpeg ? by vlad_petric · · Score: 3, Informative

    libavcodec is actually just as good as divx5, and certainly better than xvid. While it's true that it produces stuff that's compatible with divx decoders (theoretically all MPEG4s should be compatible with each other, but that's only the theory), it is certainly not subsumed by divx5. It also has many of the codec features of divx5 pro - e.g. B-frames, Trellis quantizer (which improves quality / reduces bitrate big time(tm))

    --

    The Raven

    1. Re:Where's libavcodec/ffmpeg ? by evilviper · · Score: 3, Informative

      I can personally attest that, at the time I switched (DivX 4 days), ffmpeg was not only higher quality, more configurable (which allows even higher quality than that with a little work) but far faster as well.

      Now, I haven't tried xvid/Divx in quite some time, but I can still say that, of the mpeg4 videos I'e downloaded, commonly encoded with Divx 4/5, Xvid, and 3ivx, the quality is always lower than what I can get from ffmpeg.

      In addition, I'd say the reason you don't see more ffmpeg videos is just because there aren't that many Unix machines around. You probably haven't downloaded even 10% of the videos on the internet, so you probably can't make a fair estimate. Also, the legal issues (licensing) lead most people to stick with Divx, WMP, or Quicktime. Also, it's not hard to imagine that Ffmpeg would gain popularity if it came in a simple, easy-to-use, installer for Windows.

      Arrrr Maties...

      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
  19. What a decoding by Anonymous Coward · · Score: 3, Insightful

    It seems that everyone is worried about encoding and what I would like to know is which format takes the least cpu to decode. I'm running on a rather weak laptop and even mpg1 gives me mismatched audio. Are the mpg4/SBC decoders less cpu intensive?

    1. Re:What a decoding by real_smiff · · Score: 3, Informative

      i would suggest ffdshow. i believe it is generally regarded as the least cpu-intensive MPEG4 decoder (depending of course on the configuration, of which it has lots!)

      --

      This is my Sig, this is my Gun. One is for Slashdot and one is for Fun.

  20. Compressing the Compressed!!! by pastpolls · · Score: 2, Interesting

    I have a problem with re-compressing an already compressed source. MPEG-2 for DVD can run between 2Mb and 9Mb (8Mb realistically). I have always been a believer in the garbage in/out theory of compression (please don't make me explain). Each of these titles I am sure were encoded at diffrent bit-rates. I dare to say, the cleaner the source, the better the compression. In this instance I believe the best compressor is the one that can best smooth out the errors of MPEG2, not necessarily the best compressor. I would like to see how these do off of uncompressed source media.

    1. Re:Compressing the Compressed!!! by real_smiff · · Score: 2, Interesting

      nice idea, and you're right, but all the attention seems to be on (re)compressing commercial DVD movies, and no one has the original uncompressed source to those apart from the movie studios... i'm not sure how useful an MPEG4 codec that's great at such material would be, assuming everyone is using it for warezy purposes (i guess the video coming out of camcorders etc is also compressed in a similar way?). Anyway in case you don't know it's normal to apply some pre-processing to DVD source with filter like Convolution3D (see the doom9 forum for more info). IMHO such pre-processing needs to be built into XviD to make it more accessible, but i digress.

      --

      This is my Sig, this is my Gun. One is for Slashdot and one is for Fun.

    2. Re:Compressing the Compressed!!! by Sangui5 · · Score: 3, Informative

      Never mind that so far as video goes, getting totally uncompressed source is nearly impossible. 640 wide*480 high*24 bit*30 fps = 221Mbps. Yep, two-hundread and twenty-one million bits per second. That translates to under 30 seconds of video on a standard CD, or about 6 minutes on a DVD.

      I've done some work in video compression, and it was a non-trivial task to get never-compressed source. Indeed, we had to generate it ourselves, and were limited to low-motion real life (stop motion-style pan over a room) and animation (hours upon hours of Bryce). And at that, it turned out that in practice, we could have just ripped some DVD and gotten identical results.

  21. Re:after working with lots of them by Sangui5 · · Score: 5, Informative

    A better translation of "Maximum Quantizer" would be "what's the most information you should throw away". The lossy compression formats get a lot of their effectiveness by quantizing the data. Specifically, a quantizer of n means divide everything by n and throw away the fractional part on compression, then multiply everything by n on decompression. From a practical standpoint, it is the same thing as throwing away the least signifigant bits (a q of 16 throws away 4 bits, for example).

    Bitrate is generally controlled by modifying the quantizer values as the video progresses. So lowering the maximum quantizer is the same as specifying a higher minimum bitrate. In theory, a good implementation of a codec (using 2-pass quality-based VBR, B-frames, QPel, etc.) will function best if you don't restrict it's choice of quantizer. However, a really high quantizer value generally means that the codec screwed up, so limiting it doesn't hurt too much.

  22. yay, the good guys won (or something) by real_smiff · · Score: 3, Interesting
    I'm really happy to see XviD come out on top (well, i think it did anyway :p). The devs really deserve it, with all the work they've put in, and the problems they've had with commercial companies ripping their code off, users whining, the brain numbing difficulty of what they're trying to do, not getting paid for it, and so on and so forth.

    I've been semi-following XivD for about a year, occasionally compressing one of my DVDs to see how it's doing. (which always seems to be: Great, but better the next week (i.e. a severe double-edged sword!).

    One thing you know about Xvid is that those problems (the ones Doom9 found) will get addressed. Cheers XviD team.

    --

    This is my Sig, this is my Gun. One is for Slashdot and one is for Fun.

  23. Isn't there something missing from this "review"? by Svartalf · · Score: 4, Insightful

    To be sure, he's comparing the performance of the codecs against content that is popular (and typically difficult to compress...)- but he's pulling it from a lossy format, namely the MPEG2 stream off of a DVD.

    There's a reason why you're really supposed to re-encode from the CD when you're producing .OGG's or something like them instead of pulling them from MP3's as source. With a lossy format, you're deliberately losing content, introducing hopefully un-noticable distortions into the reproduction of the sound. Unfortunately, the varying formats use different assumptions, which produce differing kinds of distortions into the result. Because of this, re-encoding from MP3's, your sound files end up with distortions on top of distortions- the quality and compression suffers as a result.

    The same applies to video files.

    This is not to say that what Doom9's doing isn't important or relevant- it is if you're using the codecs to space shift (i.e. Put several movies on your laptop so you're not carrying the DVD's on your business trip...) or pirating movies. The reality is that the codecs he's reviewing are largely designed for previously untouched video feeds- someone ought to test that as well.

    Anything else is not really a proper review- unless you're only caring about ripping and re-encoding DVDs. To me, that's something useful to know about, but I'm as or more interested in the intended usages of this stuff as well.

    --
    I am not merely a "consumer" or a "taxpayer". I am a Citizen of the State of Texas
  24. What is a quantizer? by steveha · · Score: 5, Informative

    I can explain quantizers.

    To compress a sample of audio or video data, you want to throw away details that don't matter. So you transform the data using a function, and then you apply a quantizer to throw away some of the data. The whole point of the transform function is to make a data set that is "safer" to quantize.

    Most audio and video codecs use the DCT function, which decomposes an image into a series of waves. If you throw away some of the wave data, you get a similar series of waves, and hopefully humans won't notice the differences.

    Applying the quantizer is the "lossy" step in lossy compression. Here's how you do it:

    You divide the output data (from the transform function) by some integer number, the quantizer, and you use integer division. (Because you want to simplify the data, you actually want the fractional part discarded!) The bigger the quantizer, the more data is thrown away. A quantizer of 1 would give perfect quality, but very poor compression.

    Here is a semi-real example:

    You have some data to compress. Let's say it's eight bytes (maybe an audio sample for Ogg Vorbis).

    After the DCT, it looks like this (using decimal numbers because it's easier):

    355 244 33 192 43 9 3 8

    Quantize with a quantizer of 8:

    {8} 44 30 4 24 5 1 0 1

    The {8} is intended to show that the quantizer has to be stored with the quantized data stream, so we know what quantizer was used so we can dequantize.

    On dequantization, we just multiply by 8 again:

    352 240 32 192 40 8 0 8

    Then we feed these resulting numbers into the inverse DCT, and get back some data that is hopefully not full of artifacts.

    When you are encoding, you quantize, and then you encode the resulting stream of numbers. Because the values of the numbers are smaller (e.g. 24, instead of 192) you can encode the values with fewer bits. And you can apply run-length compression to the quantized values; in my example it wouldn't buy you much, but in real examples you will often have a bunch of zeroes in a row.

    Video compression dialogs (such as the JPEG options in "Save As" in The GIMP) often give you a slider for a quality percentage. This is actually controlling the quantizer. For JPEG, you have 31 possible settings for the quantizer, so there is no difference between 80% and 81%.

    By the way, my personal experience with video compression is that a quantizer of 8 gives pretty good compression with very few visible artifcats. An 8 quantizer corresponds with about a 75% in the quality sliders (such as Save As in The GIMP).

    Some afternoon when you are bored, save the same JPEG image over and over with different quality settings, and watch what happens with the artifacts. When you set the quality down to 2% (corresponding to a 31 quantizer) you get ugly, coarse blocks. The GIMP under Linux is particularly good for this because you can drag the quality slider and the preview updates instantly, so you don't have to save and re-open.

    steveha

    --
    lf(1): it's like ls(1) but sorts filenames by extension, tersely
  25. Re:after working with lots of them by captaineo · · Score: 5, Informative

    MPEG is a very rich spec and leaves a LOT of room for encoders to find different and better algorithms. In fact you can almost think of an MPEG decoder as a virtual machine that executes a program to reconstruct the video. The encoder has a lot of freedom in choosing where to put I frames and how to find the motion vectors. (as opposed to say GZIP or JPEG, where there is pretty much only one way to encode things).

    One issue that sometimes bites people is converting between RGB-style and YUV-style color spaces. A round-trip from 8-bit R'G'B' to 8-bit Y'CbCr is always lossy, although not terribly so. The killer is when different codecs disagree on how to map the R'G'B' values to Y'CbCr values. MPEG-2 is nominally Y'CbCr with Y' in the range 16-235. Some encoder expect R'G'B' values in the range 16-235 and others expect 0-255. If there is a mis-match, shadows and highlights will get clipped and the translation will be much lossier.

    IMHO the non-video parts of MPEG, like "face compression," are just wishful thinking. Most optional parts of the spec are only going to be implemented by one or two vendors.

  26. DivX 5 by foxalopex · · Score: 2, Interesting

    Myself I get most of my anime thanks to the existance of these compression formats. I'm a fan of DivX 5 simply because it's easy to get a hold of the codec and it works for all my historical DivX 3.x movies. I have nothing against the Xvid team but it's a bit annoying when I get the occational anime that won't play on anything else but the Xvid codec, requiring me to find it and install it into my system. And as the reviewer noted it's got a few bugs still. DivX 5 may not be the best but it's certainly the most convenient and standard to an end-user.

    1. Re:DivX 5 by Anonymous Coward · · Score: 2, Informative

      You don't need the XVID codec. XVID attempts to be Mpeg-4 compatible as does DIVX5. That being said You can decode XVID with the DIVX5 codec and vice versa. What you need is a simple FourCC changer to change the FourCC (the software "marker" which tells your computer what codec is being used and what to decode with).

      Or you can just DL FFDSHOW (check SourceForge. I reccomend the Alphas... lots of features yet quite stable) And use that to decode all your MPEG4 type files.

  27. Tables Aversion? by MonkeyBoyo · · Score: 2, Interesting
    Does whoever wrote this for Doom9 have an aversion to presenting the tabular information in tables? The analysis is full of sections like:
    As you may know, not every rate control mechanism is perfect so here are the final movie sizes I got:

    3ivX: 723'574 KB (Matrix), 1'493'398 KB (SPR), 178'754 KB (Futurama)
    DivX5: 717'642 KB (Matrix), SPR: 1'435'154 KB (SPR), 179'250 KB (Futurama)
    mpegable: 920'234 KB (Matrix), 1'144'774 KB (SPR), 171'168 KB (Futurama)
    RV9: 722' 977 KB (Matrix), 1'447'144 KB (SPR), 180'976 KB (Futurama)
    SBC: 716'658 KB (Matrix), 1'434'004 KB (SPR), 179'304 KB (Futurama)
    WMV9: 727'886 KB (Matrix), 1'460'384 KB (SPR), 183'288 KB (Futurama)
    XviD: 717'242 KB (Matrix), 1'434'320 KB (SPR), 179'288 KB (Futurama)
    Why torture the reader? I like columns of digits to vertically line up so I can see where the signifigant changes are.
  28. Re:after working with lots of them by gerardrj · · Score: 3, Informative

    Thought this was important such than a non-A/C should post it also:

    DV is compressed at a fixed 5:1 ratio.

    Uncompressed video at a resolution of 720x480x24 is ~1MB per frame and 1.7GB per minute (at 30fps). DV uses about 220MB per minute including sound.

    --
    Article X: The powers not delegated... by the Constitution...are reserved...to the people
  29. link to latest ffdshow (MPEG4 decoder) binaries by real_smiff · · Score: 2, Informative
    sorry i should have provided a link:

    http://sourceforge.net/project/showfiles.php?group _id=53761

    use the latest alpha version.

    --

    This is my Sig, this is my Gun. One is for Slashdot and one is for Fun.

  30. Re:after working with lots of them by Sangui5 · · Score: 5, Informative

    MPEG4 _was_ initially intended for very low bitrate applications. And indeed, if bitrate is not an issue, then MPEG2 can (and generally will) produce output that is indistinguishable from the source.

    However, a lot of the features included in MPEG4 make it equivilent to MPEG2 in quality potential. It would be proper to think of MPEG4 as MPEG2 with a bunch of extra options. If you turn the options off, then you can expect very similar results. Since people generally are using MPEG4 to generate medium-quality (say, around SVHS) video at low (yes, 3 hours of video on 2 CDs is _low_ bitrate), most implementations are much more aggressive about allocating bits than most MPEG2 implementations are. Indeed, at the target bitrates people are choosing, most MPEG2 implementations will utterly fall apart (although MPEG2 itself ought to hold up better than actual performance would suggest).

    Among the key new features of MPEG4 are:

    1) QPel - MPEG2 allows you to say that a block in a frame is the same as a previous (or future) frame shifted by x pixels, or x.5 pixels, or is kinda like this block and kinda like this other block. MPEG4 extends this to quarters, rather than halves. This is supposed to really help very low motion, or small variations in globally compensated motion.

    2) Global motion compensation - MPEG4 allows you to say that the whole frame is panning/sweeping so-and-so much, and then make localized offsets. Actually, IIRC, it lets you make "global" statements at the object level, which leads to...

    3) Object-based decomposition - consider a video scene. You have a background, and several "objects" in the foreground. In theory, it would be nice to encode the background with low-motion assumptions (or constant panning assumptions), and the foreground with higher-motion assumptions. Additionally, picking out the different objects in traditional cel-style animation should let MPEG4 totally kick-ass in compressing animation. In practice, all of the techniques for separating out objects automatically suck royally (how you identify objects is not a matter of the spec, the spec just says that if you've separated out, you can handle them individually and paste them together later). This is MPEG4's biggest unrealized potential. The first implementation with good object decomposition should be a huge improvement over all past attempts at video compression. OTOH, don't hold your breath waiting for good object decomposition--it's a "hard" problem, as in computer-vision hard. Developing even half-way decent object decomposition ought to be good for at least 3 or 4 PhD theses.

    4) MPEG4 is looser. Just in general it leaves more things up to the encoder, such as what quantization tables to use, letting you vary q-levels more drastically, etc. Also, IIRC, MPEG2 only allows for certain fixed ratios of B-frames and P-frames. MPEG4 loosens these restrictions (all the way?) to allow much greater use on B and P-frames. These frames (especially B-frames) tend to be very compressable, although there are signifigent CPU-usage tradeoffs involved. If nothing else, MPEG2 implementations will almost never let more than 8 frames go by without an I-frame, regardless of whether the spec allows more or not.

    5) MPEG4 includes a wavelet-based transform for certain elements. I don't believe that anybody actually uses it for anything, but it is in the spec.

    6) Not a spec difference, but in practice, only MPEG4 uses 2-pass encoding. MPEG2 is heavily used for live stuff (well, 3 seconds delay for the censors plus a second for motion comp), and 2-pass is not an option. 2-pass has been implemented in MPEG2 (indeed, the first work with 2-pass was done with MPEG2), but the idea is relatively new. So most MPEG2 implementations don't do 2-pass, and never will, since all the new development effort is going into MPEG4. Many/most MPEG4 implementations include 2-pass since it lets the coder be much smarter about bitrate allocation, and it is a known technique.

    That just about sums up the major differences between MPEG2 and MPEG4. Oh yeah, and MPEG4's number is 2 higher :)

  31. Helix license forbis comparison? by Internet+Ninja · · Score: 5, Interesting

    IANAL but looking at the Helix binary EULA there seems to be a clause disallowing this sort of thing.

    https://reguseronly.helixcommunity.org/2002/clic kw rap/eula-clickwrap
    Entry 2(a)(vii)
    You may not make available to any third party the results of any evaluation or testing of the Software by You under this License. Any such forbidden use shall immediately terminate Your license to the Software.

    Just a thought

  32. Re:FFMPEG by 1000StonedMonkeys · · Score: 2, Informative

    That's for decoding. ffmpeg as an encoder is designed for realtime compression and thus doesn't match the quality of the mpeg4 codecs that don't have to worry about how long they take.

  33. Ah, that's why we have ffdshow by TheFr00n · · Score: 2, Interesting

    The format war continues, but ultimately the majority of the codecs are trying to implement the mpeg4 standard. Surveys and comparisons aside, if you trawl around you'll find that most "users" (ie not companies) are using either DivX3/5 or XviD.

    Some clever individual has come up with ffdshow, which you can get off doom9.org, which will play either DivX or XviD without having either codec installed on your system. And at around 500k, it's a smaller download than either of those codecs

    --
    "By Grabthar's Hammer, what a savings."
  34. Re:Isn't there something missing from this "review by nmos · · Score: 3, Insightful

    You make a good point but it's not just DVDs that use compressed video. Digital cable, satellite, digital video cameras, etc. are all pretty common sources for people using these codecs and they're all compressed. Heck, most of the stuff I encode has been through compression/decompression twice allready, once by Directv (mpeg2)and once by my pvr (mjpeg) and when I want to store it long term I use mpeg4.

  35. Sound and vision... by hughk · · Score: 3, Interesting
    It is interesting that some encoders tend to do bad things with the sound. What does this have to do with the video playback quality, well if the player has to seek between the video stream and the sound stream, then video (requiring the higher bandwdth) suffers. Playing from a fast HD masks some of this out, but usually not from CD.

    For whatever reason, some programs mess up the spacing of the video and sound streams, for example, Variable Bit-Rate Audio often gives problems. The thing is that it isn't the video codec itself, just the delays getting sound and vision to run concurrently.

    --
    See my journal, I write things there
  36. Re:Doom9 is my hero, dvd2svcd owns you. by paule9984673 · · Score: 2, Informative
    Yes, but XVID is subject to the mpeg-4 patents, which makes it somewhat non-free. At the moment it is an "educational codec" that can't be used in production.

    This might also be the reason it is only distributed as source code.

  37. Re:after working with lots of them by shepd · · Score: 2, Insightful

    >If you mean the people who developed DV... probably because the codec you describe was not developed when DV was.

    Yeah, I do mean the developers of DV, however this doesn't appear to be the most complex codec to build in the world (if only the author's website was still up) -- I was just wondering why they never thought of this. Then again, at a decade old, I doubt any hardware could have handled it in realtime, so it makes sense that even if they had thought of this scheme they would have dropped it.

    >You can bet the farm on DV's data rate and that is VERY important when writing to tape.

    Ahhh, good point. Didn't think about that one. Thanks.

    --
    If you could be told what you can see or read, then it follows that you could be told what to say or think - BoC
  38. How much detail is needed? by CAIMLAS · · Score: 2, Interesting

    I don't know about anyone else, but for the most part (with the exception of 3ivX) I didn't notice enough image degrigation to matter. Especially at 24fps.

    Don't believe me? Try this: scroll through the screenshots (at about the rate of 1 image going from the bottom of the screen to the top per second - 1fps) and tell me if you can pick out the glitches in most of these codecs.

    What's more, if anyone was walked into several rooms in sequence, all playing the same movie, but one being DVD, one being DivX3, one being WMV9, etc. I suspect nobody would be able to distinguish one from the other, provided they're encoded at one of the higher quality settings - even if they're intimately familiar with the film.

    This is a load of garbage. DVD is a broken codec to begin with.

    --
    ~/ssh slashdot.org ssh: connect to host slashdot.org port 22: too many beers
  39. Re:after working with lots of them by Herr_Nightingale · · Score: 3, Interesting

    since MPEG2 requires such a high bitrate for decent looking video to emerge, I can give you five times better quality (for same size video file) using DivX ;-) because Divx ;-) is many times more efficient. Also note that MPEG2 is quite limited, doesn't work nicely with high resolutions, etc.
    The trick to good encoding is in knowing how to use NanDub (or VirtualDub, or VegasVideo, or whatever you use..) and knowing ALL of the various little settings that can be tweaked. The default settings INVARIABLY SUCK, with the quantizer matrix being set for fast, crappy quality video output. The max. quantizers (if using SBC or DivX5) should NEVER exceed 9, for example; however, the default is usually 31! You shouldn't use the default settings and still expect near-DVD quality.

    I'm writing a proper, updated tutorial on SBC and Divx 5 Pro right now, which I will submit to various newsgroups when it's done. In the meantime, check out Doom9.org for a rough idea of how to rip properly. They ignore some pertinent details (ie, filters - esp. contrast filter) but you should get a very good idea of the work involved to produce a decent rip.

  40. Re:after working with lots of them by Alan+Partridge · · Score: 2, Insightful

    "Not a spec difference, but in practice, only MPEG4 uses 2-pass encoding."

    WTF? Never seen a DVD-Video, then?

    This whole test is bullshit because a) all their source material was compressed and b) they left out some of the best GENUINE, commercial codecs. Total waste of time.

    --
    That was classic intercourse!
  41. Re:Doom9 is my hero, dvd2svcd owns you. by TheRaven64 · · Score: 2, Funny
    Also, where's Ogg Theora? A video codec test isn't complete unless an alpha Free codec is there to rank with all the proprietary ones.

    Also, where's Ogg Tarkin? A video codec test isn't complete unless an vapourware Free codec is there to rank with all the real proprietary ones.

    --
    I am TheRaven on Soylent News
  42. Re:Doom9 is my hero, dvd2svcd owns you. by spectral · · Score: 3, Informative

    Doom9 could have used PNGs. Quite annoying that half of the screenshots were totally destroyed by using ANOTHER lossy compressor on them. Yes, I should be looking at the video clips and not the screen shots, but then why the hell provide them at all?

  43. Re:after working with lots of them by benwaggoner · · Score: 2, Informative

    Well, the MPEG-2 part 2 codecs (the one's you've seen so far) are really suped-up versions of the H.263 videoconferencing codecs. It uses a lot of the same concepts as MPEG-2, but tuned for better performance at lower data rates. The new AVC MPEG-4 codec (which is what the 2004 version of this article will likely be about) is way better than both, and not based on either. Lots of whacky new stuff like multiple reference frame (so you can predict parts of the current frame on a frame THREE back, for example. Very nice with muzzle flashes!).

  44. Re:Isn't there something missing from this "review by Eccles · · Score: 2, Insightful

    You make a good point but it's not just DVDs that use compressed video.

    Good point, but it would have been nice to have multiple sources for the tests, not just DVDs. It could be that particular codecs are tripped up more by the compression techniques of DVDs vs. DV, etc., so your choice of codec might be influenced by your input source.

    --
    Ooh, a sarcasm detector. Oh, that's a real useful invention.
  45. Re:after working with lots of them by benwaggoner · · Score: 2, Interesting

    5x better than MPEG-2? Not a good MPEG-2! A cutting-edge MPEG-2 encoder (try Canopus ProCoder) using 2-pass encoding, and taking advantage of the modes than downloadble files support (like square pixel progressive encoding) could give pretty good results at the data rates the article is looking at - certainly nowhere near 5x worse. MPEG-2's biggest limitation is lack of a deblocking filter, so distracting block artifacts start showing up a lot below a certain point.

    At NAB I demoed a 1280x720 24p 4 Mbps MPEG-2 file, and it looked pretty darn good. Not as good as the best MPEG-4 advanced simple, but it wasn't night and day, more like 2pm and 4pm.

  46. Re:Ogg theora? by Dr.Dubious+DDQ · · Score: 3, Interesting

    Unfortunately, it appears that Ogg Theora development is "mostly dead". The main developer has been stuck doing contract work (on the integer decoder for Vorbis, as far as I can tell) and can't get to it "for the foreseeable future". The mailing lists are almost completely dead, and, most tellingly, Xiph hasn't updated the theora.org page since January.

    I doubt very much they'll have the 1.0 release next month as they have been saying since last June that they'd do...Alpha 1 was looking really promising, but Alpha 2 got pushed back twice (originally scheduled for early December 2002...then late December...then they stopped talking about it anywhere.) Last I'd heard was they were planning to skip Alpha 2 and go straight to Beta in March. Obviously that didn't happen. I do know Monty managed to get some (non-Theora-specific?) work done that will benefit Ogg Theora, but that was back in February, and nobody's talking about it since then.

    There are hints that there are other people puttering with the code a little (and VP3 decoding support [the "video codec" part of Ogg Theora - I gather there are still a few "tweaks" to be worked out to turn VP3 into "Ogg Theora"] is slowly being worked on for ffmpeg, Xine, and MPlayer.) but I don't know if Xiph has enough attention on it to get anything out. (Support for VP3/Theora video codec going into Xine is mentioned - very briefly - in the latest "Ogg Traffic" newsletter which at least indicates SOMEBODY remembers that Theora exists. I think if they at least got out some documentation on the format (particularly the .ogg part - they say .ogm is 'horribly hacked' but until there's a "proper" standard available for people to work to, that's all we have for "video-in-ogg") it would help. (If encoding support for Theora in ffmpeg/mplayer isn't far behind, then adoption and work on it outside of Xiph will probably pick up pretty quickly.)

    Kinda sad to see the project languish silently as it has for most of the year - some days I can't tell if Xiph will be abandoning Ogg Theora or ever getting back to it or what...

    As a side note, back on the topic of "codec comparison", my playing with the one and only release of Ogg Theora way back when it was released (8 months ago!) gave me the impression that it can be a very nice format, especially for more compressed bitrate. Where most codecs seem to get "blockier" as they compress, VP3/Theora seems to get "blurrier" instead, which to my eye generally "looks nicer", despite the fact that it has lost as much actual information from the video as the "blockier" codecs (e.g. mpeg4). IF Xiph ever gets around to some file format documentation and VP3/Theora encoding support appears relatively soon, I can easily imagine Ogg Theora becoming a popular format for internet video and archiving home video.

  47. Re:Isn't there something missing from this "review by Doom9 · · Score: 3, Funny

    I would gladly encode material from the digital master tapes but my chances of getting access to those are pretty slim :/

  48. Re:Why use LCD? by Versa · · Score: 2, Insightful

    What I really don't understand is why he reviewed the videos on an LCD monitor, LCD's that are known to have inferior color to CRTs. CRT's can't reproduce the range of colors that a CRT can.

  49. Re:Doom9 is my hero, dvd2svcd owns you. by Doom9 · · Score: 4, Informative

    why provide them? because people demand them. Watch out for the next site update (due in roughly 2h).. I have made some improvements in the futurama comparison (no PGN.. that would increase the size too much, but the new shots are a lot nicer).