
Recherche avancée
Médias (1)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
Autres articles (104)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Soumettre bugs et patchs
10 avril 2011Un logiciel n’est malheureusement jamais parfait...
Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
Si vous pensez avoir résolu vous même le bug (...) -
Formulaire personnalisable
21 juin 2013, parCette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire. (...)
Sur d’autres sites (8907)
-
The first in-depth technical analysis of VP8
Back in my original post about Internet video, I made some initial comments on the hope that VP8 would solve the problems of web video by providing a supposed patent-free video format with significantly better compression than the current options of Theora and Dirac. Fortunately, it seems I was able to acquire access to the VP8 spec, software, and source a good few days before the official release and so was able to perform a detailed technical analysis in time for the official release.
The questions I will try to answer here are :
1. How good is VP8 ? Is the file format actually better than H.264 in terms of compression, and could a good VP8 encoder beat x264 ? On2 claimed 50% better than H.264, but On2 has always made absurd claims that they were never able to back up with results, so such a number is almost surely wrong. VP7, for example, was claimed to be 15% better than H.264 while being much faster, but was in reality neither faster nor higher quality.
2. How good is On2′s VP8 implementation ? Irrespective of how good the spec is, is the implementation good, or is this going to be just like VP3, where On2 releases an unusably bad implementation with the hope that the community will fix it for them ? Let’s hope not ; it took 6 years to fix Theora !
3. How likely is VP8 to actually be free of patents ? Even if VP8 is worse than H.264, being patent-free is still a useful attribute for obvious reasons. But as noted in my previous post, merely being published by Google doesn’t guarantee that it is. Microsoft did similar a few years ago with the release of VC-1, which was claimed to be patent-free — but within mere months after release, a whole bunch of companies claimed patents on it and soon enough a patent pool was formed.
We’ll start by going through the core features of VP8. We’ll primarily analyze them by comparing to existing video formats. Keep in mind that an encoder and a spec are two different things : it’s possible for good encoder to be written for a bad spec or vice versa ! Hence why a really good MPEG-1 encoder can beat a horrific H.264 encoder.
But first, a comment on the spec itself.
AAAAAAAGGGGGGGGGGGGGHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH !
The spec consists largely of C code copy-pasted from the VP8 source code — up to and including TODOs, “optimizations”, and even C-specific hacks, such as workarounds for the undefined behavior of signed right shift on negative numbers. In many places it is simply outright opaque. Copy-pasted C code is not a spec. I may have complained about the H.264 spec being overly verbose, but at least it’s precise. The VP8 spec, by comparison, is imprecise, unclear, and overly short, leaving many portions of the format very vaguely explained. Some parts even explicitly refuse to fully explain a particular feature, pointing to highly-optimized, nigh-impossible-to-understand reference code for an explanation. There’s no way in hell anyone could write a decoder solely with this spec alone.
Now that I’ve gotten that out of my system, let’s get back to VP8 itself. To begin with, to get a general sense for where all this fits in, basically all modern video formats work via some variation on the following chain of steps :
Encode : Predict -> Transform + Quant -> Entropy Code -> Loopfilter
Decode : Entropy Decode -> Predict -> Dequant + Inverse Transform -> LoopfilterIf you’re looking to just get to the results and skip the gritty technical details, make sure to check out the “overall verdict” section and the “visual results” section. Or at least skip to the “summary for the lazy”.
Prediction
Prediction is any step which attempts to guess the content of an area of the frame. This could include functions based on already-known pixels in the same frame (e.g. inpainting) or motion compensation from a previous frame. Prediction usually involves side data, such as a signal telling the decoder a motion vector to use for said motion compensation.
Intra Prediction
Intra prediction is used to guess the content of a block without referring to other frames. VP8′s intra prediction is basically ripped off wholesale from H.264 : the “subblock” prediction modes are almost exactly identical (they even have the same names !) to H.264′s i4x4 mode, and the whole block prediction mode is basically identical to i16x16. Chroma prediction modes are practically identical as well. i8x8, from H.264 High Profile, is not present. An additional difference is that the planar prediction mode has been replaced with TM_PRED, a very vaguely similar analogue. The specific prediction modes are internally slightly different, but have the same names as in H.264.
Honestly, I’m very disappointed here. While H.264′s intra prediction is good, it has certainly been improved on quite a bit over the past 7 years, and I thought that blatantly ripping it off was the domain of companies like Real (see RV40). I expected at least something slightly more creative out of On2. But more important than any of that : this is a patent time-bomb waiting to happen. H.264′s spatial intra prediction is covered in patents and I don’t think that On2 will be able to just get away with changing the rounding in the prediction modes. I’d like to see Google’s justification for this — they must have a good explanation for why they think there won’t be any patent issues.
Update : spatial intra prediction apparently dates back to Nokia’s MVC H.26L proposal, from around 2000. It’s possible that Google believes that this is sufficient prior art to invalidate existing patents — which is not at all unreasonable !
Verdict on Intra Prediction : Slightly modified ripoff of H.264. Somewhat worse than H.264 due to omission of i8x8.
Inter Prediction
Inter prediction is used to guess the content of a block by referring to past frames. There are two primary components to inter prediction : reference frames and motion vectors. The reference frame is a past frame from which to grab pixels from and the motion vectors index an offset into that frame. VP8 supports a total of 3 reference frames : the previous frame, the “alt ref” frame, and the “golden frame”. For motion vectors, VP8 supports variable-size partitions much like H.264. For subpixel precision, it supports quarter-pel motion vectors with a 6-tap interpolation filter. In short :
VP8 reference frames : up to 3
H.264 reference frames : up to 16
VP8 partition types : 16×16, 16×8, 8×16, 8×8, 4×4
H.264 partition types : 16×16, 16×8, 8×16, flexible subpartitions (each 8×8 can be 8×8, 8×4, 4×8, or 4×4).
VP8 chroma MV derivation : each 4×4 chroma block uses the average of colocated luma MVs (same as MPEG-4 ASP)
H.264 chroma MV derivation : chroma uses luma MVs directly
VP8 interpolation filter : qpel, 6-tap luma, mixed 4/6-tap chroma
H.264 interpolation filter : qpel, 6-tap luma (staged filter), bilinear chroma
H.264 has but VP8 doesn’t : B-frames, weighted predictionH.264 has a significantly better and more flexible referencing structure. Sub-8×8 partitions are mostly unnecessary, so VP8′s omission of the H.264-style subpartitions has little consequence. The chroma MV derivation is more accurate in H.264 but slightly slower ; in practice the difference is probably near-zero both speed and compression-wise, since sub-8×8 luma partitions are rarely used (and I would suspect the same carries over to VP8).
The VP8 interpolation filter is likely slightly better, but will definitely be slower to implement, both encoder and decoder-side. A staged filter allows the encoder to precalculate all possible halfpel positions and then quickly calculate qpel positions when necessary : an unstaged filter does not, making subpel motion estimation much slower. Not that unstaged filters are bad — staged filters have basically been abandoned for all of the H.265 proposals — it’s just an inherent disadvantage performance-wise. Additionally, having as high as 6 taps on chroma is, IMO, completely unnecessary and wasteful.
The lack of B-frames in VP8 is a killer. B-frames can give 10-20% (or more) compression benefit for minimal speed cost ; their omission in VP8 probably costs more compression than all other problems noted in this post combined. This was not unexpected, however ; On2 has never used B-frames in any of their video formats. They also likely present serious patent problems, which probably explains their omission. Lack of weighted prediction is also going to hurt a bit, especially in fades.
Update : Alt-ref frames can apparently be used to partially replicate the lack of B-frames. It’s not nearly as good, but it can get at least some of the benefit without actual B-frames.
Verdict on Inter Prediction : Similar partitioning structure to H.264. Much weaker referencing structure. More complex, slightly better interpolation filter. Mostly a wash — except for the lack of B-frames, which is seriously going to hurt compression.
Transform and Quantization
After prediction, the encoder takes the difference between the prediction and the actual source pixels (the residual), transforms it, and quantizes it. The transform step is designed to make the data more amenable to compression by decorrelating it. The quantization step is the actual information-losing step where compression occurs ; the output values of transform are rounded, mostly to zero, leaving only a few integer coefficients.
Transform
For transform, VP8 uses again a very H.264-reminiscent scheme. Each 16×16 macroblock is divided into 16 4×4 DCT blocks, each of which is transformed by a bit-exact DCT approximation. Then, the DC coefficients of each block are collected into another 4×4 group, which is then Hadamard-transformed. OK, so this isn’t reminiscent of H.264, this is H.264. There are, however, 3 differences between VP8′s scheme and H.264′s.
The first is that the 8×8 transform is omitted entirely (fitting with the omission of the i8x8 intra mode). The second is the specifics of the transform itself. H.264 uses an extremely simplified “DCT” which is so un-DCT-like that it often referred to as the HCT (H.264 Cosine Transform) instead. This simplified transform results in roughly 1% worse compression, but greatly simplifies the transform itself, which can be implemented entirely with adds, subtracts, and right shifts by 1. VC-1 uses a more accurate version that relies on a few small multiplies (numbers like 17, 22, 10, etc). VP8 uses an extremely, needlessly accurate version that uses very large multiplies (20091 and 35468). This in retrospect is not surpising, as it is very similar to what VP3 used.
The third difference is that the Hadamard hierarchical transform is applied for some inter blocks, not merely i16x16. In particular, it also runs for p16x16 blocks. While this is definitely a good idea, especially given the small transform size (and the need to decorrelate the DC value between the small transforms), I’m not quite sure I agree with the decision to limit it to p16x16 blocks ; it seems that perhaps with a small amount of modification this could also be useful for other motion partitions. Also, note that unlike H.264, the hierarchical transform is luma-only and not applied to chroma.
Overall, the transform scheme in VP8 is definitely weaker than in H.264. The lack of an 8×8 transform is going to have a significant impact on detail retention, especially at high resolutions. The transform is needlessly slower than necessary as well, though a shift-based transform might be out of the question due to patents. The one good new idea here is applying the hierarchical DC transform to inter blocks.
Verdict on Transform : Similar to H.264. Slower, slightly more accurate 4×4 transform. Improved DC transform for luma (but not on chroma). No 8×8 transform. Overall, worse.
Quantization
For quantization, the core process is basically the same among all MPEG-like video formats, and VP8 is no exception. The primary ways that video formats tend to differentiate themselves here is by varying quantization scaling factors. There are two ways in which this is primarily done : frame-based offsets that apply to all coefficients or just some portion of them, and macroblock-level offsets. VP8 primarily uses the former ; in a scheme much less flexible than H.264′s custom quantization matrices, it allows for adjusting the quantizer of luma DC, luma AC, chroma DC, and so forth, separately. The latter (macroblock-level quantizer choice) can, in theory, be done using its “segmentation map” features, albeit very hackily and not very efficiently.
The killer mistake that VP8 has made here is not making macroblock-level quantization a core feature of VP8. Algorithms that take advantage of macroblock-level quantization are known as “adaptive quantization” and are absolutely critical to competitive visual quality. My implementation of variance-based adaptive quantization (before, after) in x264 still stands to this day as the single largest visual quality gain in x264 history. Encoder comparisons have showed over and over that encoders without adaptive quantization simply cannot compete.
Thus, while adaptive quantization is possible in VP8, the only way to implement it is to define one segment map for every single quantizer that one wants and to code the segment map index for every macroblock. This is inefficient and cumbersome ; even the relatively suboptimal MPEG-style delta quantizer system would be a better option. Furthermore, only 4 segment maps are allowed, for a maximum of 4 quantizers per frame.
Verdict on Quantization : Lack of well-integrated adaptive quantization is going to be a killer when the time comes to implement psy optimizations. Overall, much worse.
Entropy Coding
Entropy coding is the process of taking all the information from all the other processes : DCT coefficients, prediction modes, motion vectors, and so forth — and compressing them losslessly into the final output file. VP8 uses an arithmetic coder somewhat similar to H.264′s, but with a few critical differences. First, it omits the range/probability table in favor of a multiplication. Second, it is entirely non-adaptive : unlike H.264′s, which adapts after every bit decoded, probability values are constant over the course of the frame. Accordingly, the encoder may periodically send updated probability values in frame headers for some syntax elements. Keyframes reset the probability values to the defaults.
This approach isn’t surprising ; VP5 and VP6 (and probably VP7) also used non-adaptive arithmetic coders. How much of a penalty this actually means compression-wise is unknown ; it’s not easy to measure given the design of either H.264 or VP8. More importantly, I question the reason for this : making it adaptive would add just one single table lookup to the arithmetic decoding function — hardly a very large performance impact.
Of course, the arithmetic coder is not the only part of entropy coding : an arithmetic coder merely turns 0s and 1s into an output bitstream. The process of creating those 0s and 1s and selecting the probabilities for the encoder to use is an equally interesting problem. Since this is a very complicated part of the video format, I’ll just comment on the parts that I found particularly notable.
Motion vector coding consists of two parts : prediction based on neighboring motion vectors and the actual compression of the resulting delta between that and the actual motion vector. The prediction scheme in VP8 is a bit odd — worse, the section of the spec covering this contains no English explanation, just confusingly-written C code. As far as I can tell, it chooses an arithmetic coding context based on the neighboring MVs, then decides which of the predicted motion vectors to use, or whether to code a delta instead.
The downside of this scheme is that, like in VP3/Theora (though not nearly as badly), it biases heavily towards the re-use of previous motion vectors. This is dangerous because, as the Theora devs have recently found (and fixed to some extent in Theora 1.2 aka Ptalabvorm), any situation in which the encoder picks a motion vector which isn’t the “real” motion vector in order to save bits can potentially have negative visual consequences. In terms of raw efficiency, I’m not sure whether VP8 or H.264′s prediction is better here.
The compression of the resulting delta is similar to H.264, except for the coding of very large deltas, which is slightly better (similar to FFV1′s Golomb-like arithmetic codes).
Intra prediction mode coding is done using arithmetic coding contexts based on the modes of the neighboring blocks. This is probably a good bit better than the hackneyed method that H.264 uses, which always struck me as being poorly designed.
Residual coding is even more difficult to understand than motion vector coding, as the only full reference is a bunch of highly optimized, highly obfuscated C code. Like H.264′s CAVLC, it bases contexts on the number of nonzero coefficients in the top and left blocks relative to the current block. In addition, it also considers the magnitude of those coefficients and, like H.264′s CABAC, updates as coefficients are decoded.
One more thing to note is the data partitioning scheme used by VP8. This scheme is much like VP3/Theora’s and involves putting each syntax element in its own component of the bitstream. The unfortunate problem with this is that it’s a nightmare for hardware implementations, greatly increasing memory bandwidth requirements. I have already received a complaint from a hardware developer about this specific feature with regard to VP8.
Verdict on Entropy Coding : I’m not quite sure here. It’s better in some ways, worse in some ways, and just plain weird in others. My hunch is that it’s probably a very slight win for H.264 ; non-adaptive arithmetic coding has to have some serious penalties. It may also be a hardware implementation problem.
Loop Filter
The loop filter is run after decoding or encoding a frame and serves to perform extra processing on a frame, usually to remove blockiness in DCT-based video formats. Unlike postprocessing, this is not only for visual reasons, but also to improve prediction for future frames. Thus, it has to be done identically in both the encoder and decoder. VP8′s loop filter is vaguely similar to H.264′s, but with a few differences. First, it has two modes (which can be chosen by the encoder) : a fast mode and a normal mode. The fast mode is somewhat simpler than H.264′s, while the normal mode is somewhat more complex. Secondly, when filtering between macroblocks, VP8′s filter has wider range than the in-macroblock filter — H.264 did this, but only for intra edges.
Third, VP8′s filter omits most of the adaptive strength mechanics inherent in H.264′s filter. Its only adaptation is that it skips filtering on p16x16 blocks with no coefficients. This may be responsible for the high blurriness of VP8′s loop filter : it will run over and over and over again on all parts of a macroblock even if they are unchanged between frames (as long as some other part of the macroblock is changed). H.264′s, by comparison, is strength-adaptive based on whether DCT coefficients exist on either side of a given edge and based on the motion vector delta and reference frame delta across said edge. Of course, skipping this strength calculation saves some decoding time as well.
Update :
05:28 < derf> Gumboot : You’ll be disappointed to know they got the loop filter ordering wrong again.
05:29 < derf> Dark_Shikari : They ordered it such that you have to process each macroblock in full before processing the next one.Verdict on Loop Filter : Definitely worse compression-wise than H.264′s due to the lack of adaptive strength. Especially with the “fast” mode, might be significantly faster. I worry about it being too blurry.
Overall verdict on the VP8 video format
Overall, VP8 appears to be significantly weaker than H.264 compression-wise. The primary weaknesses mentioned above are the lack of proper adaptive quantization, lack of B-frames, lack of an 8×8 transform, and non-adaptive loop filter. With this in mind, I expect VP8 to be more comparable to VC-1 or H.264 Baseline Profile than with H.264. Of course, this is still significantly better than Theora, and in my tests it beats Dirac quite handily as well.
Supposedly Google is open to improving the bitstream format — but this seems to conflict with the fact that they got so many different companies to announce VP8 support. The more software that supports a file format, the harder it is to change said format, so I’m dubious of any claim that we will be able to spend the next 6-12 months revising VP8. In short, it seems to have been released too early : it would have been better off to have an initial period during which revisions could be submitted and then a big announcement later when it’s completed.
Update : it seems that Google is not open to changing the spec : it is apparently “final”, complete with all its flaws.
In terms of decoding speed I’m not quite sure ; the current implementation appears to be about 16% slower than ffmpeg’s H.264 decoder (and thus probably about 25-35% slower than state-of-the-art decoders like CoreAVC). Of course, this doesn’t necessarily say too much about what a fully optimized implementation will reach, but the current one seems to be reasonably well-optimized and has SIMD assembly code for almost all major DSP functions, so I doubt it will get that much faster.
I would expect, with equally optimized implementations, VP8 and H.264 to be relatively comparable in terms of decoding speed. This, of course, is not really a plus for VP8 : H.264 has a great deal of hardware support, while VP8 largely has to rely on software decoders, so being “just as fast” is in many ways not good enough. By comparison, Theora decodes almost 35% faster than H.264 using ffmpeg’s decoder.
Finally, the problem of patents appears to be rearing its ugly head again. VP8 is simply way too similar to H.264 : a pithy, if slightly inaccurate, description of VP8 would be “H.264 Baseline Profile with a better entropy coder”. Even VC-1 differed more from H.264 than VP8 does, and even VC-1 didn’t manage to escape the clutches of software patents. It’s quite possible that VP8 has no patent issues, but until we get some hard evidence that VP8 is safe, I would be cautious. Since Google is not indemnifying users of VP8 from patent lawsuits, this is even more of a potential problem. Most importantly, Google has not released any justifications for why the various parts of VP8 do not violate patents, as Sun did with their OMS standard : such information would certainly cut down on speculation and make it more clear what their position actually is.
But if luck is on Google’s side and VP8 does pass through the patent gauntlet unscathed, it will undoubtedly be a major upgrade as compared to Theora.
Addendum A : On2′s VP8 Encoder and Decoder
This post is primarily aimed at discussing issues relating to the VP8 video format. But from a practical perspective, while software can be rewritten and improved, to someone looking to use VP8 in the near future, the quality (both code-wise, compression-wise, and speed-wise) of the official VP8 encoder and decoder is more important than anything I’ve said above. Thus, after reading through most of the code, here’s my thoughts on the software.
Initially I was intending to go easy on On2 here ; I assumed that this encoder was in fact new for VP8 and thus they wouldn’t necessarily have time to make the code high-quality and improve its algorithms. However, as I read through the encoder, it became clear that this was not at all true ; there were comments describing bugfixes dating as far back as early 2004. That’s right : this software is even older than x264 ! I’m guessing that the current VP8 software simply evolved from the original VP7 software. Anyways, this means that I’m not going to go easy on On2 ; they’ve had (at least) 6 years to work on VP8, and a much larger dev team than x264′s to boot.
Before I tear the encoder apart, keep in mind that it isn’t bad. In fact, compression-wise, I don’t think they’re going to be able to get it that much better using standard methods. I would guess that the encoder, on slowest settings, is within 5-10% of the maximum PSNR that they’ll ever get out of it. There’s definitely a whole lot more to be had using unusual algorithms like MB-tree, not to mention the complete lack of psy optimizations — but at what it tries to do, it does pretty decently. This is in contrast to the VP3 encoder, which was a pile of garbage (just ask any Theora dev).
Before I go into specific components, a general note on code quality. The code quality is much better than VP3, though there’s still tons of typos in the comments. They also appear to be using comments as a form of version control system, which is a bit bizarre. The assembly code is much worse, with staggering levels of copy-paste coding, some completely useless instructions that do nothing at all, unaligned loads/stores to what-should-be aligned data structures, and a few functions that are simply written in unfathomably roundabout (and slower) ways. While the C code isn’t half bad, the assembly is clearly written by retarded monkeys. But I’m being unfair : this is way better than with VP3.
Motion estimation : Diamond, hex, and exhaustive (full) searches available. All are pretty naively implemented : hexagon, for example, performs a staggering amount of redundant work (almost half of the locations it searches are repeated !). Full is even worse in terms of inefficiency, but it’s useless for all but placebo-level speeds, so I’m not really going to complain about that.
Subpixel motion estimation : Straightforward iterative diamond and square searches. Nothing particularly interesting here.
Quantization : Primary quantization has two modes : a fast mode and a slightly slower mode. The former is just straightforward deadzone quant, while the latter has a bias based on zero-run length (not quite sure how much this helps, but I like the idea). After this they have “coefficient optimization” with two modes. One mode simply tries moving each nonzero coefficient towards zero ; the slow mode tries all 2^16 possible DCT coefficient rounding permutations. Whoever wrote this needs to learn what trellis quantization (the dynamic programming solution to the problem) is and stop using exponential-time algorithms in encoders.
Ratecontrol (frame type handling) : Relies on “boosting” the quality of golden frames and “alt-ref” frames — a concept I find extraordinarily dubious because it means that the video will periodically “jump” to a higher quality level, which looks utterly terrible in practice. You can see the effect in this graph of PSNR ; every dozen frames or so, the quality “jumps”. This cannot possibly look good in motion.
Ratecontrol (overall) : Relies on a purely reactive ratecontrol algorithm, which probably will not do very well in difficult situations such as hard-CBR and tight buffer constraints. Furthermore, it does no adaptation of the quantizer within the frame (e.g. in the case that the frame overshot the size limitations ratecontrol put on it). Instead, it relies on re-encoding the frame repeatedly to reach the target size — which in practice is simply not a usable option for two reasons. In low-latency situations where one can’t have a large delay, re-encoding repeatedly may send the encoder way behind time-wise. In any other situation, one can afford to use frame-based threading, a much faster algorithm for multithreaded encoding than the typical slice-based threading — which makes re-encoding impossible.
Loop filter : The encoder attempts to optimize the loop filter parameters for maximum PSNR. I’m not quite sure how good an idea this is ; every example I’ve seen of this with H.264 ends up creating very bad (often blurry) visual results.
Overall performance : Even on the absolute fastest settings with multithreading, their encoder is slow. On my 1.6Ghz Core i7 it gets barely 26fps encoding 1080p ; not even enough to reliably do real-time compression. x264, by comparison, gets 101fps at its fastest preset “ultrafast”. Now, sure, I don’t expect On2′s encoder to be anywhere near as fast as x264, but being unable to stream HD video on a modern quad-core system is simply not reasonable in 2010. Additionally, the speed options are extraordinarily confusing and counterintuitive and don’t always seem to work properly ; for example, fast encoding mode (–rt) seems to be ignored completely in 2-pass.
Overall compression : As said before, compression-wise the encoder does a pretty good job with the spec that it’s given. The slower algorithms in the encoder are clearly horrifically unoptimized (see the comments on motion search and quantization in particular), but they still work.
Decoder : Seems to be straightforward enough. Nothing jumped out at me as particularly bad, slow, or otherwise, besides the code quality issues mentioned above.
Practical problems : The encoder and decoder share a staggering amount of code. This means that any bug in the common code will affect both, and thus won’t be spotted because it will affect them both in a matching fashion. This is the inherent problem with any file format that doesn’t have independent implementations and is defined by a piece of software instead of a spec : there are always bugs. RV40 had a hilarious example of this, where a typo of “22″ instead of “33″ resulted in quarter-pixel motion compensation being broken. Accordingly, I am very dubious of any file format defined by software instead of a specification. Google should wait until independent implementations have been created before setting the spec in stone.
Update : it seems that what I forsaw is already coming true :
<derf> gmaxwell : It survives it with a patch that causes artifacts because their encoder doesn’t clamp MVs properly.
<gmaxwell> ::cries: :
<derf> So they reverted my decoder patch, instead of fixing the encoder.
<gmaxwell> “but we have many files encoded with this !”
<gmaxwell> so great.. single implementation and it depends on its own bugs.This is just like Internet Explorer 6 all over again — bugs in the software become part of the “spec” !
Hard PSNR numbers :
(Source/target bitrate are the same as in my upcoming comparison.)
x264, slowest mode, High Profile : 29.76103db ( 28% better than VP8)
VP8, slowest mode : 28.37708db ( 8.5% better than x264 baseline)
x264, slowest mode, Baseline Profile : 27.95594dbNote that these numbers are a “best-case” situation : we’re testing all three optimized for PSNR, which is what the current VP8 encoder specializes in as well. This is not too different from my expectations above as estimated from the spec itself ; it’s relatively close to x264′s Baseline Profile.
Keep in mind that this is not representative of what you can get out of VP8 now, but rather what could be gotten out of VP8. PSNR is meaningless for real-world encoding — what matters is visual quality — so hopefully if problems like the adaptive quantization issue mentioned previously can be overcome, the VP8 encoder could be improved to have x264-level psy optimizations. However, as things stand…
Visual results : Unfortunately, since the current VP8 encoder optimizes entirely for PSNR, the visual results are less than impressive. Here’s a sampling of how it compares with some other encoders. Source and bitrate are the same as above ; all encoders are optimized for optimal visual quality wherever possible. And apparently given some of the responses to this part, many people cannot actually read ; the bitrate is (as close as possible to) the same on all of these files.
Update : I got completely slashdotted and my few hundred gigs of bandwidth ran out in mere hours. The images below have been rehosted, so if you’ve pasted the link somewhere else, check below for the new one.
VP8 (On2 VP8 rc8) (source) (Note : I recently realized that the official encoder doesn’t output MKV, so despite the name, this file is actually a VP8 bitstream wrapped in IVF, as generated by ivfenc. Decode it with ivfdec.)
H.264 (Recent x264) (source)
H.264 Baseline Profile (Recent x264) (source)
Theora (Recent ptalabvorm nightly) (source)
Dirac (Schroedinger 1.0.9) (source)
VC-1 (Microsoft VC-1 SDK) (source)
MPEG-4 ASP (Xvid 1.2.2) (source)The quality generated by On2′s VP8 encoder will probably not improve significantly without serious psy optimizations.
One further note about the encoder : currently it will drop frames by default, which is incredibly aggravating and may cause serious problems. I strongly suggest anyone using it to turn the frame-dropping feature off in the options.
Addendum B : Google’s choice of container and audio format for HTML5
Google has chosen Matroska for their container format. This isn’t particularly surprising : Matroska is one of the most widely used “modern” container formats and is in many ways best-suited to the task. MP4 (aka ISOmedia) is probably a better-designed format, but is not very flexible ; while in theory it can stick anything in a private stream, a standardization process is technically necessary to “officially” support any new video or audio formats. Patents are probably a non-issue ; the MP4 patent pool was recently disbanded, largely because nobody used any of the features that were patented.
Another advantage of Matroska is that it can be used for streaming video : while it isn’t typically, the spec allows it. Note that I do not mean progressive download (a’la Youtube), but rather actual streaming, where the encoder is working in real-time. The only way to do this with MP4 is by sending “segments” of video, a very hacky approach in which one is effectively sending a bunch of small MP4 files in sequence. This approach is used by Microsoft’s Silverlight “Smooth Streaming”. Not only is this an ugly hack, but it’s unsuitable for low-latency video. This kind of hack is unnecessary for Matroska. One possible problem is that since almost nobody currently uses Matroska for live streaming purposes, very few existing Matroska implementations support what is necessary to play streamed Matroska files.
I’m not quite sure why Google chose to rebrand Matroska ; “WebM” is a silly name and Matroska is already pretty well-recognized as a brand.
The choice of Vorbis for audio is practically a no-brainer. Even ignoring the issue of patents, libvorbis is still the best general-purpose open source audio encoder. While AAC is generally better at very low bitrates, there aren’t any good open source AAC encoders : faac is worse than LAME and ffmpeg’s AAC encoder is even worse. Furthermore, faac is not free software ; it contains code from the non-free reference encoder. Combined with the patent issue, nobody expected Google to pick anything else.
Addendum C : Summary for the lazy
VP8, as a spec, should be a bit better than H.264 Baseline Profile and VC-1. It’s not even close to competitive with H.264 Main or High Profile. If Google is willing to revise the spec, this can probably be improved.
VP8, as an encoder, is somewhere between Xvid and Microsoft’s VC-1 in terms of visual quality. This can definitely be improved a lot.
VP8, as a decoder, decodes even slower than ffmpeg’s H.264. This probably can’t be improved that much ; VP8 as a whole is similar in complexity to H.264.
With regard to patents, VP8 copies too much from H.264 for comfort, no matter whose word is behind the claim of being patent-free. This doesn’t mean that it’s sure to be covered by patents, but until Google can give us evidence as to why it isn’t, I would be cautious.
VP8 is definitely better compression-wise than Theora and Dirac, so if its claim to being patent-free does stand up, it’s a big upgrade with regard to patent-free video formats.
VP8 is not ready for prime-time ; the spec is a pile of copy-pasted C code and the encoder’s interface is lacking in features and buggy. They aren’t even ready to finalize the bitstream format, let alone switch the world over to VP8.
With the lack of a real spec, the VP8 software basically is the spec–and with the spec being “final”, any bugs are now set in stone. Such bugs have already been found and Google has rejected fixes.
Google made the right decision to pick Matroska and Vorbis for its HTML5 video proposal.
29.76103
-
extract subtitle from video ffmpeg. subs.srt : Invalid argument
3 juillet 2019, par evgeni fotialet filename_ext = file.path.split('/').pop()
let filename = filename_ext.split('.').slice(0, filename_ext.split('.').length-1).join('.')
var result = ffmpeg({
MEMFS: [{name: filename_ext, data: buffer}],
arguments: ["-i", filename_ext, "-map", "0:s:0", "subs.srt"],
// Ignore stdin read requests
stdin: function() {},
});
// Write out.webm to disk.
var out = result.MEMFS[0];
fs.outputFile(pathname + '/' + out.name, Buffer(out.data), 'binary');I get the following
ffmpeg version n3.1.2 Copyright (c) 2000-2016 the FFmpeg developers
built with emcc (Emscripten gcc/clang-like replacement) 1.36.7 ()
configuration: --cc=emcc --enable-cross-compile --target-os=none --arch=x86 --disable-runtime-cpudetect --disable-asm --disable-fast-unaligned --disable-pthreads --disable-w32threads --disable-os2threads --disable-debug --disable-stripping --disable-all --enable-ffmpeg --enable-avcodec --enable-avformat --enable-avutil --enable-swresample --enable-swscale --enable-avfilter --disable-network --disable-d3d11va --disable-dxva2 --disable-vaapi --disable-vda --disable-vdpau --enable-decoder=vp8 --enable-decoder=vp9 --enable-decoder=theora --enable-decoder=mpeg2video --enable-decoder=mpeg4 --enable-decoder=h264 --enable-decoder=hevc --enable-decoder=png --enable-decoder=mjpeg --enable-decoder=vorbis --enable-decoder=opus --enable-decoder=mp3 --enable-decoder=ac3 --enable-decoder=aac --enable-decoder=ass --enable-decoder=ssa --enable-decoder=srt --enable-decoder=webvtt --enable-demuxer=matroska --enable-demuxer=ogg --enable-demuxer=avi --enable-demuxer=mov --enable-demuxer=flv --enable-demuxer=mpegps --enable-demuxer=image2 --enable-demuxer=mp3 --enable-demuxer=concat --enable-protocol=file --enable-filter=aresample --enable-filter=scale --enable-filter=crop --enable-filter=overlay --disable-bzlib --disable-iconv --disable-libxcb --disable-lzma --disable-sdl --disable-securetransport --disable-xlib --disable-zlib --enable-encoder=libvpx_vp8 --enable-encoder=libopus --enable-encoder=mjpeg --enable-muxer=webm --enable-muxer=ogg --enable-muxer=null --enable-muxer=image2 --enable-filter=subtitles --enable-libass --enable-libopus --enable-libvpx --extra-cflags=-I../libvpx/dist/include --extra-ldflags=-L../libvpx/dist/lib
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 41.100 / 57. 41.100
libavfilter 6. 47.100 / 6. 47.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
[h264 @ 0x7d7510] Warning: not compiled with thread support, using thread emulation
[aac @ 0x7d81c0] Warning: not compiled with thread support, using thread emulation
[ssa @ 0x7d8e30] Warning: not compiled with thread support, using thread emulation
Input #0, matroska,webm, from 'censored filename.mkv':
Metadata:
encoder : no_variable_data
creation_time : 1970-01-01 00:00:00
Duration: 00:23:40.13, start: 0.000000, bitrate: 2789 kb/s
Stream #0:0: Video: h264 (High), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Metadata:
BPS : 2658044
BPS-eng : 2658044
DURATION : 00:23:40.045000000
DURATION-eng : 00:23:40.045000000
NUMBER_OF_FRAMES: 34047
NUMBER_OF_FRAMES-eng: 34047
NUMBER_OF_BYTES : 471817808
NUMBER_OF_BYTES-eng: 471817808
_STATISTICS_WRITING_APP: no_variable_data
_STATISTICS_WRITING_APP-eng: no_variable_data
_STATISTICS_WRITING_DATE_UTC: 1970-01-01 00:00:00
_STATISTICS_WRITING_DATE_UTC-eng: 1970-01-01 00:00:00
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(jpn): Audio: aac (LC), 44100 Hz, stereo, fltp (default)
Metadata:
BPS : 128000
BPS-eng : 128000
DURATION : 00:23:40.109000000
DURATION-eng : 00:23:40.109000000
NUMBER_OF_FRAMES: 61159
NUMBER_OF_FRAMES-eng: 61159
NUMBER_OF_BYTES : 22721748
NUMBER_OF_BYTES-eng: 22721748
_STATISTICS_WRITING_APP: no_variable_data
_STATISTICS_WRITING_APP-eng: no_variable_data
_STATISTICS_WRITING_DATE_UTC: 1970-01-01 00:00:00
_STATISTICS_WRITING_DATE_UTC-eng: 1970-01-01 00:00:00
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Subtitle: ass (default)
Metadata:
BPS : 110
BPS-eng : 110
DURATION : 00:23:25.280000000
DURATION-eng : 00:23:25.280000000
NUMBER_OF_FRAMES: 298
NUMBER_OF_FRAMES-eng: 298
NUMBER_OF_BYTES : 19407
NUMBER_OF_BYTES-eng: 19407
_STATISTICS_WRITING_APP: no_variable_data
_STATISTICS_WRITING_APP-eng: no_variable_data
_STATISTICS_WRITING_DATE_UTC: 1970-01-01 00:00:00
_STATISTICS_WRITING_DATE_UTC-eng: 1970-01-01 00:00:00
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:3: Attachment: ttf
Metadata:
filename : OpenSans-Semibold.ttf
mimetype : application/x-truetype-font
[NULL @ 0x9eac90] Unable to find a suitable output format for 'subs.srt'
subs.srt: Invalid argumentthe file is a mkv video file
Other info
Codecs:
D..... = Decoding supported
.E.... = Encoding supported
..V... = Video codec
..A... = Audio codec
..S... = Subtitle codec
...I.. = Intra frame-only codec
....L. = Lossy compression
.....S = Lossless compression
-------
..VI.. 012v Uncompressed 4:2:2 10-bit
..V.L. 4xm 4X Movie
..VI.S 8bps QuickTime 8BPS video
..VIL. a64_multi Multicolor charset for Commodore 64
..VIL. a64_multi5 Multicolor charset for Commodore 64, extended with 5th color (colram)
..V..S aasc Autodesk RLE
..VIL. aic Apple Intermediate Codec
..VI.S alias_pix Alias/Wavefront PIX image
..VIL. amv AMV Video
..V.L. anm Deluxe Paint Animation
..V.L. ansi ASCII/ANSI art
..V..S apng APNG (Animated Portable Network Graphics) image
..VIL. asv1 ASUS V1
..VIL. asv2 ASUS V2
..VIL. aura Auravision AURA
..VIL. aura2 Auravision Aura 2
..V... avrn Avid AVI Codec
..VI.. avrp Avid 1:1 10-bit RGB Packer
..V.L. avs AVS (Audio Video Standard) video
..VI.. avui Avid Meridien Uncompressed
..VI.. ayuv Uncompressed packed MS 4:4:4:4
..V.L. bethsoftvid Bethesda VID video
..V.L. bfi Brute Force & Ignorance
..V.L. binkvideo Bink video
..VI.. bintext Binary text
..VI.S bmp BMP (Windows and OS/2 bitmap)
..V..S bmv_video Discworld II BMV video
..VI.S brender_pix BRender PIX image
..V.L. c93 Interplay C93
..V.L. cavs Chinese AVS (Audio Video Standard) (AVS1-P2, JiZhun profile)
..V.L. cdgraphics CD Graphics video
..VIL. cdxl Commodore CDXL video
..V.L. cfhd Cineform HD
..V.L. cinepak Cinepak
..VIL. cljr Cirrus Logic AccuPak
..VI.S cllc Canopus Lossless Codec
..V.L. cmv Electronic Arts CMV video
..V... cpia CPiA video format
..V..S cscd CamStudio
..VIL. cyuv Creative YUV (CYUV)
..V.LS daala Daala
..VILS dds DirectDraw Surface image decoder
..V.L. dfa Chronomaster DFA
..V.LS dirac Dirac
..VIL. dnxhd VC3/DNxHD
..VI.S dpx DPX (Digital Picture Exchange) image
..V.L. dsicinvideo Delphine Software International CIN video
..VIL. dvvideo DV (Digital Video)
..V..S dxa Feeble Files/ScummVM DXA
..VI.S dxtory Dxtory
..VIL. dxv Resolume DXV
..V.L. escape124 Escape 124
..V.L. escape130 Escape 130
..VILS exr OpenEXR image
..V..S ffv1 FFmpeg video codec #1
..VI.S ffvhuff Huffyuv FFmpeg variant
..V.L. fic Mirillis FIC
..V..S flashsv Flash Screen Video v1
..V.L. flashsv2 Flash Screen Video v2
..V..S flic Autodesk Animator Flic video
..V.L. flv1 FLV / Sorenson Spark / Sorenson H.263 (Flash Video)
..V..S fraps Fraps
..VI.S frwu Forward Uncompressed
..V.L. g2m Go2Meeting
..V..S gif GIF (Graphics Interchange Format)
..V.L. h261 H.261
D.V.L. h263 H.263 / H.263-1996, H.263+ / H.263-1998 / H.263 version 2
..V.L. h263i Intel H.263
..V.L. h263p H.263+ / H.263-1998 / H.263 version 2
D.V.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
..VIL. hap Vidvox Hap decoder
D.V.L. hevc H.265 / HEVC (High Efficiency Video Coding)
..V.L. hnm4video HNM 4 video
..VIL. hq_hqa Canopus HQ/HQA
..VIL. hqx Canopus HQX
..VI.S huffyuv HuffYUV
..V.L. idcin id Quake II CIN video
..VI.. idf iCEDraw text
..V.L. iff_ilbm IFF ACBM/ANIM/DEEP/ILBM/PBM/RGB8/RGBN
..V.L. indeo2 Intel Indeo 2
..V.L. indeo3 Intel Indeo 3
..V.L. indeo4 Intel Indeo Video Interactive 4
..V.L. indeo5 Intel Indeo Video Interactive 5
..V.L. interplayvideo Interplay MVE video
..VILS jpeg2000 JPEG 2000
..VILS jpegls JPEG-LS
..VIL. jv Bitmap Brothers JV video
..V.L. kgv1 Kega Game Video
..V.L. kmvc Karl Morton's video codec
..VI.S lagarith Lagarith lossless
..VI.S ljpeg Lossless JPEG
..VI.S loco LOCO
..VI.S m101 Matrox Uncompressed SD
..V.L. mad Electronic Arts Madcow Video
..VI.S magicyuv MagicYUV Lossless Video
..VIL. mdec Sony PlayStation MDEC (Motion DECoder)
..V.L. mimic Mimic
DEVIL. mjpeg Motion JPEG
..VIL. mjpegb Apple MJPEG-B
..V.L. mmvideo American Laser Games MM Video
..V.L. motionpixels Motion Pixels video
..V.L. mpeg1video MPEG-1 video
D.V.L. mpeg2video MPEG-2 video
D.V.L. mpeg4 MPEG-4 part 2
..V.L. mpegvideo_xvmc MPEG-1/2 video XvMC (X-Video Motion Compensation)
..V.L. msa1 MS ATC Screen
..V.L. msmpeg4v1 MPEG-4 part 2 Microsoft variant version 1
..V.L. msmpeg4v2 MPEG-4 part 2 Microsoft variant version 2
..V.L. msmpeg4v3 MPEG-4 part 2 Microsoft variant version 3
..V..S msrle Microsoft RLE
..V.L. mss1 MS Screen 1
..VIL. mss2 MS Windows Media Video V9 Screen
..V.L. msvideo1 Microsoft Video 1
..VI.S mszh LCL (LossLess Codec Library) MSZH
..V.L. mts2 MS Expression Encoder Screen
..VIL. mvc1 Silicon Graphics Motion Video Compressor 1
..VIL. mvc2 Silicon Graphics Motion Video Compressor 2
..V.L. mxpeg Mobotix MxPEG video
..V.L. nuv NuppelVideo/RTJPEG
..V.L. paf_video Amazing Studio Packed Animation File Video
..VI.S pam PAM (Portable AnyMap) image
..VI.S pbm PBM (Portable BitMap) image
..VI.S pcx PC Paintbrush PCX image
..VI.S pgm PGM (Portable GrayMap) image
..VI.S pgmyuv PGMYUV (Portable GrayMap YUV) image
..VIL. pictor Pictor/PC Paint
..V..S png PNG (Portable Network Graphics) image
..VI.S ppm PPM (Portable PixelMap) image
..VIL. prores Apple ProRes (iCodec Pro)
..VIL. ptx V.Flash PTX image
..VI.S qdraw Apple QuickDraw
..V.L. qpeg Q-team QPEG
..V..S qtrle QuickTime Animation (RLE) video
..VI.S r10k AJA Kona 10-bit RGB Codec
..VI.S r210 Uncompressed RGB 10-bit
..VI.S rawvideo raw video
..VIL. rl2 RL2 video
..V.L. roq id RoQ video
..V.L. rpza QuickTime video (RPZA)
..V..S rscc innoHeim/Rsupport Screen Capture Codec
..V.L. rv10 RealVideo 1.0
..V.L. rv20 RealVideo 2.0
..V.L. rv30 RealVideo 3.0
..V.L. rv40 RealVideo 4.0
..V.L. sanm LucasArts SANM/SMUSH video
..V..S screenpresso Screenpresso
..VI.S sgi SGI image
..VI.S sgirle SGI RLE 8-bit
..VI.S sheervideo BitJazz SheerVideo
..V.L. smackvideo Smacker video
..V.L. smc QuickTime Graphics (SMC)
..V... smvjpeg Sigmatel Motion Video
..V.LS snow Snow
..VIL. sp5x Sunplus JPEG (SP5X)
..VI.S sunrast Sun Rasterfile image
..V.L. svq1 Sorenson Vector Quantizer 1 / Sorenson Video 1 / SVQ1
..V.L. svq3 Sorenson Vector Quantizer 3 / Sorenson Video 3 / SVQ3
..VI.S targa Truevision Targa image
..VI.. targa_y216 Pinnacle TARGA CineWave YUV16
..V.L. tdsc TDSC
..V.L. tgq Electronic Arts TGQ video
..V.L. tgv Electronic Arts TGV video
D.V.L. theora Theora
..VIL. thp Nintendo Gamecube THP video
..V.L. tiertexseqvideo Tiertex Limited SEQ video
..VI.S tiff TIFF image
..VIL. tmv 8088flex TMV
..V.L. tqi Electronic Arts TQI video
..V.L. truemotion1 Duck TrueMotion 1.0
..V.L. truemotion2 Duck TrueMotion 2.0
..V.L. truemotion2rt Duck TrueMotion 2.0 Real Time
..V..S tscc TechSmith Screen Capture Codec
..V.L. tscc2 TechSmith Screen Codec 2
..VIL. txd Renderware TXD (TeXture Dictionary) image
..V.L. ulti IBM UltiMotion
..VI.S utvideo Ut Video
..VI.S v210 Uncompressed 4:2:2 10-bit
..VI.S v210x Uncompressed 4:2:2 10-bit
..VI.. v308 Uncompressed packed 4:4:4
..VI.. v408 Uncompressed packed QT 4:4:4:4
..VI.S v410 Uncompressed 4:4:4 10-bit
..V.L. vb Beam Software VB
..VI.S vble VBLE Lossless Codec
..V.L. vc1 SMPTE VC-1
..V.L. vc1image Windows Media Video 9 Image v2
..VIL. vcr1 ATI VCR1
..VIL. vixl Miro VideoXL
..V.L. vmdvideo Sierra VMD video
..V..S vmnc VMware Screen Codec / VMware Video
D.V.L. vp3 On2 VP3
..V.L. vp5 On2 VP5
..V.L. vp6 On2 VP6
..V.L. vp6a On2 VP6 (Flash version, with alpha channel)
..V.L. vp6f On2 VP6 (Flash version)
..V.L. vp7 On2 VP7
DEV.L. vp8 On2 VP8 (encoders: libvpx )
D.V.L. vp9 Google VP9
..VILS webp WebP
..V.L. wmv1 Windows Media Video 7
..V.L. wmv2 Windows Media Video 8
..V.L. wmv3 Windows Media Video 9
..V.L. wmv3image Windows Media Video 9 Image
..VIL. wnv1 Winnov WNV1
..V..S wrapped_avframe AVFrame to AVPacket passthrough
..V.L. ws_vqa Westwood Studios VQA (Vector Quantized Animation) video
..V.L. xan_wc3 Wing Commander III / Xan
..V.L. xan_wc4 Wing Commander IV / Xxan
..VI.. xbin eXtended BINary text
..VI.S xbm XBM (X BitMap) image
..VIL. xface X-face image
..VI.S xwd XWD (X Window Dump) image
..VI.. y41p Uncompressed YUV 4:1:1 12-bit
..VI.S ylc YUY2 Lossless Codec
..V.L. yop Psygnosis YOP Video
..VI.. yuv4 Uncompressed packed 4:2:0
..V..S zerocodec ZeroCodec Lossless Video
..VI.S zlib LCL (LossLess Codec Library) ZLIB
..V..S zmbv Zip Motion Blocks Video
..A.L. 4gv 4GV (Fourth Generation Vocoder)
..A.L. 8svx_exp 8SVX exponential
..A.L. 8svx_fib 8SVX fibonacci
D.A.L. aac AAC (Advanced Audio Coding)
..A.L. aac_latm AAC LATM (Advanced Audio Coding LATM syntax)
D.A.L. ac3 ATSC A/52A (AC-3)
..A.L. adpcm_4xm ADPCM 4X Movie
..A.L. adpcm_adx SEGA CRI ADX ADPCM
..A.L. adpcm_afc ADPCM Nintendo Gamecube AFC
..A.L. adpcm_aica ADPCM Yamaha AICA
..A.L. adpcm_ct ADPCM Creative Technology
..A.L. adpcm_dtk ADPCM Nintendo Gamecube DTK
..A.L. adpcm_ea ADPCM Electronic Arts
..A.L. adpcm_ea_maxis_xa ADPCM Electronic Arts Maxis CDROM XA
..A.L. adpcm_ea_r1 ADPCM Electronic Arts R1
..A.L. adpcm_ea_r2 ADPCM Electronic Arts R2
..A.L. adpcm_ea_r3 ADPCM Electronic Arts R3
..A.L. adpcm_ea_xas ADPCM Electronic Arts XAS
..A.L. adpcm_g722 G.722 ADPCM
..A.L. adpcm_g726 G.726 ADPCM
..A.L. adpcm_g726le G.726 ADPCM little-endian
..A.L. adpcm_ima_amv ADPCM IMA AMV
..A.L. adpcm_ima_apc ADPCM IMA CRYO APC
..A.L. adpcm_ima_dat4 ADPCM IMA Eurocom DAT4
..A.L. adpcm_ima_dk3 ADPCM IMA Duck DK3
..A.L. adpcm_ima_dk4 ADPCM IMA Duck DK4
..A.L. adpcm_ima_ea_eacs ADPCM IMA Electronic Arts EACS
..A.L. adpcm_ima_ea_sead ADPCM IMA Electronic Arts SEAD
..A.L. adpcm_ima_iss ADPCM IMA Funcom ISS
..A.L. adpcm_ima_oki ADPCM IMA Dialogic OKI
..A.L. adpcm_ima_qt ADPCM IMA QuickTime
..A.L. adpcm_ima_rad ADPCM IMA Radical
..A.L. adpcm_ima_smjpeg ADPCM IMA Loki SDL MJPEG
..A.L. adpcm_ima_wav ADPCM IMA WAV
..A.L. adpcm_ima_ws ADPCM IMA Westwood
..A.L. adpcm_ms ADPCM Microsoft
..A.L. adpcm_mtaf ADPCM MTAF
..A.L. adpcm_psx ADPCM Playstation
..A.L. adpcm_sbpro_2 ADPCM Sound Blaster Pro 2-bit
..A.L. adpcm_sbpro_3 ADPCM Sound Blaster Pro 2.6-bit
..A.L. adpcm_sbpro_4 ADPCM Sound Blaster Pro 4-bit
..A.L. adpcm_swf ADPCM Shockwave Flash
..A.L. adpcm_thp ADPCM Nintendo THP
..A.L. adpcm_thp_le ADPCM Nintendo THP (Little-Endian)
..A.L. adpcm_vima LucasArts VIMA audio
..A.L. adpcm_xa ADPCM CDROM XA
..A.L. adpcm_yamaha ADPCM Yamaha
..A..S alac ALAC (Apple Lossless Audio Codec)
..A.L. amr_nb AMR-NB (Adaptive Multi-Rate NarrowBand)
..A.L. amr_wb AMR-WB (Adaptive Multi-Rate WideBand)
..A..S ape Monkey's Audio
..A.L. atrac1 ATRAC1 (Adaptive TRansform Acoustic Coding)
..A.L. atrac3 ATRAC3 (Adaptive TRansform Acoustic Coding 3)
..A.L. atrac3p ATRAC3+ (Adaptive TRansform Acoustic Coding 3+)
..A.L. avc On2 Audio for Video Codec
..A.L. binkaudio_dct Bink Audio (DCT)
..A.L. binkaudio_rdft Bink Audio (RDFT)
..A.L. bmv_audio Discworld II BMV audio
..A.L. celt Constrained Energy Lapped Transform (CELT)
..A.L. comfortnoise RFC 3389 Comfort Noise
..A.L. cook Cook / Cooker / Gecko (RealAudio G2)
..A.L. dsd_lsbf DSD (Direct Stream Digital), least significant bit first
..A.L. dsd_lsbf_planar DSD (Direct Stream Digital), least significant bit first, planar
..A.L. dsd_msbf DSD (Direct Stream Digital), most significant bit first
..A.L. dsd_msbf_planar DSD (Direct Stream Digital), most significant bit first, planar
..A.L. dsicinaudio Delphine Software International CIN audio
..A.L. dss_sp Digital Speech Standard - Standard Play mode (DSS SP)
..A..S dst DST (Direct Stream Transfer)
..A.LS dts DCA (DTS Coherent Acoustics)
..A.L. dvaudio DV audio
..A.L. eac3 ATSC A/52B (AC-3, E-AC-3)
..A.L. evrc EVRC (Enhanced Variable Rate Codec)
..A..S flac FLAC (Free Lossless Audio Codec)
..A.L. g723_1 G.723.1
..A.L. g729 G.729
..A.L. gsm GSM
..A.L. gsm_ms GSM Microsoft variant
..A.L. iac IAC (Indeo Audio Coder)
..A.L. ilbc iLBC (Internet Low Bitrate Codec)
..A.L. imc IMC (Intel Music Coder)
..A.L. interplay_dpcm DPCM Interplay
..A.L. interplayacm Interplay ACM
..A.L. mace3 MACE (Macintosh Audio Compression/Expansion) 3:1
..A.L. mace6 MACE (Macintosh Audio Compression/Expansion) 6:1
..A.L. metasound Voxware MetaSound
..A..S mlp MLP (Meridian Lossless Packing)
..A.L. mp1 MP1 (MPEG audio layer 1)
..A.L. mp2 MP2 (MPEG audio layer 2)
D.A.L. mp3 MP3 (MPEG audio layer 3)
..A.L. mp3adu ADU (Application Data Unit) MP3 (MPEG audio layer 3)
..A.L. mp3on4 MP3onMP4
..A..S mp4als MPEG-4 Audio Lossless Coding (ALS)
..A.L. musepack7 Musepack SV7
..A.L. musepack8 Musepack SV8
..A.L. nellymoser Nellymoser Asao
DEA.L. opus Opus (Opus Interactive Audio Codec) (encoders: libopus )
..A.L. paf_audio Amazing Studio Packed Animation File Audio
..A.L. pcm_alaw PCM A-law / G.711 A-law
..A..S pcm_bluray PCM signed 16|20|24-bit big-endian for Blu-ray media
..A..S pcm_dvd PCM signed 20|24-bit big-endian
..A..S pcm_f32be PCM 32-bit floating point big-endian
..A..S pcm_f32le PCM 32-bit floating point little-endian
..A..S pcm_f64be PCM 64-bit floating point big-endian
..A..S pcm_f64le PCM 64-bit floating point little-endian
..A..S pcm_lxf PCM signed 20-bit little-endian planar
..A.L. pcm_mulaw PCM mu-law / G.711 mu-law
..A..S pcm_s16be PCM signed 16-bit big-endian
..A..S pcm_s16be_planar PCM signed 16-bit big-endian planar
..A..S pcm_s16le PCM signed 16-bit little-endian
..A..S pcm_s16le_planar PCM signed 16-bit little-endian planar
..A..S pcm_s24be PCM signed 24-bit big-endian
..A..S pcm_s24daud PCM D-Cinema audio signed 24-bit
..A..S pcm_s24le PCM signed 24-bit little-endian
..A..S pcm_s24le_planar PCM signed 24-bit little-endian planar
..A..S pcm_s32be PCM signed 32-bit big-endian
..A..S pcm_s32le PCM signed 32-bit little-endian
..A..S pcm_s32le_planar PCM signed 32-bit little-endian planar
..A..S pcm_s8 PCM signed 8-bit
..A..S pcm_s8_planar PCM signed 8-bit planar
..A..S pcm_u16be PCM unsigned 16-bit big-endian
..A..S pcm_u16le PCM unsigned 16-bit little-endian
..A..S pcm_u24be PCM unsigned 24-bit big-endian
..A..S pcm_u24le PCM unsigned 24-bit little-endian
..A..S pcm_u32be PCM unsigned 32-bit big-endian
..A..S pcm_u32le PCM unsigned 32-bit little-endian
..A..S pcm_u8 PCM unsigned 8-bit
..A.L. pcm_zork PCM Zork
..A.L. qcelp QCELP / PureVoice
..A.L. qdm2 QDesign Music Codec 2
..A.L. qdmc QDesign Music
..A.L. ra_144 RealAudio 1.0 (14.4K)
..A.L. ra_288 RealAudio 2.0 (28.8K)
..A..S ralf RealAudio Lossless
..A.L. roq_dpcm DPCM id RoQ
..A..S s302m SMPTE 302M
..A.L. sdx2_dpcm DPCM Squareroot-Delta-Exact
..A..S shorten Shorten
..A.L. sipr RealAudio SIPR / ACELP.NET
..A.L. smackaudio Smacker audio
..A.L. smv SMV (Selectable Mode Vocoder)
..A.L. sol_dpcm DPCM Sol
..A... sonic Sonic
..A... sonicls Sonic lossless
..A.L. speex Speex
..A..S tak TAK (Tom's lossless Audio Kompressor)
..A..S truehd TrueHD
..A.L. truespeech DSP Group TrueSpeech
..A..S tta TTA (True Audio)
..A.L. twinvq VQF TwinVQ
..A.L. vmdaudio Sierra VMD audio
D.A.L. vorbis Vorbis
..A.L. voxware Voxware RT29 Metasound
..A... wavesynth Wave synthesis pseudo-codec
..A.LS wavpack WavPack
..A.L. westwood_snd1 Westwood Audio (SND1)
..A..S wmalossless Windows Media Audio Lossless
..A.L. wmapro Windows Media Audio 9 Professional
..A.L. wmav1 Windows Media Audio 1
..A.L. wmav2 Windows Media Audio 2
..A.L. wmavoice Windows Media Audio Voice
..A.L. xan_dpcm DPCM Xan
..A.L. xma1 Xbox Media Audio 1
..A.L. xma2 Xbox Media Audio 2
..D... bin_data binary data
..D... dvd_nav_packet DVD Nav packet
..D... klv SMPTE 336M Key-Length-Value (KLV) metadata
..D... otf OpenType font
..D... timed_id3 timed ID3 metadata
..D... ttf TrueType font
D.S... ass ASS (Advanced SSA) subtitle (decoders: ssa ass )
..S... dvb_subtitle DVB subtitles
..S... dvb_teletext DVB teletext
..S... dvd_subtitle DVD subtitles
..S... eia_608 EIA-608 closed captions
..S... hdmv_pgs_subtitle HDMV Presentation Graphic Stream subtitles
..S... hdmv_text_subtitle HDMV Text subtitle
..S... jacosub JACOsub subtitle
..S... microdvd MicroDVD subtitle
..S... mov_text MOV text
..S... mpl2 MPL2 subtitle
..S... pjs PJS (Phoenix Japanimation Society) subtitle
..S... realtext RealText subtitle
..S... sami SAMI subtitle
..S... srt SubRip subtitle with embedded timing
..S... ssa SSA (SubStation Alpha) subtitle
..S... stl Spruce subtitle format
D.S... subrip SubRip subtitle (decoders: srt )
..S... subviewer SubViewer subtitle
..S... subviewer1 SubViewer v1 subtitle
..S... text raw UTF-8 text
..S... vplayer VPlayer subtitle
D.S... webvtt WebVTT subtitle
..S... xsub XSUB -
Revision 32594 : plugins en minuscules, et alias pour les noms de sites
1er novembre 2009, par fil@… — Logplugins en minuscules, et alias pour les noms de sites