Extract screenshots from a video file.
// 5 evenly-spaced screenshotsconst { files } = await screenshots({ input: 'video.mp4', folder: './thumbs', count: 5 }); Copy
// 5 evenly-spaced screenshotsconst { files } = await screenshots({ input: 'video.mp4', folder: './thumbs', count: 5 });
// At specific timestampsconst { files } = await screenshots({ input: 'video.mp4', folder: './thumbs', timestamps: ['00:00:05', '00:00:30', 90],}); Copy
// At specific timestampsconst { files } = await screenshots({ input: 'video.mp4', folder: './thumbs', timestamps: ['00:00:05', '00:00:30', 90],});
Extract screenshots from a video file.