# atenc

AudioToolbox based encoder.

## Example launch line

     gst-launch-1.0 -v audiotestsrc ! atenc ! mp4mux ! filesink location=test.m4a

Encodes audio from audiotestsrc and writes it to a file.

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstAudioEncoder
                        ╰──atenc

## Implemented interfaces

    GstPreset

## Factory details

Authors: – Piotr Brzeziński

Classification: – `Coder/Encoder/Audio/Converter`

Rank – primary

Plugin – osxaudio

Package – GStreamer Good Plug-ins

## Pad Templates

### `sink`

    audio/x-raw:
             format: S16LE
             layout: interleaved
               rate: { (int)8000, (int)11025, (int)12000, (int)16000, (int)22050, (int)24000, (int)32000, (int)44100, (int)48000 }
           channels: [ 1, 8 ]

Presence – always

Direction – sink

Object type – GstPad

### `src`

    audio/mpeg:
        mpegversion: 4
               rate: { (int)8000, (int)11025, (int)12000, (int)16000, (int)22050, (int)24000, (int)32000, (int)44100, (int)48000 }
           channels: [ 1, 8 ]
      stream-format: raw
            profile: lc
             framed: true

Presence – always

Direction – src

Object type – GstPad

## Properties

### bitrate

    “bitrate” guint

Target output bitrate in bps, for CBR and LTA rate control modes.

Flags : Read / Write

Default value : 0

Since : 1.26

### rate-control

    “rate-control” Atenc-rate-control *

Rate control mode to be applied by the encoder. CBR and LTA modes use the bitrate property, VBR uses the vbr-quality property. Constrained VBR determines the bitrate/quality automatically based on the input signal.

Flags : Read / Write

Default value : cbr (0)

Since : 1.26

### vbr-quality

    “vbr-quality” guint

Sound quality setting for VBR encoding.

Flags : Read / Write

Default value : 65

Since : 1.26

## Named constants

### Atenc-rate-control

#### Members

`cbr` (0) – Constant bitrate
`lta` (1) – Long-term-average bitrate
`cvbr` (2) – Constrained variable bitrate
`vbr` (3) – Variable bitrate

Since : 1.26

The results of the search are