![]() |
![]() |
![]() |
GStreamer Base Plugins 1.0 Plugins Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Properties |
"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
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 |
struct GstOpusDec { GstAudioDecoder element; OpusMSDecoder *state; guint64 packetno; GstBuffer *streamheader; GstBuffer *vorbiscomment; guint32 sample_rate; guint8 n_channels; guint16 pre_skip; gint16 r128_gain; GstAudioChannelPosition opus_pos[64]; GstAudioInfo info; guint8 n_streams; guint8 n_stereo_streams; guint8 channel_mapping_family; guint8 channel_mapping[256]; gboolean apply_gain; double r128_gain_volume; gboolean use_inband_fec; GstBuffer *last_buffer; gboolean primed; guint64 leftover_plc_duration; };
struct GstOpusEnc { GstAudioEncoder element; OpusMSEncoder *state; /* Locks those properties which may be changed at play time */ GMutex property_lock; /* properties */ gint audio_type; gint bitrate; gint bandwidth; gint frame_size; GstOpusEncBitrateType bitrate_type; gint complexity; gboolean inband_fec; gboolean dtx; gint packet_loss_percentage; guint max_payload_size; gint frame_samples; gint n_channels; gint sample_rate; guint64 encoded_samples, consumed_samples; guint16 lookahead, pending_lookahead; guint8 channel_mapping_family; guint8 encoding_channel_mapping[256]; guint8 decoding_channel_mapping[256]; guint8 n_stereo_streams; };
"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