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

Matthias Welwarsky mwelwarsky at web.de
Tue Jul 6 11:49:13 BST 2004


On Tuesday 29 June 2004 09:45, Sebastian Trueg wrote:
> Hi,
>
> in K3b I need to be able to say if a certain file is mp3 or not (as with
> every other format). The current detection method is a mess but I have no
> idea how to properly handle all the different mp3 flavors without looking
> at the hole file (the test needs to be fast).
> Has anyone a good idea? Does taglib contain a proper check which I could
> copy?

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.

regards,
	matthias



More information about the kde-multimedia mailing list