07 Mar 2005

MP3 encoding with Sound-Juicer

Posted by Jacob Emcken

Countless times have I struggled with MP3 encoding under Linux. I seems for an eternity now. Every single time I had to fall back on the same #¤@?-ing console based ripping with abcde. And if it hadn’t been that abcde is a great ripping tool, the pain that this problem have caused me wouldn’t be describable.

Well now for the good news…. Sound-Juicer finally works (using Sound-Juicer 2.10 from Ubuntu Hoary)! First I had to install the gstreamer8.0-lame package to encode audio to MP3 (gstreamer8.0-mad is needed for playback).

Then i ran gnome-audio-profiles-properties and created a new profile with the following values:

Profile name: CD Quality, Lossy
Profile Description: Test
GStreamer Pipeline: audio/x-raw-int,rate=44100,channels=2 ! lame name=enc
File Extension: mp3

Profile description and name is up to you. Dont worry, even though you have 2 profile with the same name i.e. “CD Quality, Lossy”, Sound-Juicer will tell the difference between them because it also displays the extension.

I cant remember which package provided gnome-audio-profiles-properties.

Update: Glad to see this info actually helped people out there on the Ubuntu forums :-D

72 Comments to MP3 encoding with Sound-Juicer

John Coonrod
June 27, 2005

Slight correction: gnome-audio-profiles-properties will NOT let you create a duplicate CD Quality, Lossy profile, but it will let you edit the current one. ALSO – be sure to run the program in your own terminal, not the root terminal.

June 30, 2005

did all of that stuff mentioned above but the new profile still wasn’t available in Sound Juicer so no joy for me. In all of th forums I’ve looked at I haven’t noticed anyone’s complained of the same thing … is there something real obvious that I’m missing that isn’t explicitly stated there? (I mean the help file in Sound juicer basically gives the sam instructions)

Jacob Emcken
July 2, 2005

I dunno how but I have 2 profiles named ‘CD Quality, Lossy’. One defined global (in /etc/gconf/schemas/gnome-audio-profiles.schemas) and one local for my user (in ~/.gconf/system/gstreamer/audio/profiles/mp3/%gconf.xml). .

Jacob Emcken
July 2, 2005

Apart from what John wrote:

Remember to run Sound-Juicer as the same user as you did with gnome-audio-profiles-properties. Because the profiels are user specific.

July 3, 2005

thanks for that I was editing the root profiles then trying to run it on my own one working good now.

July 27, 2005

I did add the profile as user, but, still, when I run sound-juicer the new profile doesn’t appear in the properties list. :-(

August 1, 2005

here’s what I did

sudo gnome-audio-profiles-properties (add the stuff mentioned above) sudo gconf-editor – navigate to /system/gstreamer/audio/global and make the setting there default (from the right-click menu) – navigate to /system/gstreamer/audio/profiles/CD%…./ and make all the settings default (from the right-click menu)

August 2, 2005

You have to click on the “active” box (bottom-left) in the gnome-audio-profiles-properties panel ;-)

Jacob's Weblog
August 9, 2005

After my success with installing Ubuntu I wanted to rip 2 new CD’s I got today. But the gstreamer MP3 encoder (gstreamer0.8-lame) isn’t in the Ubuntu repositories.

I found it at Marillat’s Debian repository (direct link) where I downloaded it and install

August 29, 2005

Great tip. I tried this and it’s working fine. It produces VBR mp3s by default though and I’d like CBR so I’ll just see if I can tweak it somehow

One thing though: gstreamer complains that:

Couldn’t find matching gstreamer tag for track-count Couldn’t find matching gstreamer tag for encoder Couldn’t find matching gstreamer tag for encoder-version

for each track converted in sound-juicer although the produced mp3s work OK (tested in beep media player).

Is it possible to silence gstreamer somehow? Or is this a serious warning?

November 10, 2005

Can’t find the gstreamer file anywhere, gstreamer-8.0-lame, you could have included a link to it, that’s the hard part.

