w3c / media-pipeline-arch

Architecture of the media pipeline on the web
Other
7 stars 0 forks source link

Processing Pipeline: Timing Model #9

Open aboba opened 1 year ago

aboba commented 1 year ago

Dom & Francois have demonstrated a way of tracking timing at each stage of the processing pipeline, by inserting a timestamp overlay.

It would be nice to have a consistent timing model built in so as to make this more straightforward.

The requestVideoFrameCallback specification defines VideoFrameCallbackMetadata, which includes some timing information.

It has been proposed that some fields from VideoFrameCallbackMetadata be added to VideoFrameMetadata: https://github.com/w3c/webcodecs/issues/601

However, currently timing metadata is not consistently exposed across media processing APIs. For example:

Related slides: https://docs.google.com/presentation/d/1DEk4urMPNufIYX88jzRqXddxoGRZXv10iOTGbKvLe5s/edit#slide=id.g159ea124a3f_8_221