Log in

View Full Version : Muxing H264 with DTS into MKV. Audio sync problem


cool_recep
21st May 2009, 18:53
Hi, guys.

I have a H264 TS file with two audio tracks. When I open the file with MPC Homecinema, Chinese Track becomes active and the other English track does not show up.

When I open it with VLC, English track becomes active...

I have demuxed H264 video and DTS audio, the english one.

When I open ther file with TSMuxer, first track has 43 ms, second track has 214 ms delay.

I removed the second track, the AC3 Chinese one, and the video became soundless.

I remux H264 and DTS track with MKVMerge GUI with either 214 ms or 43 ms but no luck. The audio becomes async.

I am muxing again with MKVMerge and look for the delay with VLC.

But as I am ultra n00b I am asking for your advices.

Thanks in advance.

Inspector.Gadget
21st May 2009, 20:57
Check delay with DGAVCDec.

cool_recep
21st May 2009, 22:18
Check delay with DGAVCDec.

Thank you for your reply but I was enough n00b to not to be able to check the delay with DGAVCDec

But....

I have solved the problem :)

FOA I had the same movie in 720p format. I have investigated it's values.

I saw that MKVToolNix showed FPS as 24000/001 for 720p.

When I add the 1080p one to MKVMerge GUI, it was giving error about FPS, making it 25 by default.

What I have done was to set FPS for 1080p one to 24000/001 altoughh original FPS was 25.

Remuxed again with these settings and bingo! Works flawlessly.

setarip_old
22nd May 2009, 08:33
@cool_recep

Hi!

Congratulations on resolving your dilemma - but what you've described is mystifying to me.

Why and how, from presumably the same source (I'm guessing a BluRay disc) did you create two .TS files at two different framerates?

dat720
22nd May 2009, 09:40
I suspect he was adding a raw h264 stream, and in that case MKVToolnix shows a warning (not error) that it cannot detect the frame rate of raw h264 and requires the user to manually set the rate.

The original rate was most likely not 25fps but MKVToolnix was defaulting to 25fps as it cannot detect the rate....