Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

AAC audio starts 44 ms late: distinguish encoder priming from oscillator drift

When sound is already late in the first frame and about equally late two minutes later, check AAC priming compensation and the edit timeline. A persistent relative sampling-clock error generally accumulates. A fixed offset alone does not justify returning a 24.576 MHz audio oscillator or removing 44 ms from every track, especially if some players already compensate.

These examples use locally delivered files from portable recording or switching equipment. Checks use synthetic markers or existing offline files and do not change device configurations or involve public platforms or user accounts. The timing figures do not specify a particular encoder.

Raw AAC decode can begin before the program

Block coding may add extra samples for encoding and decoding at either end of the program. The first decoded sample and the first program sample may occupy different positions. When the container expresses the intended mapping, the player needs to interpret which samples belong to the program and where its first sample lands. Encoder, container and playback behavior vary.

Intentional silence is part of the program, and priming need not look like silence. Finding the first visible spike can cut intended quiet or a subtle opening. Use the source timeline, media metadata and comparison method. Record priming, end padding, edit offsets and playback-device delay separately.

Two markers separate an initial offset from clock drift

Suppose the source has 48,000 audio samples per second, with simultaneous picture flashes and audio impulses at 0 s and 120 s. The saved audio has 2,112 priming samples to skip, but one playback path treats them as program samples. At 48,000 samples/s, 2,112 samples represent 0.044 s, or 44 ms. With no other error, both audio markers are about 44 ms late and remain 120 s apart.

Separately suppose the start is correct, but the two time bases differ by a steady 30 ppm. Over 120 s the difference grows to 0.0036 s, or 3.6 ms in magnitude. The sign depends on the reference and playback implementation. A clip 44 ms late at the start and roughly another ten milliseconds late at the end can have both an initial offset and accumulated drift. Use several markers to estimate the intercept and slope separately.

At 25 frames per second, the nominal frame interval is 40 ms. Identifying a flash visually by frame alone cannot resolve 3.6 ms without knowing how the marker sits on the reference timeline. Compare track times, original audio markers and annotated frame sequences at the file level. Check the observation resolution before interpreting a precise-looking offset.

Compare the start, middle and end in saved files

Keep the original audio and video outputs and transcoded files from the same source. Identify the boundary of each measurement: raw samples, the container-mapped program interval or final playback. A comparison after discarding timing metadata does not represent the viewer's experience.

For three matching points at the start, middle and end, record audio time, video time, the file or device boundary and the permissible measurement error. A near-constant difference suggests a fixed offset. Smooth growth points toward clock references, sample-rate interpretation, speed changes or resampling. Abrupt steps at segment changes warrant checking for missing or applied-twice start-time mapping. Each pattern is a clue.

Compare the same test file through two playback or delivery paths. If only one shows a fixed offset, check its interpretation of the saved audio positioning information. Trimming a correctly compensated path again could make audio early or remove intended opening content. Keep originals and distinct test copies. Record which stage produced each new track if there was editing and repeat encoding.

Separate playback alignment from reference-clock acceptance

When procuring a recorder, video switcher or encoder board, specify more than 48 kHz support. Confirm the delivery container, preservation of the correct program start, repeatability for individually delivered segments, and alignment both on initial playback and after seeking. Ask for marked tests using the same inputs and local playback records through the supported paths.

For a custom-design reference, Epson SG-210STF candidate X1G0041710032xx is available at 24.576 MHz. Under the assumed divide-by-512 implementation this gives nominal 48 kHz. Check the exact ordering suffix, supply, logic, load, temperature range and frequency-error definition, then verify the sampling clock at the receiving device. A correct divider calculation and correct AAC timeline mapping are separate results.

Record the start-time mapping from source to archive, valid program sample interval, marker errors and final playback path. Specify the comparison window, tolerance and representative playback method before accepting the result.

Frequently asked questions

Should every AAC file be trimmed by 44 ms? This value applies to 2,112 samples at 48 kHz. Check the input's program-start definition and whether the playback path already applies compensation.

Does drift necessarily come from the oscillator? Reference differences, sample-rate interpretation, resampling and timestamp handling can all appear cumulative. Estimate the rate of change and trace the chain from the source.

Why are some players aligned and others slightly late? Different paths can interpret track positions differently or introduce distinct buffering delays. Identify whether the measurement represents file timing or final device output.

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.