On Wed, 17 Mar 2004, gregory duchesnes wrote: > I read the post by Richard Ellis called "How to concatenate mp2/m2v files > for multiplexing", which gave me some very useful info (especially the > answers from Steven M. Schultz). I do understand that the solution is > something like this :
Then you should have also seen the answer to your next question ;) > (jpeg2yuv -j folder1/img%05d.jpg -f 25 -I p ; jpeg2yuv -j > folder2/img%05d.jpg -f 25 -I p ; jpeg2yuv -j folder3/img%05d.jpg -f 25 -I p) > | mpeg2enc -o result.m2v > > What i don't understand is a to strip the headers from all yuv streams > except the first one. I'm kind of newbie in shell programming and i really > don't know how to do this. Define a shell function at the top of the file, I use 'skip1' skip1() { read junk cat } That simply reads the first line from stdin (which is the YUV4MPEG2 header) and then uses 'cat' to pass the rest of the data thru untouched. So something like this: jpeg2yuv ... ; \ jpeg2yuv ... | skip1 ;\ jpeg2yuv ... | skip1 ... ) | mpeg2enc ... will do what you want - use the skip1 function on all but the very first part of the yuv production. Ideally the YUV4MPEG2 API should ignore additional headers IF they match completely the existing parameters of the stream. Cheers, Steven Schultz ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users