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

Requested output format 'singlejpeg' is not a suitable output format #87

Open
clck-dr opened this issue Feb 6, 2023 · 0 comments
Open

Comments

@clck-dr
Copy link

clck-dr commented Feb 6, 2023

Hej,

I got an error from ffmpeg. It seams that ffmpeg no longer supports singlejpeg output format. I refactored to image2 and everything works fine. Could you check and fix this issue?

Here is my implementation.

app.get("/*", (req, res) => {
  if (req.params[0].includes("thumbnails")) {
    const file = path.resolve(__dirname, "content", req.params["0"].slice(11));
    genThumbnail(file, res, "320x?", {
      path: ffmpeg.path,
      //args: ["-f","image2"]
    })
      .then((res) => console.log(res))
      .catch((err) => console.error(err));
  } else {
    res.sendFile(path.resolve(__dirname, "content", req.params["0"]));
  }
});

I also tried to override ffmpeg args with config.args but that crashes.

Thank you in advance.
Daniel

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

1 participant