twolame

twolame

Properties

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

Types and Values

struct GstTwoLame

Object Hierarchy

    GObject
    ╰── GstObject
        ╰── GstElement
            ╰── GstAudioEncoder
                ╰── GstTwoLame

Implemented Interfaces

GstTwoLame implements GstPreset.

Description

This element encodes raw integer audio into an MPEG-1 layer 2 (MP2) stream.

Example pipelines

1
gst-launch -v audiotestsrc wave=sine num-buffers=100 ! audioconvert ! twolame ! filesink location=sine.mp2
Encode a test sine signal to MP2.
1
gst-launch -v alsasrc ! audioconvert ! twolame bitrate=192 ! filesink location=alsasrc.mp2
Record from a sound card using ALSA and encode to MP2
1
gst-launch -v filesrc location=music.wav ! decodebin ! audioconvert ! audioresample ! twolame bitrate=192 ! id3v2mux ! filesink location=music.mp2
Transcode from a .wav file to MP2 (the id3v2mux element is optional)
1
gst-launch -v cdda://5 ! audioconvert ! twolame bitrate=192 ! filesink location=track5.mp2
Encode Audio CD track 5 to MP2

Functions

Types and Values

struct GstTwoLame

struct GstTwoLame;

Opaque data structure.

Property Details

The “ath-level” property

  “ath-level”                gfloat

ATH Level in dB.

Owner: GstTwoLame

Flags: Read / Write

Default value: 0


The “bitrate” property

  “bitrate”                  gint

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

Owner: GstTwoLame

Flags: Read / Write

Allowed values: [8,384]

Default value: 192


The “copyright” property

  “copyright”                gboolean

Mark as copyright.

Owner: GstTwoLame

Flags: Read / Write

Default value: FALSE


The “emphasis” property

  “emphasis”                 GstTwoLameEmphasis

Pre-emphasis to apply to the decoded audio.

Owner: GstTwoLame

Flags: Read / Write

Default value: No emphasis


The “energy-level-extension” property

  “energy-level-extension”   gboolean

Write peak PCM level to each frame.

Owner: GstTwoLame

Flags: Read / Write

Default value: FALSE


The “error-protection” property

  “error-protection”         gboolean

Adds checksum to every frame.

Owner: GstTwoLame

Flags: Read / Write

Default value: FALSE


The “mode” property

  “mode”                     GstTwoLameMode

Encoding mode.

Owner: GstTwoLame

Flags: Read / Write

Default value: Joint Stereo


The “original” property

  “original”                 gboolean

Mark as original.

Owner: GstTwoLame

Flags: Read / Write

Default value: TRUE


The “padding” property

  “padding”                  GstTwoLamePadding

Padding type.

Owner: GstTwoLame

Flags: Read / Write

Default value: No Padding


The “psymodel” property

  “psymodel”                 gint

Psychoacoustic model used to encode the audio.

Owner: GstTwoLame

Flags: Read / Write

Allowed values: [-1,4]

Default value: 3


The “quick-mode” property

  “quick-mode”               gboolean

Calculate Psymodel every frames.

Owner: GstTwoLame

Flags: Read / Write

Default value: FALSE


The “quick-mode-count” property

  “quick-mode-count”         gint

Calculate Psymodel every n frames.

Owner: GstTwoLame

Flags: Read / Write

Allowed values: >= 0

Default value: 10


The “vbr” property

  “vbr”                      gboolean

Enable variable bitrate mode.

Owner: GstTwoLame

Flags: Read / Write

Default value: FALSE


The “vbr-level” property

  “vbr-level”                gfloat

VBR Level.

Owner: GstTwoLame

Flags: Read / Write

Allowed values: [-10,10]

Default value: 5


The “vbr-max-bitrate” property

  “vbr-max-bitrate”          gint

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).

Owner: GstTwoLame

Flags: Read / Write

Allowed values: [0,384]

Default value: 0

See Also

mad, lame