News for hackers. Stuff that matters.
Re:JSMpeg – Decode It Like It's 1999 by userbinator on Tuesday May 07, 2019 @07:58AM (#19848595)
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.
Re:JSMpeg – Decode It Like It's 1999 by clouddrover on Tuesday May 07, 2019 @08:55AM (#19848910)
ogv.js does Theora, VP8, VP9, and AV1 video and Opus and Vorbis audio:

https://github.com/brion/ogv.js

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/

Re:JSMpeg – Decode It Like It's 1999 by zbobet2012 on Tuesday May 07, 2019 @12:41PM (#19851104)
H.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...).

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.

Re:JSMpeg – Decode It Like It's 1999 by dan_hawkins on Tuesday May 07, 2019 @03:34PM (#19852688)
"MPEG-4 part 2 (DivX/Xvid, etc.)" - did you mean "MPEG-2 part 4 (DivX/Xvid)", hence the (misleading) filename extension "mp4"?
Re:JSMpeg – Decode It Like It's 1999 by banthar on Tuesday May 07, 2019 @04:41PM (#19853259)
MPEG4 the video codec is https://en.wikipedia.org/wiki/MPEG-4_Part_2

mp4 the media container is https://en.wikipedia.org/wiki/MPEG-4_Part_14

MPEG-2 part 4 is some conformance testing specification.