[gst-devel] filesink problem with some colorspaces

Georg Holzmann grh at mur.at
Thu Aug 16 22:30:00 CEST 2007


Hallo!

> Go for a *:5 debug log and write it to a file. Then load it, search for
> not-negotiated and read the 20 or so lines above that. If you're lucky,
> you might find some more information there. The most likely reason is
> that ffmpegcolorspace didn't accept your input caps here.

Thanks - yes it seems so, I got (amongst other messages):

0:00:07.310277000 [333m11792[00m 0x8785ad8 [36mDEBUG[00m [00;01;34m 
        GST_CAPS 
gstpad.c:2426:gst_pad_configure_sink:<colorspace_:sink>[00m caps 
video/x-raw-rgb, width=(int)320, height=(int)240, bpp=(int)32, 
depth=(int)32, red_mask=(int)-16777216, green_mask=(int)16711680, 
blue_mask=(int)65280, alpha_mask=(int)255, framerate=(fraction)20/1, 
endianness=(int)1234 not accepted

however, a few line above all allowed types ffmpegcolorspace accepts are 
listed and my flags are listed there (see [1]).

> I think you might be missing an endianness field here (it should be of
> G_TYPE_INT and be either G_LITTLE_ENDIAN or G_BIG_ENDIAN).

A tried this too, but no success ...

LG
Georg

[1]: the lines above the error (scroll to the bottom):

gstpad.c:2209:gst_pad_acceptcaps_default:<colorspace_:sink> allowed 
caps video/x-raw-yuv, format=(fourcc)I420, framerate=(fraction)[ 0/1, 
2147483647/1 ], width=(int)[ 1, 2147483647 ], height=(int)[ 1, 
2147483647 ]; video/x-raw-yuv, framerate=(fraction)[ 0/1, 2147483647/1 
], width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], 
format=(fourcc)I420; video/x-raw-yuv, framerate=(fraction)[ 0/1, 
2147483647/1 ], width=(int)[ 1, 2147483647 ], height=(int)[ 1, 
2147483647 ], format=(fourcc)YV12; video/x-raw-yuv, 
framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 1, 2147483647 ], 
height=(int)[ 1, 2147483647 ], format=(fourcc)YUY2; video/x-raw-rgb, 
framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 1, 2147483647 ], 
height=(int)[ 1, 2147483647 ], bpp=(int)24, depth=(int)24, 
red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, 
endianness=(int)4321; video/x-raw-yuv, framerate=(fraction)[ 0/1, 
2147483647/1 ], width=(int)[ 1, 2147483647 ], height=(int)[ 1, 
2147483647 ], format=(fourcc)Y42B; video/x-raw-rgb, 
framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 1, 2147483647 ], 
height=(int)[ 1, 2147483647 ], bpp=(int)24, depth=(int)24, 
red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, 
endianness=(int)4321; video/x-raw-yuv, framerate=(fraction)[ 0/1, 
2147483647/1 ], width=(int)[ 1, 2147483647 ], height=(int)[ 1, 
2147483647 ], format=(fourcc)Y444; video/x-raw-rgb, 
framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 1, 2147483647 ], 
height=(int)[ 1, 2147483647 ], bpp=(int)32, depth=(int)32, 
red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, 
alpha_mask=(int)255, endianness=(int)4321; video/x-raw-rgb, 
framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 1, 2147483647 ], 
height=(int)[ 1, 2147483647 ], bpp=(int)32, depth=(int)32, 
red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, 
alpha_mask=(int)-16777216, endianness=(int)4321; video/x-raw-rgb, 
framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 1, 2147483647 ], 
height=(int)[ 1, 2147483647 ], bpp=(int)32, depth=(int)32, 
red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, 
alpha_mask=(int)-16777216, endianness=(int)4321; video/x-raw-rgb, 
framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 1, 2147483647 ], 
height=(int)[ 1, 2147483647 ], bpp=(int)32, depth=(int)32, 
red_mask=(int)-16777216, green_mask=(int)16711680, blue_mask=(int)65280, 
alpha_mask=(int)255, endianness=(int)4321; video/x-raw-rgb, 
framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 1, 2147483647 ], 
height=(int)[ 1, 2147483647 ], bpp=(int)32, depth=(int)24, 
red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, 
endianness=(int)4321; video/x-raw-rgb, framerate=(fraction)[ 0/1, 
2147483647/1 ], width=(int)[ 1, 2147483647 ], height=(int)[ 1, 
2147483647 ], bpp=(int)32, depth=(int)24, red_mask=(int)255, 
green_mask=(int)65280, blue_mask=(int)16711680, endianness=(int)4321; 
video/x-raw-rgb, framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 
1, 2147483647 ], height=(int)[ 1, 2147483647 ], bpp=(int)32, 
depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, 
blue_mask=(int)255, endianness=(int)4321; video/x-raw-yuv, 
framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 1, 2147483647 ], 
height=(int)[ 1, 2147483647 ], format=(fourcc)YUV9; video/x-raw-rgb, 
framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 1, 2147483647 ], 
height=(int)[ 1, 2147483647 ], bpp=(int)32, depth=(int)24, 
red_mask=(int)-16777216, green_mask=(int)16711680, blue_mask=(int)65280, 
endianness=(int)4321; video/x-raw-yuv, framerate=(fraction)[ 0/1, 
2147483647/1 ], width=(int)[ 1, 2147483647 ], height=(int)[ 1, 
2147483647 ], format=(fourcc)YVU9; video/x-raw-yuv, 
framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 1, 2147483647 ], 
height=(int)[ 1, 2147483647 ], format=(fourcc)Y41B; video/x-raw-rgb, 
framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 1, 2147483647 ], 
height=(int)[ 1, 2147483647 ], bpp=(int)16, depth=(int)16, 
red_mask=(int)63488, green_mask=(int)2016, blue_mask=(int)31, 
endianness=(int)1234; video/x-raw-rgb, framerate=(fraction)[ 0/1, 
2147483647/1 ], width=(int)[ 1, 2147483647 ], height=(int)[ 1, 
2147483647 ], bpp=(int)16, depth=(int)15, red_mask=(int)31744, 
green_mask=(int)992, blue_mask=(int)31, endianness=(int)1234; 
video/x-raw-gray, framerate=(fraction)[ 0/1, 2147483647/1 ], 
width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], bpp=(int)8, 
depth=(int)8; video/x-raw-yuv, framerate=(fraction)[ 0/1, 2147483647/1 
], width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], 
format=(fourcc)UYVY; video/x-raw-rgb, framerate=(fraction)[ 0/1, 
2147483647/1 ], width=(int)[ 1, 2147483647 ], height=(int)[ 1, 
2147483647 ], bpp=(int)8, depth=(int)8, endianness=(int)1234; 
video/x-raw-yuv, framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 
1, 2147483647 ], height=(int)[ 1, 2147483647 ], format=(fourcc)IYU1; 
video/x-raw-yuv, framerate=(fraction)[ 0/1, 2147483647/1 ], width=(int)[ 
1, 2147483647 ], height=(int)[ 1, 2147483647 ], format=(fourcc)AYUV
0:00:07.309566000 11792 0x8785ad8 LOG    
            GST_CAPS gstcaps.c:150:gst_caps_new_empty: created caps 
