Reputation: 31
I'm working on VideoDecoder from WebCodecs API to decode frames from a video source file. Problem is the frame format of the output from the decoder is browser dependent. In Mozilla Firefox, it outputs in BGRX format while in Google Chrome and Microsoft Edge, it is in NV12 format.
There is a copyTo() API provided on the VideoFrame object, but this causes additional overhead. If there is a way to just output it on a specific format, it would be faster.
Also tried to change the hardwareAcceleration param on VideoDecoder's config(), the format changed to I420 but this is not what I desire. :(
Please let me know if this is possible.
Upvotes: 0
Views: 101