3 ms·
Keep in mind that MPEG-1 was designed to give acceptable performance on the computers of the time, so it is a far lower complexity codec than those which came a
by userbinator 8y ago
Keep in mind that MPEG-1 was designed to give acceptable performance on the computers of the time, so it is a far lower complexity codec than those which came after it, and explains why current hardware can provide acceptable performance with it even with JS overhead. The standard widely-used codecs roughly have a history like this:
H.261 - first standard DCT-with-motion-compensation codec
MPEG-1 - B frames, variable rates and sizes
MPEG-2/H.262 - interlacing, 4:2:2 and 4:4:4 subsampling, other minor features
H.263 (FLV) - mainly low bitrate improvements, introduction of intra prediction
MPEG-4 part 2 (DivX/Xvid, etc.) - more prediction modes, some very advanced and little-used features (3D shape coding?)
H.264 - different transform, even more prediction modes and features
H.265 - not really familiar enough with this one to say
Also worth noting that this isn't a full MPEG-1 decoder, since it doesn't support B-frames. The justification given in the documentation is "no modern encoder seems to use these by default anyway", but B frames are what gives MPEG-1 a significant compression advantage over its predecessor, H.261; so I'd consider this implementation to be closer to an H.261 with variable frame sizes and framerates, which is useful enough.
- clouddrover 8y agoogv.js does Theora, VP8, VP9, and AV1 video and Opus and Vorbis audio: https://github.com/brion/ogv.js https://github.com/brion/ogv.js https://brionv.com/log/ https://brionv.com/log/ A demo which lets you select various codecs to try out. You can, for example, play 720p VP9 video in Safari with the WebAssembly build of the decoder: https://brionv.com/misc/ogv.js/demo/ https://brionv.com/misc/ogv.js/demo/
- zbobet2012 8y agoH.265's biggest changes are probably a change from fixed macroblocks (basically a fixed grid) to a tree based structure called a coding tree (see this paper for details: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.352.1947&rep=rep1&type=pdf http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.352...). It includes 8k and HDR color support (in 10 bit in v1 via main 10 profile, and 12 and 16 bit in v2). In addition it moved from 9 prediction modes to 26.
- dan_hawkins 8y ago"MPEG-4 part 2 (DivX/Xvid, etc.)" - did you mean "MPEG-2 part 4 (DivX/Xvid)", hence the (misleading) filename extension "mp4"?
- banthar 8y agoMPEG4 the video codec is https://en.wikipedia.org/wiki/MPEG-4_Part_2 https://en.wikipedia.org/wiki/MPEG-4_Part_2 mp4 the media container is https://en.wikipedia.org/wiki/MPEG-4_Part_14 https://en.wikipedia.org/wiki/MPEG-4_Part_14 MPEG-2 part 4 is some conformance testing specification.