w3c / webcodecs

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

Use of OBU in AV1 WebCodecs registration is incorrect #414

Closed cconcolato closed 2 years ago

cconcolato commented 2 years ago

The AV1 WebCodecs registration at https://w3c.github.io/webcodecs/av1_codec_registration.html uses the following sentence in https://w3c.github.io/webcodecs/av1_codec_registration.html#encodedvideochunk-data:

EncodedVideoChunk [[internal data]] is expected to be either an "open bit-stream unit" (OBU) or "low-overhead OBU" as described in Section 5 of [AV1].

The use of "either ... or" is not clear. AV1 defines:

In practice, the "low-overhead bitstream format" is mostly used.

Also, it seems to indicate that one encoded chunk is a single OBU, which is not possible for key frames for example (you need a sequence header OBU).

I would suggest rephrasing to:

EncodedVideoChunk [[internal data]] is expected to be data compliant to the "low-overhead bitstream format" as described in Section 5 of [AV1].

dalecurtis commented 2 years ago

I agree, PR created, thanks for filing!