MPlayer and QuickTime fourcc 'raw '
Mats Peterson <[email protected]>
| Newsgroups | gmane.comp.video.mplayer.devel |
|---|---|
| Message-ID | <[email protected]> |
MPlayer seems to naively assume that a QuickTime file (or Matroska file with V_QUICKTIME, for that matter) with the video fourcc 'raw ' (uncompressed RGB) contains 24-bit RGB triplets. The QuickTime File Format Specification states the following regarding "Uncompressed RGB": ------- * For depths of 1, 2, 4, and 8, the values stored are indexes into the color table specified in the color table ID field. * For a depth of 16, the pixels are stored as 5-5-5 RGB values with the high bit of each 16-bit integer set to 0. * For a depth of 24, the pixels are stored packed together in RGB order. * For a depth of 32, the pixels are stored with an 8-bit alpha channel, followed by 8-bit RGB components." ---- Below are two files with the 'raw ' fourcc from Apple's QuickTime Beta CD. These are *not* 24-bit RGB, but 1-bit and 8-bit files. FFplay handles this correctly, but MPlayer currently does not. When playing the 8-bit sample file below for example, it plays without video, and it constantly spits out "Frame too small! (19200<76800) Wrong format?" lines which is clearly an indication that it thinks the data is 24-bit RGB when it is in fact 8-bit. 1-bit sample: https://drive.google.com/open?id=0B3_pEBoLs0fabm83dG5YLUsybDA 8-bit sample: https://drive.google.com/open?id=0B3_pEBoLs0fadHF2U1JFZ3NSdjQ Mats -- Mats Peterson http://matsp888.no-ip.org/~mats/ _______________________________________________ MPlayer-dev-eng mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng