V
V
verycooldev2018-06-29 21:16:28
JavaScript
verycooldev, 2018-06-29 21:16:28

Buffer conversion not possible with node-fluent-ffmpeg?

I want to convert a gif to webm without saving the gif on the server, i.e. from the buffer. I use multer and node-fluent-ffmpeg. The problem is that apparently it does not work. The
ffmpeg(req.file.buffer)
error is written

ffmpeg exited with code 1: Output #0, webm, to 'uploads/gifs/ddddd.webm':
Output file #0 does not contain any stream

It turns out that you must first save to a file, then this file will be read by ffmpeg and then converted? And why not from the buffer?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question