Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am quite new in the area of audio/video manipulation so apologies if the question is obvious. I did not manage to find an answer online, though.

I have a MKV file with several tracks: video (MPEG4), audio (DTS EN), audio (AC3 FR) and subtitles. I wanted to extract the video and French audio, then merge them back into an MKV file. I did this via mkvextract and mkvmerge (without any specific options). The MKV file I got is playable but the audio is shifted (by 10 or so seconds). The audio in the original file is fine for both languages (ie. it is correctly synchronized with the picture).

I guess that there should be a way to align the video and audio, though I do not really understand why they are shifted since I did not do any manipulations on the extracted files.

I would be grateful for any hints. Thank you

share|improve this question
What operating system are you on? – daviesgeek Aug 17 '11 at 23:14

Use mkvmerge with -y or --sync

                       Synchronize, adjust the track's timecodes with

                       the id TID by 'd' ms.

                       'o/p': Adjust the timecodes by multiplying with

                       'o/p' to fix linear drifts. 'p' defaults to

                       1 if omitted. Both 'o' and 'p' can be

                       floating point numbers.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.