I have the following :
- a mkv file (let's call it A) with video, audio and subtitles correctly synchronized.
- another mkv file (let's call it B) with video and audio also synchronized but without subtitles.
Both files are the showing same content but with different video/audio quality (B is much better than A). I would like to transfer subtitles from A to B. Both video streams are at 25 FPS but B contains a duplicate frame every 24 frames (it's probably the result of a 24 to 25 FPS conversion). Other than that, frames perfectly match (if we ignore the fact resolution is different).
I was wondering if there was a tool/method/script (even commercial) that would allow to me to sync subtitles with B automatically, using A video stream as reference and knowing it's perfectly synchronized.
For every frame in A, it's possible to find an almost 1:1 matching frame in B, so theoretically it should be possible to sync subtitles automatically.
What I already tried :
With Subtitle Edit : slowing down subtitles from 25 to 24 FPS and applying a given offset (since A and B do not start at same time). At first glance, it seems to work but after 15-20 minutes, subtitles start being unsync and it just get worse with time.
Additionally, I have notified that B contains additional content that A does no have (eg: there is a 10 seconds intermission in the middle of the stream).
EDIT: downvoters are invited to tell or explain what's wrong with this question.