GNOME Bugzilla – Bug 558553
[riff] gst_riff_create_video_caps not recognizing certain uncompressed RGB fourcc's
Last modified: 2008-10-31 09:50:06 UTC
In AVI files there are certain fourcc codes that have been traditionally taken to mean uncompressed RGB (i.e. "video/x-raw-rgb"). These fourcc codes are: 'DIB ' 'RAW ' 'RGB ' 0x000000 Unfortunately the gst_riff_create_video_caps only currently recognizes 'DIB ' as an uncompressed RGB. This causes certain uncompressed AVI files (see attached example.avi) to no render properly in gstreamer using the avidemux element in gst-plugins-good. Steps to reproduce: 1) Download attached example.avi to /tmp 2) Run the following: gst-launch playbin uri=file:///tmp/example.avi Expected results: File would render properly Actual results: File does not render and returns a video/x-avi-unknown codec error.
Created attachment 121661 [details] Example uncompressed AVI file with Fourcc of 0 Use this video files in the reproduction steps of this bug
Created attachment 121662 [details] [review] Patch which adds support for other DIB fourcc codes This patch adds support for other fourcc codes that are commonly used for 'uncompressed RGB', including 'RGB ', 'RAW ', and 0.
Patch by: Nick Haddad <nick at haddads dot net> * gst-libs/gst/riff/riff-ids.h: * gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps): Add support for other fourcc codes that are commonly used for 'uncompressed RGB', including 'RGB ', 'RAW ', and 0. Fixes #558553.