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

Encoding error. (Failed to initialize video encode accelerator.) #20

Open
chebum opened this issue Oct 15, 2024 · 3 comments
Open

Encoding error. (Failed to initialize video encode accelerator.) #20

chebum opened this issue Oct 15, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@chebum
Copy link

chebum commented Oct 15, 2024

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.
Screenshot 2024-10-15 at 16 45 03

Software encoding (hardwareAcceleration = "prefer-software") works properly.

Is there something I can try to solve the problem?

@k9p5
Copy link
Contributor

k9p5 commented Oct 17, 2024

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.

@k9p5 k9p5 added the bug Something isn't working label Oct 23, 2024
@fax1ty
Copy link

fax1ty commented Dec 1, 2024

Can we somehow pass hardwareAcceleration option to the Encoder?

@chebum
Copy link
Author

chebum commented Dec 1, 2024

@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:

  1. Create .npmrc file, if it's not present yet, and add the following line: @chebum:registry=https://npm.pkg.github.com
  2. Execute npm install --save @chebum/diffusionstudio-core

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants