Hello guest, if you like this forum, why don't you register? https://forum.fanres.com/member.php?action=register (December 14, 2021) x


Sync separate audio track to mkv file

5 Replies, 1472 Views

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

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

ID                          : 1
Format                      : AVC
Format/Info                : Advanced Video Codec
Format profile              : [email protected]
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?
How is it out of sync? Is it constantly out of sync by the same amount throughout the film or does it gradually go out of sync?
I believe it's constant. If the desync increases as the film goes on it's barely noticeable.
Then I guess you need to find out by how much it's out of sync and remove some audio at the beginning or the end.

I'm not the best person to ask for this, I would open the film and the separate audio source in a video editor to find out exactly how out of sync they are and trim the audio that way.
Ok, I'll try that. Thanks for the reply.
Best way I find is play the file in VLC, use J and K on your keyboard to adjust the audio until it gets to the point that it is in sync. Make a note of the plus or minus figure and then download a program called delaycut. Open the audio file in that, enter the delay and adjust the file. Then mux it to an MKV with the new audio file, play it again in VLC, check it's all in sync, if not repeat the process.

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to decode 6-track APTX-100 (cinema DTS) with the correct channel levels pipefan413 36 6,860 2023-03-09, 04:34 PM
Last Post: spoRv
  [Help] AC3: What's happening to this track? TucoRamirez 6 4,408 2022-06-14, 07:36 PM
Last Post: BDgeek
  Mixing 5.1 Audio with LD PCM alleycat 3 1,591 2021-12-23, 01:31 PM
Last Post: maksnew
  DTS-HD Master Audio and bitrate (PBR) smoothing pipefan413 4 2,152 2021-10-20, 11:59 AM
Last Post: karbre
  [Help] Sync audio to video (different fps and rips) JackForrester 14 1,629 2021-09-05, 01:57 AM
Last Post: JackForrester
  DVMUXER - Dolby Vision with LPCM Audio bronan 27 8,161 2021-04-19, 03:37 PM
Last Post: bronan
  [Help] 4GB WAV file limit? NeonBible 5 1,174 2021-03-28, 10:08 PM
Last Post: pipefan413
  H.266 Codec = 50% Reduction In File Size marin888 8 1,816 2020-07-07, 02:59 PM
Last Post: spoRv
  Issue Exporting Audio in Premiere Croweyes1121 16 4,943 2020-02-28, 06:13 PM
Last Post: TomArrow
  How to add a flag Surround, EX or ES on a track? Falcon 5 2,636 2020-01-22, 07:55 PM
Last Post: schorman

Users browsing this thread: 1 Guest(s)