Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read property 'write' of undefined #184

Open
liyang9331 opened this issue Jul 29, 2022 · 2 comments
Open

Cannot read property 'write' of undefined #184

liyang9331 opened this issue Jul 29, 2022 · 2 comments

Comments

@liyang9331
Copy link

image

@liyang9331
Copy link
Author

image

@genu
Copy link

genu commented Sep 19, 2022

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"; },
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants