400 likes | 421 Views
Intermedia Synchronization. Ooi Wei Tsang. Overview. Why we need to sync? How close must we sync? How to sync? How to measure sync? Applications. Synchronization. Intrastream. Interstream. Local playback. Networked. Problem.
E N D
Intermedia Synchronization Ooi Wei Tsang nus.soc.cs5248Ooi Wei Tsang
Overview • Why we need to sync? • How close must we sync? • How to sync? • How to measure sync? • Applications
Synchronization Intrastream Interstream Local playback Networked
Problem • Ensure that audio/video capturedat the same instance at the source, are displayedat the same instance at the receivers.
Why we need Synchronization? nus.soc.cs5248Ooi Wei Tsang
V A V A Why not Pre-sync? Sender Receiver
V V A A Sender Sender Receiver Receiver Seperating A/V Flows • Can receive audio without video • Can prioritize audio over video
May Come from Different Sources • UNLV Access Grid V V A A Sender Sender Receiver Receiver
or Displayed at Different Sources V A V A Sender Sender Receiver Receiver
More Complications • Different decoding time for video and audio • Network delay and jitter • Different clocks
Bottom Line • Must synchronize at the receiver
Synchronization Requirements nus.soc.cs5248Ooi Wei Tsang
Reference • Human Perception of Jitter and Media Synchronization by Ralf Steinmetz IEEE JSAC 14(1) 1996
Results “Badness” A/V offset -80ms +80ms
What matters • Video ahead of audio vs. audio ahead of video • Size of head • Occupancy
What does not matter • Language • Speaking or Singing • Hobby • Speed
Conclusion • -80ms to +80ms acceptable • -160ms to +240ms noticable but not annoying • - audio > video • + video > audio
How to Synchronize? nus.soc.cs5248Ooi Wei Tsang
Receiver needs • Exact time a sample is generated • Each packet needs a timestamp
RTP Protocol RTP Hdr Media Timestamp
But.. • Media timestamp has a random offset
RTCP Protocol : Media Timestamp RTCP Hdr NTP Timestamp :
NTP • Network Time Protocol • Synchronize clock up to few milliseconds
Audio RTCP Audio RTP Sender Audio Video RTCP Video RTP Sender Video Receiver Video Receiver Audio
Audio RTCP Audio RTP Sender Audio Video RTCP Video RTP Sender Video Receiver Video Receiver Audio Synchronization Delay
Multiple Receivers • Everyone must have the same synchronization delay
How to set Sync Delay? • Receivers tell each other their network delay • Synchronization Delay = max {Network Delays} + Buffer
If Buffer too Full/Empty • Send message “Play faster!” or “Play slower!” to other receivers
Must Synchronize! • Send message “Play faster at time T!” or “Play slower at time T!” to other receivers
How do we Measure Synchronization? nus.soc.cs5248Ooi Wei Tsang
Reference • A Method and Apparatus for Measuring Media Synchronization • by Brian Smhmidt etc. • NOSSDAV 1995
Generator System under Test Measurement System
Beyond Video Conferencing nus.soc.cs5248Ooi Wei Tsang
HQ Video and Audio • Multiple Channels • Multiple Displays
Network Musical Performance BOS BOS SF SF BOS ACM Multimedia ‘94
NASDAQ • Synchronize display of stock quotes