[gst-devel] filesink problem with some colorspaces
Tim Müller
t.i.m at zen.co.uk
Thu Aug 16 23:22:21 CEST 2007
> 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 ...
Try reverting the masks endianness-wise and pick the other endianness,
if I'm not mistaken (I didn't check that closely) the supported caps
only include your masks with an endianness of 4321, while you chose
1234. This might be fixed in newer versions of gst-plugins-base (I
vaguely remember a similar issue).
Cheers
-Tim
> [1]: the lines above the error (scroll to the bottom):
>
> gstpad.c:2209:gst_pad_acceptcaps_default:<colorspace_:sink>[00m 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 [333m11792[00m 0x8785ad8 [37mLOG [00m [00;01;34m
> GST_CAPS gstcaps.c:150:gst_caps_new_empty:[00m created caps
> 0x878dd20
> 0:00:07.309746000 [333m11792[00m 0x8785ad8 [36mDEBUG[00m
> [00;01;37;41m GST_PADS
> gstpad.c:2213:gst_pad_acceptcaps_default:<colorspace_:sink>[00m
> intersection EMPTY
> 0:00:07.309825000 [333m11792[00m 0x8785ad8 [36mDEBUG[00m
> [00;01;37;41m GST_PADS
> gstpad.c:2217:gst_pad_acceptcaps_default:<colorspace_:sink>[00m
> intersection gave empty caps
> 0:00:07.309892000 [333m11792[00m 0x8785ad8 [37mLOG [00m
> [00;01;31;44m GST_REFCOUNTING gstcaps.c:396:gst_caps_unref:[00m
> 0x878dc80 1->0
> 0:00:07.310005000 [333m11792[00m 0x8785ad8 [37mLOG [00m [00;01;34m
> GST_CAPS gstcaps.c:310:_gst_caps_free:[00m freeing caps
> 0x878dc80
> 0:00:07.310076000 [333m11792[00m 0x8785ad8 [37mLOG [00m
> [00;01;31;44m GST_REFCOUNTING gstcaps.c:396:gst_caps_unref:[00m
> 0x878dd20 1->0
> 0:00:07.310141000 [333m11792[00m 0x8785ad8 [37mLOG [00m [00;01;34m
> GST_CAPS gstcaps.c:310:_gst_caps_free:[00m freeing caps
> 0x878dd20
> 0:00:07.310209000 [333m11792[00m 0x8785ad8 [36mDEBUG[00m
> [00;01;37;41m GST_PADS
> gstpad.c:2268:gst_pad_accept_caps:<colorspace_:sink>[00m acceptfunc
> returned 0
> 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
> 0:00:07.310522000 [333m11792[00m 0x8785ad8 [37mLOG [00m
> [00;01;31;44m GST_REFCOUNTING
> gstminiobject.c:312:gst_mini_object_unref:[00m 0x8575618 unref 1->0
> 0:00:07.310640000 [333m11792[00m 0x8785ad8 [37mLOG [00m [00;01;42m
> GST_BUFFER gstbuffer.c:187:gst_buffer_finalize:[00m finalize
> 0x8575618
> 0:00:07.310714000 [333m11792[00m 0x8785ad8 [37mLOG [00m
> [00;01;31;44m GST_REFCOUNTING gstcaps.c:396:gst_caps_unref:[00m
> 0x85be660 4->3
> 0:00:07.310787000 [333m11792[00m 0x8785ad8 [37mLOG [00m [00;01;35m
> GST_SCHEDULING
> gstpad.c:3484:gst_pad_chain_unchecked:<colorspace_:sink>[00m pushing
> buffer but pad did not accept
> 0:00:07.310858000 [333m11792[00m 0x8785ad8 [37mLOG [00m
> [00;01;31;44m GST_REFCOUNTING
> gstobject.c:352:gst_object_unref:<colorspace_:sink>[00m 0x8764d58 unref
> 2->1
> 0:00:07.310929000 [333m11792[00m 0x8785ad8 [32;01mINFO [00m [00m
> basesrc gstbasesrc.c:1778:gst_base_src_loop:<source_>[00m
> pausing after gst_pad_push() = not-negotiated
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list