gst-inspect and g_object_set() for properties

Sebastian Dröge sebastian at
Sat Oct 31 02:41:01 PDT 2015

On Fr, 2015-10-30 at 22:56 -0600, Natanael Mojica wrote:
> Hi gstreamers
> I can to list the properties of a any object,  for example x264enc
> using gst-inspect-1.0 + "element name", but when i use the
> g_object_set(), for set the especific properties for a object, i
> got(using x264enc):
>     g_object_set(this->x264enc, "bitrate", 10000, "key-int-max", 60,
> "bframes", 0, "byte-stream", false, "aud", true, "tune",
> "zerolatency",
>                  "threads", 0, "speed-preset", 2);

You're missing the terminating NULL for g_object_set(). Also the "tune"
property is a GFlags typed property, you'll have to give it an integer
with the flags, not a string.

You could use the string when using gst_util_set_object_arg(), that one
will translate the string to the integer before calling g_object_set()
for you.

Sebastian Dröge, Centricular Ltd ·

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the gstreamer-devel mailing list