wavpackenc

wavpackenc — Encodes audio with the Wavpack lossless/lossy audio codec

Synopsis

                    GstWavpackEnc;

Object Hierarchy

  GObject
   +----GstObject
         +----GstElement
               +----GstWavpackEnc

Implemented Interfaces

GstWavpackEnc implements GstPreset.

Properties

  "bitrate"                  guint                 : Read / Write
  "bits-per-sample"          gdouble               : Read / Write
  "correction-mode"          GstWavpackEncCorrectionMode  : Read / Write
  "extra-processing"         guint                 : Read / Write
  "joint-stereo-mode"        GstWavpackEncJSMode   : Read / Write
  "md5"                      gboolean              : Read / Write
  "mode"                     GstWavpackEncMode     : Read / Write

Description

WavpackEnc encodes raw audio into a framed Wavpack stream. Wavpack is an open-source audio codec that features both lossless and lossy encoding.

Example launch line

gst-launch audiotestsrc num-buffers=500 ! audioconvert ! wavpackenc ! filesink location=sinewave.wv
This pipeline encodes audio from audiotestsrc into a Wavpack file. The audioconvert element is needed as the Wavpack encoder only accepts input with 32 bit width (and every depth between 1 and 32 bits).
gst-launch cdda://1 ! audioconvert ! wavpackenc ! filesink location=track1.wv
This pipeline encodes audio from an audio CD into a Wavpack file using lossless encoding (the file output will be fairly large).
gst-launch cdda://1 ! audioconvert ! wavpackenc bitrate=128000 ! filesink location=track1.wv
This pipeline encodes audio from an audio CD into a Wavpack file using lossy encoding at a certain bitrate (the file will be fairly small).

Details

GstWavpackEnc

typedef struct _GstWavpackEnc GstWavpackEnc;

Property Details

The "bitrate" property

  "bitrate"                  guint                 : Read / Write

Try to encode with this average bitrate (bits/sec). This enables lossy encoding, values smaller than 24000 disable it again.

Allowed values: <= 9600000

Default value: 0


The "bits-per-sample" property

  "bits-per-sample"          gdouble               : Read / Write

Try to encode with this amount of bits per sample. This enables lossy encoding, values smaller than 2.0 disable it again.

Allowed values: [0,24]

Default value: 0


The "correction-mode" property

  "correction-mode"          GstWavpackEncCorrectionMode  : Read / Write

Use this mode for the correction stream. Only works in lossy mode!.

Default value: Create no correction file


The "extra-processing" property

  "extra-processing"         guint                 : Read / Write

Use better but slower filters for better compression/quality.

Allowed values: <= 6

Default value: 0


The "joint-stereo-mode" property

  "joint-stereo-mode"        GstWavpackEncJSMode   : Read / Write

Use this joint-stereo mode.

Default value: auto


The "md5" property

  "md5"                      gboolean              : Read / Write

Store MD5 hash of raw samples within the file.

Default value: FALSE


The "mode" property

  "mode"                     GstWavpackEncMode     : Read / Write

Speed versus compression tradeoff.

Default value: Normal Compression