diffusionstudio / core

The Video Creation Engine: Edit videos with code, featuring the fastest WebCodecs renderer for in-browser video processing.
https://examples.diffusion.studio/
Mozilla Public License 2.0
348 stars 29 forks source link

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

Open chebum opened 1 month ago

chebum commented 1 month ago

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 commented 1 month ago

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.