GNOME Bugzilla – Bug 723849
matroska: add support for GRAY8, BGR and RGB video colourspaces in V_UNCOMPRESSED codec
Last modified: 2014-02-11 20:23:24 UTC
Created attachment 268404 [details] [review] Proposed patch Following the matroska specification, there is support for raw frames by using the V_UNCOMPRESSED codec. The patch attached adds support for GRAY8, BGR and RGB colourspaces. According to the specification (http://matroska.org/technical/specs/index.html), all details about the used colour space are to be put in the header's ColourSpace field, and it should have the same value as in AVI. For GRAY8 data, this is trivial, but for BGR/RGB less so, as the fourcc value for BGR/RGB is 0. Therefore, the fourcc codes used in this patch originate from what is used in MPlayer (http://orion.lcg.ufrj.br/RPMS/src/mplayer/mplayer/vidix/fourcc.h) There is currently no other player that supports raw GRAY8/BGR/RGB data in matroska, though it is perfectly 'legal' according to the spec. Still, the timestamp information with every frame is a big advantage in using matroska over avi.
commit 19a307930a9e44b5453501ec3ae8b6890ed489c0 Author: divhaere <dirk.vanhaerenborgh@ugent.be> Date: Fri Feb 7 14:00:15 2014 +0100 matroska: add support for GRAY8, BGR and RGB video colourspaces in V_UNCOMPRESSED codec https://bugzilla.gnome.org/show_bug.cgi?id=723849