top of page

What is Synchronisation Drift?

Oct 25
9 min read

Updated: Oct 27

Audio and video timelines gradually moving out of alignment as their clocks diverge.

 

Synchronisation drift is a growing change in the timing relationship between signals or devices that should remain aligned. In audio and video, a session may start acceptably in sync and gradually develop a larger separation between the sound and the corresponding picture.

 

A persistent difference between clock rates is one cause. Growing queues, timestamp handling and playback corrections can also create changing alignment. The useful first question is whether the error grows, stays fixed, jumps or fluctuates, rather than whether the connection has a high advertised speed.

 

Drift, fixed offset and jitter are different

 

A fixed offset means one event consistently occurs earlier or later than its counterpart by roughly the same amount. Drift means that relationship changes over time. Jitter describes fluctuations rather than a steady trend, although real systems can show a trend and fluctuations together.

 

In everyday media troubleshooting, “drift” often describes accumulated misalignment caused by a rate mismatch. In precise clock engineering, frequency offset and a change in frequency over time are separate concepts. This article uses synchronisation drift for the observed growing alignment error and states the assumptions of its clock examples.

 

A lip-sync slider can compensate for a stable offset. It does not, by itself, make two independent rates equal. If the separation continues to grow, a correction that looks right near the beginning may be wrong later.

 

What is Synchronisation Drift infographic explaining the mechanism, key stages and practical limits.

 

The infographic contrasts fixed separation with a growing trend, shows a constant-rate calculation, and explains why media timestamp counts need a common reference. Its numerical examples are invented models, not specifications for any particular camera, computer or broadband product.

 

Why two devices can gradually separate

 

A camera, an external audio interface and a playback device can each have their own timing source. Giving two devices the same nominal rate does not prove that their physical clocks advance identically. An application must relate the media timelines and manage any continuing mismatch.

 

For example, an audio capture system and a camera can begin together but accumulate a difference over a long recording if their rates are not adequately related. A player can face a similar problem when its output device consumes media on a clock that differs from the source's clock.

 

The RTP clock-source signalling standard, RFC 7273, distinguishes timestamp reference clocks from media clocks. It describes signalling their relationships; announcing a relationship is not itself a mechanism that forces every device to follow it. Rate alignment and agreement about the same time instant are also different requirements.

 

That distinction matters when someone says the computer's clock is synchronised. A correctly displayed wall-clock time is not sufficient evidence that a microphone's sampling clock, a camera and an audio output device are running together.

 

Techie Broadband example: a small mismatch accumulates

 

Parts per million, or ppm, expresses a fractional rate difference. In a simplified uncorrected model, a constant difference of 50 ppm accumulates 50 millionths of a second of separation for each elapsed second.

 

Over 600 seconds, or ten minutes, the added separation is 600 multiplied by 50 divided by one million: 0.03 seconds, or 30 ms. Over one hour it is 0.18 seconds, or 180 ms. These are calculations from the assumed mismatch, not typical or acceptable values for real equipment.

 

Elapsed time

Added separation at 50 ppm

Calculation

1 minute

3 ms

60 × 50 ÷ 1,000,000 seconds

10 minutes

30 ms

600 × 50 ÷ 1,000,000 seconds

20 minutes

60 ms

1,200 × 50 ÷ 1,000,000 seconds

1 hour

180 ms

3,600 × 50 ÷ 1,000,000 seconds

 

The initial offset is separate. If an illustrative signed separation starts at +20 ms and then increases at that rate, it becomes +50 ms after ten minutes and +80 ms after twenty minutes. Here positive means that the measured second event occurs later than the chosen reference event. It does not mean that every fast clock makes audio late in every system.

 

Two imperfect clocks can contribute to the difference. If clock A advances 30 ppm faster than a common reference and clock B advances 20 ppm slower, their readings separate at 50 ppm against that reference. Actual systems may continually estimate or correct their timing, so the uncorrected straight-line model need not describe the observed result indefinitely.

 

Observe the pattern before choosing a remedy

 

Make repeated observations of the same kind of paired event, using a consistent sign convention and measurement method. One beginning and one end observation can suggest a trend, but additional points help reveal jumps or temporary disruptions.

 

Illustrative pattern

