Encoding error. (Failed to initialize video encode accelerator.)
The demo app crashes when being used in Chrome 129.0.6668.101 on a MacBooks with Apple M3 processor.
A call to VideoCodec.encode fails with the following error:
Encoding error. (Failed to initialize video encode accelerator.)
Here is a screenshot of the console output, including VideoCodec config returned by the getConfigs function.
Software encoding (hardwareAcceleration = "prefer-software") works properly.
Is there something I can try to solve the problem?
All these exceptions were raised by the VideoEncoder object (Google implementation). You should address this with the chromium team (https://issues.chromium.org/issues).
It seems like VideoEncoder.isConfigSupported() is returning an incompatible config.
Can we somehow pass hardwareAcceleration option to the Encoder?
@fax1ty I removed the hardwareAcceleration option in my private fork: https://github.com/chebum/diffusionstudio-core
It's published to github's NPM repo. You can install the fork as following:
- Create .npmrc file, if it's not present yet, and add the following line: @chebum:registry=https://npm.pkg.github.com
- Execute npm install --save @chebum/diffusionstudio-core
Please try again with version 4