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

Sebastian Dröge sebastian at centricular.com
Wed Dec 21 07:45:56 UTC 2016


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161221/55a85c47/attachment.sig>


More information about the gstreamer-devel mailing list