Beginning

After 10 minutes

After 20 minutes

Fixed offset

+20 ms

+20 ms

+20 ms

Steady growing separation

+20 ms

+50 ms

+80 ms

A sudden step

+20 ms

+80 ms

+80 ms

Irregular variation

+20 ms

+12 ms

+28 ms

 

Three invented points do not establish a physical cause. A steadily growing software queue can resemble a rate mismatch. A reconnect, device change, seek or timestamp discontinuity can resemble a clock step. A playback controller may make occasional corrections that turn a trend into a repeating rise-and-reset pattern.

 

For the growing example, the change is 60 ms over 1,200 seconds. Dividing 0.06 by 1,200 gives 0.00005, equivalent to 50 ppm. That is a slope inferred from this model's observations, not proof that a particular oscillator is out by exactly that amount.

 

Our frame timing guide explains why uneven picture cadence is a different observation. Smoothly spaced frames can still be misaligned with audio, and visible stutter does not automatically establish a growing synchronisation error.

 

How network media timestamps are related

 

A media timestamp is a position on a particular timing scale, not automatically a shared wall-clock reading. Different streams can use different units and starting values.

 

The RTP standard, RFC 3550, explains that comparing raw timestamps across different media is ineffective for synchronisation. RTCP sender reports pair an RTP timestamp with a reference-clock timestamp, allowing related streams to be mapped to a shared reference. The correspondence represents the same instant; it is not necessarily the timestamp of an adjacent media packet. Using an NTP-format timestamp does not mean that running the NTP protocol is mandatory for every RTP application.

 

As a concrete units example, RFC 7587 specifies a 48,000 Hz RTP timestamp clock for Opus. RFC 6184 specifies 90,000 Hz for H.264 over RTP. Over one nominal second, those counters therefore advance by 48,000 and 90,000 ticks respectively. The different counts do not imply that one stream has run for longer, and the Opus timestamp rate is not a claim about every device's physical sampling rate.

 

Our RTP explanation places timestamps alongside sequencing and control reports. A receiver still needs correct timing information and suitable playback behaviour; the presence of RTP packets alone is not a guarantee of synchronised presentation.

 

What a player does with clocks and buffers

 

A media pipeline needs a rule for when to present each item. GStreamer's official synchronisation design, for example, describes a selected pipeline clock and a mapping from buffer timestamps to running time. Playback aims to present a buffer when the corresponding clock running time is reached. That is a concrete implementation model, not a universal API contract for all players.

 

A buffer can absorb some short-term timing variation, but finite storage cannot indefinitely reconcile production and consumption rates that remain unequal. Consider an invented audio system producing 48,002.4 samples per reference second while its consumer takes 48,000. Without correction, dropping or other adaptation, the excess is 2.4 samples per second.

 

After 600 seconds the excess is 1,440 samples. At the consumer's nominal rate, that represents 30 ms of audio. This simple queue model uses an assumed sample production rate; it does not describe Opus packet timestamps or predict every receiver's buffer algorithm.

 

Our jitter buffer guide covers buffering around delivery variation. Making a buffer larger may postpone an overflow or change delay, but it does not itself make a persistent source and sink rate mismatch disappear.

 

Correction methods have different purposes

 

There are several possible approaches, depending on the application and equipment:

 

  • A fixed timing adjustment changes alignment by a chosen amount.

  • Clock discipline relates a device's timing source to a suitable reference.

  • Rate adaptation changes how media production or consumption follows the chosen timeline.

  • Discontinuity handling responds to a break, reset or change in the timeline.

 

The GStreamer audio sink documentation gives implementation-specific examples: resampling to follow a master clock and adjusting a playout pointer when clocks separate too far. Those are different behaviours, with application-dependent consequences. Its configuration values are not universal lip-sync recommendations.

 

A one-off shift can remove an initial +20 ms offset while leaving the growing slope unchanged. A suitable continuing rate correction addresses a different problem. Aggressive correction may itself produce audible or visible disruption, while avoiding correction can allow misalignment or queue growth to continue. Judge the actual output, not simply whether a setting has “sync” in its name.

 

