# mfaacenc

This element encodes raw audio into AAC compressed data.

## Example pipelines

     gst-launch-1.0 -v audiotestsrc ! mfaacenc ! aacparse ! qtmux ! filesink location=audiotestsrc.mp4

This example pipeline will encode a test audio source to AAC using Media Foundation encoder, and muxes it in a mp4 container.

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstAudioEncoder
                        ╰──GstMFAudioEncoder
                            ╰──mfaacenc

## Implemented interfaces

    GstPreset

## Factory details

Authors: – Seungha Yang <seungha></seungha>

Classification: – `Codec/Encoder/Audio`

Rank – secondary

Plugin – mediafoundation

Package – GStreamer Bad Plug-ins

## Pad Templates

### `sink`

    audio/x-raw:
             layout: interleaved
             format: S16LE
           channels: { (int)1, (int)2, (int)6, (int)8 }
               rate: { (int)11025, (int)16000, (int)22050, (int)24000, (int)32000, (int)44100, (int)48000, (int)96000 }

Presence – always

Direction – sink

Object type – GstPad

### `src`

    audio/mpeg:
        mpegversion: 4
      stream-format: raw
             framed: true
       base-profile: lc
           channels: { (int)1, (int)2, (int)6, (int)8 }
               rate: { (int)11025, (int)16000, (int)22050, (int)24000, (int)32000, (int)44100, (int)48000, (int)96000 }

Presence – always

Direction – src

Object type – GstPad

## Properties

### bitrate

    “bitrate” guint

Bitrate in bit/sec, (0 = auto), valid values are { 0, 8000, 12000, 16000, 24000, 32000, 48000, 64000, 96000, 128000, 160000, 192000, 256000, 320000, 480000, 512000, 576000, 640000, 720000, 768000, 960000, 1152000 }

Flags : Read / Write

Default value : 0

The results of the search are