[MPlayer-dev-eng] MPlayer and raw video

Mats Peterson matsp888 at yahoo.com
Thu Feb 25 08:13:25 CET 2016


Since there for some reason hasn't been any response to my previous 
posting, here we go again:

MPlayer naively assumes that 'rawvideo' raw video from libavcodec 
(whether it's contained in AVI, QuickTime or something else) contains 
24-bit RGB triplets. It *can*, for pixel formats like rgb24 and bgr24, 
but it can also be less than 24 bits (palettized, grayscale or 
monochrome). Anything that's not compressed/encoded.

What's more, MPlayer misinterprets a negative height in the 
BITMAPINFOHEADER for AVI files as being a very large unsigned value, 
rather than the indication of the video data being arranged 
top-to-bottom rather than bottom-to-top.

The files below with raw video will play without video in MPlayer.

QuickTime 1 bpp:
https://drive.google.com/open?id=0B3_pEBoLs0faU05mTVJ3b3VZcmc

QuickTime 2 bpp:
https://drive.google.com/open?id=0B3_pEBoLs0faZUc4VEVwalhGSE0

QuickTime 4 bpp:
https://drive.google.com/open?id=0B3_pEBoLs0facHJkWnhvYXdtbms

QuickTime 8 bpp:
https://drive.google.com/open?id=0B3_pEBoLs0fabUdRcTVxRl9yVWM

AVI 1 bpp:
https://drive.google.com/open?id=0B3_pEBoLs0faelN5RXpKLWtfTnM

AVI 2 bpp:
https://drive.google.com/open?id=0B3_pEBoLs0fabnQyNm5VV2NXNGM

AVI 4 bpp:
https://drive.google.com/open?id=0B3_pEBoLs0faTnppb3NjdFQzMmc

AVI 8 bpp:
https://drive.google.com/open?id=0B3_pEBoLs0faekxWUTdkVGNTTlk

Mats

-- 
Mats Peterson
http://matsp888.no-ip.org/~mats/


More information about the MPlayer-dev-eng mailing list