On Wed, Nov 28, 2001 at 11:29:25AM -0500, Michael Joyner wrote: | Would someone please supply a sample program | to read an AVI file and dump to STDOUT as YUV420P ? | | I am wanting to setup a piping arrangement whereas I can | read from avi file and pipe into mpeg2enc for VCD creation.
It might sound odd, but try the mjpeg-square tools ( mjpeg.sourceforge.net ). One of the utilities in the lavtools sub-project is called "divxdec", which does pretty much what you want. It can emit YUV4MPEG on stdout. The name is misleading; it uses avifile to access the source material, so should be able to handle anything that avifile can. (The name reflects its original goal) The mjpeg-square project has howtos on using the mpeg2enc tools with the YUV4MPEG format. (Though I've never used mpeg2dec myself) You'll have to use the CVS version or CVS snapshot however, as it was only added a short while ago. Hope this helps. _______________________________________________ Avifile mailing list [EMAIL PROTECTED] http://prak.org/mailman/listinfo/avifile
