A precisation:<br>it gives me this warning:<br> GLib-GObject-WARNING **: value "TRUE" of type `gboolean' is invalid or out of range for property `always-copy' of type `gboolean'<br><br><br><div class="gmail_quote">
2010/4/27 djlorenzoc <span dir="ltr"><<a href="mailto:l.centurelli@gmail.com">l.centurelli@gmail.com</a>></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'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=<HOST IP ADDRESS> port=5000<br>
<br>
but I can't add 2 options : "always-copy=FALSE" and "port=5000".<br>
A part of my program is:<br>
<br>
*******************************************************************************************************************<br>
#include <gst/gst.h><br>
#include <stdio.h><br>
#include <unistd.h><br>
#include <stdlib.h><br>
#include <glib.h><br>
<br>
int main (int argc, char *argv[])<br>
{<br>
GstElement *pipeline, *source,*sink,*encoder,*payloader;<br>
gst_init (&argc, &argv);<br>
pipeline = gst_pipeline_new ("pipe");<br>
source = gst_element_factory_make ("v4l2src", "video_source");<br>
encoder = gst_element_factory_make ("TIVidenc1", "encoder_mpeg4");<br>
payloader= gst_element_factory_make ("rtpmp4vpay",<br>
"payloader_mpeg4");<br>
sink = gst_element_factory_make ("udpsink", "output");<br>
<br>
g_object_set (G_OBJECT (encoder),<br>
"codecName","mpeg4enc",<br>
"engineName","encode",<br>
NULL);<br>
<br>
g_object_set (G_OBJECT (sink),<br>
"host","192.168.100.229",<br>
"port","5000",<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't give me any error/warning,I can see the video in<br>
the receiving host, but the communication port isn't "5000" and I'm sure<br>
that the v4l2src's option "always-copy" isn'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>