> ## Content Index
> Fetch the complete content index at: https://ffmpeguru.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Delay (or advance) the audio track to fix sync issues
- URL: https://ffmpeguru.com/delay-or-advance-the-audio-track-to-fix-sync-issues/
- Published: 2026-11-25T09:00:00.000Z
- Updated: 2026-11-25T09:00:01.000Z
- Author: FFmpeguru
- Tags: ffmpeg

![](https://picsum.photos/seed/ffblog33/1200/630)

Audio-video sync issues are common: the audio leads or lags the video by a few hundred milliseconds, often because the audio and video were recorded on different devices, or because the editing software misaligned them. The `-itsoffset` flag shifts the audio stream by a fixed duration, in either direction.

## The command

```
ffmpeg -i input.mp4 -itsoffset 2.0 -i input.mp4 -map 0:v -map 1:a -c copy output.mp4
```

## What it does

FFmpeg reads the video from the first input and the audio from the second, offset by 2 seconds. The offset is applied to the timestamps of the second input, so the audio starts 2 seconds later than it would otherwise. The output is the video with the audio shifted 2 seconds later; `-c copy` preserves both streams without re-encoding.

## When to use it

For fixing a sync issue where the audio leads the video (positive offset delays the audio to catch up) or lags (negative offset advances the audio to catch up). Common sources of sync issues: wireless microphones with a different latency than the camera, screen recordings with system audio out of sync, and edits that trimmed video but not audio.

## Video and audio requirements

Any decodable video and audio. The offset is in seconds; use fractional values for sub-second sync (e.g., `-itsoffset 0.35` for 350 ms). The output is the same duration as the longer of the two inputs; if the offset is large, the audio may be truncated at the end.

## Things to avoid

- Forgetting that the offset applies to the input, not the output. The second input is offset; the first is not. If you swap the inputs, the offset direction flips.
- Using a positive offset to advance the audio. `-itsoffset 2.0` delays the audio by 2 seconds; to advance the audio, use a negative value (`-itsoffset -2.0`).
- Forgetting that `-map` is required when you have two inputs. Without `-map`, FFmpeg may pick streams you did not expect. The explicit `-map 0:v -map 1:a` makes the intent clear.
- Using this on a single-input file. `-itsoffset` requires two inputs (the offset is applied to the second). For a single file, use the `adelay` audio filter: `-af adelay=2000|2000` for 2 seconds on each channel.