# avenc_ac3

libav ac3 encoder

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstAudioEncoder
                        ╰──avenc_ac3

## Implemented interfaces

    GstPreset

## Factory details

Authors: – Wim Taymans <wim.taymans>, Ronald Bultje <rbultje></rbultje></wim.taymans>

Classification: – `Codec/Encoder/Audio`

Rank – secondary

Plugin – libav

Package – GStreamer FFMPEG Plug-ins

## Pad Templates

### `sink`

    audio/x-raw:
           channels: 1
               rate: { (int)48000, (int)44100, (int)32000 }
             format: F32LE
             layout: interleaved
    audio/x-raw:
           channels: 2
               rate: { (int)48000, (int)44100, (int)32000 }
             format: F32LE
             layout: interleaved
    audio/x-raw:
           channels: 3
       channel-mask: 0x0000000000000103
               rate: { (int)48000, (int)44100, (int)32000 }
             format: F32LE
             layout: interleaved
    audio/x-raw:
           channels: 3
       channel-mask: 0x0000000000000007
               rate: { (int)48000, (int)44100, (int)32000 }
             format: F32LE
             layout: interleaved
    audio/x-raw:
           channels: 4
       channel-mask: 0x0000000000000c03
               rate: { (int)48000, (int)44100, (int)32000 }
             format: F32LE
             layout: interleaved
    audio/x-raw:
           channels: 4
       channel-mask: 0x0000000000000033
               rate: { (int)48000, (int)44100, (int)32000 }
             format: F32LE
             layout: interleaved
    audio/x-raw:
           channels: 4
       channel-mask: 0x0000000000000107
               rate: { (int)48000, (int)44100, (int)32000 }
             format: F32LE
             layout: interleaved
    audio/x-raw:
           channels: 5
       channel-mask: 0x0000000000000c07
               rate: { (int)48000, (int)44100, (int)32000 }
             format: F32LE
             layout: interleaved
    audio/x-raw:
           channels: 5
       channel-mask: 0x0000000000000037
               rate: { (int)48000, (int)44100, (int)32000 }
             format: F32LE
             layout: interleaved
    audio/x-raw:
           channels: 2
       channel-mask: 0x000000000000000c
               rate: { (int)48000, (int)44100, (int)32000 }
             format: F32LE
             layout: interleaved
    audio/x-raw:
           channels: 3
       channel-mask: 0x000000000000000b
               rate: { (int)48000, (int)44100, (int)32000 }
             format: F32LE
             layout: interleaved
    audio/x-raw:
           channels: 4
       channel-mask: 0x000000000000010b
               rate: { (int)48000, (int)44100, (int)32000 }
             format: F32LE
             layout: interleaved
    audio/x-raw:
           channels: 4
       channel-mask: 0x000000000000000f
               rate: { (int)48000, (int)44100, (int)32000 }
             format: F32LE
             layout: interleaved
    audio/x-raw:
           channels: 5
       channel-mask: 0x000000000000010f
               rate: { (int)48000, (int)44100, (int)32000 }
             format: F32LE
             layout: interleaved
    audio/x-raw:
           channels: 6
       channel-mask: 0x0000000000000c0f
               rate: { (int)48000, (int)44100, (int)32000 }
             format: F32LE
             layout: interleaved
    audio/x-raw:
           channels: 6
       channel-mask: 0x000000000000003f
               rate: { (int)48000, (int)44100, (int)32000 }
             format: F32LE
             layout: interleaved

Presence – always

Direction – sink

Object type – GstPad

### `src`

    audio/x-ac3:
           channels: [ 1, 6 ]
               rate: { (int)48000, (int)44100, (int)32000 }

Presence – always

Direction – src

Object type – GstPad

## Properties

### ac

    “ac” gint

set number of audio channels (Generic codec option, might have no effect)

Flags : Read / Write

Default value : 0

### ad-conv-type

    “ad-conv-type” ac-3-encoder-ad-conv-type *

A/D Converter Type (Private codec option)

Flags : Read / Write

Default value : unknown (-1)

### ar

    “ar” gint

set audio sampling rate (in Hz) (Generic codec option, might have no effect)

Flags : Read / Write

Default value : 0

### audio-service-type

    “audio-service-type” avcodeccontext-audio-service-type *

audio service type (Generic codec option, might have no effect)

Flags : Read / Write

Default value : ma (0)

### bitrate

    “bitrate” gint

set bitrate (in bits/s) (Generic codec option, might have no effect)

Flags : Read / Write

Default value : 0

### bitrate-tolerance

    “bitrate-tolerance” gint

Set video bitrate tolerance (in bits/s). In 1-pass mode, bitrate tolerance specifies how far ratecontrol is willing to deviate from the target average bitrate value. This is not related to minimum/maximum bitrate. Lowering tolerance too much has an adverse effect on quality. (Generic codec option, might have no effect)

Flags : Read / Write

Default value : 4000000

### bufsize

    “bufsize” gint

set ratecontrol buffer size (in bits) (Generic codec option, might have no effect)

Flags : Read / Write

Default value : 0

### center-mixlev

    “center-mixlev” gfloat

Center Mix Level (Private codec option)

Flags : Read / Write

Default value : 0.594604

### channel-coupling

    “channel-coupling” ac-3-encoder-channel-coupling *

Channel Coupling (Private codec option)

Flags : Read / Write

Default value : auto (-1)

### compression-level

    “compression-level” gint

(null) (Generic codec option, might have no effect)

Flags : Read / Write

Default value : -1

### copyright

    “copyright” gint

