[gst-devel] v4l2src plugin: can't add"always-copy=FALSE" in C pipe

lorenzo centurelli l.centurelli at gmail.com
Tue Apr 27 11:20:42 CEST 2010


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 <l.centurelli at gmail.com>

>
> 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
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/v4l2src-plugin-can-t-add-always-copy-FALSE-in-C-pipe-tp2067202p2067202.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100427/385942bb/attachment.htm>


More information about the gstreamer-devel mailing list