josiahsiegel/claude-plugin-marketplace/ffmpeg-webassembly-workers
Claude Code and agent skill by josiahsiegel/claude-plugin-marketplace
- community
Checking that the SKILL.md file is still in the repository.
Complete browser-based FFmpeg system. PROACTIVELY activate for: (1) ffmpeg.wasm setup and loading, (2) Browser video transcoding, (3) React/Vue/Next.js integration, (4) SharedArrayBuffer and COOP/COEP headers, (5) Multi-threaded ffmpeg-core-mt, (6) Cloudflare Workers limitations, (7) Custom ffmpeg.wasm builds, (8) Memory management and cleanup, (9) Progress tracking and UI, (10) IndexedDB core caching. Provides: Framework-specific examples, header configuration, common operation recipes, performance optimization, troubleshooting guides. Ensures: Client-side video processing without server dependencies.
Install
npx vskill@latest install josiahsiegel/claude-plugin-marketplace/ffmpeg-webassembly-workersSKILL.md
The same SKILL.md was published earlier as josiahsiegel/claude-plugin-marketplace/ffmpeg-webassembly-workers.
CRITICAL GUIDELINES
Windows File Path Requirements
MANDATORY: Always Use Backslashes on Windows for File Paths
When using Edit or Write tools on Windows, you MUST use backslashes (\) in file paths, NOT forward slashes (/).
Quick Reference
| Package | Size | Threading | Install | |
|---|---|---|---|---|
@ffmpeg/core | ~31MB | Single | npm install @ffmpeg/ffmpeg @ffmpeg/util | |
@ffmpeg/core-mt | ~31MB | Multi | Requires COOP/COEP headers |
| Header | Value | Purpose | |
|---|---|---|---|
| Cross-Origin-Embedder-Policy | require-corp | SharedArrayBuffer | |
| Cross-Origin-Opener-Policy | same-origin | Multi-threading |
| Operation | Command | |
|---|---|---|
| Convert WebM→MP4 | await ffmpeg.exec(['-i', 'input.webm', 'output.mp4']) | |
| Extract frame | await ffmpeg.exec(['-i', 'video.mp4', '-ss', '5', '-vframes', '1', 'thumb.jpg']) |
When to Use This Skill
Use for browser-based video processing:
- Client-side transcoding without server
- React/Vue/Next.js FFmpeg integration
- Setting up COOP/COEP headers
- Cloudflare Workers FFmpeg limitations
- Memory management and cleanup
FFmpeg WebAssembly & Cloudflare Workers (2025)
Guide to running FFmpeg in browsers and edge environments using WebAssembly.
ffmpeg.wasm Overview
ffmpeg.wasm is a pure WebAssembly/JavaScript port of FFmpeg that runs directly in browsers without server-side processing.
Key Features
- Browser-based: No server required for video processing
- Cross-platform: Works on any modern browser
- Single-thread: @ffmpeg/core (~31MB)
- Multi-thread: @ffmpeg/core-mt (requires SharedArrayBuffer)
- Customizable: Build your own core with specific codecs
Limitations
- Performance: ~10-100x slower than native FFmpeg
- Memory: Limited by browser memory constraints
- File size: Core is ~31MB (can be reduced with custom builds)
- Threading: Multi-thread requires specific headers (COOP/COEP)
- Codecs: Not all codecs available (licensing restrictions)
Installation
npm
CDN
Basic Usage
Single-Thread (Browser)
Multi-Thread (Requires COOP/COEP Headers)
Cross-Origin Isolation (SharedArrayBuffer)
Multi-threaded ffmpeg.wasm requires SharedArrayBuffer, which needs Cross-Origin Isolation headers.
Vite Configuration
Next.js Configuration
Express.js Middleware
Nginx Configuration
React Integration
React Component
Common Operations
Convert WebM to MP4
Extract Audio
Create Thumbnail
Trim Video
Add Watermark
Scale Video
Cloudflare Workers
Current Limitations (December 2025)
Running ffmpeg.wasm on Cloudflare Workers faces significant challenges:
- Size limit: Workers have a 10MB compressed limit (paid plan)
- No Web Workers: Cannot spawn workers from within a CF Worker
- SharedArrayBuffer: Not available in Workers environment
- Environment detection: ffmpeg.wasm environment checks may fail
Workarounds
1. Use External FFmpeg Service
2. Use Durable Objects with R2 Storage
3. Custom ffmpeg.wasm Build (Experimental)
For simple operations, a minimal custom build may fit within limits:
Alternative: Cloudflare Stream
For video processing in Cloudflare ecosystem, consider Cloudflare Stream:
Building Custom ffmpeg.wasm Core
Reduce Core Size
Build Script
Performance Optimization
Browser Best Practices
- Load core lazily - Don't load until needed
- Use Web Workers - Keep main thread responsive
- Stream processing - Process chunks for large files
- Cache core - Store in IndexedDB or Cache API
- Show progress - Use progress events for UX
Caching ffmpeg-core
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/ffmpeg-platforms/skills/ffmpeg-webassembly-workers/SKILL.md
Popularity
- Repository stars
- 41
- Repository forks
- 7
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 6 Jun 2026, 5 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/josiahsiegel/claude-plugin-marketplace/ffmpeg-webassembly-workers)