From: Andrew Stevens <[EMAIL PROTECTED]> > > > cat video.m2v >> video2.m2v ; cat video.m2v >> video2.m2v > > > mv video2.m2v video.m2v > > > mplex -f 8 audio.m2a video.m2v -o output.mpg > > > > I think if I see cat used with MPEG-2 files one more time I'll > > scream.
> Actually, contactenating a MPEG-2 video elementary stream > (an .m2v) is *almost* concatenatable. You need to strip the > sequence end markers but thats about it That's what I wanted to hear! :) But how long is the sequence end marker? >From looking at the code I thought 0x1B7L, meaning stripping the last two bytes. So I did this: cat video.m2v | head -c -2 > video2.m2v cat video.m2v | head -c -2 >> video2.m2v cat video.m2v >> video2.m2v There seems to be more to it because now I get a: ++ WARN: [mplex] Data follows end of last recogniseable MPEG audio frame - bad stream? How many bytes do I need to cut at the end? > (provided the sequences > match in encoding parameters!!). They do. > Obviously, for a multiplexed program stream: cat - forget it ;-) I already thought that much. -- Lehmeier Michael <[EMAIL PROTECTED]> ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users