[MPlayer-dev-eng] [PATCH] adding yuv4mpeg output

D Richard Felker III dalias at aerifal.cx
Sat Feb 9 04:32:15 CET 2002


On Sat, Feb 09, 2002 at 03:17:48AM +0200, Arpi wrote:
> Hi,
> 
> 
> > Converting videos to VCD using mjpegtools requires getting the video into
> > yuv4mpeg format.  This adds support for that format via a new "-vo
> > yuv4mpeg" command option.  The output is written to "stream.yuv".  This
> > makes it easy to have mplayer pump frames into an encoder by making a fifo
> > on stream.yuv, having mplayer pump frames into it, and having mpeg2enc
> > pull frames back out of it for encoding.  (Use the "-benchmark" option to
> > mplayer for maximum speed if your CPU is quick at encoding.)
> > 
> > Add the vo_yuv4mpeg.c file to mplayer's libvo directory, apply the patch,
> > and rebuild.  (Patch is against current mplayer CVS as of 1/31/02).
> 
> patch applied.
> btw, you should use the mmx optimized rgb->yv12 converter from postproc/
> instead of rewritting it in slow C...

putting this in libvo raises the question...shouldn't this type of
thing eventually be mencoder's territory? right now mencoder only
supports avi, but it'd be nice if we could eventually get mpeg
(including vcd-compliant), ogg, and asf muxers working with it. might
it even be appropriate to also move png, yuv4mpeg, etc. output to
mencoder at that point, if we ever get there?

rich




More information about the MPlayer-dev-eng mailing list