Opened 9 years ago

Closed 9 years ago

#2287 closed defect (fixed)

MPlayer and raw video

Reported by: matsp888 Owned by: beastd
Priority: normal Component: demuxer
Version: unspecified Severity: major
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

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

Change History (3)

comment:1 by matsp888, 9 years ago

I should perhaps add that with a recent Git checkout of FFmpeg, all of the files will have the video returned in AV_PIX_FMT_PAL8 pixel format from libavcodec.

comment:2 by reimar, 9 years ago

Fixed by several patches up to r37799.

comment:3 by reimar, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.