Professional systems may provide shared clocking arrangements or other timing support. Use the documented design for the actual devices and application. Do not assume that adding a time server, changing a sample-rate label or copying an unrelated command creates the required relationship.

 

Check capture, recording and playback separately

 

An observed audio/video mismatch can originate before transmission, during processing or at presentation. Compare the same identifiable paired events at more than one available stage.

 

For a recording, inspect corresponding visual and audio markers near the beginning, middle and end. A deliberate test event close to the microphone reduces ambiguity from sound travelling from a distant source. Keep the same measurement method and account for the recording's frame and sample resolution.

 

For example, 25 fps video has frame periods of 40 ms. A visual inspection limited to whole frames cannot automatically establish a 5 ms change. Report uncertainty rather than turning coarse observations into a precise oscillator diagnosis.

 

If an original recording already contains the growing separation, investigate capture clocks, timestamping and processing before blaming delivery. If that recording is stable but one playback device develops a problem, investigate the receiving application and output path. Different tests can select different formats or processing, so record those differences.

 

Our decoding latency guide distinguishes decoded output from final presentation. A decoder completing a picture does not prove that the corresponding sound and picture reach the audience together.

 

Where broadband fits

 

Network conditions can change arrival timing, trigger buffering or disrupt a session. They can therefore affect observed presentation. A clean speed-test result does not rule those effects out, but a growing alignment error is not by itself proof of an ISP fault.

 

For UK sessions, consider ISP, access network, product and location together with local Ethernet or WiFi, competing traffic and the application. A practical wired comparison can help isolate delivery variation. Preserve the session format and playback mode where possible, because an automatic quality or codec change can complicate the comparison.

 

Extra bandwidth cannot directly discipline an independent sampling clock. Equally, correcting a clock relationship does not remove congestion or repair missing media. Identify which observation changes when one factor changes.

 

A practical investigation sequence

 

  1. Define the two events or streams being compared, the observation point and the sign convention for separation.

  2. Record devices, application versions, audio sample rates, video frame rates, output paths and any documented clock relationships.

  3. Observe comparable markers near the beginning, middle and end of a representative session, noting measurement resolution and uncertainty.

  4. Classify the visible pattern as roughly fixed, growing, stepped or irregular, allowing for mixtures and periodic corrections.

  5. Compare an original or local recording with the affected delivery and playback path where available. Keep format and processing differences visible.

  6. Review supported timing, queue and discontinuity information. Do not infer a physical clock fault from a slope alone.

  7. Test one documented timing or workload change at a time, then repeat for long enough to expose the original trend and assess output quality.

  8. Restore unsuccessful changes and provide support with timestamps, paired observations and configuration details, keeping private session information out of public reports.

 

A long-session fault needs a long-enough comparison. A restart that temporarily restores alignment is useful evidence, but it does not establish that the underlying rate or buffering problem has been resolved.

 

Frequently asked questions

 

Is synchronisation drift just a constant audio delay?

 

No. A constant delay remains approximately the same. Drift describes a changing timing relationship, often seen as growing separation during a session.

 

Can two devices set to the same sample rate still drift?

 

Yes. Equal nominal settings do not prove that independent physical timing sources advance identically or that the application corrects their difference.

 

Does a lip-sync slider fix a growing mismatch?

 

A fixed adjustment can correct an offset at one point. It does not by itself remove a continuing rate difference or a steadily growing queue.

 

Does setting the computer clock correctly synchronise all media hardware?

 

Not necessarily. Timestamp reference time and the clock that drives media sampling or playback are distinct parts of the system.

 

Does an increasing error prove the network is responsible?

 

No. Clock relationships, timestamp handling, queues and presentation behaviour can all require investigation. Compare evidence at different stages.

 

Is 50 ppm a universal fault threshold?

 

No. It is an assumed value in the worked example. Required accuracy and acceptable output depend on the application and its documented requirements.

 

Key takeaway

 

Synchronisation drift is a changing alignment problem. Measure its pattern over time, distinguish initial offset from continuing rate difference, and separate capture, delivery and playback evidence. A useful remedy addresses the timing relationship or queue that is actually changing while preserving acceptable sound and picture quality.

 

Explore the Techie Broadband terminology guide for related network and media concepts.

 
 
UK Techie Broadband Providers
bottom of page