amrnbenc

amrnbenc — Adaptive Multi-Rate Narrow-Band audio encoder

Synopsis

                    GstAmrnbEnc;

Properties

  "band-mode"                GstAmrnbEncBandMode   : Read / Write / Construct

Description

AMR narrowband encoder based on the opencore codec implementation.

Example launch line

gst-launch filesrc location=abc.wav ! wavparse ! audioresample ! audioconvert ! amrnbenc ! filesink location=abc.amr
Please note that the above stream misses the header, that is needed to play the stream.

Details

GstAmrnbEnc

typedef struct {
  GstElement element;

  /* pads */
  GstPad *sinkpad, *srcpad;
  guint64 ts;
  gboolean discont;

  GstAdapter *adapter;

  /* library handle */
  void *handle;

  /* input settings */
  enum Mode bandmode;
  gint channels, rate;
  gint duration;
} GstAmrnbEnc;

Property Details

The "band-mode" property

  "band-mode"                GstAmrnbEncBandMode   : Read / Write / Construct

Encoding Band Mode (Kbps).

Default value: MR122

See Also

GstAmrnbDec, GstAmrnbParse