Bug 89487 - kde music players fail to play a specific mp3 (but xmms and mpg123 can)
Summary: kde music players fail to play a specific mp3 (but xmms and mpg123 can)
Status: RESOLVED FIXED
Alias: None
Product: akodelib
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Stefan Westerfeld
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-14 15:40 UTC by David Rosenstrauch
Modified: 2004-10-12 00:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Rosenstrauch 2004-09-14 15:40:49 UTC
Version:            (using KDE KDE 3.3.0)
Installed from:    Unlisted Binary Package
OS:                Linux

The KDE music players (noatun, kaboodle, amarok, mpeglibartsplay) are unable to play a particular mp3.  (And, according to someone else, when playing it via xmms with artsdsp, xmms segfaults.)

However, the mp3 does appear to be valid:

* it plays fine in xmms (without artsdsp) and mpg123
* konqueror can view/edit the meta info without a problem

The file in question can be found at:
http://www.darose.net/Thomas%20Dolby%20-%20One%20Of%20Our%20Submarines.mp3
Comment 1 David Rosenstrauch 2004-09-26 04:35:11 UTC
FYI - this MP3 also works on my iPod (mini).  Further evidence that the mp3 is valid and that this is a bug in arts.
Comment 2 Stefan Gehn 2004-09-26 11:01:12 UTC
Doesn't work here with akode, noatun just skips that file. I don't know if the reporter used mpeglib or akode but I guess fixing akode is the best solution anyway ;)
Comment 3 Allan Sandfeld 2004-09-26 15:35:26 UTC
The file is encoded as dual mono. In theory that means it contains two mono streams rather than a stereo stream. 

What application has encoded this file?
Comment 4 David Rosenstrauch 2004-09-27 04:18:55 UTC
Dual mono, huh?  Interesting.  So perhaps arts has a problem with dual mono?  Just curious, by the way, how did were you able to find out it was encoded that way?

I actually don't know what app was used to capture the file originally, unfortunately.  I got it from a former co-worker who I'm no longer in touch with.
Comment 5 David Rosenstrauch 2004-10-06 05:20:39 UTC
Don't know if this helps at all, but I just found another one that doesn't work:

http://www.darose.net/Whitesnake%20-%20Still%20Of%20The%20Night.mp3

Same problem:  doesn't play w/KDE/arts stuff; plays fine in XMMS and on my iPod.  I suspect that there might be more like this in my collection as well.

Maybe KDE just doesn't like 80's tunes?  :-)

Anybody have any idea for a cause and/or fix for this?  I much prefer using KDE apps, but I'll switch to something else if it turns out that KDE can't play a bunch of my tunes.

Tnx,
DR
Comment 6 David Rosenstrauch 2004-10-07 06:02:31 UTC
Did a bit more reading tonight about dual mono, and I checked:  both sample files are recorded in this 2-channel/dual-mono fashion.  So problem then, I guess, is that the KDE mp3 lib doesn't support this 2-channel/dual-mono format, and so that's the root of the issue.  A fix would mean somehow providing support for this format.  Don't know how priority an issue this is, though.  I doubt that there's many MP3's out there with this format.
Comment 7 Allan Sandfeld 2004-10-12 00:52:51 UTC
CVS commit by carewolf: 

Play dual mono samples as if it was stereo, instead of not playing them at all.
CCMAIL:89487-done@bugs.kde.org


  M +1 -1      akodePlayObject_impl.cpp   1.24


--- kdemultimedia/akode/arts_plugin/akodePlayObject_impl.cpp  #1.23:1.24
@@ -375,5 +375,5 @@ void akodePlayObject_impl::calculateBloc
             }
         }
-        if (buffer->channel_config != MonoStereo || buffer->sample_width > 24 || buffer->sample_width == 0) {
+        if (buffer->channels > 2 || buffer->sample_width > 24 || buffer->sample_width == 0) {
             arts_warning("akode: Incompatible media");
             halt();