-
-
Notifications
You must be signed in to change notification settings - Fork 759
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
Allow configuring stderr/stdout #11
Comments
May I know the version you are using? This feature has been added in the last few versions of ffmpeg.js. Snippet: const worker = createWorker({
logger: log => console.log(log),
}); |
I am actually not using a pure version of @ffmpeg/ffmpeg, I am using a custom worker, along with @ffmpeg/core. I have tried to configure the "Module" directly (overriding Module.print and Module.printErr) without any result. Thanks for the fast reply, I will look into the new version to see how you have done it, and reproduce. |
Here is the key file for your reference. https://github.com/ffmpegjs/FFmpeg/blob/n4.1.4-js/javascript/prepend.js |
Close for now. |
Currently, the module prints data to stdout/stderr, which is undefined when using the library in a web worker. Catching the data can be really useful when you want to get information on the files (what are the codecs, the size of the file, that sort of things).
What would be nice, is to be able to override the "print" and "printErr" callbacks of the module, to catch the output data of ffmpeg. https://emscripten.org/docs/api_reference/module.html
The text was updated successfully, but these errors were encountered: