videotestsrc to generate rgb565 video stream failed

Stefan Kost ensonic at hora-obscura.de
Sun Jun 12 14:00:30 PDT 2011


On 06/11/2011 01:38 PM, Peter Xu wrote:
> On 2011年06月11日 02:28, David Schleef wrote:
>> On Fri, Jun 10, 2011 at 10:02:25PM +0800, Peter Xu wrote:
>>> hi, all,
>>>
>>> I have found that videotestsrc plugin seems support rgb565 (by
>>> gst-inspect). So I tried to generate rgb565 stream with that and
>>> check it with ximagesink.
>>>
>>> firstly, I tried this which worked:
>>> *$ gst-launch videotestsrc ! video/x-raw-rgb,framerate=5/1 !
>>> ximagesink*
>>>
>>> however, this won't:
>>> *$ gst-launch videotestsrc ! video/x-raw-rgb,framerate=5/1,bpp=16 !
>>> ximagesink*
>>> and the returned error is:
>>> *gstbasesrc.c(2755): gst_base_src_start ():
>>> /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
>>> Check your filtered caps, if any*
>> Your ximagesink doesn't support 16-bit video.
>>
>>    gst-launch-0.10 -v videotestsrc ! video/x-raw-rgb,bpp=16 ! fakesink
> Hi, david,
>
> it's true that my ximagesink doesn't support bpp=16, and this worked
> for me:
> gst-launch videotestsrc !
> video/x-raw-rgb,bpp=16,red_mask=63488,green_mask=2016,blue_mask=31,depth=16
> ! ffmpegcolorspace ! video/x-raw-rgb,bpp=32 ! ximagesink
>
> I have gst-inspect ximagesink, and got this cap:
> ...
> Pad Templates:
> SINK template: 'sink'
> Availability: Always
> Capabilities:
> video/x-raw-rgb
> framerate: [ 0/1, 2147483647/1 ]
> width: [ 1, 2147483647 ]
> height: [ 1, 2147483647 ]
> ...
> I think the bpp requirement should be mentioned here, however, there
> seems not.

No, it cannot. What you see there are the template caps. The actual
capabilities of hardware related elements are known, once the element is
in READY state.

Stefan

>
> Thanks.
>
> Peter
>
>>
>>
>> David
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list