Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video Thumbnail not working #78

Open
Anushil98 opened this issue Mar 4, 2021 · 2 comments
Open

Video Thumbnail not working #78

Anushil98 opened this issue Mar 4, 2021 · 2 comments

Comments

@Anushil98
Copy link

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
Copy link
Owner

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 😃

@MithileshHinge
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants