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

Factory details

Authors: – Justin Kim

Classification:Sink/Network

Rank – primary

Plugin – gstsrt

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

async

“async” gboolean

Go asynchronously to PAUSED

Flags : Read / Write

Default value : true


blocksize

“blocksize” guint

Size in bytes to pull per buffer (0 = default)

Flags : Read / Write

Default value : 4096


enable-last-sample

“enable-last-sample” gboolean

Enable the last-sample property

Flags : Read / Write

Default value : true


last-sample

“last-sample” GstSample *

The last sample received in the sink

Flags : Read


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


max-bitrate

“max-bitrate” guint64

The maximum bits per second to render (0 = disabled)

Flags : Read / Write

Default value : 0


max-lateness

“max-lateness” gint64

Maximum number of nanoseconds that a buffer can be late before it is dropped (-1 unlimited)

Flags : Read / Write

Default value : 18446744073709551615


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


processing-deadline

“processing-deadline” guint64

Maximum processing time for a buffer in nanoseconds

Flags : Read / Write

Default value : 20000000


qos

“qos” gboolean

Generate Quality-of-Service events upstream

Flags : Read / Write

Default value : false


render-delay

“render-delay” guint64

Additional render delay of the sink in nanoseconds

Flags : Read / Write

Default value : 0


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


sync

“sync” gboolean

Sync on the clock

Flags : Read / Write

Default value : true


throttle-time

“throttle-time” guint64

The time to keep between rendered buffers (0 = disabled)

Flags : Read / Write

Default value : 0


ts-offset

“ts-offset” gint64

Timestamp offset in nanoseconds

Flags : Read / Write

Default value : 0


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