Sign In

Help - Sync separate audio track with mkv file

Author
Time

Hello again,

This sounds like a very simple task but I can’t make it work. I’ve been using MKVToolNix-Gui to mux audio and video but the audio won’t sync.
Audio file is a foreign track that contains the french dub of the film that I would like to include in the mkv file. Audio was extracted from an avi file (Dvdrip). Both files, the Dvdrip and the mkv are identical. Same length, no different logos at the beginning, no extra scenes.

Here’s the media info of the extracted audio file:

Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
File size : 287 MiB
Duration : 2 h 5 min
Overall bit rate mode : Constant
Overall bit rate : 320 kb/s

Audio
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Duration : 2 h 5 min
Bit rate mode : Constant
Bit rate : 320 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Stream size : 287 MiB (100%)
Service kind : Complete Main

And the media info of the video:

Format : Matroska
Format version : Version 4
File size : 12.0 GiB
Duration : 2 h 5 min
Overall bit rate : 13.7 Mb/s
Encoded date : UTC 2010-02-22 21:41:29
Writing application : no_variable_data
Writing library : no_variable_data

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 2 h 5 min
Bit rate : 13.3 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.267
Stream size : 11.4 GiB (95%)

I’ve been told to change the fps of the video to 25 on MKVToolNix before mux since it’s possible the Dvdrip was made from a PAL disc. It didn’t work, audio is still out of sync. Any ideas what am I doing wrong?

Fanedits: Twin Peaks Fire Walk With Me: Extended Blue Rose Cut / Blair Witch 2: Recut / Sinister: Recut / The Vanishing: Recut

Author
Time

If both the audio and the video is in the same duration, as you have described, then you need to apply delay to the demuxed audio stream.

Go back to your mux’ing software (TSMuxer or MKVToolNix) and find the delay feature. Load the same video and audio streams.

If your remixed video has the sound before the actual time (ex. you hear spoken words before the lips move), then in the muxing software select the audio stream and apply a value in the delay box. Start off with a value of 100. This will nudge the audio stream forward.

If your video has the sound after the actual time (ex. you hear spoken words only after the lips move), then in the muxing software select the audio stream and in the delay box put a ‘minus’ sign and then the value (-100)–DO NOT PUT THE PARENTHESIS IN THE DELAY BOX. This will nudge the audio stream backward.

You may have to play with the values until you are satisfied with the results.

Good luck to you.

Author
Time

I’m glad that what I have suggested to you have worked out for you.