Ubuntu looks pretty and is easy to install, but it has these opacities throughout. They should just come out and say, ‘You can’t encode to MP3 because of stupid software patents’, or whatever, and let the user know he’s hosed, rather than pussyfooting around the issue. This is indeed Lame.

Jacob Emcken
November 16, 2005

The gstreamer-lame package isn’t in Ubuntus repositories put you can fetch them here at Marillat’s Debian repository

David Haas
December 17, 2005

Sound Juicer gives the instructions for converting to MP3 format at ripping in its Help>Preferences section:

“If you need to store tracks in the MP3 format (for example, because your portable music player only supports MP3 and not Ogg Vorbis), you will need to create a new profile. To do this, run gnome-audio-profiles-properties, press New and name it MP3. Then press Edit and set GStreamer Pipeline to audio/x-raw-int,rate=44100,channels=2 ! lame name=enc, the File Extenstion to mp3, and check Active. Then start Sound Juicer and select the MP3 format.

This profile uses the LAME MP3 encoder, so you will need to have the GStreamer LAME plugin installed.”

And now Ubuntu Hoary has the needed “LAME” GStreamer plugin installed by default. If not, it can readily be installed, of course, in Synaptic.

December 18, 2005

Excellent — many thanks for the useful post (found via google). It has solved our problem. :-)

December 30, 2005

use synaptic to install gstreamer lame and mad.

January 19, 2006

Hey, for everyone looking to make CBR MP3s, I found this on the Fedora Forums.

audio/x-raw-int,rate=44100,channels=2 ! lame name=enc vbr=0 bitrate=128

Change bitrate to whatever number you’d like. I like 192 myself, it’s a nice balance between size and quality.

February 1, 2006

A word of warning! You need to restart juicer (well, I did anyway) to get it to pick up the new entry, and if you’ve just spent ages typing in the track names because it didn’t pick them up automatically, you loose them. :(

February 10, 2006

What bit rate does the mp3 file get encoded with?

Vladimir Prieto
March 27, 2006

hi, this explanation was cool, but i spend hours trying to find out howto change “mode” of my encoded mp3 files.

i want them with stereo mode and not with joint stereo mode. and even with the lame preset to insane i get joint stereo.

afters hours searching i finally found that with this command:

gst-inspect-0.8 lame

i can see all options/parameters that can be passed to the gstreamer pipeline. so i finally use this one :

audio/x-raw-int,rate=44100,channels=2 ! lame name=enc bitrate=320 mode=0

hope this helps someone…

April 14, 2006

In Dapper you need to install gstreamer0.10-plugins-ugly-multiverse

It’s working perfectly for me now. Cheers.

April 21, 2006
  1. As mentioned above, use this line in gnome-audio-profiles-properties to change it:

audio/x-raw-int,rate=44100,channels=2 ! lame name=enc vbr=0 bitrate=128

And change ’128′ to whatever you want.

Andy Kennedy
May 8, 2006

I tried this and the size of the mp3 files is massive. I ripped a trackwith sound-juicer and it came out at 70MB where the same track was about 5MB with KaudioCreator using the same encoder.

May 18, 2006

128 by default

May 22, 2006

i have let say same problem with sound juicer when i whant to ripp some cd to mp3 program give me this message “could not create gstreamer encoder (null)” , i create mp3 profile, but i when i run sudo gconf-editor – navigate to run/system/gstreamer/audio/global i dont have mp3 profile folder its that normal help

May 27, 2006

To get all the parameters for the gst-lame plugin:

gst-inspect-0.8 lame

May 28, 2006

Now I can extract music in mp3 format instead of converting .ogg files: cuts the time by a half. Thanks dude.

May 28, 2006

how do you get it to label the id tag?

June 15, 2006

GStreamer is a pain in the ass.

Install grip. Install lame and liblame0.

Read the lame man page to see what options you would like to use for encoding your MPs and tell Grip to use these with lame.

Myself, I tell Grip to have the following Encoder command line under Config/Encode/Encoder:

-q0 -v -V0 -b 160 -B 320 “%w” “%m”

(highest quality, variable bit rate, highest quality variable bit rate, minimum bit rate 160, maximum bit rate 320, wav file, mp3 file).

Try this, you’ll be happy.

June 30, 2006

If you export them from soundjuicer to MP3, they are 128 bits. I got much better results exporting them to OGG, and then converting them to MP3 with audio-converter -high quality parameters.

August 13, 2006

hi.. first tnkz for all the tips.. is the best place i found to make soundjuicer work with lame.. but i have a problem.. the track are encoded with all the information ok but icant play’em.. sometimes i get a MIME error.. what can i do? tnkz in advance.

August 14, 2006

If you activate ALL Ubuntu repositories in Synaptic (backports, universe, multiverse, etc), you can download the gstreamer-8.0-lame directly from Synaptic. Nothing complicated needed. ;)

