In x264enc the type of tune property is <meta http-equiv="content-type" content="text/html; charset=utf-8">GstX264EncTune , but you are setting it as a string. So you need to pass an object of type <meta http-equiv="content-type" content="text/html; charset=utf-8">GstX264EncTune. <div>
<br></div><div>In <meta http-equiv="content-type" content="text/html; charset=utf-8">udpsink make sure type of host property is a string, e.g. "127.0.0.1". </div><div><br></div><div>All this information about which property is having which type can be checked by doing "gst-inspect <plugin_name>".<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><br></div><div><br></div><div><br><div class="gmail_quote">On Sun, Jul 31, 2011 at 10:29 AM, arpi d <span dir="ltr"><<a href="mailto:reachtoarpi@gmail.com">reachtoarpi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">How to set the element's properties in C using g_object_set():<div><br></div><div>I would like to set the properties of x264enc element as</div>
<div>x264enc tune=zerolatency byte-stream=true bitrate=300 </div><div><br>
</div><div>I have used this code I am getting the warning:</div><div>g_object_set (videoenc, "tune","zerolatency","byte-stream",TRUE,"bitrate",300,NULL);</div><div><br></div>
<div>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</div>
<div><br></div><div> I would like to set the properties of udpsink :</div><div><br></div><div> I have used this code and getting warning:</div><div><div> </div><div> rtpsink = gst_element_factory_make ("udpsink", "rtpsink");</div>
<div> g_assert (rtpsink);</div><div><br></div><div> g_object_set (rtpsink, "port", 5000,"host", DEST_HOST, NULL);</div><div> g_object_set(rtpsink,"ts-offset",VOFFSET,NULL);</div><div><br>
</div>
<div><br></div><div> GLib-GObject-WARNING **: g_object_set_valist: object class `GstUDPSink' has no property named `127.0.0.1'</div></div><div><br></div><div> Please some one reply me what I need to change that all work fine.</div>
<div><br></div><div> Thanks in advance.</div><div><br></div><div><br></div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Sudarshan Bisht<br>
</div>