Is there a way for WebGL/THREE.js to read a video DOM element into YUV textures?

In most platform specific APIs, there is an option to read the video frame as it's native pixel format, YUV. However, the DOM Video Element wrapped with a THREE.Texture, always returns RGB. Is there a way to get textures in the native pixel format of YUV?

I am using JS and THREE.js, but if it's possible in WebGL, that's also good.



Read more here: https://stackoverflow.com/questions/64390092/is-there-a-way-for-webgl-three-js-to-read-a-video-dom-element-into-yuv-textures

Content Attribution

This content was originally published by ofer rubinstein at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: