![]() |
![]() |
![]() |
![]() |
This element encodes raw integer audio into an MPEG-1 layer 3 (MP3) stream. Note that MP3 is not a free format, there are licensing and patent issues to take into consideration. See Ogg/Vorbis for a royalty free (and often higher quality) alternative.
1 |
gst-launch -v audiotestsrc wave=sine num-buffers=100 ! audioconvert ! lame ! filesink location=sine.mp3 |
1 |
gst-launch -v alsasrc ! audioconvert ! lame bitrate=192 ! filesink location=alsasrc.mp3 |
1 |
gst-launch -v filesrc location=music.wav ! decodebin ! audioconvert ! audioresample ! lame bitrate=192 ! id3v2mux ! filesink location=music.mp3 |
1 |
gst-launch -v cdda://5 ! audioconvert ! lame bitrate=192 ! filesink location=track5.mp3 |
1 |
gst-launch -v audiotestsrc num-buffers=10 ! audio/x-raw-int,rate=44100,channels=1 ! lame bitrate=48 mode=3 ! filesink location=test.mp3 |
Last reviewed on 2007-07-24 (0.10.7)
“allow-diff-short”
property“allow-diff-short” gboolean
Allow diff short.
Flags: Read / Write
Default value: FALSE
“ath-only”
property“ath-only” gboolean
Ignore GPSYCHO completely, use ATH only.
Flags: Read / Write
Default value: FALSE
“ath-short”
property“ath-short” gboolean
Ignore GPSYCHO for short blocks, use ATH only.
Flags: Read / Write
Default value: FALSE
“bitrate”
property“bitrate” gint
Bitrate in kbit/sec (8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256 or 320).
Flags: Read / Write
Allowed values: [0,320]
Default value: 128
“compression-ratio”
property“compression-ratio” gfloat
let lame choose bitrate to achieve selected compression ratio.
Flags: Read / Write
Allowed values: [0,200]
Default value: 0
“copyright”
property“copyright” gboolean
Mark as copyright.
Flags: Read / Write
Default value: FALSE
“cwlimit”
property“cwlimit” gint
Compute tonality up to freq (in kHz) default 8.8717 (DEPRECATED: this setting has no effect).
Flags: Read / Write
Allowed values: [0,50000]
Default value: 0
“disable-reservoir”
property“disable-reservoir” gboolean
Disable the bit reservoir.
Flags: Read / Write
Default value: TRUE
“error-protection”
property“error-protection” gboolean
Adds 16 bit checksum to every frame.
Flags: Read / Write
Default value: FALSE
“force-ms”
property“force-ms” gboolean
Force ms_stereo on all frames.
Flags: Read / Write
Default value: FALSE
“free-format”
property“free-format” gboolean
Produce a free format bitstream.
Flags: Read / Write
Default value: FALSE
“highpass-freq”
property“highpass-freq” gint
frequency(kHz), highpass filter cutoff below freq.
Flags: Read / Write
Allowed values: [0,50000]
Default value: 0
“highpass-width”
property“highpass-width” gint
frequency(kHz) - default 15% of highpass freq.
Flags: Read / Write
Allowed values: >= -1
Default value: -1
“lowpass-freq”
property“lowpass-freq” gint
frequency(kHz), lowpass filter cutoff above freq.
Flags: Read / Write
Allowed values: [0,50000]
Default value: 17000
“lowpass-width”
property“lowpass-width” gint
frequency(kHz) - default 15% of lowpass freq.
Flags: Read / Write
Allowed values: >= -1
Default value: -1
“mode”
property“mode” GstLameMode
Encoding mode.
Flags: Read / Write
Default value: Joint Stereo
“no-ath”
property“no-ath” gboolean
turns ATH down to a flat noise floor.
Flags: Read / Write
Default value: FALSE
“no-short-blocks”
property“no-short-blocks” gboolean
Do not use short blocks.
Flags: Read / Write
Default value: FALSE
“original”
property“original” gboolean
Mark as original.
Flags: Read / Write
Default value: TRUE
“padding-type”
property“padding-type” GstLamePadding
Padding type (DEPRECATED: this setting has no effect).
Flags: Read / Write
Default value: No Padding
“quality”
property“quality” GstLameQuality
Quality of algorithm used for encoding.
Flags: Read / Write
Default value: 3
“strict-iso”
property“strict-iso” gboolean
Comply as much as possible to ISO MPEG spec.
Flags: Read / Write
Default value: TRUE
“vbr”
property“vbr” GstLameVbrmode
Specify bitrate mode.
Flags: Read / Write
Default value: No VBR (Constant Bitrate)
“vbr-hard-min”
property“vbr-hard-min” gint
Specify whether min VBR bitrate is a hard limit. Normally, it can be violated for silence.
Flags: Read / Write
Allowed values: [0,1]
Default value: 0
“vbr-max-bitrate”
property“vbr-max-bitrate” gint
Specify maximum VBR bitrate (8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256 or 320).
Flags: Read / Write
Allowed values: [0,320]
Default value: 0
“vbr-mean-bitrate”
property“vbr-mean-bitrate” gint
Specify mean VBR bitrate.
Flags: Read / Write
Allowed values: [0,320]
Default value: 128
“vbr-min-bitrate”
property“vbr-min-bitrate” gint
Specify minimum VBR bitrate (8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256 or 320).
Flags: Read / Write
Allowed values: [0,320]
Default value: 0
“vbr-quality”
property“vbr-quality” GstLameQuality
VBR Quality.
Flags: Read / Write
Default value: 4
“xingheader”
property“xingheader” gboolean
Output Xing Header (BROKEN, use xingmux instead).
Flags: Read / Write
Default value: FALSE