On Mon, 2 Feb 2004, Dragon_at_work wrote: > > (yuv4mpegsource1; yuv4mpegsource2; yuv4mpegsource3; ... ) | mpeg2enc > For some reason this did not work for me: The shell complained "permission > denied". Running as root yielded same results.
By yuv4mpegsource1 and so on I meant a program, script or shell function that emitted y4m output. It sounds like you tried to execute the y4m files. Using 'smil2yuv' as an example (it's what I use to convert DV to y4m): -------------- #!/bin/sh skip1() { read junk cat return 0 } smil2yuv file1.dv; smil2yuv file2.dv | strip1; smil2yuv file3.dv | strip1) | mpeg2enc -f 8 -o output.m2v -------------- Needless to say all the streams have to have identical attributes (frame size, etc). > > Just use a simple shell function to strip off the extra header from > Not sure if I follow you. I took a group of y4m files. The first was Where did I lose you? ;) At the strip off the extra header? That's what you did the hard way with a hex editor. > unchanged. And the rest were all edited to remove the first 28(hex) bytes > that seemed to be the header information. (This far seems to work and I > verified the edit with Khexedit). Using a shell function to simply read the first line and discard it is a lot easier I'd think than hexediting the y4m files. Did you leave the FRAME\n at the beginning with nothing (such as an extra \n) before it? > The result was just like the former results: The first 'segment' plays, and > then mplayer claims the end of file has been reached and exits. Then mpeg2enc didn't get the complete y4m stream. My hunch is that the editing of the files wasn't exactly correct. The y4m routines will declare an end of file if the format isn't exactly correct - i.e. if FRAME\n isn't seen when the next frame is read. mpeg2enc tells you how many frames it processed. Did the last frame number from mpeg2enc match the expected number? If not then the stream was ended prematurely. Cheers, Steven Schultz ------------------------------------------------------- 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