openscreenprotocol icon indicating copy to clipboard operation
openscreenprotocol copied to clipboard

Investigate message latency requirements for media sync

Open markafoltz opened this issue 7 years ago • 3 comments

It would be helpful to have an upper bound for PresentationConnection message latency based on use cases like media synchronization or lip sync.

From https://www.w3.org/2017/11/07-webscreens-minutes.html#x08:

ACTION: @chrisn to propose latency ranges for media synchronization use cases (lip sync vs frame sync)

markafoltz avatar Nov 08 '17 02:11 markafoltz

Also clock synchronization and clock skew correction were mentioned as potential uses for connection messages. The HbbTV media synchronization spec may provide some inspiration.

markafoltz avatar Nov 08 '17 02:11 markafoltz

A rough model of different use cases vs accuracy requirements is Figure 1 in this paper, shown below:

sync-accuracy-requirements

chrisn avatar May 18 '18 13:05 chrisn

the ITU performed strictly controlled tests with expert viewers and found that the threshold for [lip sync] detectability is -125ms to +45ms.

From: ITU-R BT.1359-1, Relative Timing of Sound and Vision for Broadcasting (PDF). ITU. 1998.

markafoltz avatar Aug 26 '19 22:08 markafoltz

To close this out I think a note that implementations should strive to send/receive messages within the smallest latency bounds possible, and no greater than the lip sync threshold of 45ms.

markafoltz avatar Sep 07 '23 00:09 markafoltz

I think that's fine. The original intent behind the suggestion was for OSP to potentially support tightly synchronized playback between agents (e.g., sub 10ms). That would require an additional timeline sync protocol to be added to OSP, which would need research and investigation, so I would leave as future work if there's interest, not a v1 spec feature.

ETSI TS 103 286-2 is the relevant spec for the HbbTV companion screen synchronzation capability, sections 4.3.4 and 4.3.5.

chrisn avatar Oct 13 '23 15:10 chrisn

Thanks @chrisn. I will file a followup issue for the sub-10ms use case.

markafoltz avatar Oct 16 '23 17:10 markafoltz

Thanks @chrisn. I will file a followup issue for the sub-10ms use case.

Filed https://github.com/w3c/openscreenprotocol/issues/325 for this.

markafoltz avatar Jan 22 '24 18:01 markafoltz