ffprobe icon indicating copy to clipboard operation
ffprobe copied to clipboard

Use in Google Cloud function

Open alextouze20 opened this issue 4 years ago • 2 comments

I'm trying to use ffprobe in a Google Cloud Function. But all I get is an empty Promise no matter what my input is:

Input: https://ucarecdn.com/1ba97d0a-e709-4915-bb35-5ad9e1b42975/test2.mp3

Output {"domain":{"domain":null,"_events":{},"_eventsCount":3,"members":[]}}

What I'm I missing?

exports.helloWorld = (req, res) => {
  const ffprobe = require('ffprobe'),
  ffprobeStatic = require('ffprobe-static');
  let message = req.query.message || req.body.message || 'Error';
  let result = ffprobe(message, { path: ffprobeStatic.path }) || 'Error ffprobe';
  res.status(200).send(result);
};

alextouze20 avatar Feb 18 '21 15:02 alextouze20

Hey, @alextouze20 , have you solved this problem? I'm getting a similar error in a AWS Lambda..

PortugalNeto avatar Sep 27 '22 22:09 PortugalNeto

Also have the same issue but with Docker on CloudRun. Looks like no one can run this in Prod.

ollyde avatar Nov 30 '22 14:11 ollyde