October 17, 2006

I just wanted to turn my CD collection into mp3s. Spent hours trying to get sound juicer to work and failed. I then installed ****grip****, selected the lame encoder and it just worked!

November 8, 2006

As of Ubuntu Edgy 6.10, the mp3 (lame) encoding comes in the gstreamer0.10 plugins.
I installed those using these instructions: http://ubuntuguide.org/wiki/UbuntuEdgy#HowtoinstallMultimedia_Codecs After installing the above, followed your instructions on setting up gnome-audio-profiles-properties, and it worked! Thanks!

November 13, 2006

add “! id3v2mux” to the end of the pipeline.

November 14, 2006

Worked beautifully! Thanks for the tip. I saw someone say that it’s in the program’s help section on how to do this but I rarely look there, usually because it’s so unhelpful :P Your page was at the top of my Google search.

November 20, 2006

I’m a gentoo user and this does not work for me. The registry doesn’t have the ‘x-raw-int’ option. I got it work by changing the gnome-audio settings to:

GStreamer Pipeline: audio/mpeg, mpegversion=1 layer=3 rate=44100,channels=2 ! lame name=enc

I don’t know why x-raw-int should even be a value…

November 27, 2006

I saw gstreamer is installed on my SUSE 10.1, lame as well, changed my gnome-audio-profiles-properties and it seems to work fine. Just it turned out that the MP3 files were about twice the sice of the .flac files. I tried: gst-inspect-0.10 lame No such element or plugin ‘lame’ Installing gstreamer010-plugins-ugly solved the problem, it seems to include gstreamer010-lame plugin.

December 7, 2006

Only if you leave bitrate=128. Set that to 356 if you want… personally I like 192. But don’t blame that on sound juicer; it’s your error.

Jon Grosshart
December 17, 2006

Here is a patch for gnome-media to fix this upstream if anyone is interested.. I prefer to do it this way rather than on a per user basis… Probably only usefull for people who compile Gnome themselves, like I do…


December 29, 2006

Really simple to do this now, the latest version of Sound Juicer tells you how to encode mp3′s in its help menu. A few clicks and you should be away!

January 5, 2007

Sweet man, thanks for the syntax. Worked like a champ!

January 8, 2007

Yeah…same here. Fresh ubuntu edgy, and making sound juicer do the right thing was too much of a hassle atm (ok, I only spent 10 mins on it, but got bored of the fiddling/version intermezzos).

sudo apt-get install grip lame

Aron van Ammers
January 9, 2007

I’m a Ubuntu Edgy (6.10) user. I followed the suggestions from the Sound Juicer help file and used the following pipeline:

audio/x-raw-int,rate=44100,channels=2 ! lame name=enc vbr=0 bitrate=196 ! id3v2mux

This caused Sound Juicer to hang every time upon pressing the Extract button. Only a 0-byte file was written.

After tinkering with the options I found out the option “vbr=0″ caused it to hang. When I removed that, it worked flawlessly. So the following line worked for me:

audio/x-raw-int,rate=44100,channels=2 ! lame name=enc bitrate=196 ! id3v2mux

Cheers, Aron

February 4, 2007

