Added
npm install node-webcodecsnow works with zero system dependencies on linux-x64, linux-arm64, and darwin-arm64. Statically-linked LGPL-only FFmpeg 8.0.3 ships as platform-specific@node-webcodecs/static-*optional dependencies (~15 MB, only your platform downloads). Works in any Docker base image (includingnode:22), Lambda, and Fly with no FFmpeg installed.- Loader resolution: dynamic prebuild (system FFmpeg, preferred — includes GPL codecs like x264) → static prebuild → source build. Override with
NODE_WEBCODECS_FORCE=dynamic|static|source; inspect with the newgetNativeVariant()export. - Static codec set: H.264 encode via openh264, AV1 via SVT-AV1/dav1d, VP8/VP9 via libvpx, AAC/Opus/FLAC/MP3 audio. Software HEVC encode is unavailable in the static variant (no x265); hardware HEVC (VideoToolbox/NVENC) still works.
Verified: bare node:22-bookworm-slim (no FFmpeg, no compilers) → install + H.264 encode round-trip straight from npm.