Close Menu
    X (Twitter)
    Hectic GeekHectic Geek
    • Apps
      • Apps for Mac
      • Apps for PCs
      • Best Apps
    • Concepts
      • Comparison
      • For Geeks
      • IT Careers
    • Gadgets
      • Accessories
      • Best Work Laptops
      • Budget Laptops
    • GNU/Linux
      • Ubuntu
    • How To
      • Virtualization
      • Windows
      • Windows How-To
    Hectic GeekHectic Geek
    Home » Fix Audio Delays Permanently Using VLC & MKVToolNix
    GNU/Linux

    Fix Audio Delays Permanently Using VLC & MKVToolNix

    GayanBy GayanJuly 8, 2022Updated:August 4, 202294 Comments4 Mins Read
    Twitter Reddit Telegram WhatsApp Email
    Share
    Twitter Reddit Telegram WhatsApp Email

    Multimedia files with ‘lip-sync’ issues are not uncommon, but they rarely happen in professional environments as they take extra precautions to avoid them. Let me show you how to fix mkvtoolnix audio delay (or VLC audio delay) on a Windows computer.

    In a previous post I wrote about how to fix some of these synchronization issues permanently using ‘Avidemux’, but since then I have received a few complaints of ‘Avidemux’ not being able to fix those issues in some cases. Even though I came across some of these problems, fortunately, I have been able to fix them (so far).

    ‘Avidemux’ can do very little if the input file itself has some issues (corrupted video frames etc.), but ‘Avidemux’ is also a bit buggy, so some of the blame goes toward it also. In any case, there are a few other tools that you can try while trying to fix a sync ‘malfunction’, and ‘MKVToolNix’ is one among them.

    An illustration :) ...
    Illustration …

    ‘MKVToolNix’ is not an encoder as you can only use it to ‘extract’ audio/video/subtitle tracks from other containers (MP4, AVI, FLV etc) and put them into the powerful and open-source MKV container. While doing so, this tool also lets you pass certain settings (sync, fps, aspect ratio …), and it is through that we can attempt to fix sync problems.

    But please be aware that the only output format it supports is MKV (and a few of its variations such as ‘MKA’ for audio’, ‘MKS’ for subtitles etc.), and unlike MP4 or AVI, MKV is not supported by a lot of commercial and strictly hardware-based multimedia players. Computer users, however, do not have to worry about it as popular players (VLC, MPC, PotPlayer, SMPlayer, KMPlayer …) support it. Enough talking, let’s do it!

    Note: Make sure you have downloaded and installed the latest builds of ‘MKVToolNix’ from here. I also recommend that you use VLC because both these utilities are available for multiple operating system platforms, so you can use this ‘guide’ in any of them.

    What we are going to do is …

    *. First, we are going to play the ‘troublesome’ file in VLC (or any other player that lets you change the sync temporarily), and we will try to identify the proper sync value.

    *. Then we will simply enter that sync value into ‘MKVToolNix’ and save it as a new MKV file so that it is saved permanently. That is it!

    Step 1:

    So open your ‘troublesome’ file in VLC, and let it play for a few seconds. Then simply press the ‘j’ key on your keyboard. This will make VLC play the audio track a bit ahead of the video. A single click only increases the value by 50 milliseconds, so unless the ‘gap’ is very small, you will have to press it a few times to see its effect.

    VLC with minus (ahead of video) audio sync value

    Anyhow, if after pressing the ‘j’ key a few times it worsens the ‘gap’, then it is an indication that you actually have to make VLC play the audio track a bit behind (delay) the video. The shortcut key for that is ‘k’. Again, to feel its effect, you might have to press it a few times. If, after doing that, it seems to shorten the ‘gap’, then it is an indication that you are on the right track. So keep doing that until you come up with the perfect sync value.

    VLC with a plus (delay) audio sync valueSo as a general rule, play with the ‘j’ and ‘k’ keys until you find the perfect sync value for that multimedia file. Once you have found it, simply take a note of it (note that depending on the file, the value could be positive or a negative one. If it is a negative/minus one, then you should enter a minus sign before entering the value in ‘MKVToolNix’, more below) and close VLC.

    Step 2:

    Now open ‘MKVToolNix’ and load the ‘troublesome’ file into it. Then under the ‘Tracks, chapters and tags’ field, select the audio stream/track (shown below is an example).

    Selecting the audio track in 'MKVToolNix'

    Step 3:

    Then from under it, click on the ‘Format specific options’ tab, and you will see an empty field that says ‘Delay (in ms)’. Now simply enter the sync value you found above into that field.

    Entering an audio sync value manually in 'MKVToolNix'
    Make sure to enter a minus sign (-) when needed (-200 for instance) …

    Step 4:

    Now click on the ‘Browse’ button under the ‘Output filename’ field. Select a location and a file name for the output MKV file. Once done, simply click on the ‘Start muxing’ button. If everything goes without any errors, try playing the newly saved MKV file, and now you should be able to enjoy it without any ‘lip-sync’ issues!

    Linux Tips Solutions Windows Tips
    Share. Twitter Reddit Telegram WhatsApp Email
    Gayan

    An RHCE, 'Linux' user with 14+ years of experience. Extreme lover of Linux and FOSS. He is passionate to test every Linux distribution & compare with the previous release to write in-depth articles to help the FOSS community.

    Related Posts

    How to Check Linux CPU Usage?

    February 5, 2024

    Linux export Command: A Comprehensive Tutorial

    February 3, 2024

    [Fixed] HDMI No Signal to TV or Monitor on Windows 10/11

    November 7, 2023

    AlmaLinux vs Ubuntu – How to Select the Best One?

    October 22, 2023

    AlmaLinux vs Rocky Linux: What you need to know

    August 24, 2023

    Pop!_OS VS Linux Mint, Which One to Select in 2023

    July 27, 2023

    94 Comments

    1. Henry on January 5, 2018 6:21 pm

      Thanks a lot man. I had a transport stream in perfect sync, when I made an mp4 it screwed up the audio. MK Toolnix worked perfectly

      Reply
      • Gayan on January 5, 2018 6:52 pm

        You’re welcome Henry.

        Reply
    2. Gerard on April 8, 2018 11:06 pm

      You can also use something like CamTasia studio if you have it and add or remove the appropriate length of time.

      Save the audio file once sync and then merge with mkvtool

      Reply
    3. albert on May 26, 2018 4:56 pm

      i thought i was going to have to download another video, but then i saw this
      i love you bro, thanks a billion

      Reply
      • Gayan on May 30, 2018 6:55 am

        You’re welcome.

        Reply
    4. Jack on July 18, 2018 10:47 pm

      Very great tips! Thank you so much.

      Reply
      • Gayan on July 20, 2018 7:15 am

        You’re welcome.

        Reply
    5. BoySwank on January 27, 2019 7:42 pm

      Worked great. Nothing is more annoying than out-of-synced audio. Thanks for the easy-to-follow instructions!

      Reply
      • Gayan on January 28, 2019 10:21 am

        You’re welcome.

        Reply
    6. Richard on December 15, 2019 2:20 am

      This tool has become completely useless for this use. Nothing changes now. You have to use an older version. v37.0 is a joke.

      Reply
    7. Garry on August 19, 2020 2:46 am

      doesn’t
      have the format specific options that is shown in this page 😕

      Reply
    8. NoNameRequired on November 8, 2020 11:21 pm

      Thanks.
      Works fine using v51.0.0 of MKVToolNix.
      Just select the audio and enter the delay in the right hand panel, under “Timestamps and default duration” section.

      Click “Start Multiplexing”.

      Reply
    9. gisto on January 1, 2021 12:33 pm

      thanks man, appreciate the updated info, worked a treat and super-quick as well.

      Reply
    10. Joffrey on November 4, 2023 9:29 pm

      Woo-hoo!! I learn something new every day. Thanks!

      Reply
    ← Older Comments
    Leave A Reply Cancel Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Latest Posts

    Transforming Geek Culture with Advanced Software Development

    April 8, 2024

    The Role of Technology in Enhancing Digital Signage Solutions

    February 21, 2024

    How to Check Linux CPU Usage?

    February 5, 2024

    Linux export Command: A Comprehensive Tutorial

    February 3, 2024

    [Fixed] HDMI No Signal to TV or Monitor on Windows 10/11

    November 7, 2023

    AlmaLinux vs Ubuntu – How to Select the Best One?

    October 22, 2023

    Subscribe to Updates

    Get the latest news and updates from Hectic Geek. We won't overload you or sell your data!

    Contact
    • About Us
    • Contact Us
    • Privacy Policy
    • Write for Us
    X (Twitter)
    © 2026 Hectic Geek.

    Type above and press Enter to search. Press Esc to cancel.