On Mon, 9 Aug 2004, Kevin DeGraaf wrote:
> I have video.m2v, generated by concatenating multiple files generated by a
> ppmtoy4m/mpeg2enc pipeline, and audio.mp2, generated by mp2enc.
Patient: Doctor Doctor, it hurs when I do <that>
Doctor: Well, don't do <that>
;)
The subject of catenating .m2v files has come up many times on the
mailinglists and the answer has pretty much always been the same:
"Don't do that!".
The mjpeg-users list is searchable, doing a search on "catenate" I found
a couple of pointers that should be useful. Look for subjects such
as "How to concatenate mp2/m2v files" or "concatenate multiple yuv
streams".
> $ mplex -v 0 -f 8 -S 0 -o movie.mpg video.m2v audio.mp2
>
> **ERROR: [mplex] Need to split output but there appears to be no %d in the
> filename pattern movie.mpg
Right - .m2v files have 'leadin' and 'leadout' sections (or "start"
and "end" of stream headers). mplex sees the first "end of sequence"
indication in video.m2v and is reading to start multiplexing the
next sequence - which means a '%d' in the output file name format.
> I want a single file, so using a "%d" format specifier is not a solution.
Then encode the video as *1* stream and not a collection of sequences
appended to each other.
> Any ideas?
Yep - see:
http://sourceforge.net/mailarchive/message.php?msg_id=7062018
Basically you have as many "generators" inside a (subshell )
as you need separated by ';'. Then feed the continuous y4m stream
into the encoder. The only thing you need to do special is remove
the YUV4MPEG2 header from all but the first part of the input stream.
Then mplex will do the entire sequence into one file (the default for
1.6.2 was changed to be unlimited so no -S option should be necessary
for the DVD format).
Good Luck!
Cheers,
Steven Schultz
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users