Install
Prerequisites
Having ffmpeg installed on your computer see fluent-ffmpeg prerequisites
For ubuntu, you should also do
sudo apt-get install libgif-dev
Npm installation
npm install videoplot
Example
First example (1 simple curve) | Second example (3 curves) |
---|---|
Usage
const Videoplot = ; var plot = w:600 h:600 duration: 30 fps: 8 ; // create random dataconst y = ;forvar i = 0; i< 10; i++ y; // chartjs dataset format const datasets = ;datasets; // chartjs dataset formatplot
Documentation
Documentation is inside the code as JSDoc.
TO DO
- better x scale management (labels ...)
- more chartjs options handling
- video output handling
Thanks
Thanks to fluent-ffmpeg and chartjs-node