Second that vote for grip — I tried for a couple of hours to get Sound Juicer to rip at 192kbps, but it just wouldn’t play ball & I ain’t that bright :(

Installed grip in a couple of minutes, finally managed to get lame library downloaded from: http://www.rarewares.org/mp3.html http://www.rarewares.org/files/mp3/lame-3.97b-Linux86.tar.gz

Put the library in /usr/bin/ , and then made sure the Config->Encode->Encoder executable was pointing at /usr/bin/lame

It would be nice if there was an easier way for it to “just work” ;)

Tim LePes
February 20, 2007

I finally got this working on Edgy (6.10) by installing the 0.10 ugly package and using the “audio/mpeg, mpegversion=1 layer=3 rate=44100,channels=2 ! lame name=enc ! id3v2mux” pipeline.

This made sense since the “gst-inspect-0.10 lame” command showed me that lame is audio/mpeg on my setup. I can’t seem to get it to work with the bitrate= or vbr= settings, though. My default is 128bps, which is fine for the task at hand. But how do I get them changed for future reference? Is there a way to modify the default of 128 CBR (I presume it is CBR), or is there some other syntax I should be using in the pipeline?

Thanks all!

a owen
February 24, 2007

i’m having trouble with the file name. when i select “track artis (sortable) – track title” it takes the artist from the cd and not the track! what am i doing wrong?

i’m using ubuntu 6.10

cheers andi

February 28, 2007

Your pipeline is what worked for me as well.

Here are my steps:

Install lame Install gstreamer8.0-lame Install gstreamer0.10-plugins-ugly Install gstreamer0.10-plugins-ugly-multiverse

“audio/mpeg, mpegversion=1 layer=3 rate=44100,channels=2 ! lame name=enc bitrate=192 ! id3v2mux”

This encodes at 192 bitrate. It worked for me on an Edgy 6.10 system. Hope this helps!

(BTW, I did the original instructions, but the lame plugin wasn’t successfully installed until I installed the ugly-multiverse set.)

Jim Nutt
March 7, 2007

Use “vbr=new” instead of “vbr=0″, that tells lame to use the new vbr algorithm and seems to work correctly. I believe the vbr=0 was for the 0.8 version of gstreamer.

April 2, 2007

Hey, just an FYI, remember that after creating a new one in Juicer, you have to exit out of it, then restart it fresh…

Magically, you’ll see the one you created in the list, providing you set it for active.

Cheers, Ghost

April 22, 2007

i found this very useful. now i can extract mp3s from the juicer… but would anyone know how to adjust the size of the mp3 as the extracted ones range from 20mb to 50mb per song?


April 29, 2007

I’m not getting this to work, I don’t know what I’m doing wrong…

I can see the profile when I click “Edit Profiles”, but I can’t choose it as an output format

April 29, 2007

Arcibald, you may have already solved it, but I ran into the same problem.

When you go to Edit -> Preferences -> Edit Profiles you should get a list of badly named audio profiles. Click new or edit and another window will come up that you’re unable to modify (that’s the bug.) The work around is easy: Just close the “Edit GNOME Audio Profiles” but leave the “Editing Profile …” window open. You can then modify your profile and save your changes.

I’m really happy with Sound Juicer so far. I have badly scratched CD’s that I’m making .flac backups of, and so far I’ve tried the following: 1. Grip 2. Rubyripper 3. wine + exact audio copy (yes, it works if installed correctly. This guide helps: http://www.teqnilogik.com/tutorials/eac.htm#CompressionOptionsFLAC 4. Sound Juicer

They all work but I found that Sound Juicer was not only the fastest, but I have yet to detect any errors with the rips. Oddly enough, Grip (which I think is an awesome tool!) took about 40 minutes on one cd that had a lot of scratches, and Exact Audio Copy couldn’t get past the errors on track 3 of the same cd. Granted I probably don’t have them configured optimally or to be permissive with errors, but I ran the same CD through Sound Juicer and it came out great! I turned the volume up, played track 3 and couldn’t hear any problems. So I’m really impressed. It ripped that mangled CD in probably 5-7 mins too.

I love my Ubuntu Desktop :)

April 30, 2007

I am using Ubuntu 7.04 and these two variations work for me:

