Hi everybody,
I'm trying to implement this pipe in a C program: gst-launch -v v4l2src always-copy=FALSE ! TIVidenc1 codecName=mpeg4enc engineName=encode contiguousInputFrame=TRUE ! rtpmp4vpay pt=96 ! udpsink host=<HOST IP ADDRESS> port=5000 but I can't add 2 options : "always-copy=FALSE" and "port=5000". A part of my program is: ******************************************************************************************************************* #include <gst/gst.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <glib.h> int main (int argc, char *argv[]) { GstElement *pipeline, *source,*sink,*encoder,*payloader; gst_init (&argc, &argv); pipeline = gst_pipeline_new ("pipe"); source = gst_element_factory_make ("v4l2src", "video_source"); encoder = gst_element_factory_make ("TIVidenc1", "encoder_mpeg4"); payloader= gst_element_factory_make ("rtpmp4vpay", "payloader_mpeg4"); sink = gst_element_factory_make ("udpsink", "output"); g_object_set (G_OBJECT (encoder), "codecName","mpeg4enc", "engineName","encode", NULL); g_object_set (G_OBJECT (sink), "host","192.168.100.229", "port","5000", NULL); .......... After that I add all the plugins to the pipe and link them together... The pipe works, it doesn't give me any error/warning,I can see the video in the receiving host, but the communication port isn't "5000" and I'm sure that the v4l2src's option "always-copy" isn't FALSE because the CPU consume is high (if this option is false the consume is less) What are my errors? Thank you. Best regards. Lorenzo |
A precisation:
it gives me this warning: GLib-GObject-WARNING **: value "TRUE" of type `gboolean' is invalid or out of range for property `always-copy' of type `gboolean'
2010/4/27 djlorenzoc <[hidden email]>
------------------------------------------------------------------------------ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
In reply to this post by djlorenzoc
On Tue, 2010-04-27 at 01:06 -0700, djlorenzoc wrote:
> I'm trying to implement this pipe in a C program: > > gst-launch -v v4l2src always-copy=FALSE ! ... ! udpsink > host=<HOST IP ADDRESS> port=5000 > > but I can't add 2 options : "always-copy=FALSE" and "port=5000". > A part of my program is: > .... > g_object_set (G_OBJECT (sink), > "host","192.168.100.229", > "port","5000", > NULL); It needs to be: g_object_set (sink, "port", 5000, NULL); and g_object_set (sink, "always-copy", FALSE, NULL); ie. 5000 and FALSE, not "5000" and "FALSE". You can see the type of the property in gst-inspect. Cheers -Tim ------------------------------------------------------------------------------ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Thank you for you help Tim.
Nice to meet you. Sorry for the disturb Best regards Lorenzo 2010/4/27 Tim-Philipp Müller <[hidden email]>
------------------------------------------------------------------------------ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |