srtsink

srtsink is a network sink that sends SRT packets to the network.

Examples

 gst-launch-1.0 -v audiotestsrc ! srtsink uri=srt://host

This pipeline shows how to serve SRT packets through the default port.

 gst-launch-1.0 -v audiotestsrc ! srtsink uri=srt://:port

This pipeline shows how to wait SRT callers.

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstBaseSink
                    ╰──srtsink

Implemented interfaces

Factory details

Authors: – Justin Kim

Classification:Sink/Network

Rank – primary

Plugin – srt

Package – GStreamer Bad Plug-ins

Pad Templates

sink

ANY

Presencealways

Directionsink

Object typeGstPad


Signals

caller-added

caller_added_callback (GstElement * gstsrtsink,
                       gint sock,
                       GSocketAddress * addr,
                       gpointer udata)
def caller_added_callback (gstsrtsink, sock, addr, udata):
    #python callback for the 'caller-added' signal
function caller_added_callback(gstsrtsink: GstElement * gstsrtsink, sock: gint sock, addr: GSocketAddress * addr, udata: gpointer udata): {
    // javascript callback for the 'caller-added' signal
}

The given socket descriptor was added to srtsink.

Parameters:

gstsrtsink

the srtsink element that emitted this signal

sock

the client socket descriptor that was added to srtsink

addr

the GSocketAddress that describes the sock

udata
No description available

Flags: Run Last


caller-removed

caller_removed_callback (GstElement * gstsrtsink,
                         gint sock,
                         GSocketAddress * addr,
                         gpointer udata)
def caller_removed_callback (gstsrtsink, sock, addr, udata):
    #python callback for the 'caller-removed' signal
function caller_removed_callback(gstsrtsink: GstElement * gstsrtsink, sock: gint sock, addr: GSocketAddress * addr, udata: gpointer udata): {
    // javascript callback for the 'caller-removed' signal
}

The given socket descriptor was removed from srtsink.

Parameters:

gstsrtsink

the srtsink element that emitted this signal

sock

the client socket descriptor that was added to srtsink

addr

the GSocketAddress that describes the sock

udata
No description available

Flags: Run Last


Properties

latency

“latency” gint

Minimum latency (milliseconds)

Flags : Read / Write

Default value : 125


localaddress

“localaddress” gchararray

Local address to bind

Flags : Read / Write

Default value : NULL


localport

“localport” guint

Local port to bind

Flags : Read / Write

Default value : 7001


mode

“mode” GstSRTConnectionMode *

SRT connection mode

Flags : Read / Write

Default value : caller (1)


passphrase

“passphrase” gchararray

Password for the encrypted transmission

Flags : Read / Write


pbkeylen

“pbkeylen” GstSRTKeyLength *

Crypto key length in bytes

Flags : Read / Write

Default value : no-key (0)


poll-timeout

“poll-timeout” gint

Return poll wait after timeout milliseconds (-1 = infinite)

Flags : Read / Write

Default value : -1


stats

“stats” GstStructure *

SRT Statistics

Flags : Read

Default value :

application/x-srt-statistics, bytes-sent-total=(guint64)0;

streamid

“streamid” gchararray

Stream ID for the SRT access control

Flags : Read / Write

Default value : NULL


uri

“uri” gchararray

URI in the form of srt://address:port

Flags : Read / Write

Default value : srt://127.0.0.1:7001


wait-for-connection

“wait-for-connection” gboolean

Boolean to block streaming until a client connects. If TRUE, `srtsink' will stream only when a client is connected.

Flags : Read / Write

Default value : true


The results of the search are