PDA

View Full Version : MKV to M2TS...


Dreamhacker
25th June 2009, 22:15
I recently bought a Playstation 3, and now I want to stream all my video content from my HDD to the TV through it.

But, as the PS3 does not support MKV, I need to put them into a format that is compatible with the PS3. With most of my HD files, I sorted this with tsMuxer, as they contained AVC and AC3 streams.

Problem is that now I need to convert MKVs that do not contain AC3 streams, but AAC streams.

What I did try was to demux the MKVs and mux the video and audio streams into the M2TS container. The result is that the audio is way out of sync. And I don't know why this happens.

Any suggestions to why this happens?

rack04
25th June 2009, 22:19
Without knowing how you demuxed the mkv and muxed to m2ts there is no way to know why the audio is out of sync. Try tsMuxeR.

Dreamhacker
25th June 2009, 22:28
I demuxed with MKVExtractGUI and muxed with tsMuxer. It should not matter how the demux was done, the streams would be not different in any case? Or?

sneaker_ger
25th June 2009, 23:27
Have you set the fps of the video in tsMuxer correctly?

You may also want to try out mkv2vob (http://www.mkv2vob.com/). It can remux MKVs so that the PS3 can read them without having to reencode AVC or AC3 data.

LUCHOO
26th June 2009, 13:58
try....demuxed with Eac3to and muxed with tsMuxer ....

Dreamhacker
27th June 2009, 01:15
I downloaded Eac3to, and tested this "Clown" program that was included. Funny enough, it sees the video stream of the MKVs as an audio stream.
Does that make sense in any way? It surely explains why tsMuxer talks about an unsupported stream when I run the files through it, though.

EDIT: Log says: "Bitstream parsing for track 1 failed. <WARNING>"

setarip_old
27th June 2009, 02:34
@Dreamhacker

Hi!

If you do a simple Googlesearch for "PS3+AAC" (without the quotes), there are loads of postings that appear to indicate that PS3s will playback videos containing AAC audio. If so, no reason to convert...

Dreamhacker
27th June 2009, 10:52
@Dreamhacker

Hi!

If you do a simple Googlesearch for "PS3+AAC" (without the quotes), there are loads of postings that appear to indicate that PS3s will playback videos containing AAC audio. If so, no reason to convert...
The problem is that the PS3 doesn't support the MKV container, while it does support the formats inside. Which is why I wanted to just remux the files. But after remux, the audio and video is not synced.

EDIT: If I change the FPS from 29.97 (which tsMuxer detects) to 23.97 or 24 FPS, the file becomes more synced, though not perfectly it looks like.

sneaker_ger
27th June 2009, 14:19
EDIT: If I change the FPS from 29.97 (which tsMuxer detects) to 23.97 or 24 FPS, the file becomes more synced, though not perfectly it looks like.

Use "24000/1001" (=23.976...) to get the fps right. If it still is not in sync it may be a file with variable framerate (And thus setting a constant framerate will ruin the sync). Extract the timecodes with mkvtoolnix and upload them here.

m3mbran3
27th June 2009, 15:43
As sneaker_ger says, just get mkv2vob. It will fix all your problems.

Dreamhacker
27th June 2009, 16:35
As sneaker_ger says, just get mkv2vob. It will fix all your problems.

mkv2vob does exactly the same as tsMuxer, just that it muxes into a vob container? How is that any different from what I'm already doing?
And it still doesn't explain why it won't sync the audio to the video correctly at any frame-rate. :S

EDIT: Added the information from mkvtoolnix. But there isn't enough upload space to upload timecode for all three tracks too. :S

Rapidshare link for the timecodes: http://rapidshare.com/files/249253886/TimeCode.rar

setarip_old
27th June 2009, 19:34
@DreamhackerEDIT: If I change the FPS from 29.97 (which tsMuxer detects) to 23.97 or 24 FPS, the file becomes more synced, though not perfectly it looks like.

1) What is the video framerate of your original source material (presumably a BluRay disc), from which you made the MKV?

2) What software and procedures did you use to rip your original source material and convert it to MKV?

Dreamhacker
27th June 2009, 20:15
@Dreamhacker

1) What is the video framerate of your original source material (presumably a BluRay disc), from which you made the MKV?

2) What software and procedures did you use to rip your original source material and convert it to MKV?

1) 29.97 FPS, I think. It's retail R1 DVDs.

2) I cannot recall, a while ago now.

But, I tried to extract the AAC from the MKV, and for some reason MPC-HC lets me choose those extracted files as audio-source when I playback the original MKV. And it's totally out of sync, video moves faster than the audio.

So, is there something in the container that specifices how fast the sound should be played? If so, is it possible to transfer that something to the m2ts container?

setarip_old
27th June 2009, 20:51
It's retail R1 DVDs.Since it's not BluRay/HiDef, then why don't you just take a few minutes to make a backup copy of your original DVD, so that it will have acceptable audio as well as video - and you'll have no problem with synch?

Dreamhacker
27th June 2009, 22:13
Since it's not BluRay/HiDef, then why don't you just take a few minutes to make a backup copy of your original DVD, so that it will have acceptable audio as well as video - and you'll have no problem with synch?

Well, the reason I convert it to x264 is because a DVD takes quite some space.

Though, it's a lot of hassle due to the interlacing on many of my DVDs, so might be better to just store them in the original format.

But is VOB an ideal container for storing it? Or should I remux it into something else? (Know nothing about the VOB-structure. :p)

sneaker_ger
28th June 2009, 00:40
I had a look at the timecodes and it seems to be VFR content so you can't just remux the data. (Or does m2ts support VFR? - I don't know...)

Dreamhacker
28th June 2009, 00:53
I had a look at the timecodes and it seems to be VFR content so you can't just remux the data. (Or does m2ts support VFR? - I don't know...)

That surely makes it a lot harder to swap container, I'd assume. I might as well just re-rip the thing. :p

setarip_old
28th June 2009, 01:10
because a DVD takes quite some space.And hard drive space has become ridiculously inexpensive lately ;>}

Dreamhacker
28th June 2009, 11:29
And hard drive space has become ridiculously inexpensive lately ;>}

That is very true, I guess. :p

Still, should I store it in the VOB container when I rip it without re-encoding?

EDIT: I tried to rip the VOBs, and put the contents into a .m2ts container... Problem is that my PS3 which I stream to, will not read the subtitles like this. :(

Is it possible to kinda do a direct re-encode from MPEG-2 to MPEG-4, without trying to reduce it size and stuff, so you basically transforms a 1GB MPEG-2 video to a 1GB MPEG-4 video with same quality?