a52dec

a52dec

Properties

gboolean drc Read / Write
gboolean lfe Read / Write
GstA52DecMode mode Read / Write

Types and Values

struct GstA52Dec

Description

Dolby Digital (AC-3) audio decoder.

Example launch line

1
gst-launch-1.0 dvdreadsrc title=1 ! mpegpsdemux ! a52dec ! audioconvert ! audioresample ! autoaudiosink
Play audio part of a dvd title.
1
gst-launch-1.0 filesrc location=abc.ac3 ! ac3parse ! a52dec ! audioconvert ! audioresample ! autoaudiosink
Decode and play a stand alone AC-3 file.

Synopsis

Element Information

plugin

a52dec

author

David I. Lehn <dlehn@users.sourceforge.net>

class

Codec/Decoder/Audio

Element Pads

name

sink

direction

sink

presence

always

details

audio/x-ac3

audio/ac3

audio/x-private1-ac3

name

src

direction

source

presence

always

details

audio/x-raw, format=(string)F32LE, layout=(string)interleaved, rate=(int)[ 4000, 96000 ], channels=(int)[ 1, 6 ]

Functions

Types and Values

struct GstA52Dec

struct GstA52Dec {
  GstAudioDecoder element;

  GstPadChainFunction base_chain;

  gboolean       dvdmode;
  gboolean       flag_update;
  int            prev_flags;

  /* stream properties */
  int            bit_rate;
  int            sample_rate;
  int            stream_channels;
  int            request_channels;
  int            using_channels;

  gint           channel_reorder_map[6];

  sample_t       level;
  sample_t       bias;
  gboolean       dynamic_range_compression;
  sample_t      *samples;
  a52_state_t   *state;
};

Property Details

The “drc” property

  “drc”                      gboolean

Use Dynamic Range Compression.

Flags: Read / Write

Default value: FALSE


The “lfe” property

  “lfe”                      gboolean

LFE.

Flags: Read / Write

Default value: TRUE


The “mode” property

  “mode”                     GstA52DecMode

Decoding Mode (default 3f2r).

Flags: Read / Write

Default value: 3 Front, 2 Rear