MP3 playback

Chris Tapp opensource at keylevel.com
Mon Mar 3 14:35:07 PST 2014


I'm upgrading a project from 0.10 to 1.2 and I'm having some problems getting MP3 audio playback working. Running:

gst-launch-1.0 playbin uri=file:///some.mp3

results in:

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Missing element: MPEG-1 Layer 3 (MP3) decoder
WARNING: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: No decoder available for type 'audio/mpeg, mpegversion=(int)1, layer=(int)3, parsed=(boolean)false'.
Additional debug info:
gsturidecodebin.c(930): unknown_type_cb (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0
ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0: Your GStreamer installation is missing a plug-in.
Additional debug info:
gstdecodebin2.c(3928): gst_decode_bin_expose (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0:
no suitable plugins found
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

However, I have gst-plugins-bad-mad installed:

gst-inspect-1.0 mad
Factory Details:
  Rank                     secondary (128)
  Long-name                mad mp3 decoder
  Klass                    Codec/Decoder/Audio
  Description              Uses mad code to decode mp3 streams
  Author                   Wim Taymans <wim.taymans at gmail.com>
...

libmad and libav (from gstreamer1.0-libav) are also installed.

Running with GST_DEBUG="*:5" gives the following (extract):

0:00:02.131567571  2292 0xb6c020c0 DEBUG                playbin gstplaybin2.c:3934:autoplug_factories_cb:<playbin0> factories group 0x8129aa4 for '':decodepad0, audio/mpeg, mpegversion=(int)1, layer=(int)3, parsed=(boolean)false
...
0:00:02.134503692  2292 0xb6c020c0 DEBUG    GST_ELEMENT_FACTORY gstelementfactory.c:841:gst_element_factory_list_filter: Trying mad
...
0:00:02.164989188  2292 0xb6c020c0 DEBUG                playbin gstplaybin2.c:3944:autoplug_factories_cb:<playbin0> found factories (nil)
0:00:02.165160681  2292 0xb6c020c0 DEBUG           uridecodebin gsturidecodebin.c:1692:proxy_autoplug_factories_signal:<uridecodebin0> autoplug-factories returned 0x8097a30

Can anyone throw some light on what I've not got in place?

Chris Tapp

opensource at keylevel.com
www.keylevel.com





More information about the gstreamer-devel mailing list