videotestsrc: why failed when I specify the format=RGB?

classic Classic list List threaded Threaded
3 messages Options
kk
Reply | Threaded
Open this post in threaded view
|

videotestsrc: why failed when I specify the format=RGB?

kk
gst-launch-1.0 videotestsrc ! video/x-raw, format=RGB, width=300, height=300 ! ximagesink

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: videotestsrc: why failed when I specify the format=RGB?

Antonio Ospite-2
On Thu, 23 Aug 2018 23:59:37 +0800
kk <[hidden email]> wrote:

> gst-launch-1.0 videotestsrc ! video/x-raw, format=RGB, width=300, height=300 ! ximagesink

Add videoconvert before ximagesink.

For data to pass from one element to the others they have to support the
same format (caps) to complete the negotiation step successfully, if
they don't a conversion is needed.

Use "gst-launch-1.0 -v" to see more negotiation details.

You can see the caps of an element with "gst-inspect-1.0 elementname".

Some elements do not show all the caps properties here as they may be
discovered at runtime.

Look up some info about GStreamer caps and negotiation.

Ciao,
   Antonio

--
Antonio Ospite
https://ao2.it
https://twitter.com/ao2it

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
kk
Reply | Threaded
Open this post in threaded view
|

Re: videotestsrc: why failed when I specify the format=RGB?

kk
Thanks, it works!

On Fri, Aug 24, 2018 at 12:47 AM Antonio Ospite <[hidden email]> wrote:
On Thu, 23 Aug 2018 23:59:37 +0800
kk <[hidden email]> wrote:

> gst-launch-1.0 videotestsrc ! video/x-raw, format=RGB, width=300, height=300 ! ximagesink

Add videoconvert before ximagesink.

For data to pass from one element to the others they have to support the
same format (caps) to complete the negotiation step successfully, if
they don't a conversion is needed.

Use "gst-launch-1.0 -v" to see more negotiation details.

You can see the caps of an element with "gst-inspect-1.0 elementname".

Some elements do not show all the caps properties here as they may be
discovered at runtime.

Look up some info about GStreamer caps and negotiation.

Ciao,
   Antonio

--
Antonio Ospite
https://ao2.it
https://twitter.com/ao2it

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel