A precisation:<br>it gives me this warning:<br> GLib-GObject-WARNING **: value &quot;TRUE&quot; of type `gboolean&#39; is invalid or out of range for property `always-copy&#39; of type `gboolean&#39;<br><br><br><div class="gmail_quote">
2010/4/27 djlorenzoc <span dir="ltr">&lt;<a href="mailto:l.centurelli@gmail.com">l.centurelli@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi everybody,<br>
I&#39;m trying to implement this pipe in a C program:<br>
<br>
gst-launch -v v4l2src always-copy=FALSE ! TIVidenc1 codecName=mpeg4enc<br>
engineName=encode contiguousInputFrame=TRUE ! rtpmp4vpay pt=96 ! udpsink<br>
host=&lt;HOST IP ADDRESS&gt; port=5000<br>
<br>
but I can&#39;t add 2 options : &quot;always-copy=FALSE&quot; and &quot;port=5000&quot;.<br>
A part of my program is:<br>
<br>
*******************************************************************************************************************<br>
#include &lt;gst/gst.h&gt;<br>
#include &lt;stdio.h&gt;<br>
#include &lt;unistd.h&gt;<br>
#include &lt;stdlib.h&gt;<br>
#include &lt;glib.h&gt;<br>
<br>
int main (int   argc, char *argv[])<br>
  {<br>
  GstElement *pipeline, *source,*sink,*encoder,*payloader;<br>
  gst_init (&amp;argc, &amp;argv);<br>
  pipeline = gst_pipeline_new (&quot;pipe&quot;);<br>
  source   = gst_element_factory_make (&quot;v4l2src&quot;,       &quot;video_source&quot;);<br>
  encoder = gst_element_factory_make (&quot;TIVidenc1&quot;,      &quot;encoder_mpeg4&quot;);<br>
  payloader= gst_element_factory_make (&quot;rtpmp4vpay&quot;,<br>
&quot;payloader_mpeg4&quot;);<br>
  sink     = gst_element_factory_make (&quot;udpsink&quot;, &quot;output&quot;);<br>
<br>
  g_object_set (G_OBJECT (encoder),<br>
                &quot;codecName&quot;,&quot;mpeg4enc&quot;,<br>
                &quot;engineName&quot;,&quot;encode&quot;,<br>
                 NULL);<br>
<br>
  g_object_set (G_OBJECT (sink),<br>
                &quot;host&quot;,&quot;192.168.100.229&quot;,<br>
                &quot;port&quot;,&quot;5000&quot;,<br>
                NULL);<br>
<br>
..........<br>
After that I add all the plugins to the pipe and link them together...<br>
The pipe works, it doesn&#39;t give me any error/warning,I can see the video in<br>
the receiving host, but the communication port isn&#39;t &quot;5000&quot; and I&#39;m sure<br>
that the v4l2src&#39;s option &quot;always-copy&quot; isn&#39;t FALSE because the CPU consume<br>
is high (if this option is false the consume is less)<br>
What are my errors?<br>
<br>
Thank you.<br>
<br>
Best regards.<br>
Lorenzo<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/v4l2src-plugin-can-t-add-always-copy-FALSE-in-C-pipe-tp2067202p2067202.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/v4l2src-plugin-can-t-add-always-copy-FALSE-in-C-pipe-tp2067202p2067202.html</a><br>

Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
<br>
------------------------------------------------------------------------------<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br>