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

djlorenzoc l.centurelli at gmail.com
Tue Apr 27 10:06:09 CEST 2010

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",     
  sink     = gst_element_factory_make ("udpsink", "output");

  g_object_set (G_OBJECT (encoder), 

  g_object_set (G_OBJECT (sink),

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.
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.

More information about the gstreamer-devel mailing list