philipjscott / simple-thumbnail

A library that produces thumbnails from images, videos and URLs :mag_right:
https://www.npmjs.com/package/simple-thumbnail
MIT License
25 stars 14 forks source link

Video Thumbnail not working #78

Open Anushil98 opened 3 years ago

Anushil98 commented 3 years ago

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

philipjscott commented 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:

MithileshHinge commented 1 year ago

I am facing the same issue. There is no error, the buffer returned is simply empty.