Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

234
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda