From 5953150ae7e120a80cad9f71a685741ac41bd21e Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 17 Mar 2011 09:37:03 +0000 Subject: Fix musictomp3 to work with gst-launch-0.10 and set lame options. --- musictomp3 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/musictomp3 b/musictomp3 index 08e59c8..f7efda4 100755 --- a/musictomp3 +++ b/musictomp3 @@ -72,7 +72,7 @@ def convert_to_mp3(input_root, output_root, filename): make_dirs_for_file(output_path) tempname = mktemp(output_path) - argv = ['gst-launch', + argv = ['gst-launch-0.10', '-q', 'filesrc', 'location=%s' % input_path, @@ -80,6 +80,10 @@ def convert_to_mp3(input_root, output_root, filename): 'decodebin', '!', 'lame', + 'quality=2', + 'vbr=4', + 'vbr-max-bitrate=128', + 'vbr-quality=9', '!', 'filesink', 'location=%s' % tempname] -- cgit v1.2.1