diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-03-17 09:37:03 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-03-17 09:37:03 +0000 |
commit | 5953150ae7e120a80cad9f71a685741ac41bd21e (patch) | |
tree | 4e101bb2fde44b39fcaf12798eaa71159ec03764 /musictomp3 | |
parent | 4812e00105f6197c3385f167f245348d65e79e36 (diff) | |
download | extrautils-5953150ae7e120a80cad9f71a685741ac41bd21e.tar.gz |
Fix musictomp3 to work with gst-launch-0.10 and set lame options.
Diffstat (limited to 'musictomp3')
-rwxr-xr-x | musictomp3 | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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] |