Log in

View Full Version : MKVmerge Batch File - Delay Audio


tosh9i
16th August 2011, 17:05
I've re-encoded some videos, but all of them are out of sync by about -380ms (note: it's actually "rushed", and I need to move the audio back and not forward). I was hoping that someone could help me create a batch file that would delay the audio of track 2 (ID 2) by about -380ms. I have about 40 files that need to re-synced.

Previously, some people helped me create a batch file to remux some files, and I'm thinking that the second half just needs to be modified:
FOR %%A IN (*.mkv) DO mkvmerge -o "remux-%%~nA.mkv" "%%~A"

sneaker_ger
16th August 2011, 23:08
Try
FOR %%A IN (*.mkv) DO mkvmerge -o "remux-%%~nA.mkv" "--sync" "2:380" "%%~A"

tosh9i
17th August 2011, 02:06
Try
FOR %%A IN (*.mkv) DO mkvmerge -o "remux-%%~nA.mkv" "--sync" "2:380" "%%~A"

works like a charm, you're a lifesaver sneaker_ger. Thanks.