Extract all frames from a video as images.
// Extract 1 frame per second to ./frames folderconst { files } = await extractFrames({ input: 'video.mp4', folder: './frames', fps: '1'}); Copy
// Extract 1 frame per second to ./frames folderconst { files } = await extractFrames({ input: 'video.mp4', folder: './frames', fps: '1'});
// Extract at 30fps, 10 second clipconst { files } = await extractFrames({ input: 'video.mp4', folder: './frames', fps: '30', startTime: 5, endTime: 15}); Copy
// Extract at 30fps, 10 second clipconst { files } = await extractFrames({ input: 'video.mp4', folder: './frames', fps: '30', startTime: 5, endTime: 15});
Extract all frames from a video as images.