I have a set of videos I want to take a screenshot from each of them, then do some processing on these generated images, and finally store them.
To be able to do the processing I need to get the screenshots as buffers.
this is my code
ffmpeg(videoFilePath)
.screenshots({
count: 1,
timestamps: ['5%'],
folder: DestinationFolderPath,
size: thumbnailWidth + 'x' + thumbnailHeight,
})
.on('err', function (error) {
console.log(err)
});
as you see the output is being directly stored in the DestinationFolderPath. Instead of that I want to get the output as a buffer.