
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@kinlan/ffmpeg
Advanced tools
Use FFmpeg directly in your browser without any backend services!!
Transcode
Name | Demo | Source Code |
---|---|---|
Webcam | ![]() | Link |
ffmpeg.js provides simple to use APIs, to transcode a video you only need few lines of code:
const fs = require('fs');
const { createWorker } = require('@ffmpeg/ffmpeg');
const worker = createWorker();
(async () => {
await worker.load();
await worker.write('test.avi', './test.avi');
await worker.transcode('test.avi', 'test.mp4');
const { data } = await worker.read('test.mp4');
fs.writeFileSync('./test.mp4', data);
await worker.terminate();
})();
$ npm install @ffmpeg/ffmpeg
As we use
worker_threads
which was introduced in Node.js v10.5.0, please remember to add--experimental-worker
if you are using Node.js v10, and you don't have to add anything if you are using Node.js v12
Or, using a script tag in the browser:
<script src="https://unpkg.com/@ffmpeg/ffmpeg@0.7.0/dist/ffmpeg.min.js"></script>
<script>
const { createWorker } = FFmpeg;
...
</script>
Learn how to build ffmpeg.js from stories:
FAQs
FFmpeg WebAssembly version
We found that @kinlan/ffmpeg 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.