PDA

View Full Version : Help with joining m2ts streams


picrade
13th September 2010, 22:06
I have two m2ts streams which I want to join so that it plays as seamlessly as possible.
Both streams have the same video type, h264, and audio type, dts.

I tried both tsMuxer alone and eac3to + tsMuxer to join the streams.
In both cases the join seems to be fine. I didn't notice any pause or stuttering at the join point that some have mentioned.

But here is the problem: About a couple of minutes past the join point and into the second stream the sound stops.
It just goes mute.
A minute or so after that the video freezes.

What explains this behavior?
Since both streams play perfectly individually and the join seems to have worked fine.

--------------------
Supposing the join is the problem and somehow the timing or whatever gets messed up when joining, what is the alternative?

I used BDedit to make two titles of the the two streams so after the first one is played it jumps to the next.
But there is a considerable pause at the jump point.

The other alternative will be to do seamless branching like they do on commercial discs.
I take it that both m2ts streams need to be in one mpls file.
Can this be done with BDedit and/or hex editing some files?

setarip_old
13th September 2010, 22:53
Hi! Both streams have the same video type, h264, and audio type, dts.But is EVERYTHING about the audiostreams and videostreams IDENTICAL (resolution, fps, bitrate, sample rate, etc.)?

Inspector.Gadget
14th September 2010, 00:48
Start from the Blu-ray and use eac3to to demux the relevant playlist. There are problems with gaps of various sizes at the end of some M2TS files used particularly in cases of seamless branching or similar; a binary join-ed file may end up feeding the audio decoder nothing or may desync.

picrade
14th September 2010, 18:16
Hi! But is EVERYTHING about the audiostreams and videostreams IDENTICAL (resolution, fps, bitrate, sample rate, etc.)?

Yes, according to BDInfo both streams have identical video/audio specs.

I used eac3to to demux/join the streams.

eac3to -demux 00001.m2ts+00002.m2ts

I got two joined elementary streams, audio and video.

When I play the joined elementary streams in PowerDVD they both play fine to the end without a hitch.
So the joined elementary streams seem to be OK.

But when I mux the elementary streams using tsMuxer then trouble starts after the join as described.

setarip_old
14th September 2010, 22:31
In order to avoid people having to guess what you're dealing with, please state the specifics of the original source material (The source(s) for the two .M2TS files) - and post a screencapture of the BDInfo screen...