Extract a single frame at a given timestamp and return it as a Buffer.
const buf = await frameToBuffer({ input: 'video.mp4', timestamp: 30, format: 'png' });fs.writeFileSync('frame.png', buf); Copy
const buf = await frameToBuffer({ input: 'video.mp4', timestamp: 30, format: 'png' });fs.writeFileSync('frame.png', buf);
Optional
Extract a single frame at a given timestamp and return it as a Buffer.
Example