Automatically calculate delay between 2 vidéos

Hello,

I do’nt know if it is possible. I have several files I want to merge together to get 1 vidéo with several audio and subs
1 files is vidéo with japanese dub
1 files i vidéo with english dub + subs
and so on

I want to keep only 1 vidéo (let say the one with english dubs) and merge the dubs of the other files excluding vidéos.

but the thing is it is possible, even if it is not happening often at all, that 1 video is a bit delay in comparison to the others. This would lead if i just merge to some audio and sub not synchronized with the video.

is there a way to make a comparison vidéo per video to know if one is delayed and calculate this delay in millisecond ?

In general not really, at least not with MKVToolNix. This would require analyzing video frames & finding out the timestamps of identical sections in both files. MKVToolNix doesn’t contain such functionality. I don’t know of any program that does. Doesn’t mean there isn’t one, of course.