API Reference
The node-webcodecs API follows the W3C WebCodecs specification, providing native video and audio encoding/decoding in Node.js.All classes and types are exported from the main
node-webcodecs package:Core Classes
Video Processing
VideoEncoder
VideoDecoder
VideoFrame
EncodedVideoChunk
Audio Processing
AudioEncoder
AudioDecoder
AudioData
EncodedAudioChunk
Image & Color
ImageDecoder
VideoColorSpace
Utility Functions
FFmpeg Information
getFFmpegVersion()
getFFmpegVersion()
Returns FFmpeg version information, or
null if native module unavailable.listCodecs()
listCodecs()
Lists all available encoders and decoders.
hasCodec(codecName, type)
hasCodec(codecName, type)
Check if a specific codec is available.
isNativeAvailable()
isNativeAvailable()
Check if the native FFmpeg addon loaded successfully.