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 147555 - [sdlvideosink] wrong colors when forcing YUV I420
[sdlvideosink] wrong colors when forcing YUV I420
Status: RESOLVED INVALID
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other All
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-07-14 06:57 UTC by Jan Schmidt
Modified: 2005-02-08 16:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
capture of the ugly colors when forcing I420 (11.97 KB, image/png)
2004-12-21 18:04 UTC, Stephane Loeuillet
Details
xvinfo output log, as per request (8.80 KB, text/plain)
2004-12-22 10:04 UTC, Stephane Loeuillet
Details

Description Jan Schmidt 2004-07-14 06:57:27 UTC
gst-launch videotestsrc !  'video/x-raw-yuv,(fourcc)I420' ! sdlvideosink
produces garbage. Other video sinks are fine.
SDL version is 1.2.7
Comment 1 David Schleef 2004-07-20 18:49:09 UTC
This is likely a bug in SDL
Comment 2 Stephane Loeuillet 2004-12-17 18:00:13 UTC
with sdl 1.2.8, this segfaults
gst-launch videotestsrc ! "video/x-raw-yuv,format=(fourcc)I420" ! sdlvideosink
Comment 3 Christian Fredrik Kalager Schaller 2004-12-21 15:13:44 UTC
I have SDL 1.2.7 and with current CVS gstreamer these pipelines work well for
me. Jan, Stephane can you please retest with current CVS and report back?
Comment 4 Stephane Loeuillet 2004-12-21 18:03:46 UTC
it opens a window, then still segfault for me (corrected pipeline from comment #2)
using current CVS and sdl 1.2.8

but i don't know either if it is a bug in SDL or sdlvideosink

----------------------

just after that attempt, i recompiled SDL 1.2.8 with debug and without stripping :
it does not crash anymore but colors are awfull in the window compared to the
original (without forcing the YUV 4cc)
Comment 5 Stephane Loeuillet 2004-12-21 18:04:42 UTC
Created attachment 35089 [details]
capture of the ugly colors when forcing I420
Comment 6 Stephane Loeuillet 2004-12-21 20:02:33 UTC
got the same kind of bad output/colors when using the videosink test of
gstreamer-properties 2.9.2 (and selecting sdlvideosink)

of course, using ximagesink or xvimagesink works ok (good colors)
Comment 7 David Schleef 2004-12-21 22:07:32 UTC
Stephane:
It looks like SDL is using a YUV9-like colorspace and calling it I420.  This is
perhaps excusable, since video drivers that support YUV9 were uncommon until
recently.  (Yes, I've looked at output like this _so many times_ that I can
"just tell" what is wrong.)
Comment 8 David Schleef 2004-12-21 22:10:09 UTC
Stephane:
could you attach the output of 'xvinfo' on this display?
Comment 9 Stephane Loeuillet 2004-12-22 10:04:37 UTC
Created attachment 35112 [details]
xvinfo output log, as per request
Comment 10 Ronald Bultje 2005-02-08 15:41:40 UTC
Stephane, Jan, wat videocard driver is this? I've tried the nv and nvidia
drivers and they don't reproduce this.
Comment 11 Jan Schmidt 2005-02-08 15:54:03 UTC
radeon with open source drivers, and irrelevant since it is now working correctly
Comment 12 Ronald Bultje 2005-02-08 16:46:10 UTC
Closing then...