How Audio Pack Headers Sync with VOB SCR
In a DVD Video Object (VOB) file, audio synchronization relies on aligning the decoder's internal clock with the System Clock Reference (SCR) found in the pack header, combined with Presentation Time Stamps (PTS) in the packet header. The pack header delivers the timing reference that drives the decoder’s master clock, ensuring that audio and video data arrive at the buffers on schedule. By matching the Presentation Time Stamps of the audio samples against this synchronized master clock, the playback system presents audio frames in exact alignment with the video track without drift or buffer underflow.
A VOB file is based on the MPEG-2 Program Stream format, structured into fixed-size units of 2048 bytes called packs. Each pack begins with a pack header that contains an SCR field. The SCR is a 42-bit value composed of a 33-bit base clocked at 90 kHz and a 9-bit extension clocked at 27 MHz. When a pack arrives at the decoder, the SCR provides the exact intended time of arrival for that data chunk, calibrating the decoder's local System Time Clock (STC) via a phase-locked loop (PLL) circuit.
Contained inside the pack is the Packetized Elementary Stream (PES), which encapsulates the actual audio payload (such as AC-3, LPCM, or DTS). While the pack header contains the SCR to manage delivery timing, the PES header contains the Presentation Time Stamp (PTS). The PTS specifies the precise time at which a decoded audio frame must be played out through the speakers.
The synchronization process operates through a two-step mechanism:
- Clock Recovery: The incoming SCR values continuously update and correct the playback system's STC. This ensures the playback hardware runs at the exact speed intended by the authoring multiplexer, counteracting local crystal oscillator drift.
- Timed Presentation: The audio decoder decompresses the audio payload and holds the resulting PCM samples in an output buffer. The system continually compares the audio frame's PTS to the current running STC. The moment the STC reaches or matches the PTS value, the audio frame is rendered.
Because both audio and video packs share the same timeline established by the periodic SCR values, their respective PTS values act as absolute markers on a shared clock. When video displays a frame assigned to a specific timestamp, the audio track simultaneously renders the sample assigned to that identical timestamp, achieving lip-sync accuracy across the entire VOB stream.