videotestsrc to generate rgb565 video stream failed
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 !
>>> however, this won't:
>>> *$ gst-launch videotestsrc ! video/x-raw-rgb,framerate=5/1,bpp=16 !
>>> and the returned error is:
>>> *gstbasesrc.c(2755): gst_base_src_start ():
>>> 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 !
> ! ffmpegcolorspace ! video/x-raw-rgb,bpp=32 ! ximagesink
> I have gst-inspect ximagesink, and got this cap:
> Pad Templates:
> SINK template: 'sink'
> Availability: Always
> 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.
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
More information about the gstreamer-devel