[MPlayer-users] how do I make mplayer dump uncompressed rgb data?

Jason Tackaberry tack at sault.org
Thu Jun 3 03:41:11 CEST 2004


On Wed, 2004-06-02 at 16:25 -0400, Amadeus W.M. wrote:
> then have my application read from video. But this will dump the
> undecoded video stream, is this correct? Is there any way to 
> make mplayer output the uncompressed rgb images to the named pipe?

This is only loosely tested.  It might not work at all, but I think it
does.  (At least the resulting file size was a multiple of
width*height*3 and looked RGB24ish.)

mencoder movie.avi -ac none -ovc raw -vf format=rgb24 -of rawvideo -o fifo

You can add any filters you need to the filter chain and it should Just
Work (if you want to any image processing before handing it off to your
app that reads from the fifo).  If you want a different format than
RGB24, you can just specify a different fourcc value.

Cheers,
Jason.




More information about the MPlayer-users mailing list