fluent-ffmpeg / node-fluent-ffmpeg

A fluent API to FFMPEG (http://www.ffmpeg.org)
MIT License
7.62k stars 872 forks source link

spawn parameter is not defined causing an error #1258

Closed Tzyito closed 3 months ago

Tzyito commented 3 months ago

Version information

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 https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/blob/4e02d12573052c00ac4becee17e40580e855d308/lib/processor.js#L150 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