In-Depth Look At Video Codecs 149
johnsee writes "Atomicmpc has an incredibly in- depth look at a wide range of video codecs. It looks not only at their inner workings, but also shows the quality produced by each at a variety of settings and situations."
so which one wins? (Score:4, Funny)
Re:so which one wins? (Score:5, Informative)
For those not wanting to read the article:
Rated best to worst with default settings
Low Bitrate go with XVID, DIVX, h.264, WMV
Medium: XVID or h.264 depending on lighting and motion, WMV, DIVX
High: h.264, WMV, XVID, DIVX
Re:so which one wins? (Score:5, Insightful)
Re: (Score:2)
I wouldn't expect many codecs to handle that size frame spectacularly well. That any of them did [h.264 in your case] is amazing.
Tom
Standards change (Score:2, Informative)
[Ahem] The new standard is 1920x1080. Cope.
Re:Standards change (Score:5, Informative)
Tom
Re:Standards change (Score:4, Informative)
Re: (Score:2)
mplayer works well enough playing HD H.264 on my MythTV box, and it's just an Athlon 64 3700.
Re: (Score:2)
Re: (Score:2)
Yes, it's sent at 19mbps (or so) for a reason: they're using a MPEG2 codec to do the compression. Not a more modern codec.
AVP beats ASP, no surprise. (Score:4, Interesting)
This is quite different from the newer H.264 (MPEG-4 Part 10 "Advanced Video Profile" (AVP)) encoders like x264 (which is part of ffmpeg, at least recently, I believe). H.264 is a much better match for high-definition video that's going to be played back on HD equipment.
I think it's been known since the AVP codecs arrived on the scene that they pretty much kicked the crap out of the ASP ones; their only major downside is the processing requirements both to encode and decode, and (more true in the past than now) limited installed base of people with the codecs.
Re: (Score:3, Informative)
I recognize their are similarities, but I do not believe they are the 'exact same'. My evidence is that the video cards we use have Mpeg4 hardware encoders, yet will not 'hardware decode' the H.263 stream.
also, FTFA's reference:
Re:AVP beats ASP, no surprise. (Score:5, Informative)
ie the following statement is always true:
H.263 is always MPEG4
However the the folloing statement is not always true:
MPEG4 is always h.263
Not true at all. There are some hardware MPEG4 encoders on the market, but it is for the most part, not included in modern GPUs. For decoding purposes, portions of the h.263 (IDCT to be exact) has been implemented in hardware on video cards for quite sometime. However, combined with programmable shaders, a good deal of h.263 decoding can be greatly accelerated by most modern GPUs (nVidia's PureVideo DirectShow codec is an example of this). ATI's AVIVO XCode app does use a great deal of shaders to speed up the encoding process for several codecs. Even though it's been shoehorned to work with other GPUs, it was intended to work thier X1X00 line of video cards.
Re: (Score:2)
H.263 uses 'Group of Block' (macroblock) resync, and Mpeg 4 uses ' the packet approach'
H.263 also puts information on the macroblock in the header, the document says MPEG4 uses a 'picture start code'. These appear to be different
Re: (Score:2)
MPEG-4 is a group of specifications. It's not just one video format, or one codec. Just talking about "MPEG-4 video" is bad, because it could refer to any one of several video formats, and any of those formats could have been produced with a variety of codecs.
Within "MPEG-4," you have multiple "parts" which are actual specifications for video encodings. Wikipedia explains slightly:
mod up all the parents and grandparents (Score:2)
Re: (Score:3, Informative)
It's a bit like reverse-engineering in a cleanroom environment - the various MPEG-4 parts describe exactly how things should work, then you'd pass it off to
Re: (Score:2)
It uses similar concepts to MPEG-4 (all BMC-based algorithms do), but several details in stream structure are different (which is not to say parts of a MPEG-4 codec can't be used to accelerate H.263 compression or decompression).
H.264, on the other hand, was developed by the ITU in part
Re: (Score:2)
I would be interested if you had a reply to JohnnyLocusts reply above...? http://slashdot.org/comments.pl?sid=237843&cid=19
Re: (Score:2)
http://www.itu.int/rec/dologin_pub.asp?lang=e&id=T -REC-H.263-200501-I!!PDF-E&type=items [itu.int]
MPEG-4 is "H.263 compatible" in the sense that a basic H.263 stream can be correctly decoded by a "complete" MPEG-4 video decoder, but MPEG-4 decoders aren't required to be "complete" (which is not to say that a lot of them don't cover what's requir
Re: (Score:2)
Re: (Score:2)
In other words, basic H.263 is "covered" by MPEG-4 part 2 (but the two are not identical), whereas MPEG-4 part 10 (AVC) and H.264 are identical (they're separate standards, but there's a working group that keeps them
Re: (Score:2)
H.263 baseline==MPEG-4 short header (Score:2)
H.263 baseline is the same bitstream as MPEG-4 pt. 2 short header (and forms the basis of the Flash Spark codec). Both H.263+ and ++ and MPEG-4 pt. 2 Simple Profile and Advanced Simple Profile have further (and different) enhancements to that core bitstream.
Being based on H.263 proved to be much more of a limit for MPEG-4 pt. 2 development than was original determined, which led to the development of newer codecs like VC-1 and H.264.
Re: (Score:2)
Also, bear in mind that video compression standards focus on "what" the encoders must create, not "how". Even if a certain standard supports more advanced features, a "smarter" encoder using a "lesser" standard can produce similar, or even better results.
As H.264 encoders improve, they should cle
Re: (Score:2)
Product manager for the DivX codec here
It's always very difficult to run a comprehensive codec comparison because each of the competing codecs offers a wide range of settings, and to test comprehensively over many different clips and bitrate is extraordinarily time consuming - so kudos to the author of TFA. However, I'd like to offer some brief feedback:
Re: (Score:2)
Wow, thanks for saving me from the time I would have wasted reading this article. As I know it has to be junk to say that XviD is better than h.264 at low bitrates,
Summary (Score:2)
H.264 isn't a codec, it's a standard (Score:2)
Re:H.264 isn't a codec, it's a standard (Score:5, Informative)
--aq-strength for the win!
Re: (Score:2)
I just wrote up a blog post about using them in a downloadable 1080p version of the Elephant's Dream clip:
http://on10.net/Blogs/benwagg/elephants-dream-sam
Re: (Score:2)
Re: (Score:2)
http://on10.net/Blogs/benwagg/elephants-dream-sam
I've got lots of bandwidth - feel free to suggest a scenario where you feel VC-1 isn't competitive, and I'll see if I can come up with a counterexample.
Re: (Score:2)
Re: (Score:2)
Can you share what settings you were using? If you're seeing a lot of dropped frames, one possibility is you cranked the Quality slider up to 100. That sets the minimum quality of each frame really high, telling the codec to drop frames in order to maintain data rate. A quality of 90 will give you much less trouble.
WMV9-AP is a superset of WMV9, so there shouldn't be any cases where you get fewer frames out of AP.
Also, the current codec has som
Re: (Score:2)
Re: (Score:2)
As for most of the other feaures, you can get them via that PowerToy tool, or they're already on:
Multiple Reference Frames: Not explicitly supported in VC-1 (they're a huge decode complexity hit). Instead, we get the same benefit for stuff like flashes and strobes by using BI frames - an intra-only encoded B-frame, which then lets the frame after the flash re
Re: (Score:2)
That being said, will VC-1 ever make it to a wider audience?
Re: (Score:2)
Re: (Score:2)
On Mac, Flip4Mac is our recommended solutions for playing back WMV files, and we distribute it free for Telestream.
For other OS's, many companies have licensed WMV playback, like the K
Re: (Score:3, Informative)
All the info about algorithms in the video codecs is fully public. The same body, MPEG-4 LA, handles licensing for both technologies, and handling patent issues around them.
Going back to the paleolithic era, Microsoft made the original reference encoder for MPEG-4 (hence the venerable MPEG-4v3 codec). Windows Media Video 7 and later were about goi
Re: (Score:2)
The 'reference encoder' that doesn't even manage to output a valid MPEG4 bitstream? My hat off to Microsoft for the way they fragmented MPEG-4 part 2.
Re: (Score:2)
I'm not really sure what you're getting at about Sorenson and all that. Sorenson Media had many generations of popular codecs. You're right about a connection between that and H.263 - reverse engineering determined a few years ago that the origin
You're a little on the history (Score:2)
First, the presentation of VC-1 to SMPTE always hat the explicit goal of standardizing WMV9, and everyone knew it. The working name for it for quite a while was VC-9 in explicit recognition that it was a standardized version of WMV9. WMV9's bitstream was locked down with the Corona launch back in 2001, well before H.264 was complete. If anything, H.264 got more from WMV9, for example the addition of variable block
Re: (Score:2)
MS has submitted VC-1 as a standard because they wanted an alternative to h.264 (aka Mpeg4 part 10 and Mpeg4 AVC). Their main selling point was that VC-1 would have lower licensing fees. Unfortunately for them, they underestimated the number of patents held by other companies. http://www.theregister.co.uk/2007/04/14/microsoft_ vc-1_codec_analysis/ [theregister.co.uk]
As for MSMPEG4v1/2/3.. MS did originally participate in the MPEG4 process, and during that time they released the MSMPEG4 codecs.
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
but i don't see.. (Score:5, Funny)
OT: Divx Pro is free (Score:3, Informative)
Grab it while you can.
Re: (Score:2, Informative)
http://www.divx.com/dff/index.php?version=win [divx.com]
and everyone gets sent the same serial number:
Windows
SMYCU67X83BBA68TIT48
Mac OS X
358DSZ7D96C5X66BI48E
Nothing more expensive than free (Score:2)
Re: (Score:2)
> your e-mail address to
[AHEM]
> douche bag spammers.
That didn't happen when I got their free codec. It didn't happen when I got their free package with the player and converter. It didn't happen when I bought the Pro version with the VOB conversion extension. It didn't happen when I registered an account with their site. It didn't happen when I changed my registration to add the fact I got a DivX capable home DVD player.
ascii and zip (Score:5, Funny)
Re:ascii and zip (Score:5, Funny)
Uncompressed Codecs (Score:5, Interesting)
And though humans learned stone tools remarkable close to finally learning to load CD-ROMs, the stone tools were paleolithic ("old stone"), while the CDs were at worst neolithic ("new stone"). Someday we'll look at the modern era as a new age, probably "hualic" [foreignword.com], or "glass" age. These silicon chips and glass fibers have changed us as much as we've changed the glass from which we make them.
Just for kicks, I note that we've encoded the Si atoms into the new tools that define our age.
Re: (Score:2)
In keeping with the naming of capital-A Ages after prevalent use of materials, I like to refer to the period from 1912 to 2045 as the "Plastic Age" (or possibly the "Polymer Age" or "Polyfantasic! Age"), covering the use of Bakelite on up in consumer goods.
Your guess as to what happens after 2045 :) (Hint: Ray Kurz
Re: (Score:2)
No, it seems like all the materials that are whizzy and new now days are "Space Age Materials." Stuff like carbon fiber. So, that makes this the "Space
Re: (Score:2)
Re: (Score:3, Informative)
"Some other major inaccuracies:
This site says that motion compensation was introduced in MPEG-4. What? Motion compensation and motion estimation are at the core of every MPEG and most other codecs.
Also, his understanding of the DCT is way off (and no, you don't need a degree to understand it -- I was building JPEG encoders in 11th grade).
"During an encode, every number in a series is simply halved and the remainders thrown away."
Re: (Score:2)
Re: (Score:2)
As the article said, as I said, as the TMDS article to which I linked said.
Re: (Score:2)
There are plenty of video codecs, such a
Image Algorithms (Score:4, Interesting)
Re: (Score:2)
WMA 10 Pro LBR! (Score:2)
And on a practical level, we support rate control modes rarely seen in other audio codec implementations, like 2-pass CBR and 2-pass VBR. This lets us get more bang for the bit compared to 1-pass CBR and VBR modes.
Re: (Score:2, Insightful)
Non-Windows VC-1/WMA Pro playback (Score:3, Interesting)
Actually, there are more non-Windows playback options than you think.
First, Flip4Mac can play back all VC-1 flavors and WMA Pro today. It doesn't play back the higher frequencies of WMA Pro, but they continually improve their support every release (full VC-1 Advanced Profile came in 2.1.1 last month). Downloading it seems pretty simple, but it isn't open source. And it nicely integrates with QuickTime, so once it's installed, WMV beccomes just another file fo
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
http://digitalproducer.digitalmedianet.com/article s/viewarticle.jsp?id=109739 [digitalmedianet.com]
(disclaimer: I wrote it, but I don't get any $$$ from page views... unfortunately
There are lots of articles about sound codecs, but most of them seem a bit too "mystical" to me (as is typical with all things audiop
Re: (Score:2, Interesting)
For audio production, lossy compression is a no-no (bandwidth and space are seldom issues), so there's no point in comparing lossy codecs.
For the vast majority of consumers, what matters is their perception of quality.
The point of quality comparisons is not to say "I recognise this version as the uncompressed one". It's to listen to several versions and pick the "best" one. And for that you don't need to know the pie
In this case, don't RTFA (Score:5, Interesting)
His descriptions of "temporal compression" and "motion compensation" (to name just two of the fundamental building blocks of modern video codecs) are so wrong they don't even qualify as an error. He confused delta compression with motion compensation, thinks MPEG1 lacked the latter, doesn't understand why the former is virtually useless for video... sigh... even trolled Wikipedia articles manage to be more accurate than that.
I feel truly sorry for the people who read that and think they've learned something about the subject.
Re:In this case, don't RTFA (Score:5, Interesting)
Time to shamelessly plug my articles about compression. Some parts are simplified (they're aimed at "end users") but, compared to this Atomic article, anything is flawless:
Lossless (data, image, audio)
http://digitalproducer.digitalmedianet.com/articl
Lossy + Hybrid (image, audio)
http://digitalproducer.digitalmedianet.com/articl
Video (lossless, lossy)
http://digitalproducer.digitalmedianet.com/articl
Re: (Score:2)
Re: (Score:2)
I agree with the others here, incredibly good articles! :)
A very thorough introduction, and still easy to follow for a lay-person. Recommended!
You wouldn't happen to have written any other works of similar quality you'd like to share with us?
A question as well: Do you know if this Photoshop plugin (j2k) [fnordware.com] is a good implementation of jpeg2000? Maybe it's a stupid question, but I have no idea how strict the standard is, or if there are differences between
Re: (Score:2)
http://digitalproducer.digitalmedianet.com/article s/viewarticle.jsp?id=135386 [digitalmedianet.com]
And I'll probably write a couple more, the first of which will be about HDR (high dynamic range) digital imaging. The problem with DMNet is they pay the same for a 3-paragraph article about "how to make your photos sharper in Photoshop" and a 20,000-word article about "how to build a working time machine and fix gl
Re: (Score:2)
How about these tests....
Which one is the least hassle to set up?
Which one is the least hassle to convert from or to?
Which one is the most accepted format? (let's be honest, APE and FLAC might be good audio codecs, too bad only a handful of players play them but Mp3s play on every player out there that I know o
Re: (Score:2)
Re: (Score:2)
The biggest problem any audio codec has is getting people to realize that while it might be better than MP3 for what ever reason you want to sell us, the new codec also has to be around the same size, and able
Re: (Score:2)
It's rarely necessary to have faster-than-realtime transcoding, so "how long does it take" is usually less relevant than "can it be done dynamically,
The description of DCT is pretty funny (Score:5, Interesting)
Re: (Score:2)
Oh, and the answer to your question is "yes." Saying "Frequency Space" as part of a description to anyone who is not involved in either said data analysis, compression, or vibrations (my former, and sometimes current, field) is guaranteed to be
Re:The description of DCT is pretty funny (Score:5, Informative)
I think I made a pretty decent job of explaining what "frequency space" is, and why it can be used to improve compression, here:
http://digitalproducer.digitalmedianet.com/articl
(scroll down to "The transformers")
It also explains why DCT isn't a form of compression per se, it simply makes it possible to use quantization in a way that does not affect quality as much as it would in "pixel space".
Several "non-techies" have read that and, although they realised the transform itself is not something trivial, they understood what it did and what it was used for. Something that you can't really say about the Atomic article (or its author).
Re: (Score:3, Interesting)
Re: (Score:2)
Re: (Score:2)
No, The people who study English, Journalism and Education don't have to take any math past finger counting. OK, well maybe decimals and fractions. It's quite rare to find someone who can understand "technical stuff" and write well enough to explain it.
I thought there was too much information... (Score:5, Funny)
please note a lossy codec was used for paraphrasing
Re: (Score:2)
You forgot the start- and end-markers for compression: o hai, and kthxbai.
--Rob
They missed 3ivx (Score:5, Informative)
A bit of a bummer that an Australian website missed reviewing an Australian created codec.
FYI, here's the press release. And YES! It does do Linux!. Tux be praised.
http://www.3ivx.com/pr/pr20070607_50.html [3ivx.com]
Cheers
A wide range? (Score:5, Interesting)
For those who like laundry lists, here are some codecs not listed: Dirac, Theora, Huffyuv, Lempel-Ziv-Oberhumer Codec, MNG, Cell, NV, WaveCodec, Motion JPEG and MSU Lossless Video Codec. The wikipedia page doesn't list all of these, it took some scouting to find others and some of the early early ones are apparently only listed in the documentation on Open Source videoconferencing software I had back in the early 1990s.
Are any of these significant, though? Well, Dirac (BBC) damn well should be - we're only talking a high-definition TV quality codec by a major broadcaster with on-site offices in most countries that would be a logical choice for their remote bureaus to use and be a good candidate for competing with digital broadcasters in general.
Theora - well, it would be the ideal desktop videoconferencing codec in many ways. Those in common use today are heavier than necessary but the quality you buy with that at the bandwidth generally available just isn't worth it.
Huffyuv is said to be the fastest codec on the planet by some, which is entirely possible. That would make it good for most things where CPU power is expensive but bandwidth is cheap. (Embedded systems would probably fall into that category a lot.)
MSU's Lossless Codec is probably the slowest codec ever written, but gives by far the best compression. It makes a great reference codec to compare others against, apparently. If you could develop a decent hardware implementation, it might be a serious competitor to HD-DVD and Blu-Ray, as you could pack a comparable volume of material onto a standard DVD and therefore use already-existing commodity disks and players. All you'd need is a patch kit to add the decoder. This would likely appeal far more to consumers, as they wouldn't need to spend as much, but the studios and the manufacturers would hate and despise it for the same reason.
The meaning of "print" (Score:3, Informative)
"Print" does not mean stipping out all graphics and ads, but leaving the number of pages the same.
>:(
--Rob
What about Wavlet CODECs? (Score:2)
Re: (Score:2)
You can get a bit of boost by compressing the I-frames with wavelets, and doing P/B frames classically, but that aint giving you much of a benefit, at the cost of having to worry about the convolution of 2 completely different error sources.
(and yeah, i know stuff like snow. Those actually prove that point)
Man, is that a useless article! (Score:3, Informative)
40 FRAME clips? The default GOP length of most of these codecs is longer than that! There's no useful test of rate control in there, or keyframe supression popping.
And as far as compression setings, all they say is "we used the defaults, but set it to highest quality". There isn't just ONE defualt in these products. We don't know if they're even comparing CBR and VBR, 1-pass or 2-pass. And there are lots of tweaks appropriate to different kinds of content that would be used in practic - one doesn't compress film source like cel animation!
Sheesh, there's really no useful information here at all. The average reader would probably wind up knowing less about compression after reading it...
Factual errors... (Score:2)
That number doesn't sound REMOTELY reasonable.
4K is 4096 x 2160 = 4,527,360 pixels/frame
32bpp per pixel == 144,875,520bits == 17,685 kilobytes/frame
4K is 24fps == 424,440 kilobytes/sec.
2 hours == 7,200 seconds
Which makes 3,055,968,000 Kbytes total or 2.846 Terabytes for 2 hours of uncompressed video.
And I agree with everyone who's already said how useless this article is. If you don't unders
Re: (Score:2)
Good catch. I imagine that number was due to a typo.
Re: (Score:2)
If you want the best possible quality, stick to the original format (ex., if your source are DV tapes, use DV-compressed AVI or MOV files).
If you want the best quality vs. size ratio, a MPEG-4-based codec (ex., XviD, x264, etc.) is probably the best choice. Using an AVI / MOV container will give you compatibility with a lot of existing software.
Good luck using Theora with video editing / compositing software...
Re: (Score:3, Insightful)
Do you also think that there should be a single type of paint, a single type of tire, a single type of lightbulb, and so on...?
Re: (Score:2)