amrnbenc

amrnbenc — Adaptive Multi-Rate Narrow-Band audio encoder

Synopsis




                    GstAmrnbEnc;

Description

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

Example launch line

gst-launch filesrc location=abc.wav ! wavparse ! audioresample ! audioconvert ! amrnbenc ! filesink location=abc.amr

Please not that the above stream misses the header, that is needed to play the stream.

Element Information

plugin amrnb
author Ronald Bultje <rbultje@ronald.bitfreak.net>, Wim Taymans <wim.taymans@gmail.com>
class Codec/Encoder/Audio

Element Pads

name src
direction source
presence always
details audio/AMR, rate=(int)8000, channels=(int)1
name sink
direction sink
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

Details

GstAmrnbEnc

typedef struct {
  GstElement element;

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

  GstAdapter *adapter;

  /* library handle */
  void *handle;

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

See Also

GstAmrnbDec, GstAmrnbParse