audio/x-raw-int,rate=44100,channels=2 ! lame name=enc mode=0 vbr=4 vbr-quality=2 ! id3v2mux

this is for vbr-encoded files. Good quality, but not insanely large files. For heavy metal it produces something like 7,1 MB for a 4.08 minute song (average of 234 kbps) and 7,7 MB for a 4.35 minute song (230 kbps). Little less for something like Alexia – Summer is Crazy (199 kbps).

audio/x-raw-int,rate=44100,channels=2 ! lame name=enc mode=0 bitrate=192 ! id3v2mux

The latter uses cbr of 192 kbps which is also rather good quality.

By the way, the id3v2mux makes the id3tags to the files, but they aren’t compatible with my SE W850i phone. So I had to install easytag to handle with the id3tags. Now everything works like charm =)

June 19, 2007

I’m also having trouble getting SJ to see the new profile. I’ve created it using the instructions here and in the “help” pages, but no matter what I do, Sound Juicer is not seeing the new format option.

I am not running either program as root. Any other ideas?

July 8, 2007

Hi i found this site, by searching a way to configure Sound-Juicer.

I currently use the following to make vbr mp3s. This i use since a long time with lame. Its the best kompromiss.

audio/x-raw-int,rate=44100,channels=2 ! lame name=enc vbr=new b=128 B=320 k

the lowest used bitrate is 128 the highest 320, so i get te best optimum i think.

lame normal cut highs and lows, on Pop-Musik wtih “k”, lame dont cut them. On some Musik with a wide range of Instruments, especialy Folk and classic u will can feel the effect. On Mainstream POP-Music, the effect is low.

July 28, 2007

For Ubuntu 7.10 Feisty Fawn: I set up everything according to instructions. I installed gsteamer0.08-lame. And created a new mp3 profile (which wasn’t needed) But sound juicer would not see the mp3 profile. I also tried a couple of other useless things.

My analysis: I found that are two versions of gstreamer: 0.8 and 0.10. And gstreamer0.08-lame will not work with Sound Juicer on this version of Ubuntu. I used the command gst-inspect-0.10 to try to find lame. command>gst-inspect-0.10 | grep -i lame

The solution: I the following package with Synaptic. gstreamer0.10-plugins-ugly-multiverse And this package contains gstreamer.10-lame And now Sound Juicer can see MP3s.


August 5, 2007

I too am having grip trouble, but now that link you provided doesn’t seem to be there anymore. it keeps telling me my encoder executable is invalid, even though i’ve installed lame (and restarted.) I’m lost as to what to do.

I had a weird sound juicer issue which caused me to try to use grip: i could not alter any text in the edit profiles section, and even though the “CD Quality – mp3″ profile was listed in my ‘edit profiles’ list upon install, and it was listed as “active,” it did not turn up in my available profiles.

p.s. I’m using feisty fawn.

August 5, 2007

Update: i set the executable line to “usr/bin/lame” like dogs did, and it just… worked. i didn’t tell the library to go there; i guess it just knew to.

August 8, 2007

Is it just me or does this create files which are padded with about 20 minutes of blank audio at the end (in rhythmbox at least)?

Great howto by the way.

August 29, 2007

“audio/mpeg…” also works on Ubuntu 6.06. The string “audio/x-raw-int…” from the reference produced 50 mb files.

February 17, 2008

CrazyTonic, you are my hero! Upgrading to gstreamer0.10 made Sound Juicer see my new profiles instantly. That was pretty confusing until I read your comment, so thanks! For the record, my setup was Sound Juicer 2.16.3 under Ubuntu Feisty Fawn (7.04).

Miller L
May 14, 2008

Having luck with the following in Arch using Sound Juicer 2.22.0:

audio/x-raw-int,rate=44100,channels=2 ! lame name=enc mode=0 quality=2 vbr=4 vbr-quality=0 ! id3v2mux

I found that using “gst-inspect-0.10 lame” in conjunction with “man lame” helped me -greatly- in figuring out which options I wanted to setup for SJ!

Thanks all for the guidance ;)

