On Sat, 17 Jan 2004, James Finnall wrote: > What I need is for jpeg2yuv and/or ppmtoy4m to have an option to > strip the format info. So that the output files can be cat'd > together. Of course the first time it is called, include the > format, but then an option to continue the sequence. In that > situation it would be the responsibility of the creator to insure > that all files are equal qualities that match the original format. > Or a separate util to strip the format info. Also, mpeg2enc could > be instructed to ignore subsequent format info.
Or you could do what I did. I wrote a program called y4mcat, that works like cat but for y4m files. It reads the header from each file first, and if they all match, properly cats them stdout. By reading the header first, you avoid running mpeg2enc for 10 hours only to find out one of your jpg files was the wrong resolution. Not that I've ever done that. If there is an interest, I'll submit it to the mjpegtools project. I added support for syntax such as: lav2yuv foo.el | y4mcat header.y4m - "|ppmtoy4m -n 10 -r image.ppm" | mpeg2enc That would cat the y4m file (or pipe) called header.y4m, the output of lav2yuv as the standard input, and them the output of the ppmtoy4m command. I even added support for the sendfile() syscall for y4m files. It lowers CPU usage a lot, not that cating a file uses much, but it's still an impressive improvement. ------------------------------------------------------- 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