w3c / webcodecs

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

Why the VideoFrame.duration is always null? #521

Closed exolution closed 2 years ago

exolution commented 2 years ago

the spec said that VideoFrame.duration is copied from EncodeVideoChunk.duration but i found it is always null even the input EncodeVideoChunk.duraion has been setted.(eg. 40000) i test this at Chrome 103.0.5060.134

image image

sandersdan commented 2 years ago

Confirmed, Chrome's implementation is not copying the duration through from EncodedVideoChunk to VideoFrame.

I filed https://bugs.chromium.org/p/chromium/issues/detail?id=1352565.