bvibber / ogv.js

JavaScript media player using Ogg/Vorbis/Theora/Opus/WebM libs compiled with Emscripten
https://brooke.vibber.net/misc/ogv.js/demo/
Other
1.2k stars 101 forks source link

Add basic MPEG-1 and MPEG-2 support #493

Open bvibber opened 6 years ago

bvibber commented 6 years ago

Patents have expired on MPEG-2 video in US.

Should not be super difficult to do MPEG-1 and MPEG-2 decoding, in theory, but need to pick a decoder library with suitable license to work from.

bvibber commented 6 years ago

Deinterlacing for MPEG-2 could be an issue. Meh.

bvibber commented 5 years ago

for MPEG-1, there's a handy new single-header library, MIT licensed: https://github.com/phoboslab/pl_mpeg

Needs some slight adaptation for loading additional data on demand I think.