Skip to content

tumars/extract-video-frames

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
});

About

extract video frames to canvas

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published