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

key-frame request handling when scalability mode is not L1T1 for encoder

taste1981 opened this issue · comments

when encoder is configured to work in L1T2, L1T3, etc, Spec should clarify when a key-frame request is configured for current frame, how this should be handled when current frame is not at base temporal or spatial layer.

For example, should encoder simply reset the GOP structure to T0 and generate a key frame at T0; or it should reject the key-frame encoding request; or it should record this key-frame request and continue output a delta-frame, and apply the key-frame request till next base layer frame.

reset the GOP structure to T0 and generate a key frame at T0

we should spec this

UA certainly shouldn't reject key-frame requests regardless of configured scalability mode and the current frame layer

@Djuffin in this case shall spec require going to T0 immediately, or queue the key-frame request till next base layer frame?

shall spec require going to T0 immediately, or queue the key-frame request till next base layer frame?

immediately

VideoEncoderEncodeOptions.keyFrame corresponds to the frame given to VideoEncoder.encode() thus its should be effective immediately.

Is there is a specification change needed?

If not, can we close this issue?

Is there is a specification change needed?

If not, can we close this issue?

Sure. I think this can be closed.