Our take
Inactiveno commits in over a year- Activity
- 19
- Community
- 4
- Issues
- 21
- Pull requests
- 20
-1 stars in the last 30 days
- Fewer contributors than 91% of the projects we track
This is a focused option for JavaScript frame-to-MP4 encoding, but its inactive maintenance and reliance on a single contributor make adoption a maintenance-risk decision.
Good fit if
- Your application already produces RGBA or YUV frames and needs H.264-in-MP4 output in Node.js or a browser.
- You can build around the documented API and verify the package against your environment and requirements.
- You are comfortable reviewing the licensing of its bundled dependencies alongside the repository's MIT license.
Look elsewhere if
- You need evidence of ongoing maintenance, recent releases, or a broader contributor base.
- You need active issue handling, since there have been no recent issue closures or merged pull requests.
- Your workflow needs a higher-level video editing or media conversion interface rather than explicit frame submission.
All health signals
| Last commit | 2023-01-07 (3.8 years ago) |
|---|---|
| Commits, last 90 days | 0 |
| Releases, last 12 months | 0 |
| Contributors | 1 |
| Issues closed, last 90 days | 0 |
| Pull requests merged, last 90 days | 0 |
| Project age | 6 years |
Checked on 2026-10-09 with the GitHub API.
Project history
Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.
Stars
219Forks
23Change since Nov 16, 2026: 0 stars·0 forks
Overview
h264-mp4-encoder provides a JavaScript interface for encoding image frames as H.264 video and writing the result to an MP4 file. It targets Node.js and web projects, including workflows that need to export frames from an HTML canvas without sending them to a separate encoding service.
The encoder combines minih264 with libmp4v2 and packages the C++ code for JavaScript use through WebAssembly. It is aimed at developers building their own frame-by-frame export flow, rather than users looking for a standalone video editor or a general media conversion tool.
Key Features
- Creates H.264 video in an MP4 container from supplied frames.
- Accepts RGBA frames, including canvas image data, and YUV frames.
- Runs in Node.js or in a browser through WebAssembly.
- Exposes settings for frame rate, bitrate, quality, speed, and keyframe interval.
- Writes output to Emscripten's virtual file system for reading by the application.
- Supports asynchronous initialization and TypeScript imports.
- Includes a Docker-based build script for producing the Node and web modules.
Use Cases
- Web developers exporting short animations made with HTML canvas to MP4.
- Node.js developers encoding generated RGBA or YUV frames without building a separate encoding service.
- Animation tools that need to turn a sequence of rendered frames into a browser-playable video.
- Developers prototyping video export in a JavaScript application who can accept a relatively low-level, frame-oriented API.
What you need
Detected in the repository
- Node.js (from package.json)
- A Dockerfile, so it can run in a container
License in plain words
MITpermissive
- Commercial use: yes
- Modify and redistribute: yes
- You must keep: the copyright and license notice
- Share your changes: no
A summary, not legal advice: the LICENSE file is what applies.
Getting Started
Install the package:
npm install h264-mp4-encoder
See the README for browser setup, API details, and build instructions.
Considerations
The repository is marked inactive, with no commits or releases in over a year. The measured contributor history is concentrated in one person, and there has been no recent issue closure or pull request merge, so teams may need to take responsibility for maintenance and compatibility checks.
Frames must use even width and height, RGBA alpha is ignored, and the application must manage encoder initialization, finalization, output retrieval, and resource cleanup. The README also notes that the Emscripten build embeds the WebAssembly in the JavaScript file, and that Webpack browser builds may need an fs configuration adjustment. The repository is MIT-licensed, while the README identifies libmp4v2 as MPL 1.1-licensed and minih264 as public domain; review the included dependency terms for your distribution.
Found this useful?
Share it with someone who would like h264-mp4-encoder.