[banshee] Expose LAME's "preset" option (BGO #563303)
- From: Gabriel Burt <gburt src gnome org>
- To: svn-commits-list gnome org
- Subject: [banshee] Expose LAME's "preset" option (BGO #563303)
- Date: Thu, 4 Jun 2009 16:05:35 -0400 (EDT)
commit c6cf6a1b13081d539490d08c8d6c7d8ce9fad735
Author: Christopher James Halse Rogers <raof ubuntu com>
Date: Thu Jun 4 15:02:46 2009 -0500
Expose LAME's "preset" option (BGO #563303)
Signed-off-by: Gabriel Burt <gabriel burt gmail com>
---
data/audio-profiles/mp3-lame.xml.in | 28 +++++++++++++++++++++-------
1 files changed, 21 insertions(+), 7 deletions(-)
diff --git a/data/audio-profiles/mp3-lame.xml.in b/data/audio-profiles/mp3-lame.xml.in
index 73b33fa..1b9eaff 100644
--- a/data/audio-profiles/mp3-lame.xml.in
+++ b/data/audio-profiles/mp3-lame.xml.in
@@ -19,10 +19,12 @@
(gst-construct-pipeline
"audioconvert"
(gst-construct-element "lame"
- "mode" 4
- (if (= vbr_mode 0)
- ("bitrate" bitrate)
- ("vbr" vbr_mode "vbr-quality" (- 9 vbr_quality))))
+ (if (= vbr_mode -1)
+ ("preset" preset)
+ ("mode" 4
+ (if (= vbr_mode 0)
+ ("bitrate" bitrate)
+ ("vbr" vbr_mode "vbr-quality" (- 9 vbr_quality))))))
(if (and
(!= vbr_mode 0)
(gst-element-is-available "xingmux"))
@@ -38,9 +40,10 @@
<control-type>combo</control-type>
<default-value>0</default-value>
<possible-values>
- <_value value="0" enables="bitrate" disables="vbr_quality">Constant Bitrate</_value>
- <_value value="4" disables="bitrate" enables="vbr_quality">Variable Bitrate</_value>
- <_value value="3" disables="bitrate" enables="vbr_quality">Average Bitrate</_value>
+ <_value value="0" disables="vbr_quality,preset" enables="bitrate" >Constant Bitrate</_value>
+ <_value value="4" disables="bitrate,preset" enables="vbr_quality">Variable Bitrate</_value>
+ <_value value="3" disables="bitrate,preset" enables="vbr_quality">Average Bitrate</_value>
+ <_value value="-1" disables="bitrate,vbr_quality" enables="preset">Preset</_value>
</possible-values>
</variable>
<variable id="vbr_quality">
@@ -67,6 +70,17 @@
<value value="320">320 Kbps</value>
</possible-values>
</variable>
+ <variable id="preset">
+ <_name>LAME Preset</_name>
+ <control-type>combo</control-type>
+ <default-value>standard</default-value>
+ <possible-values>
+ <_value value="medium">Medium</_value>
+ <_value value="standard">Standard</_value>
+ <_value value="extreme">Extreme</_value>
+ <_value value="insane">Insane</_value>
+ </possible-values>
+ </variable>
</pipeline>
</profile>
</profiles>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]