amrnbdec

amrnbdec — Adaptive Multi-Rate Narrow-Band audio decoder

Synopsis

                    GstAmrnbDec;

Description

Example launch line

This is an AMR narrowband decoder based on the reference codec implementation.

gst-launch filesrc location=abc.amr ! amrnbparse ! amrnbdec ! audioresample ! audioconvert ! alsasink

Element Information

plugin

amrnb

author

Ronald Bultje <rbultje@ronald.bitfreak.net>

class

Codec/Decoder/Audio

name

src

direction

source

presence

always

details

audio/x-raw-int, width=(int)16, depth=(int)16, signed=(boolean)true, endianness=(int)1234, rate=(int)8000, channels=(int)1

name

sink

direction

sink

presence

always

details

audio/AMR, rate=(int)8000, channels=(int)1

Details

GstAmrnbDec

typedef struct {
  GstElement element;

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

  GstAdapter *adapter;

  /* library handle */
  void *handle;

  /* output settings */
  gint channels, rate;
  gint duration;

  GstSegment        segment;
  gboolean          discont;
} GstAmrnbDec;

See Also

GstAmrnbEnc, GstAmrnbParse