View Full Version : mfvmerge commandline audio delay
Penecho
12th November 2007, 14:18
Hi, i have a *.mkv file with an audio track in it. Now i want to add a 2nd Audio Track with a certain delay. How can i add the 2nd Audio Track with the delay to the *.mkv i have via the command line!?
I meant mkvmerge in the topic :)
Cu
unskinnyboy
12th November 2007, 14:46
--sync x:yyyy flag, where x is the track id and yyyy the delay. Read the docs!
Penecho
12th November 2007, 14:55
I read the docs btw.
I tried that, but this only works if the audio is already in the *.mkv file.
i want to add a 2nd audiotrack with delay in 1 step!
When the audiotracks are not already muxed, they all have id:0 !
Cu
unskinnyboy
12th November 2007, 15:28
OK, so the video and audio in the .mkv file have track ids of 0? Can you remux your file in mkvmerge with default track flag set to 'yes' for both the tracks? I am thinking this should assign them track ids of 1 & 2 respectively. Now, if you add in the 3rd track, it should have a track id of 0 before muxing and after muxing, a track id of 3.
Penecho
12th November 2007, 15:33
But i still cant add a track and set a delay in 1 step!?
So i have to merge it, and set afterwards the delay, when the track is laready muxed and has an ID!
But im looking for a way to add a track with delay in 1 step via commandline! is that not possible?
Cu
unskinnyboy
12th November 2007, 15:40
I suggested remuxing the file only because I thought you said they all have track ids of 0. Otherwise, you shouldn't have to. How was this .mkv created anyway? Also, just to make sure I am understanding the issue properly, can you show me a screenshot of the file opened in mkvmerge GUI, with the new AC3 file added in as the input (don't mux them yet)? I just want to see the track ids.
Koti
12th November 2007, 16:37
Quite possible
"mkvmerge" -o "J:\A Tail of 2 Kitties New .mkv" --default-track 1:yes --display-dimensions 1:608x336 --default-track 2:yes -a 2 -d 1 -S "J:\A Tail of 2 Kitties.mkv" --sync 0:-32 -a 0 -D -S "J:\T01 3_2ch 448Kbps DELAY -32ms.ac3" --track-order 0:1,0:2,1:0
is the added audio track with delay
Penecho
13th November 2007, 14:54
it worked :)
I did not use the default track commands!
can i add --language 2:ger --language 0:eng so the audio tracks have names!?
Cu
unskinnyboy
13th November 2007, 15:09
can i add --language 2:ger --language 0:eng so the audio tracks have names!?Yes. Why not try first before asking? Isn't it simple enough a thing to do?
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.