After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 558553 - [riff] gst_riff_create_video_caps not recognizing certain uncompressed RGB fourcc's
[riff] gst_riff_create_video_caps not recognizing certain uncompressed RGB fo...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other All
: Normal normal
: 0.10.22
Assigned To: Wim Taymans
GStreamer Maintainers
Depends on:
Blocks: 558554
 
 
Reported: 2008-10-30 15:52 UTC by Nick Haddad
Modified: 2008-10-31 09:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Example uncompressed AVI file with Fourcc of 0 (434.12 KB, application/x-zip-compressed)
2008-10-30 15:54 UTC, Nick Haddad
  Details
Patch which adds support for other DIB fourcc codes (1.73 KB, patch)
2008-10-30 15:56 UTC, Nick Haddad
committed Details | Review

Description Nick Haddad 2008-10-30 15:52:39 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.
Comment 1 Nick Haddad 2008-10-30 15:54:40 UTC
Created attachment 121661 [details]
Example uncompressed AVI file with Fourcc of 0

Use this video files in the reproduction steps of this bug
Comment 2 Nick Haddad 2008-10-30 15:56:07 UTC
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.
Comment 3 Wim Taymans 2008-10-31 09:50:06 UTC
        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.