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 then, I think the bpp=16 is not confirm enough, so I tried this: $ gst-launch videotestsrc ! video/x-raw-rgb,framerate=5/1,bpp=16,red_mask=31744,green_mask=992,blue_mask=31 ! ximagesink also failed with the same error on the cap: gstbasesrc.c(2755): gst_base_src_start (): /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Check your filtered caps, if any Can anyone tell me what's the matter? and how to generate rgb565 video stream with videotestsrc? Peter _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
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 David _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
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 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. Thanks. Peter > > > David > > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel > _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
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 >> [hidden email] >> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel >> > > _______________________________________________ > gstreamer-devel mailing list > [hidden email] > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel _______________________________________________ gstreamer-devel mailing list [hidden email] http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |