#262 · Primary category: Video & Animation
jsmpeg
MPEG1 Video Decoder in JavaScript
Project last updated:09/20/22
GitHub Stars
6.5K
Forks
1.4K
Contributors
15
License
MIT
Why we included this project
For low-latency in-browser video, JSMpeg is a complete MPEG1/MP2 decoder written in JavaScript that sidesteps the buffering delays of HLS/DASH and the codec support gaps that make WebRTC or H.264 fiddly. A small embed, a script tag plus a div pointing at a .ts file or WebSocket source, gives you a player, and the WebSocket path is a clean way to push streams from ffmpeg or a camera to any modern browser, including iOS. Because the entire pipeline from demux to render is understandable in one codebase, it's also a useful reference for studying how video codecs work. It's not a general-purpose streaming solution; for static video you're better off with a standard MP4/WebM player, but for tight control over playback and realtime feeds it's a well-tested tool.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
yt-dlp
A feature-rich command-line audio/video downloader
MoneyPrinterTurbo
Generate HD short videos from a topic or keyword with an automated AI workflow.
Deep-Live-Cam
real time face swap and one-click video deepfake with only a single image
manim
Animation engine for explanatory math videos
anime
JavaScript animation engine