rtpmp4gpay2

Payload an MPEG-4 Generic elementary stream into RTP packets as per RFC 3640. Also see the IANA media-type page for MPEG-4 Generic.

Aggregation Modes

The default aggregation mode is auto: If upstream is live, the payloader will send out AUs immediately, even if they don't completely fill a packet, in order to minimise latency. If upstream is not live, the payloader will by default aggregate AUs until it has completely filled an RTP packet as per the configured MTU size or the max-ptime property if it is set (it is not set by default).

The aggregation mode can be controlled via the aggregate-mode property.

Example pipeline

 gst-launch-1.0 audiotestsrc ! fdkaacenc ! rtpmp4gpay2 ! udpsink host=127.0.0.1 port=5004

This will encode an audio test signal to AAC and then payload the encoded audio into RTP packets and send them out via UDP to localhost (IPv4) port 5004. You can use the rtpmp4gdepay2 or rtpmp4gdepay elements to depayload such a stream, and the fdkaacdec element to decode the depayloaded stream.

Hierarchy

GObject
    ╰──GInitiallyUnowned
        ╰──GstObject
            ╰──GstElement
                ╰──GstRtpBasePay2
                    ╰──rtpmp4gpay2

Factory details

Authors: – François Laignel

Classification:Codec/Payloader/Network/RTP

Rank – marginal

Plugin – rsrtp

Package – gst-plugin-rtp

Pad Templates

sink

video/mpeg:
    mpegversion: 4
   systemstream: false
audio/mpeg:
    mpegversion: 4
  stream-format: raw

Presencealways

Directionsink

Object typeGstPad


src

application/x-rtp:
          media: { (string)audio, (string)video }
     clock-rate: [ 1, 2147483647 ]
  encoding-name: MPEG4-GENERIC
     streamtype: { (string)4, (string)5 }
           mode: { (string)generic, (string)AAC-lbr, (string)AAC-hbr, (string)aac-hbr }

Presencealways

Directionsrc

Object typeGstPad


Properties

aggregate-mode

“aggregate-mode” Rtp-mpeg4generic-pay-aggregate-mode *

Whether to send out AUs immediately or aggregate them until a packet is full.

Flags : Read / Write

Default value : auto (-1)


max-ptime

“max-ptime” gint64

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

Flags : Read / Write

Default value : 18446744073709551615


Named constants

Rtp-mpeg4generic-pay-aggregate-mode

Members

auto (-1) – Automatic: zero-latency if upstream is live, otherwise aggregate elementary streams until packet is full.
zero-latency (0) – Zero Latency: always send out elementary streams right away, do not wait for more elementary streams to fill a packet.
aggregate (1) – Aggregate: collect elementary streams until we have a full packet or the max-ptime limit is hit (if set).

The results of the search are