twolame

## twolame twolame — High-quality free MP2 encoder |

## Synopsis

    struct              GstTwoLame;

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----GstObject
                   +----GstElement
                         +----GstAudioEncoder
                               +----GstTwoLame

## Implemented Interfaces

GstTwoLame implements GstPreset.

## Properties

      "ath-level"                gfloat                : Read / Write
      "bitrate"                  gint                  : Read / Write
      "copyright"                gboolean              : Read / Write
      "emphasis"                 GstTwoLameEmphasis    : Read / Write
      "energy-level-extension"   gboolean              : Read / Write
      "error-protection"         gboolean              : Read / Write
      "mode"                     GstTwoLameMode        : Read / Write
      "original"                 gboolean              : Read / Write
      "padding"                  GstTwoLamePadding     : Read / Write
      "psymodel"                 gint                  : Read / Write
      "quick-mode"               gboolean              : Read / Write
      "quick-mode-count"         gint                  : Read / Write
      "vbr"                      gboolean              : Read / Write
      "vbr-level"                gfloat                : Read / Write
      "vbr-max-bitrate"          gint                  : Read / Write

## Description

## Synopsis

### Element Information

plugin | twolame
author | Sebastian Dröge <sebastian.droege@collabora.co.uk>
class | Codec/Encoder/Audio

### Element Pads

name | sink
direction | sink
presence | always
details | audio/x-raw, format=(string){ F32LE, S16LE }, layout=(string)interleaved, rate=(int){ 16000, 22050, 24000, 32000, 44100, 48000 }, channels=(int)1
| audio/x-raw, format=(string){ F32LE, S16LE }, layout=(string)interleaved, rate=(int){ 16000, 22050, 24000, 32000, 44100, 48000 }, channels=(int)2, channel-mask=(bitmask)0x0000000000000003

name | src
direction | source
presence | always
details | audio/mpeg, mpegversion=(int)1, layer=(int)2, rate=(int){ 16000, 22050, 24000, 32000, 44100, 48000 }, channels=(int)[ 1, 2 ]

## Details

### struct GstTwoLame

    struct GstTwoLame;

## Property Details

### The `"ath-level"` property

      "ath-level"                gfloat                : Read / Write

ATH Level in dB.

Default value: 0

### The `"bitrate"` property

      "bitrate"                  gint                  : Read / Write

Bitrate in kbit/sec (8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160, 192, 224, 256, 320, 384).

Allowed values: [8,384]

Default value: 192

### The `"copyright"` property

      "copyright"                gboolean              : Read / Write

Mark as copyright.

Default value: FALSE

### The `"emphasis"` property

      "emphasis"                 GstTwoLameEmphasis    : Read / Write

Pre-emphasis to apply to the decoded audio.

Default value: No emphasis

### The `"energy-level-extension"` property

      "energy-level-extension"   gboolean              : Read / Write

Write peak PCM level to each frame.

Default value: FALSE

### The `"error-protection"` property

      "error-protection"         gboolean              : Read / Write

Adds checksum to every frame.

Default value: FALSE

### The `"mode"` property

      "mode"                     GstTwoLameMode        : Read / Write

Encoding mode.

Default value: Joint Stereo

### The `"original"` property

      "original"                 gboolean              : Read / Write

Mark as original.

Default value: TRUE

### The `"padding"` property

      "padding"                  GstTwoLamePadding     : Read / Write

Padding type.

Default value: No Padding

### The `"psymodel"` property

      "psymodel"                 gint                  : Read / Write

Psychoacoustic model used to encode the audio.

Allowed values: [G_MAXULONG,4]

Default value: 3

### The `"quick-mode"` property

      "quick-mode"               gboolean              : Read / Write

Calculate Psymodel every frames.

Default value: FALSE

### The `"quick-mode-count"` property

      "quick-mode-count"         gint                  : Read / Write

Calculate Psymodel every n frames.

Allowed values: >= 0

Default value: 10

### The `"vbr"` property

      "vbr"                      gboolean              : Read / Write

Enable variable bitrate mode.

Default value: FALSE

### The `"vbr-level"` property

      "vbr-level"                gfloat                : Read / Write

VBR Level.

Allowed values: [-10,10]

Default value: 5

### The `"vbr-max-bitrate"` property

      "vbr-max-bitrate"          gint                  : Read / Write

Specify maximum VBR bitrate (0=off, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160, 192, 224, 256, 320, 384).

Allowed values: [0,384]

Default value: 0