
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@framekit/webm-writer-esm
Advanced tools
This project is a fork of webm-writer-js. The library can convert browser canvas frames into WebM movies. This project adds support for native ESModule exports, WebCodec's EncodedVideoChunks, and the VP9 video codec (with WebCodecs).
Canvas frames are converted to WebM frames by using canvas.toDataUrl('image/webp')
which currently only Firefox and Chromium-based browsers support.
WebM Writer ESM can be included through a script tag in browser through a CDN:
<script src="https://unpkg.com/@framekit/webm-writer-esm/"></script>
Or if locally downloaded:
<script src="path/to/dist/webm-writer.js"></script>
The library is exported to the WebMWriter
object.
From the command-line:
npm install @framekit/webm-writer-esm
Then in your files:
import { WebMWriter } from '@framekit/webm-writer-esm';
As an Encoder:
var writer = new WebMWriter({
quality: 0.95, // (Encoder Only) Image Quality from 0.0 to 0.99999, 1 is not supported
frameRate: 60 // Frames Per Second
});
async function run() {
for (let i = 0; i < 300; i++) {
writer.addFrame(canvas);
}
var blob = await writer.complete();
// do something with `blob`;
}
run();
addChunk
that can take EncodedVideoChunks provided by the WebCodecs APIThis project is licensed under the BSD 3-Clause License. The project this is forked from was licensed under WTFPLv2.
FAQs
WebM Encoder for Canvas Frames
The npm package @framekit/webm-writer-esm receives a total of 9 weekly downloads. As such, @framekit/webm-writer-esm popularity was classified as not popular.
We found that @framekit/webm-writer-esm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.