[gst-devel] filesink problem with some colorspaces

Georg Holzmann grh at mur.at
Fri Aug 17 08:53:43 CEST 2007


Hallo!

> Wow, this is true. I have to use BIG_ENDIAN (and this on a intel 
> pentium4) - many thanks, it works now !

I was happy too early ... - now GRAY, RGB and RGBA works, but YUV (uyvy) 
does not work anymore ...  (it always worked before).
If I specify the BIG_ENDIAN in RGBA and RGB, I always get this error 
when I try to process a yuv video (although I did not use RGBA before in 
this run of the program):

** (<unknown>:20759): WARNING **: Size 153600 is not a multiple of unit 
size 230400

or with GST_DEBUG=3 see [2].

My caps look now like this: [1]

Again, thanks for any hints!
LG
Georg


[1]:

     case GRAY:
       gst_app_src_set_caps ( GST_APP_SRC(source_),
                        gst_caps_new_simple ("video/x-raw-gray",
				     "width", G_TYPE_INT, xsize,
				     "height", G_TYPE_INT, ysize,
				     "bpp", G_TYPE_INT, 8,
				     "depth", G_TYPE_INT, 8,
			             "framerate", GST_TYPE_FRACTION, fr1, fr2,
				     "endianness", G_TYPE_INT, G_BIG_ENDIAN,
				     NULL)
                        );
       break;

     case YUV422:
       gst_app_src_set_caps ( GST_APP_SRC(source_),
                        gst_caps_new_simple ("video/x-raw-yuv",
			             "framerate", GST_TYPE_FRACTION, fr1, fr2,
				     "width", G_TYPE_INT, xsize,
				     "height", G_TYPE_INT, ysize,
                                      "format", GST_TYPE_FOURCC,
                                      GST_MAKE_FOURCC('U', 'Y', 'V', 'Y'),
				     NULL)
                        );

     case RGB:
       gst_app_src_set_caps ( GST_APP_SRC(source_),
                        gst_caps_new_simple ("video/x-raw-rgb",
				     "width", G_TYPE_INT, xsize,
				     "height", G_TYPE_INT, ysize,
				     "bpp", G_TYPE_INT, 24,
				     "depth", G_TYPE_INT, 24,
				     "red_mask",   G_TYPE_INT, 16711680,
				     "green_mask", G_TYPE_INT, 65280,
				     "blue_mask",  G_TYPE_INT, 255,
			             "framerate", GST_TYPE_FRACTION, fr1, fr2,
				     "endianness", G_TYPE_INT, G_BIG_ENDIAN,
				     NULL)
                        );
       break;

     case RGBA:
     default:
       gst_app_src_set_caps ( GST_APP_SRC(source_),
                        gst_caps_new_simple ("video/x-raw-rgb",
				     "width", G_TYPE_INT, xsize,
				     "height", G_TYPE_INT, ysize,
				     "bpp", G_TYPE_INT, 32,
				     "depth", G_TYPE_INT, 32,
				     "red_mask",   G_TYPE_INT, -16777216,
				     "green_mask", G_TYPE_INT, 16711680,
				     "blue_mask",  G_TYPE_INT, 65280,
				     "alpha_mask", G_TYPE_INT, 255,
			             "framerate", GST_TYPE_FRACTION, fr1, fr2,
				     "endianness", G_TYPE_INT, G_BIG_ENDIAN,
				     NULL)
                        );
       break;


[2]:

0:00:04.961149000 20809 0x887b428 WARN         basetransform 
gstbasetransform.c:1506:gst_base_transform_handle_buffer:<colorspace_> 
error: subclass did not specify output size
0:00:04.961413000 20809 0x887b428 WARN         basetransform 
gstbasetransform.c:1506:gst_base_transform_handle_buffer:<colorspace_> 
error: subclass did not specify output size
0:00:04.961693000 20809 0x887b428 INFO      GST_ERROR_SYSTEM 
gstelement.c:1654:gst_element_message_full:<colorspace_> posting 
message: subclass did not specify output size
0:00:04.962021000 20809 0x887b428 INFO      GST_ERROR_SYSTEM 
gstelement.c:1677:gst_element_message_full:<colorspace_> posted error 
message: subclass did not specify output size
0:00:04.962313000 20809 0x887b428 INFO               basesrc 
gstbasesrc.c:1778:gst_base_src_loop:<source_> pausing after 
gst_pad_push() = error
0:00:04.962588000 20809 0x887b428 WARN               basesrc 
gstbasesrc.c:1816:gst_base_src_loop:<source_> error: Interner Fehler im 
Datanfluss
0:00:04.962792000 20809 0x887b428 WARN               basesrc 
gstbasesrc.c:1816:gst_base_src_loop:<source_> error: streaming task 
paused, reason error (-5)
0:00:04.962998000 20809 0x887b428 INFO      GST_ERROR_SYSTEM 
gstelement.c:1654:gst_element_message_full:<source_> posting message: 
Interner Fehler im Datanfluss
0:00:04.963210000 20809 0x887b428 INFO      GST_ERROR_SYSTEM 
gstelement.c:1677:gst_element_message_full:<source_> posted error 
message: Interner Fehler im Datanfluss




More information about the gstreamer-devel mailing list