Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

236
Views
How to use ffmpeg in mern stack project?

I am working on a project where I have to use ffmpeg so I downloaded the ffmpeg file and made a directory named ffmpeg_path in local disk C and set this path in system environment variable but I am still getting this error:

Error: Cannot find ffprobe
    at E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\fluent-ffmpeg\lib\ffprobe.js:145:31
    at E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\fluent-ffmpeg\lib\capabilities.js:194:9
    at wrapper (E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\async\dist\async.js:271:20)
    at next (E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\async\dist\async.js:5793:24)
    at E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\async\dist\async.js:327:20
    at E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\fluent-ffmpeg\lib\capabilities.js:186:13
    at E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\fluent-ffmpeg\lib\capabilities.js:123:9
    at wrapper (E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\async\dist\async.js:271:20)
    at next (E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\async\dist\async.js:5793:24)
    at E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\async\dist\async.js:327:20
    at E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\fluent-ffmpeg\lib\capabilities.js:116:11
    at E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\fluent-ffmpeg\lib\utils.js:223:16
    at F (E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\which\which.js:68:16)
    at E (E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\which\which.js:80:29)
    at E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\which\which.js:89:16
    at E:\intern data\youtube project\git-lolly\Lolly\server\node_modules\isexe\index.js:42:5

const generateThumbnails = async (videoFile, limit) => {
  const videoPath = await getPath({ type: "video", filename: videoFile });
  let thumbnailLinks;
  const promise = new Promise((resolve, reject) => {
    ffmpeg(videoPath)
      .on("filenames", function (filenames) {
        thumbnailLinks = filenames.map((filename) => {
          const link = generateLink({ filename, type: "thumbnail" });
          return { filename, link };
        });
      })
      .on("error", (err) => {
        reject(err);
      })
      .on("end", function () {
        resolve(thumbnailLinks);  
      })
      .screenshots({
        count: limit,
        folder: localThumbPath,
        size: "1280x720",
        filename: "thumbnail_%b.png",
      });
  });
  return promise;
};
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!