![]() |
![]() |
![]() |
GStreamer Base Plugins 1.0 Plugins Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
GObject +----GInitiallyUnowned +----GstObject +----GstElement +----GstAudioEncoder +----GstOpusEnc
"audio" gboolean : Read / Write "audio-type" GstOpusEncAudioType : Read / Write "bandwidth" GstOpusEncBandwidth : Read / Write "bitrate" gint : Read / Write "bitrate-type" GstOpusEncBitrateType : Read / Write "cbr" gboolean : Read / Write "complexity" gint : Read / Write "constrained-vbr" gboolean : Read / Write "dtx" gboolean : Read / Write "frame-size" GstOpusEncFrameSize : Read / Write "inband-fec" gboolean : Read / Write "max-payload-size" guint : Read / Write "packet-loss-percentage" gint : Read / Write
This element encodes raw audio to OPUS.
1 |
gst-launch-1.0 -v audiotestsrc wave=sine num-buffers=100 ! audioconvert ! opusenc ! oggmux ! filesink location=sine.ogg |
plugin |
opus |
author |
Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> |
class |
Codec/Encoder/Audio |
name |
sink |
direction |
sink |
presence |
always |
details |
audio/x-raw, format=(string)S16LE, layout=(string)interleaved, rate=(int)48000, channels=(int)[ 1, 8 ] |
audio/x-raw, format=(string)S16LE, layout=(string)interleaved, rate=(int){ 8000, 12000, 16000, 24000 }, channels=(int)[ 1, 8 ] |
name |
src |
direction |
source |
presence |
always |
details |
audio/x-opus |
"audio"
property "audio" gboolean : Read / Write
Audio or voice (DEPRECATED: use audio-type).
Default value: TRUE
"audio-type"
property "audio-type" GstOpusEncAudioType : Read / Write
What type of audio to optimize for.
Default value: Generic audio
"bandwidth"
property "bandwidth" GstOpusEncBandwidth : Read / Write
Audio Band Width.
Default value: Full band
"bitrate"
property "bitrate" gint : Read / Write
Specify an encoding bit-rate (in bps).
Allowed values: [4000,650000]
Default value: 64000
"bitrate-type"
property"bitrate-type" GstOpusEncBitrateType : Read / Write
Bitrate type.
Default value: CBR
"cbr"
property "cbr" gboolean : Read / Write
Constant bit rate (DEPRECATED: use bitrate-type).
Default value: TRUE
"complexity"
property "complexity" gint : Read / Write
Complexity.
Allowed values: [0,10]
Default value: 10
"constrained-vbr"
property "constrained-vbr" gboolean : Read / Write
Constrained VBR (DEPRECATED: use bitrate-type).
Default value: TRUE
"frame-size"
property "frame-size" GstOpusEncFrameSize : Read / Write
The duration of an audio frame, in ms.
Default value: 20
"inband-fec"
property "inband-fec" gboolean : Read / Write
Enable forward error correction.
Default value: FALSE
"max-payload-size"
property "max-payload-size" guint : Read / Write
Maximum payload size in bytes.
Allowed values: [2,4000]
Default value: 4000