9

Get video udp h264 with gstreamer and opencv

 1 year ago
source link: https://gist.github.com/patrickelectric/5dca1cb7cef4ffa7fbb6fb70dd9f9edc
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Get video udp h264 with gstreamer and opencv · GitHub

I am trying your code, but when I run it I get "no element "udpsrc". I tried adding gstudp.dll in the same folder as my .exe but i get the same. for some reason it doesn't link with it

@pdeman make sure that you have all necessary gst plugins installed, you can see if it's installed or accessible with gst-inspect, E.g: gst-inspect-1.0 udpsrc

using gst-launch.exe etc ... everything works. but not using c++ sdk (on windows 10, visual studio 2017).

here is the output of gst-inspect

WARNING: no real random source present!
Factory Details:
Rank none (0)
Long-name UDP packet receiver
Klass Source/Network
Description Receive data over the network via UDP
Author Wim Taymans [email protected], Thijs Vermeir [email protected]

Plugin Details:
Name udp
Description transfer data via UDP
Filename G:\gstreamer\1.0\x86_64\lib\gstreamer-1.0\gstudp.dll
Version 1.16.2
License LGPL
Source module gst-plugins-good
Binary package GStreamer Good Plug-ins source release
Origin URL Unknown package origin

GObject
+----GInitiallyUnowned
+----GstObject
+----GstElement
+----GstBaseSrc
+----GstPushSrc
+----GstUDPSrc

Implemented Interfaces:
GstURIHandler

Pad Templates:
SRC template: 'src'
Availability: Always
Capabilities:
ANY

Element has no clocking capabilities.

URI handling capabilities:
Element can act as source.
Supported URI protocols:
udp

Pads:
SRC: 'src'
Pad Template: 'src'

Element Properties:
address : Address to receive packets for. This is equivalent to the multicast-group property for now
flags: readable, writable
String. Default: "0.0.0.0"
auto-multicast : Automatically join/leave multicast groups
flags: readable, writable
Boolean. Default: true
blocksize : Size in bytes to read per buffer (-1 = default)
flags: readable, writable
Unsigned Integer. Range: 0 - 4294967295 Default: 4096
buffer-size : Size of the kernel receive buffer in bytes, 0=default
flags: readable, writable
Integer. Range: 0 - 2147483647 Default: 0
caps : The caps of the source pad
flags: readable, writable
Caps (NULL)
close-socket : Close socket if passed as property on state change
flags: readable, writable
Boolean. Default: true
do-timestamp : Apply current stream time to buffers
flags: readable, writable
Boolean. Default: true
loop : Used for setting the multicast loop parameter. TRUE = enable, FALSE = disable
flags: readable, writable
Boolean. Default: true
mtu : Maximum expected packet size. This directly defines the allocationsize of the receive buffer pool.
flags: readable, writable
Unsigned Integer. Range: 0 - 2147483647 Default: 1492
multicast-group : The Address of multicast group to join. (DEPRECATED: Use address property instead)
flags: readable, writable, deprecated
String. Default: "0.0.0.0"
multicast-iface : The network interface on which to join the multicast group.This allows multiple interfaces seperated by comma. ("eth0,eth1")
flags: readable, writable
String. Default: null
name : The name of the object
flags: readable, writable
String. Default: "udpsrc0"
num-buffers : Number of buffers to output before sending EOS (-1 = unlimited)
flags: readable, writable
Integer. Range: -1 - 2147483647 Default: -1
parent : The parent of the object
flags: readable, writable
Object of type "GstObject"
port : The port to receive the packets from, 0=allocate
flags: readable, writable
Integer. Range: 0 - 65535 Default: 5004
retrieve-sender-address: Whether to retrieve the sender address and add it to buffers as meta. Disabling this might result in minor performance improvements in certain scenarios
flags: readable, writable
Boolean. Default: true
reuse : Enable reuse of the port
flags: readable, writable
Boolean. Default: true
skip-first-bytes : number of bytes to skip for each udp packet
flags: readable, writable
Integer. Range: 0 - 2147483647 Default: 0
socket : Socket to use for UDP reception. (NULL == allocate)
flags: readable, writable
Object of type "GSocket"
timeout : Post a message after timeout nanoseconds (0 = disabled)
flags: readable, writable
Unsigned Integer64. Range: 0 - 18446744073709551615 Default: 0
typefind : Run typefind before negotiating (deprecated, non-functional)
flags: readable, writable, deprecated
Boolean. Default: false
uri : URI in the form of udp://multicast_group:port
flags: readable, writable
String. Default: "udp://0.0.0.0:5004"
used-socket : Socket currently in use for UDP reception. (NULL = no socket)
flags: readable
Object of type "GSocket"


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK