fluent-ffmpeg/node-fluent-ffmpeg

spawn parameter is not defined causing an error

Tzyito opened this issue · 0 comments

Version information

  • fluent-ffmpeg version: 2.1.2
  • ffmpeg version:5.1.2
  • OS: macos

Code to reproduce

const ffmpeg = new FFmpeg()
ffmpeg.input(sampleFile).getAvailableFormats()

error: Error: spawn Unknown system error -88

After debugg, I found the spawn option parameter in the processor.js file

var ffmpegProc = spawn(command, args, options);

the options contain { captureStdout: true, stdoutLines: 0 }, but spawn doesn't have these parameters
Is this because of the version?

Expected results

Observed results

Checklist

  • I have read the FAQ
  • I tried the same with command line ffmpeg and it works correctly (hint: if the problem also happens this way, this is an ffmpeg problem and you're not reporting it to the right place)
  • I have included full stderr/stdout output from ffmpeg