Help: I need a proper method to detect 99% of all mp3 files
Allan Sandfeld Jensen
kde at carewolf.com
Sun Jul 11 15:47:33 BST 2004
On Thursday 08 July 2004 14:34, Matthias Welwarsky wrote:
> 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.
>
> Hm? mp3 frames are typically around 400 byte long, and decoding a few of
> them is probably much less a hassle than parsing a tag. So the "disk speed"
> not an issue, not even over network or USB.
>
MP3-files are sometimes prepended with upto 14kbytes of crap that needs to be
searched for synchronizations frames. If you dont skip ID3v2 frames, this
will be quite common when reading iTunes mp3s with embedded pictures.
`Allan
More information about the kde-multimedia
mailing list