Log in

View Full Version : Appending h.264 video streams


bairradino
28th April 2009, 08:17
I have an AC3 audio steam of, let's say, 60 minutes.
I have also two H.264 video streams of, let's say 45 minutes and 15 minutes.
The question is: How can I append the two video streams for later muxing with tha audio stream, in order to get a final m2ts file?

roozhou
28th April 2009, 08:39
If you have two raw h264 streams, type in cmd:
copy /b 1.264 + 2.264 3.264
That's it

Snowknight26
28th April 2009, 09:24
That'll probably only work if they have the same CodecPrivate length.

bairradino
28th April 2009, 09:59
If I understood...
You mean that if I have the files "x1.m4v" and "x2.m4v" (note the extensions) I must type in the WinXP command (or in TsMuxeR?)copy /b x1.m4v + x2.m4v x3.m4v beeing "x3.m4v" the final file) ?

Dark Shikari
28th April 2009, 10:58
That'll probably only work if they have the same CodecPrivate length.No, it'll only work if the two have identical SPS and PPSs, or the second uses a different SPS-ID.

Otherwise, you have to re-encode.