rtmp2sink

The rtmp2sink element sends audio and video streams to an RTMP server.

Example launch line |[ gst-launch -v videotestsrc ! x264enc ! flvmux ! rtmp2sink location=rtmp://server.example.com/live/myStream ]| FIXME Describe what the pipeline does.

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstBaseSink
                    ╰──rtmp2sink

Implemented interfaces

Factory details

Authors: – Make.TV, Inc.

Classification:Sink

Rank – primary + 1

Plugin – rtmp2

Package – GStreamer Bad Plug-ins

Pad Templates

sink

video/x-flv:

Presencealways

Directionsink

Object typeGstPad


Properties

async-connect

“async-connect” gboolean

Connect on READY, otherwise on first push

Flags : Read / Write

Default value : true


chunk-size

“chunk-size” guint

RTMP chunk size

Flags : Read / Write

Default value : 128


extra-connect-args

“extra-connect-args” gchararray

Parse and append librtmp-style arbitrary data to the "connect" command. It can be used for non-standard authentication with some servers.

The format is a whitespace-separated series of "conn=type:data" strings. Valid types are:

  • "B" for boolean with "0" and "1" for false and true, respectively, e.g. "conn=B:1".
  • "N" for numbers in double format, e.g. "conn=N:1.23".
  • "S" for strings, e.g. "conn=S:somepassword".
  • "O" for objects and "N"-prefixed named values are not yet supported.

Flags : Read / Write

Default value : NULL

Since : 1.26


peak-kbps

“peak-kbps” guint

Bitrate in kbit/sec to pace outgoing packets

Flags : Read / Write

Default value : 0


stats

“stats” GstStructure *

Retrieve a statistics structure

Flags : Read

Default value :

GstRtmpConnectionStats, in-chunk-size=(uint)0, out-chunk-size=(uint)0, in-window-ack-size=(uint)0, out-window-ack-size=(uint)0, in-bytes-total=(guint64)0, out-bytes-total=(guint64)0, in-bytes-acked=(guint64)0, out-bytes-acked=(guint64)0;

stop-commands

“stop-commands” Rtmp-stop-commands *

Which commands (if any) to send on EOS event before closing connection

Flags : Read / Write

Default value : deletestream+fcunpublish

Since : 1.20


Named constants

Rtmp-stop-commands

Members

none (0x00000000) – No command
fcunpublish (0x00000001) – FCUnpublish
closestream (0x00000002) – closeStream
deletestream (0x00000004) – deleteStream

Since : 1.18


The results of the search are