extract-video-frames

1.0.0 • Public • Published

extract-video-frames

extract video frames to canvas

Usage

import extractVideoFrames from 'extract-video-frames';
 
// use width appointed times
extractVideoFrames('http://xxx.mp4', {
    frames: [5, 10, 15],
}).then(canvas => {
    document.querySelector('#app').appendChild(canvas);
});
 
// use width appointed canvas size
extractVideoFrames('http://xxx.mp4', {
    canvasWidth: 800,
    canvasHeight: 80
}).then(canvas => {
    document.querySelector('#app').appendChild(canvas);
});

Readme

Keywords

none

Package Sidebar

Install

npm i extract-video-frames

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

7.42 kB

Total Files

8

Last publish

Collaborators

  • tumars