wavpackenc
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-1.0 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.
gst-launch-1.0 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-1.0 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).
Hierarchy
GObject ╰──GInitiallyUnowned ╰──GstObject ╰──GstElement ╰──GstAudioEncoder ╰──wavpackenc
Factory details
Authors: – Sebastian Dröge
Classification: – Codec/Encoder/Audio
Rank – none
Plugin – gstwavpack
Package – GStreamer Good Plug-ins
Pad Templates
sink
audio/x-raw:
format: S32LE
layout: interleaved
channels: [ 1, 8 ]
rate: [ 6000, 192000 ]
src
audio/x-wavpack:
depth: [ 1, 32 ]
channels: [ 1, 8 ]
rate: [ 6000, 192000 ]
framed: true
wvcsrc
audio/x-wavpack-correction:
framed: true
Signals
no-more-pads
no_more_pads_callback (GstElement * param_0, gpointer udata)
def no_more_pads_callback (param_0, udata):
#python callback for the 'no-more-pads' signal
function no_more_pads_callback(param_0: GstElement * param_0, udata: gpointer udata): {
// javascript callback for the 'no-more-pads' signal
}
Parameters:
param_0
–
udata
–
Flags: Run Last
pad-added
pad_added_callback (GstElement * param_0, GstPad * arg0, gpointer udata)
def pad_added_callback (param_0, arg0, udata):
#python callback for the 'pad-added' signal
function pad_added_callback(param_0: GstElement * param_0, arg0: GstPad * arg0, udata: gpointer udata): {
// javascript callback for the 'pad-added' signal
}
Parameters:
param_0
–
arg0
–
udata
–
Flags: Run Last
pad-removed
pad_removed_callback (GstElement * param_0, GstPad * arg0, gpointer udata)
def pad_removed_callback (param_0, arg0, udata):
#python callback for the 'pad-removed' signal
function pad_removed_callback(param_0: GstElement * param_0, arg0: GstPad * arg0, udata: gpointer udata): {
// javascript callback for the 'pad-removed' signal
}
Parameters:
param_0
–
arg0
–
udata
–
Flags: Run Last
Properties
bitrate
“bitrate” guint
Try to encode with this average bitrate (bits/sec). This enables lossy encoding, values smaller than 24000 disable it again.
Flags : Read / Write
Default value : 0
bits-per-sample
“bits-per-sample” gdouble
Try to encode with this amount of bits per sample. This enables lossy encoding, values smaller than 2.0 disable it again.
Flags : Read / Write
Default value : 0
correction-mode
“correction-mode” GstWavpackEncCorrectionMode *
Use this mode for the correction stream. Only works in lossy mode!
Flags : Read / Write
Default value : off (0)
extra-processing
“extra-processing” guint
Use better but slower filters for better compression/quality.
Flags : Read / Write
Default value : 0
hard-resync
“hard-resync” gboolean
Perform clipping and sample flushing upon discontinuity
Flags : Read / Write
Default value : false
joint-stereo-mode
“joint-stereo-mode” GstWavpackEncJSMode *
Use this joint-stereo mode.
Flags : Read / Write
Default value : auto (0)
mark-granule
“mark-granule” gboolean
Apply granule semantics to buffer metadata (implies perfect-timestamp)
Flags : Read
Default value : false
md5
“md5” gboolean
Store MD5 hash of raw samples within the file.
Flags : Read / Write
Default value : false
mode
“mode” GstWavpackEncMode *
Speed versus compression tradeoff.
Flags : Read / Write
Default value : normal (2)
perfect-timestamp
“perfect-timestamp” gboolean
Favour perfect timestamps over tracking upstream timestamps
Flags : Read / Write
Default value : true
tolerance
“tolerance” gint64
Consider discontinuity if timestamp jitter/imperfection exceeds tolerance (ns)
Flags : Read / Write
Default value : 40000000
Named constants
GstWavpackEncCorrectionMode
Members
off
(0) – Create no correction file
on
(1) – Create correction file
optimized
(2) – Create optimized correction file
GstWavpackEncJSMode
Members
auto
(0) – auto
leftright
(1) – left/right
midside
(2) – mid/side
GstWavpackEncMode
Members
fast
(1) – Fast Compression
normal
(2) – Normal Compression
high
(3) – High Compression
veryhigh
(4) – Very High Compression
The results of the search are