w3c / webcodecs

WebCodecs is a flexible web API for encoding and decoding audio and video.

Home Page:https://w3c.github.io/webcodecs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can i get yuv data from a VideoFrame with NV12 format?

jhl13 opened this issue · comments

commented

How can i get yuv data from a VideoFrame with NV12 format? Any samples?

This would be better in the discussions section, I don't believe it is a spec issue. Closing.

To answer the question, you can get NV12 data using frame.copyTo() if the frame already has frame.format == 'NV12'.

Adding conversions from other formats is issue #92.