0x878dd20
0:00:07.309746000 11792 0x8785ad8 DEBUG 
            GST_PADS 
gstpad.c:2213:gst_pad_acceptcaps_default:<colorspace_:sink> 
intersection EMPTY
0:00:07.309825000 11792 0x8785ad8 DEBUG 
            GST_PADS 
gstpad.c:2217:gst_pad_acceptcaps_default:<colorspace_:sink> 
intersection gave empty caps
0:00:07.309892000 11792 0x8785ad8 LOG   
     GST_REFCOUNTING gstcaps.c:396:gst_caps_unref: 
0x878dc80 1->0
0:00:07.310005000 11792 0x8785ad8 LOG    
            GST_CAPS gstcaps.c:310:_gst_caps_free: freeing caps 
0x878dc80
0:00:07.310076000 11792 0x8785ad8 LOG   
     GST_REFCOUNTING gstcaps.c:396:gst_caps_unref: 
0x878dd20 1->0
0:00:07.310141000 11792 0x8785ad8 LOG    
            GST_CAPS gstcaps.c:310:_gst_caps_free: freeing caps 
0x878dd20
0:00:07.310209000 11792 0x8785ad8 DEBUG 
            GST_PADS 
gstpad.c:2268:gst_pad_accept_caps:<colorspace_:sink> acceptfunc 
returned 0
0:00:07.310277000 11792 0x8785ad8 DEBUG  
            GST_CAPS 
gstpad.c:2426:gst_pad_configure_sink:<colorspace_:sink> caps 
video/x-raw-rgb, width=(int)320, height=(int)240, bpp=(int)32, 
depth=(int)32, red_mask=(int)-16777216, green_mask=(int)16711680, 
blue_mask=(int)65280, alpha_mask=(int)255, framerate=(fraction)20/1, 
endianness=(int)1234 not accepted
0:00:07.310522000 11792 0x8785ad8 LOG   
     GST_REFCOUNTING 
gstminiobject.c:312:gst_mini_object_unref: 0x8575618 unref 1->0
0:00:07.310640000 11792 0x8785ad8 LOG    
          GST_BUFFER gstbuffer.c:187:gst_buffer_finalize: finalize 
0x8575618
0:00:07.310714000 11792 0x8785ad8 LOG   
     GST_REFCOUNTING gstcaps.c:396:gst_caps_unref: 
0x85be660 4->3
0:00:07.310787000 11792 0x8785ad8 LOG    
      GST_SCHEDULING 
gstpad.c:3484:gst_pad_chain_unchecked:<colorspace_:sink> pushing 
buffer but pad did not accept
0:00:07.310858000 11792 0x8785ad8 LOG   
     GST_REFCOUNTING 
gstobject.c:352:gst_object_unref:<colorspace_:sink> 0x8764d58 unref 
2->1
0:00:07.310929000 11792 0x8785ad8 INFO   
           basesrc gstbasesrc.c:1778:gst_base_src_loop:<source_> 
pausing after gst_pad_push() = not-negotiated




More information about the gstreamer-devel mailing list