Take the 2-minute tour ×
Video Production Stack Exchange is a question and answer site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.