Log in

View Full Version : Reversing Audio Delay In MKV File


Danette
23rd October 2019, 21:36
I have numerous x264 MKV files where an audio delay was applied during muxing (accidentally left the box checked in MKVBatch). Unfortunatley, demuxing the MKV and then muxing it with the opposite audio delay (a negative) does not quite do it, in either MKVBatch or MKVToolNix.

Is there a code in the MKV file that can simply be removed to strip out any delay instructions ...or is this too much wishful thinking?

Any suggestions would be appreciated.

StainlessS
23rd October 2019, 21:45
I have no idea at all if this will work, but, have you tried muxing with delay of 0.0 ?,
It kinda depends on how the delay works.
(maybe delay is just a number, make it zero and maybe removed, try it).

EDIT: OK, Sneaker gave more informed answer below.

sneaker_ger
23rd October 2019, 21:46
Do not demux. Mux from mkv to mkv using mkvmerge with the negate of the delay you originally used.

If you demux all delay info gets lost. It will work only if all streams were aligned to each other to begin with and you only applied positive delays to the audio.