rtpac3pay2
Payload an AC-3 Audio Elementary Stream into RTP packets as per RFC 4184. Also see the IANA media-type page for AC-3.
Aggregation Modes
The default aggregation mode is auto
: If upstream is live, the payloader will send out all
audio frames 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 audio frames 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 audiotestsrc wave=ticks ! avenc_ac3 ! ac3parse ! rtpac3pay2 ! udpsink host=127.0.0.1 port=5004
This will encode an audio test signal to AC-3 and then payload the encoded audio
into RTP packets and send them out via UDP to localhost (IPv4) port 5004.
You can use the rtpac3depay2
or rtpac3depay
elements to depayload such a stream, and
the avdec_ac3
or a52dec
elements to decode the depayloaded stream.
Hierarchy
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstRtpBasePay2 ╰──rtpac3pay2
Factory details
Authors: – Tim-Philipp Müller
Classification: – Codec/Payloader/Network/RTP
Rank – marginal
Plugin – rsrtp
Package – gst-plugin-rtp
Pad Templates
sink
audio/x-ac3:
rate: { (int)48000, (int)44100, (int)32000 }
channels: [ 1, 6 ]
framed: true
alignment: frame
src
application/x-rtp:
media: audio
encoding-name: AC3
clock-rate: { (int)48000, (int)44100, (int)32000 }
Properties
aggregate-mode
“aggregate-mode” Rtp-ac3pay-aggregate-mode *
Whether to send out audio frames 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-ac3pay-aggregate-mode
Members
auto
(-1) – Automatic: zero-latency if upstream is live, otherwise aggregate frames until packet is full.
zero-latency
(0) – Zero Latency: always send out frames right away, do not wait for more frames to fill a packet.
aggregate
(1) – Aggregate: collect audio frames until we have a full packet or the max-ptime limit is hit (if set).
The results of the search are