Open Anushil98 opened 3 years ago
Please edit your message such that it complies with the Bug Report template: I can't really help you if you don't provide steps to reproduce :smiley:
I am facing the same issue. There is no error, the buffer returned is simply empty.
I am trying to generate a single thumbnail
const tempBuffer = []; const output = await genThumbnail(tempStream, null, "50%", { path: ffmpeg, seek: "00:00:00.10" }); const ThumbBuffer: Buffer = await new Promise(res => { output .on("data", chunk => { tempBuffer.push(chunk); }) .on("end", () => { res(Buffer.concat(tempBuffer)); }) .on("error", err => { console.log(err); }); }); console.log(ThumbBuffer);
In the case of an image the ThumbBuffer returns the desired output but IN THE CASE OF VIDEO the Buffer return is empty, i.e
Please help or suggest alternatives