w3c / webcodecs

WebCodecs is a flexible web API for encoding and decoding audio and video.
https://w3c.github.io/webcodecs/
Other
985 stars 136 forks source link

frame.copyTo error in mac-chromeV118 #736

Closed yangfangfang1204 closed 11 months ago

yangfangfang1204 commented 11 months ago

In MAC-ChromeV108 , it work . but in mac-chromeV118 ,it error

sandersdan commented 11 months ago

If you are reporting an issue with Chrome, please file a bug at https://bugs.chromium.org/p/chromium/issues/entry. We'll also need more information, such as the code of the application, the actual error messages, and possibly the media content being used. Feel free to note the bug number here one you have done so.

yangfangfang1204 commented 11 months ago

Example: const options = { format: imageFrame.format, colorSpace: 'display-p3', sourceRect: { x: 0, y: 0, width: displayWidth, height: displayHeight }, destinationOffset: { x: 0, y: 0 } } imageFrame.copyTo(yuvFrameBuffer, options).then(() => { console.log("2 yuvLength:" + yuvLength + ",displayWidth:" + displayWidth); resolve({ yuvFrameBuffer, yuvLength, displayWidth, displayHeight, yuvType }); }).catch(() => { console.log("imageFrame copyTo error"); });

the imageFrame is VideoDecoder output