w3c / webcodecs

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

Whether the video frame has reserved bytes ? #673

Closed yangfangfang1204 closed 1 year ago

yangfangfang1204 commented 1 year ago

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; }

padenot commented 1 year ago

This is a duplicate of https://github.com/w3c/webcodecs/issues/189. There is no way to do this right now, but it's not the first time this has been asked for.