gstrtpbasepayload

gstrtpbasepayload

Functions

Properties

gint64 max-ptime Read / Write
gint64 min-ptime Read / Write
guint mtu Read / Write
gboolean perfect-rtptime Read / Write
guint pt Read / Write
gint64 ptime-multiple Read / Write
guint seqnum Read
gint seqnum-offset Read / Write
guint ssrc Read / Write
GstStructure * stats Read
guint timestamp Read
guint timestamp-offset Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GInitiallyUnowned
        ╰── GstObject
            ╰── GstElement
                ╰── GstRTPBasePayload
                    ╰── GstRTPBaseAudioPayload

Includes

#include <gst/rtp/gstrtpbasepayload.h>

Description

Functions

GST_RTP_BASE_PAYLOAD_MTU()

#define GST_RTP_BASE_PAYLOAD_MTU(payload) (GST_RTP_BASE_PAYLOAD (payload)->mtu)

GST_RTP_BASE_PAYLOAD_PT()

#define GST_RTP_BASE_PAYLOAD_PT(payload)  (GST_RTP_BASE_PAYLOAD (payload)->pt)

GST_RTP_BASE_PAYLOAD_SINKPAD()

#define GST_RTP_BASE_PAYLOAD_SINKPAD(payload) (GST_RTP_BASE_PAYLOAD (payload)->sinkpad)

GST_RTP_BASE_PAYLOAD_SRCPAD()

#define GST_RTP_BASE_PAYLOAD_SRCPAD(payload)  (GST_RTP_BASE_PAYLOAD (payload)->srcpad)

gst_rtp_base_payload_is_filled ()

gboolean
gst_rtp_base_payload_is_filled (GstRTPBasePayload *payload,
                                guint size,
                                GstClockTime duration);

gst_rtp_base_payload_push ()

GstFlowReturn
gst_rtp_base_payload_push (GstRTPBasePayload *payload,
                           GstBuffer *buffer);

gst_rtp_base_payload_push_list ()

GstFlowReturn
gst_rtp_base_payload_push_list (GstRTPBasePayload *payload,
                                GstBufferList *list);

gst_rtp_base_payload_set_options ()

void
gst_rtp_base_payload_set_options (GstRTPBasePayload *payload,
                                  const gchar *media,
                                  gboolean dynamic,
                                  const gchar *encoding_name,
                                  guint32 clock_rate);

gst_rtp_base_payload_set_outcaps ()

gboolean
gst_rtp_base_payload_set_outcaps (GstRTPBasePayload *payload,
                                  const gchar *fieldname,
                                  ...);

Types and Values

struct GstRTPBasePayload

struct GstRTPBasePayload;

struct GstRTPBasePayloadClass

struct GstRTPBasePayloadClass {
  GstElementClass parent_class;

  /* query accepted caps */
  GstCaps *     (*get_caps)             (GstRTPBasePayload *payload, GstPad * pad, GstCaps * filter);
  /* receive caps on the sink pad, configure the payloader. */
  gboolean      (*set_caps)             (GstRTPBasePayload *payload, GstCaps *caps);

  /* handle a buffer, perform 0 or more gst_rtp_base_payload_push() on
   * the RTP buffers. This function takes ownership of the buffer. */
  GstFlowReturn (*handle_buffer)        (GstRTPBasePayload *payload,
                                         GstBuffer *buffer);
  /* handle events and queries */
  gboolean      (*sink_event)           (GstRTPBasePayload *payload, GstEvent * event);
  gboolean      (*src_event)            (GstRTPBasePayload *payload, GstEvent * event);
  gboolean      (*query)                (GstRTPBasePayload *payload, GstPad *pad, GstQuery * query);
};

Property Details

The “max-ptime” property

  “max-ptime”                gint64

Maximum duration of the packet data in ns (-1 = unlimited up to MTU).

Flags: Read / Write

Allowed values: >= -1

Default value: -1


The “min-ptime” property

  “min-ptime”                gint64

Minimum duration of the packet data in ns (can't go above MTU).

Flags: Read / Write

Allowed values: >= 0

Default value: 0


The “mtu” property

  “mtu”                      guint

Maximum size of one packet.

Flags: Read / Write

Allowed values: >= 28

Default value: 1400


The “perfect-rtptime” property

  “perfect-rtptime”          gboolean

Generate perfect RTP timestamps when possible.

Flags: Read / Write

Default value: TRUE


The “pt” property

  “pt”                       guint

The payload type of the packets.

Flags: Read / Write

Allowed values: <= 127

Default value: 96


The “ptime-multiple” property

  “ptime-multiple”           gint64

Force buffers to be multiples of this duration in ns (0 disables).

Flags: Read / Write

Allowed values: >= 0

Default value: 0


The “seqnum” property

  “seqnum”                   guint

The RTP sequence number of the last processed packet.

Flags: Read

Allowed values: <= 65535

Default value: 0


The “seqnum-offset” property

  “seqnum-offset”            gint

Offset to add to all outgoing seqnum (-1 = random).

Flags: Read / Write

Allowed values: [-1,65535]

Default value: -1


The “ssrc” property

  “ssrc”                     guint

The SSRC of the packets (default == random).

Flags: Read / Write

Default value: 4294967295


The “stats” property

  “stats”                    GstStructure *

Various statistics.

Flags: Read


The “timestamp” property

  “timestamp”                guint

The RTP timestamp of the last processed packet.

Flags: Read

Default value: 0


The “timestamp-offset” property

  “timestamp-offset”         guint

Offset to add to all outgoing timestamps (default = random).

Flags: Read / Write

Default value: 4294967295