How to Fix Audio Sync Problems in HandBrake
Check three cues, identify the kind of timing problem, and choose a track shift, frame-rate test or playback fix.
If HandBrake's output is out of sync, compare the original and the encode at the beginning, middle and end. A constant offset needs a timing shift. Drift calls for a check of the source timing and any playback or editing settings that change the rate. When the problem appears in just one player or editor, test that destination before encoding again.
Look for sounds you can see, such as a clap, a door closing or the start of a word. Use the same audio track in both files, including when you switch players. At each cue, write down whether the sound is early or late. I'd keep the original and label each test copy with the setting that changed so the comparison is easy to repeat.
Identify the kind of sync problem
| What you observe | Where to look first | What confirms the fix |
|---|---|---|
| The sound leads or follows the picture by roughly the same amount throughout. | Check the same cues in the source. If only the encode is off, test the output settings before shifting a track. | One adjustment lines up early and late cues. |
| Sync starts close, then the difference grows. | Compare source and output timing at both ends. Check Variable Framerate and any speed or footage-interpretation setting in the editor. | The beginning and end both match after the timing change. |
| Sync changes abruptly after a cut, dropout or chapter. | Find the first bad point in the same source. Compare the footage and the relevant part of the encode log. | The affected transition and the remaining video play in sync. |
| The same file is fine in one player but slips in another or only on the timeline. | Use the same audio track and compare the player, decoder, audio output or editor import settings. | Playback works at the problem destination after one targeted change. |
If a tool reports Delay Relative to Video, listen for a mismatch before changing it. In an AAC track, for example, the encoder adds priming samples before the original audio. The destination player has to interpret the timing and position the sound. Check where the sound lands on a visible cue before treating a reported offset as a correction value.
Correct a fixed audio offset
Test a temporary correction before you write a new file. In VLC's Windows interface, use Tools > Track Synchronization and adjust Audio track synchronization. If you hear the clap before you see the hands meet, delay the audio. If the sound comes after the action, advance it. Play several cues using that adjustment, including one late in the clip. Write down the direction as well as the amount. A delay of 0.180 seconds in a player is 180 milliseconds in a tool that asks for milliseconds.
For a lasting correction, move the audio on an editing timeline. Keep enough room at both ends for the shift. If your destination accepts MKV, add the file to MKVToolNix's multiplexer, select the audio track and enter the measured shift in Delay (in ms). Save to a new file. The equivalent command-line option is --sync. In this example the audio plays 180 milliseconds early, and mkvmerge -i identifies its track ID as 1.
mkvmerge -i "original.mkv"
mkvmerge -o "sync-test.mkv" --sync 1:180 "original.mkv"
Use the track ID from your own file. In MKVToolNix a positive shift moves sound later. A negative shift moves sound earlier and can discard opening packets that move before time zero. To keep that opening, adjust the clips on a timeline with room before the earliest cue. If the remux plays in sync on the destination and meets its format requirements, keep it. If a later encode is needed, start from the corrected file and check sync again.
Test Align A/V Start when the opening is the problem
For an MP4 job in HandBrake 1.11.2, Summary > Align A/V Start aligns the initial timestamps. HandBrake's Windows tooltip says the option can improve playback in a player that mishandles MP4 edit lists. Encode a second copy from the same source with only this setting changed. Compare the opening and confirm a later cue on the playback device.

Start alignment can fill an initial gap with silence or blank video. If an audio track is passed through, the 1.11.2 synchronization code can drop earlier buffers to align the streams to passthrough audio. Inspect the opening sound and picture after changing the checkbox. For a measured delay in milliseconds, use the track shift above. HandBrake's request for a manual audio offset control remains open.
Track down drift and timeline problems
Play the original as a standalone file. If the audio is 80 milliseconds late at the start and 450 milliseconds late at the end, advancing it by 80 milliseconds still leaves 370 at the end. When the original drifts steadily, line up a visible sound cue near the start in a project. Adjust the audio duration to meet a second cue near the end, then check one in the middle. If sync jumps after a cut or dropout, play from just before the transition in both files. Work on the affected sections and recheck each transition.
When the original and encode play in sync as standalone files, inspect the editing project first. Check the imported clip's properties, sequence frame rate and any footage-interpretation or speed override. For example, if a picture-only sequence made at 29.97 fps gets interpreted as 30 fps while its separate audio keeps its original length, an hour of picture runs about 3.6 seconds shorter. That example assumes the same frames are played faster. Adobe explains how changing the interpreted rate affects clip playback.
For a destination that handles source timing, set Video > Framerate (FPS) to Same as Source and choose Variable Framerate. HandBrake preserves the source frame rate in this mode. If the editor has trouble with variable-rate recordings, create a Constant Framerate test at the rate the project requires. HandBrake's frame-rate guide explains how CFR conforms the file to one rate. If the job is set to Peak Framerate, the selected number is a ceiling. Portions of the source at or below it keep their rate.

Import the CFR copy as new media and check its playback before applying speed changes. Compare the early and late cues against the source. A short test near the opening can find an immediate offset. To check drift, make a copy long enough to include a cue near the end of the affected section.
Test the same file on the device that shows the problem
Open the exact same output in another player. Keep the audio track the same and try the device's built-in or wired audio if you were using Bluetooth or a receiver. Check playback speed and any existing delay setting. If the result is fine everywhere except your editor, spend the next test on its import or timeline.
If the issue survives in two players and started with a hardware encode, compare it with a software encode from the original. For an H.264 NVENC job, try H.264 (x264). Keep the video format, container, dimensions, frame-rate mode, filters and audio settings as close as the two encoders allow. Compare both outputs in the problem player. If software encoding helps, you've narrowed the problem to a workflow that includes the hardware encoder, its settings and the player's handling of that video.
Before starting that test, open Audio and confirm the same source track, codec and Mixdown settings. Changing the soundtrack at the same time makes it harder to interpret the result. If a comparison changes audio passthrough to AAC, record it as a separate test.

Use the encode log to investigate a jump or repeatable fault
Save the log for the job that produced the bad output. In Windows HandBrake, open Tools > Activity Log. The project's Activity Log guide explains what the job log records and where to find it. Look for decode errors, timestamp warnings and dropped frames in that job. The synchronization code, for example, logs time went backwards when it drops overlapping audio frames. Compare the source and the encode at the first audible jump before assuming a log warning accounts for it.
If the source is a disc or capture, verify you selected the right title and soundtrack. Test the same section of a readable source copy. For a job that fails or stalls at a repeatable point, use the HandBrake error checks to separate a scan or decode problem from a completed output with bad timing.
For a support report, keep the source type, HandBrake version, encoder, output container, frame-rate mode, audio track settings, and the logged time of the first audible problem. Note where both files play correctly. Before you use the settings for a batch, play the full delivery in its intended app and check the beginning, affected section and end.


