WARNING: erroneous pipeline: no element “lamemp3enc”

I was using gst-launch to create and handle an audio stream, but when I went to run it on a second Ubuntu box I could not figure out why I was getting an error.

Here was a section of my command:

gst-launch-0.10 pulsesrc device=alsa_output.pci-0000_02_02.0.analog-stereo.monitor ! audioconvert ! audio/x-raw-int,channels=2,rate=32000 ! lamemp3enc ! ...

I got this error:

WARNING: erroneous pipeline: no element "lamemp3enc"

Looking through Synaptic, I could not find out how to get this lamemp3enc installed, try as I might. I checked the GStreamer Reference, which says it’s part of the “ugly” plugins set. But after installing gstreamer0.10-plugins-ugly I was getting the same error. It turns out I needed to enable the multiverse repository and install gstreamer0.10-plugins-ugly-multiverse. Install via Synaptic or use the following command:

sudo apt-get install gstreamer0.10-plugins-ugly-multiverse

Hopefully this helps anyone trying to figure out the same issue.