Once you get lame tweaked in SJ, I think its MUCH better and easier than Grip… which I’ve sworn by for 6 years.

Paulo Calipari
May 18, 2008

This was my problem for some time: I edited an existing & created a new mp3 profile (which wasn’t needed) but Sound Juicer would not show the mp3 profile for applying. (Working with Ubuntu 7.04 on AMD_64.)

Solution: sudo apt-get install gstreamer0.10-plugins-ugly-multiverse See: http://ubuntuforums.org/showthread.php?t=581306

Kehan H
June 19, 2008

Just remembered I struggled with this for a while and then discovered the correct settings in sound juicer’s help menu!!! Also with Hardy 8.04 this works out of the box no configuration needed.

December 10, 2008

I have struggled with this in Heron for a while, gave up on sound juicer because after editing in profiles it removed the one I edited and I was left with 3 not four…. the MP3 option shows up as editable but never is available to be selected. I tried creating new profiles and they too were not available to be selected as options although they saved just fine. I am not sure why but I just cant seem to get this one…. I have not tried the sudo route noted above, perhaps that is next.. but with all the comments it would seem that I don’t need to do that? sigh…. working with grip right now perhaps it will get the job done….. but not as of yet… Luck

mp3 players
January 13, 2009

i also had the same problem and i tried to use the advise what i received from this blog and i still have the problem i dont know what to do anymore i am giving up!!

February 22, 2009

I had a lot of trouble getting high-quality mp3s out of sound-juicer/gstreamer. Using the version installed from the repository from Ubuntu 8.10, it seems the only way to get gstreamer to work the way you want is to override every one of its default settings with something you want. I was finally able to use this pipeline: audio/x-raw-int,rate=44100,channels=2 ! lame name=enc mode=0 vbr=4 vbr-quality=0 quality=0 vbr-min-bitrate=32 vbr-max-bitrate=320 lowpass-freq=25000 ath-lower=0 ! id3v2mux

to get insane-quality VBR files equivalent to lame -m stereo -q 0 –vbr-new -V0 –add-id3v2 {infile} {outfile}

I used VLC’s statistics feature as suggested above and found these files to have the same stream bitrate and variability with files created by command-line invocation of LAME using the above parameters. I hope this helps someone.

March 3, 2009

your suggest: audio/x-raw-int,rate=44100,channels=2 ! lame name=enc mode=0 vbr=4 vbr-quality=0 quality=0 vbr-min-bitrate=32 vbr-max-bitrate=320 lowpass-freq=25000 ath-lower=0 ! id3v2mux works great, thanks it helps

December 4, 2009

Can i suggest for high quality MP3′s using:

audio/x-raw-int,rate=44100,channels=2 ! lame name=enc mode=0 preset=extreme

This uses the lame preset for extreme which is variable bitrate at a high bitrate. FOr more info just type

lame –preset help.

Just create a new preset in sounds juicer with the settings as above.

Gregg Lebovitz
January 31, 2010

Sound Juicer sounds great on paper (blog pages?), but 20% of the time I get the error message that it can’t read the track listing.

Grip, on the other hand, always works. I think clean and mean is great, but if it doesn’t work then it isn’t a very good piece of software.

May 31, 2010

Hi, I used:

audio/x-raw-int,rate=44100,channels=2 ! lame name=enc mode=0 vbr=3 vbr-quality=0 quality=0 vbr-min-bitrate=256 vbr-max-bitrate=320 lowpass-freq=25000 ath-lower=0 ! id3v2mux

And its gives me 256kbps! I’m a big audio fan so 5MB audio files is fine by me. Taking it up to 320kbps would be nicer, but this will do. Thanks.

July 15, 2010


gst-launch filesrc location=Bureau/test.ts ! mpegtsdemux name=demux program-number=12041 ! queue ! mpeg2dec ! ffmpegcolorspace ! xvimagesink demux. ! queue ! mad ! audioconvert ! audioresample ! alsasink

I like to play audio in mode stereo but audio is encoded in mono mode.

someone help me to add a caps or any plugin to set audio mode? thanks

Leave a comment