ffmpeg.js
ffmpeg.js copied to clipboard
Cannot read property 'write' of undefined


If you look at the example, the print and printErr functions are set. If you don't set those, process.stderr and process.stdout are used by default, which are undefined in browser:
For example, you can do this:
let stdout = "";
let stderr = "";
ffmpeg({
arguments: ["-version"],
print: function(data) { stdout += data + "\n"; },
printErr: function(data) { stderr += data + "\n"; },
});