Bug 30541 - noatun (arts?) fails to play mp3 files named something.wav
Summary: noatun (arts?) fails to play mp3 files named something.wav
Status: CLOSED FIXED
Alias: None
Product: noatun
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Other
: NOR normal
Target Milestone: ---
Assignee: Multimedia Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-11 10:18 UTC by Nikita V. Youshchenko
Modified: 2003-01-29 11:31 UTC (History)
0 users

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 Nikita V. Youshchenko 2001-08-11 10:07:28 UTC
(*** This bug was imported into bugs.kde.org ***)

Package: noatun
Version: KDE 2.2 beta1

Hello.

I have several CDs with mp3 files.
Unfortunately files on CDs are named with .wav extension. But the actual 
audoi data is mp3 and mpg123 processes it correctly.

Noatun from KDE 2.1 (compiled from sources) used to play those files 
correctly.

Noatun from current KDE 2.2 (both compiled from sources and installed as 
binary debian packages) refuses to play the files.
There is no sound and the following message appears in ~/.xsession-errors 
(this is where stdout of Xsession is redirected to):

Audio File Library: WAVE MPEG layer 3 data format is not supported [error 
0]

The same message appears if I try to play the file using artsplay.
Files play correctly (both by noatun and artsplay) if I rename them from 
*.wav to *.mp3

Seems that artsd/noatun decide about file format by the file name. Is that 
really correct ?..

Well the problem may be workarounded by renaming or symlinking files but 
IMHO these workarounds are ugly. Unix software should not depend on file 
name extensions should it ?
Comment 1 Neil Stevens 2001-08-11 10:36:23 UTC
On Saturday August 11 2001 03:07 Nikita V.Youshchenko wrote:
> Package: noatun
> Version: KDE 2.2 beta1
>
> Hello.
>
> I have several CDs with mp3 files.
> Unfortunately files on CDs are named with .wav extension. But the
> actual audoi data is mp3 and mpg123 processes it correctly.
>
> Noatun from KDE 2.1 (compiled from sources) used to play those files
> correctly.
>
> Noatun from current KDE 2.2 (both compiled from sources and installed as
> binary debian packages) refuses to play the files.
> There is no sound and the following message appears in
> ~/.xsession-errors (this is where stdout of Xsession is redirected to):
>
> Audio File Library: WAVE MPEG layer 3 data format is not supported
> [error 0]
>
> The same message appears if I try to play the file using artsplay.
> Files play correctly (both by noatun and artsplay) if I rename them from
> *.wav to *.mp3
>
> Seems that artsd/noatun decide about file format by the file name. Is
> that really correct ?..

Well Noatun is working by mimetype now but the problem is that the KDE 
libraries mimetype system the system Noatun is using checks the filename 
before it checks the contents.

> Well the problem may be workarounded by renaming or symlinking files
> but IMHO these workarounds are ugly. Unix software should not depend on
> file name extensions should it ?

Well personally I wish filename manglings would be ignored but this is a 
point of disagreement.

Thanks for the report.  Maybe problems like these will make some people 
reconsider the issue.

-- 
Neil Stevens
neil@qualityassistant.com

Don't think of a bug as a problem.  Think of it as a call to action.
Comment 2 Carsten Pfeiffer 2001-08-12 11:45:49 UTC
On Samstag 11. August 2001 12:36 Neil Stevens wrote:

> Thanks for the report.  Maybe problems like these will make some people
> reconsider the issue.

I suppose you use KMimeType::findByURL()? See the last parameter 
bool fast_mode = false

Cheers
Carsten Pfeiffer
Comment 3 Charles Samuels 2002-01-29 06:48:01 UTC
out of date
Comment 4 Tiago d'Avila 2003-01-29 11:31:24 UTC
Noatub refuses to open ANY sound type file, generating the same error message 
everytime. No problems at startup. It never worked properly.