[MPlayer-users] incorrect handling of palettized video?

Edwin Olson eolson at mit.edu
Sun Mar 5 01:27:18 CET 2006


(Version MPlayer 1.0pre7try2-3.2.3 )

I have a number of MSRLE videos which use frequent palette changes, but 
it appears that mplayer doesn't properly change the palette.  This 
problem appears to be related to several other postings.

The MSRLE codec comes from libavcodec, and the libavcodec avi parser 
appears to properly parse 00pc chunks from the AVI stream, but it 
appears that mplayer (libmp) has its own avi parser (?) that doesn't.  
(Aside: does anyone know of a program that uses the libavcodec avi parser?)

An example AVI file (460KB) is here:

http://www.blisstonia.com/eolson/msrle_pal.avi

It plays correctly on Windows (using WMP10), but incorrectly on mplayer 
(you should see a light blue drawing with yellow text on a black 
background). Specifically, mplayer's palette seems to be random junk, 
and it appears that 00pc chunks are being passed to the decoder as 
though they were 00dc chunks (which results in the codec complaining 
about illegally formatted chunks as well as garbage in the displayed video.)

Movies in which the palette is included in the BITMAPHEADER section of 
'strf' appear to be played correctly, provided there are no other 
palette changes.

Any ideas? Thanks-

-Ed




More information about the MPlayer-users mailing list