tcpserversrc
Example launch line (server):
gst-launch-1.0 tcpserversrc port=3000 ! fdsink fd=2
Example launch line (client):
gst-launch-1.0 fdsrc fd=1 ! tcpclientsink port=3000
Hierarchy
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstBaseSrc ╰──GstPushSrc ╰──tcpserversrc
Factory details
Authors: – Thomas Vander Stichele
Classification: – Source/Network
Rank – none
Plugin – gsttcp
Package – GStreamer Base Plug-ins
Pad Templates
Properties
blocksize
“blocksize” guint
Size in bytes to read per buffer (-1 = default)
Flags : Read / Write
Default value : 4096
current-port
“current-port” gint
The port number the socket is currently bound to. Applications can use this property to retrieve the port number actually bound to in case the port requested was 0 (=allocate a random available port).
Flags : Read
Default value : 0
do-timestamp
“do-timestamp” gboolean
Apply current stream time to buffers
Flags : Read / Write
Default value : false
num-buffers
“num-buffers” gint
Number of buffers to output before sending EOS (-1 = unlimited)
Flags : Read / Write
Default value : -1
port
“port” gint
The port to listen to (0=random available port)
Flags : Read / Write
Default value : 4953
stats
“stats” GstStructure *
Retrieve a statistics structure
Flags : Read
Default value :
GstTCPServerSrcStats, bytes-received=(guint64)0;
typefind
“typefind” gboolean
Run typefind before negotiating (deprecated, non-functional)
Flags : Read / Write
Default value : false
The results of the search are