Copyright Bit (Private codec option)

Flags : Read / Write

Default value : -1

### cpl-start-band

    “cpl-start-band” ac-3-encoder-cpl-start-band *

Coupling Start Band (Private codec option)

Flags : Read / Write

Default value : auto (-1)

### cutoff

    “cutoff” gint

set cutoff bandwidth (Generic codec option, might have no effect)

Flags : Read / Write

Default value : 0

### debug

    “debug” avcodeccontext-debug *

print specific debug info (Generic codec option, might have no effect)

Flags : Read / Write

Default value : (none)

### dheadphone-mode

    “dheadphone-mode” ac-3-encoder-dheadphone-mode *

Dolby Headphone Mode (Private codec option)

Flags : Read / Write

Default value : unknown (-1)

### dialnorm

    “dialnorm” gint

Dialogue Level (dB) (Private codec option)

Flags : Read / Write

Default value : -31

### dmix-mode

    “dmix-mode” ac-3-encoder-dmix-mode *

Preferred Stereo Downmix Mode (Private codec option)

Flags : Read / Write

Default value : unknown (-1)

### dsur-mode

    “dsur-mode” ac-3-encoder-dsur-mode *

Dolby Surround Mode (Private codec option)

Flags : Read / Write

Default value : unknown (-1)

### dsurex-mode

    “dsurex-mode” ac-3-encoder-dsurex-mode *

Dolby Surround EX Mode (Private codec option)

Flags : Read / Write

Default value : unknown (-1)

### dump-separator

    “dump-separator” gchararray

set information dump field separator (Generic codec option, might have no effect)

Flags : Read / Write

Default value : NULL

### err-detect

    “err-detect” avcodeccontext-err-detect *

set error detection flags (Generic codec option, might have no effect)

Flags : Read / Write

Default value : (none)

### export-side-data

    “export-side-data” avcodeccontext-export-side-data *

Export metadata as side data (Generic codec option, might have no effect)

Flags : Read / Write

Default value : (none)

### flags

    “flags” avcodeccontext-flags *

(null) (Generic codec option, might have no effect)

Flags : Read / Write

Default value : (none)

### flags2

    “flags2” avcodeccontext-flags2 *

(null) (Generic codec option, might have no effect)

Flags : Read / Write

Default value : (none)

### frame-size

    “frame-size” gint

(null) (Generic codec option, might have no effect)

Flags : Read / Write

Default value : 0

### global-quality

    “global-quality” gint

(null) (Generic codec option, might have no effect)

Flags : Read / Write

Default value : 0

### loro-cmixlev

    “loro-cmixlev” gfloat

Lo/Ro Center Mix Level (Private codec option)

Flags : Read / Write

Default value : -1

### loro-surmixlev

    “loro-surmixlev” gfloat

Lo/Ro Surround Mix Level (Private codec option)

Flags : Read / Write

Default value : -1

### ltrt-cmixlev

    “ltrt-cmixlev” gfloat

Lt/Rt Center Mix Level (Private codec option)

Flags : Read / Write

Default value : -1

### ltrt-surmixlev

    “ltrt-surmixlev” gfloat

Lt/Rt Surround Mix Level (Private codec option)

Flags : Read / Write

Default value : -1

### max-pixels

    “max-pixels” gint64

Maximum number of pixels (Generic codec option, might have no effect)

Flags : Read / Write

Default value : 2147483647

### max-samples

    “max-samples” gint64

Maximum number of samples (Generic codec option, might have no effect)

Flags : Read / Write

Default value : 2147483647

### maxrate

    “maxrate” gint64

maximum bitrate (in bits/s). Used for VBV together with bufsize. (Generic codec option, might have no effect)

Flags : Read / Write

Default value : 0

### minrate

    “minrate” gint64

minimum bitrate (in bits/s). Most useful in setting up a CBR encode. It is of little use otherwise. (Generic codec option, might have no effect)

Flags : Read / Write

Default value : 0

### mixing-level

    “mixing-level” gint

Mixing Level (Private codec option)

Flags : Read / Write

Default value : -1

### original

    “original” gint

Original Bit Stream (Private codec option)

Flags : Read / Write

Default value : -1

### per-frame-metadata

    “per-frame-metadata” gboolean

Allow Changing Metadata Per-Frame (Private codec option)

Flags : Read / Write

Default value : false

### room-type

    “room-type” ac-3-encoder-room-type *

Room Type (Private codec option)

Flags : Read / Write

Default value : unknown (-1)

### stereo-rematrixing

    “stereo-rematrixing” gboolean

Stereo Rematrixing (Private codec option)

Flags : Read / Write

Default value : true

### strict

    “strict” avcodeccontext-strict *

how strictly to follow the standards (Generic codec option, might have no effect)

Flags : Read / Write

Default value : normal (0)

### surround-mixlev

    “surround-mixlev” gfloat

Surround Mix Level (Private codec option)

Flags : Read / Write

Default value : 0.5

### thread-type

    “thread-type” avcodeccontext-thread-type *

select multithreading type (Generic codec option, might have no effect)

Flags : Read / Write

Default value : slice+frame

### threads

    “threads” avcodeccontext-threads *

set the number of threads (Generic codec option, might have no effect)

Flags : Read / Write

Default value : unknown (1)

### ticks-per-frame

    “ticks-per-frame” gint

(null) (Generic codec option, might have no effect)

Flags : Read / Write

Default value : 1

### trellis

    “trellis” gint

rate-distortion optimal quantization (Generic codec option, might have no effect)

Flags : Read / Write

Default value : 0

The results of the search are