GNOME Bugzilla – Bug 162709
This MP3 file doesn't play in Gstreamer
Last modified: 2005-08-29 15:43:31 UTC
Distribution: Debian 3.1 Package: GStreamer Severity: normal Version: GNOME2.8.1 0.8.6 Gnome-Distributor: Debian Synopsis: This MP3 file doesn't play in Gstreamer Bugzilla-Product: GStreamer Bugzilla-Component: gst-plugins Bugzilla-Version: 0.8.6 Description: Description of Problem: $gst-launch-ext-0.8 botanybay.MP3 Please add a VIDEOSINK to /home/uridavid/.gst ! Running command-line gst-launch-0.8 filesrc location="botanybay.MP3" ! mad ! "esdsink"; RUNNING pipeline ... ERROR: from element /pipeline0/mad0: Internal GStreamer error: pad problem. File a bug. Additional debug info: gstpad.c(2490): gst_pad_set_explicit_caps: /pipeline0/mad0: failed to negotiate (try_set_caps with "audio/x-raw-int, endianness=(int)1234, signed=(boolean)true, width=(int)16, depth=(int)16, rate=(int)22050, channels=(int)2" returned REFUSED) This file works in mpg123, File gives the following result $file botanybay.MP3 botanybay.MP3: RIFF (little-endian) data, WAVE audio, MPEG Layer 3, stereo 22050 Hz ------- Bug moved to this database by unknown@bugzilla.gnome.org 2005-01-02 02:23 ------- Unknown platform unknown. Setting to default platform "Other". Unknown milestone "unknown" in product "GStreamer". Setting to default milestone for this product, 'HEAD' Setting to default status "UNCONFIRMED". Setting qa contact to the default for this product. This bug either had no qa contact or an invalid one.
The file is 1.2MB in size - can you tell me how to make it smaller, or give me access to an FTP site where it can be uploaded? Bugzilla is limited to 1MB.
First try: gst-launch filesrc location=file.mp3 ! mad ! audioconvert ! audioscale ! esdsink
this is not a real MP3 file (MPEG ADTS, v1/2 layer III) it is a WAVE file containing mpeg 1/2 layer III so, insert wavparse between filesrc and mad : filesrc location=file.mp3 ! wavparse ! mad ! audioconvert ! audioscale ! esdsink
gst-launch-ext guesses file type from extension. unfortunalty, as stated above, this is not a mp3 (mp3 in a mpeg container) but mp3 in a wav container