Answers.Body: <p><code>mkvinfo -v</code> outputs detailed info about which media frame from which track sits at which time position. So, the task boils down to finding the first mention of a frame from a particular track.</p>
  <p>For track 2 for example, the delay can be found this way:</p>
  <pre><code>mkvinfo -v file.mkv | head -n1000 | grep &quot;Simple block: key, track number 2,&quot; | head -n1 | grep -o '[0-9:.]\+' | tail -n1
  </code></pre>
  <p>The longer the expected delay is, the more first lines of <code>mkvinfo</code> output need to be analysed.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-11-02T03:00:14.583Z
Answers.LastActivityDate: 2024-11-02T03:00:14.583Z
Answers.UserDisplayName: Greendrake
Body: <p>When using <a href="https://mkvtoolnix.download/doc/mkvmerge.html" rel="nofollow noreferrer">mkvmerge</a> to create MKV files, it is possible to specify the <code>--sync</code> parameter to apply a delay to audio tracks.</p>
  <p>Is there any way to find out applied delays (if any) in an existing MKV file?</p>
  <p>(<code>mkvinfo</code> does not seem to show them).</p>
  
Tags: <sync><mkv><matroska>
Title: How to find out the delay applied to audio tracks in an MKV file?
UserDisplayName: Greendrake
ThreadText: # How to find out the delay applied to audio tracks in an MKV file?
  
  (Asked by: username_0 on 2024-11-01)
  
  When using [mkvmerge](https://mkvtoolnix.download/doc/mkvmerge.html) to create MKV files, it is possible to specify the `--sync` parameter to apply a delay to audio tracks.
  
  Is there any way to find out applied delays (if any) in an existing MKV file?
  
  (`mkvinfo` does not seem to show them).
  
  **Tags:** sync, mkv, matroska
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2024-11-02. Score: 1 | Accepted answer
  
  `mkvinfo -v` outputs detailed info about which media frame from which track sits at which time position. So, the task boils down to finding the first mention of a frame from a particular track.
  
  For track 2 for example, the delay can be found this way:
  
  ```
  mkvinfo -v file.mkv | head -n1000 | grep "Simple block: key, track number 2," | head -n1 | grep -o '[0-9:.]\+' | tail -n1
  
  ```
  
  The longer the expected delay is, the more first lines of `mkvinfo` output need to be analysed.
  
  
  ---
  
  