| GStreamer Bad Plugins 1.0 Plugins Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Properties | ||||
"audio" gboolean : Read / Write "bandwidth" GstOpusEncBandwidth : Read / Write "bitrate" gint : 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 "audio-type" GstOpusEncAudioType : Read / Write "bitrate-type" GstOpusEncBitrateType : Read / Write
plugin |
opus |
author |
Vincent Penquerc'h <vincent.penquerch@collabora.co.uk> |
class |
Codec/Encoder/Audio |
struct GstOpencvTextOverlay {
GstElement element;
GstPad *sinkpad, *srcpad;
IplImage *cvImage;
CvFont font;
gint xpos;
gint ypos;
gint thickness;
gint colorR,colorG,colorB;
gdouble height;
gdouble width;
gchar *textbuf;
};
struct GstOpusDec {
GstAudioDecoder element;
OpusMSDecoder *state;
guint64 packetno;
GstBuffer *streamheader;
GstBuffer *vorbiscomment;
int sample_rate;
int n_channels;
guint32 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;
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
"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
"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
"packet-loss-percentage" property"packet-loss-percentage" gint : Read / Write
Packet loss percentage.
Allowed values: [0,100]
Default value: 0
"audio-type" property "audio-type" GstOpusEncAudioType : Read / Write
What type of audio to optimize for.
Default value: Generic audio