get-video-duration: Could not find ffprobe executable

this could be an issue with dependencies not up to date, or within the ffprobe package itself. I am running into an error saying Could not find ffprobe executable. Not sure if this has been addressed yet or I am the first to tell you.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 6
  • Comments: 21 (5 by maintainers)

Most upvoted comments

I had this issue also, everything worked fine on windows… But when I ran on an azure ubuntu agent I got the error about not finding the ffprobe executable.

I also have @ffmpeg-installer/ffmpeg and fluent-mpeg installed and am ultimately chopping up some cypress videos with ffmpeg commands. I was using get-video-duration in this process.

Incidentally I got a similar message when trying to use ffprobe directly to get the video duration (some maybe the problem lies elsewhere):

var ffmpeg = require('fluent-ffmpeg');

ffmpeg.ffprobe('./input.mp4', function(err, metadata) {
    //console.dir(metadata); // all metadata
    console.log(metadata.format.duration);
});

Ultimately I got around the problem by using a different module, node-video-lib to get video durations and everything is working again (this doesnt use ffmpeg/ffprobe).

I dont know if this helps anybody.

I spent a lot of time trying to resolve it so would love to know what is actually going on here

I bumped get-video-duration down a version and things have been working file. currently running on 3.0.2

Yes, @paintoshi 's method worked for me. In my case I was using this in a Next.js app. I’m also deploying my app with Docker so I just added the following line to my Dockerfile, and then it would move the binary (which I also installed separately from @ffprobe-installer) into the place where the next app looks for it.

RUN mkdir /app/node_modules/next/dist/node_modules
RUN mv /app/node_modules/@ffprobe-installer /app/node_modules/next/dist/node_modules

@BillCarterNet In my case it was all about this library linking to the wrong path. Both for windows and linux.

Run your app and it will say where it tried to find ffprobe.

Install: yarn add @ffprobe-installer/ffprobe Then go to /node_modules/@ffprobe-installer/linux-x64 and copy both ffprobe and package.json over to wherever it wants it from the error message. In my case it was /home/ubuntu/.nvm/versions/node/v17.2.0/node_modules/@ffprobe-installer/linux-x64/

Which means I first created this directory by mkdir -p /home/ubuntu/.nvm/versions/node/v17.2.0/node_modules/@ffprobe-installer/linux-x64/

Then just: cp /node_modules/@ffprobe-installer/linux-x64/ffprobe /home/ubuntu/.nvm/versions/node/v17.2.0/node_modules/@ffprobe-installer/linux-x64/

and cp /node_modules/@ffprobe-installer/linux-x64/package.json /home/ubuntu/.nvm/versions/node/v17.2.0/node_modules/@ffprobe-installer/linux-x64/

Then it works!

My bad, I thought I had published v4.1.0 to NPM already 😓

I just released it

it worked with the last update 👌

My bad, I thought I had published v4.1.0 to NPM already 😓

I just released it

hi @Sumolari is there any chance of publishing v4.1.0 on the npm registry?