Help: I need a proper method to detect 99% of all mp3 files

Sebastian Trueg sebastian at
Wed Jul 7 20:23:31 BST 2004

thanks a lot for your tips.
Actually I now try to decode two headers and then compare them. This is way 
more reliable than my previous method and a way smaller code since it uses 
mad calls.
It was kind of stupid of me to decode using mad and not use it for detection 
but then I always found it hard to understand the mad library since it's not 
very good documented. But the arts mad decoder code helped a lot here.

So basicly I do what you where proposed, Scott. :)


On Tuesday 06 July 2004 14:52, Scott Wheeler wrote:
> On Tuesday 06 July 2004 12:49, Matthias Welwarsky wrote:
> > Well, the proper method is to parse the bitstream and see if it is
> > compliant to the standard. This is both quick and reliable, and works
> > with and without tags.
> Well, except for the quick part.  ;-)
> Operations like this are bound by disk speed, not code complexity or CPU
> time.
> Unfortunately TagLib doesn't contain anything for doing authoritative
> verification of mp3 files -- it mostly leaves this up to the mimetype
> recognition being used by the software using TagLib.  TagLib does however
> contain an implementation of MPEG headers and a mechanism for finding these
> in a file that could be useful in such a tool.
> See:
> -Scott
> _______________________________________________
> kde-multimedia mailing list
> kde-multimedia at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <>
-------------- next part --------------
kde-multimedia mailing list
kde-multimedia at

More information about the kde-multimedia mailing list