what is the g_object_set parameter for video/x-raw?

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

what is the g_object_set parameter for video/x-raw?

vanderhoffer
Hi All,

Normally I would use a caps filter with like,
/myCaps = gst_caps_new_simple ("video/x-raw",
               "width", G_TYPE_INT, 192,
               "height", G_TYPE_INT, 108,
               "framerate", GST_TYPE_FRACTION, 25, 1,
          NULL);/

However, I am now setting some caps parameters manually using something like
/g_object_set( G_OBJECT ( name ),  "width",  1080, NULL );/

This so far is working fine. But I would like to know if I should set the
/"video/x-raw"/
parameter before any other parameters and if so what is the correct string
to use?
/g_object_set( G_OBJECT ( name ),  *"?????",  ??????*, NULL );/

Thanks
Art






--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/what-is-the-g-object-set-parameter-for-video-x-raw-tp4681212.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: what is the g_object_set parameter for video/x-raw?

Sebastian Dröge-3
On Tue, 2016-12-20 at 09:26 -0800, vanderhoffer wrote:

> Hi All,
>
> Normally I would use a caps filter with like,
> /myCaps = gst_caps_new_simple ("video/x-raw",
>                "width", G_TYPE_INT, 192,
>                "height", G_TYPE_INT, 108,
>                "framerate", GST_TYPE_FRACTION, 25, 1,
>           NULL);/
>
> However, I am now setting some caps parameters manually using
> something like
> /g_object_set( G_OBJECT ( name ),  "width",  1080, NULL );/
>
> This so far is working fine. But I would like to know if I should set
> the 
> /"video/x-raw"/
> parameter before any other parameters and if so what is the correct
> string
> to use?
> /g_object_set( G_OBJECT ( name ),  *"?????",  ??????*, NULL );/
Please provide some context about what you're trying to do. You can't
use g_object_set() on caps for setting individual fields, use the
GstStructure API for that.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (981 bytes) Download Attachment