We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
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 😃
Sorry, something went wrong.
I am facing the same issue. There is no error, the buffer returned is simply empty.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: