Help: I need a proper method to detect 99% of all mp3 files
Sebastian Trueg
sebastian at trueg.de
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. :)
Cheers,
Sebastian
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:
>
> http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdesupport/taglib/mpeg/mpegheader.
>h?rev=1.4&content-type=text/x-cvsweb-markup
> http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdesupport/taglib/mpeg/mpegfile.h?
>rev=1.27&content-type=text/x-cvsweb-markup
>
> -Scott
> _______________________________________________
> kde-multimedia mailing list
> kde-multimedia at kde.org
> https://mail.kde.org/mailman/listinfo/kde-multimedia
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-multimedia/attachments/20040707/9ca48da1/attachment.sig>
-------------- next part --------------
_______________________________________________
kde-multimedia mailing list
kde-multimedia at kde.org
https://mail.kde.org/mailman/listinfo/kde-multimedia
More information about the kde-multimedia
mailing list