Bindings to libyuv, provides conversion utilities for in-memory YUV video frames
npm install libyuvlibyuv, visit Google's site at https://chromium.googlesource.com/libyuv/libyuv/
PATH.
npm install libyuv
`
You will need cmake available on any system (such as CI) which builds your
project, as there are no prebuilt binaries yet.
Why?
If you are processing video frames in Node.js, you may need to convert the color space
of such frames between a compact YUV chroma-subsampled format (like YUV 4:2:0) and RGB0
and vice versa. You may also need to scale the video frame from one size to another
performantly with various sampling methods. libyuv provides these capabilities,
and using this binding you can very easily perform these conversions.
It works very well with libraries like node-webrtc.
Building
Currently there are no prebuilt binaries available. On a modern system, building
libyuv from scratch takes approximately 30 seconds and requires downloading
about 17MB of source code.
$3
- Make sure to install
Windows 10 SDK
or later or the build may fail. Version 10.0.19041.0` or later is recommended.