How to set properties in GStreamer elements

arpi d reachtoarpi at
Sun Jul 31 00:29:38 PDT 2011

How to set the element's properties in C using g_object_set():

I would like to set the properties of x264enc element as
x264enc tune=zerolatency byte-stream=true bitrate=300

I have used this code I am getting the warning:
g_object_set (videoenc,

GLib-GObject-WARNING **: value "((GstX264EncTune) Zero latency (requires
constant framerate) | 134519424)" of type `GstX264EncTune' is invalid or out
of range for property `tune' of type `GstX264EncTune

  I would like to set the properties of  udpsink :

  I have used this code and getting warning:

  rtpsink = gst_element_factory_make ("udpsink", "rtpsink");
  g_assert (rtpsink);

  g_object_set (rtpsink, "port", 5000,"host", DEST_HOST, NULL);

  GLib-GObject-WARNING **: g_object_set_valist: object class `GstUDPSink'
has no property named `'

  Please some one reply me what I need to change that all work fine.

  Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list