Logitech C920 vidsrc syntax

Andrew Silby asilby at yahoo.com
Fri Mar 1 13:12:21 UTC 2019


I would use v4l2src rather than uvch264src. I use it with rtp and c920/brio and it works very well.

-----Original Message-----
From: gstreamer-devel <gstreamer-devel-bounces at lists.freedesktop.org> On Behalf Of Ingemar Johansson
Sent: 01 March 2019 11:55
To: gstreamer-devel at lists.freedesktop.org
Subject: Logitech C920 vidsrc syntax

Hi
I am trying to realize the pipeline below with the c-code snippet further below. The problem I have is with the src.vidsrc property or parameter. My effort is obviously wrong, so how do one fix this ?

BR
/Ingemar
============
gst-launch-1.0 -v -e uvch264src name=src auto-start=true
initial-bitrate=2000000 src.vidsrc !
video/x-h264,width=640,height=480,framerate=30/1 ! rtph264pay ! udpsink
host=88.129.244.8 port=5000

============
  videosrc        = gst_element_factory_make ("uvch264src",      "encoder");
  capsfilter      = gst_element_factory_make ("capsfilter",    
"capsfilter");
  videopayload    = gst_element_factory_make ("rtph264pay",     "payload");

  capsfiltercaps =
gst_caps_from_string("video/x-h264,width=640,height=480,framerate=30/1");
  g_object_set (G_OBJECT(capsfilter), "caps",  capsfiltercaps, NULL);

  g_object_set(G_OBJECT(videosrc), "name", "src", NULL);
  g_object_set(G_OBJECT(videosrc), "auto-start", true, NULL);
  g_object_set(G_OBJECT(videosrc), "initial-bitrate", 2000000, NULL);
  g_object_set(G_OBJECT(videosrc), "*src.vidsrc*", NULL, NULL); // ?????



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list