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

Whether the video frame has reserved bytes ?

yangfangfang1204 opened this issue · comments

whether the webcodecs has reserved byes in input encodedVideoChunk ?
decode: Input the crop information of one video frame and transparently transmit the crop information in output .
such as:
(1) input:
const chunk = new EncodedVideoChunk({ data, timestamp, type, reserve:8, // reserved bytes that we could transmit to output. })
decodeobj.decode(chunk);
(2) output
output(frame){
let timestamp = frame.timestamp;
let cropwidth = frame.reserver;
}

This is a duplicate of #189. There is no way to do this right now, but it's not the first time this has been asked for.