View Full Version : MKV demux/remux sync tool
McFlipp
12th September 2006, 09:26
I've encoded a 720p *.ts stream to x264 with mkv container. But at some place it is out of sync. Now i want to cut the file in pieces, demux, remux with proper delays, put all the parts back together so i have the complete file again, but than in-sync.
But i can't find an appropriate tool. MKVtoolnix put's a beep at the place of the delay and when i want to combine al the synced parts in the end it says it can't do it, because the parameters are different or whatever...
So which program should i use to get it in sync?
Oxygen
12th September 2006, 11:44
But i can't find an appropriate tool. MKVtoolnix put's a beep at the place of the delay and when i want to combine al the synced parts in the end it says it can't do it, because the parameters are different or whatever...
Funny i had the same issue of desynch with x264/mkv from a ts encode a few times not a while ago.
What you should do:
1. split where the desynch occurs
2. delay the audio for the whole file, then split again
3. append the different parts
Of course, the first segment have to be in synch. Also, mkvtoolnix will only split at a B-frame as far as i understand. Shoudln't be an issue as the desynch mostly accurs a a scene change so you should be fine.
McFlipp
12th September 2006, 11:59
Yeah i'm doing it the way you say ;) I had one big *.mkv file first. Then i split that one into 2 parts. The first part was ok, but the second part wasn't in-sync. So i delayed the whole audio. Then i split that part again because further along in that part the audio went out of sync again. Well i synced that etc etc etc.
After i was all done i had like 4 parts that i needed to append. But when i tried doing that with mkvtoolnix it give me an error saying "the parameters don't match" or something like that.
Oxygen
12th September 2006, 12:42
Anyhow, you should ask in the mkv forum (well alternative container forum to be exact): http://forum.doom9.org/forumdisplay.php?f=74 as it is more a mkv issue than a x264/avc one it seems.
Do you change any of the ratio/speed settings between your splits ? (even if it shouldn't be an issue for mkv)
And finally, did you manage to append the splitted file (may sound stupid but if that simple operation doesn't work, you have a larger issue i'd say ;))
foxyshadis
12th September 2006, 19:44
Of course check to be sure you have the latest version of mkvtoolnix; I can't remember if it was in 1.7.0 or in one of the later alphas, but at one point Mosu added the ability to merge streams with different headers. It might be happening due to the new audio delays, no idea.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.