How to Fix Audio Sync Issues in MPV?
This guide provides a quick and practical walkthrough on how to adjust audio delay in the mpv media player to resolve frustrating lip-sync issues. Whether your audio is lagging behind the video or playing too fast, you can perfectly realign them in real time using simple keyboard shortcuts or permanent configuration settings.
Audio Delay Keyboard Shortcuts in MPV
The quickest way to fix a lip-sync issue while a video is playing is by using mpv’s built-in hotkeys. These keys adjust the audio timing instantly in increments of 100 milliseconds (ms).
- Delay Audio (Audio plays later): Press the
Ctrl++keys (orAudio Delay Up). - Advance Audio (Audio plays earlier): Press the
Ctrl+-keys (orAudio Delay Down).
Tip: On many standard keyboard layouts, you can simply press the
9key to decrease audio delay (shift audio earlier) and the0key to increase audio delay (shift audio later).
Each keypress will display the current offset on your screen (e.g.,
Audio delay: 200ms or Audio delay: -100ms),
allowing you to fine-tune the playback until the actors’ lips perfectly
match the sound.
How to Set a Permanent Audio Delay
If you notice that a specific audio device or Bluetooth headset consistently causes a lag across all your videos, you can set a permanent adjustment in your mpv configuration file.
- Locate or create your
mpv.conffile.
- Windows:
%APPDATA%\mpv\mpv.conf - Linux/macOS:
~/.config/mpv/mpv.conf
- Open the file in a text editor.
- Add the following line, replacing the number with your desired delay
in seconds (for example,
0.2for 200ms, or-0.15for -150ms):
audio-delay=0.2
Save the file and restart mpv to apply the changes globally.
Why Do Lip-Sync Issues Happen?
Audio desynchronization usually stems from hardware or file encoding discrepancies rather than the media player itself.
- Bluetooth Latency: Wireless headphones and speakers inherently introduce a slight audio processing delay.
- Hardware Decoding: Heavy video files might cause the video renderer to lag slightly behind the audio track.
- Bad Muxing: The video file itself may have been poorly encoded, meaning the audio and video streams were never properly aligned from the start.