MLUG: Re: [MLUG - DISCUSSION] mp3 magic number?
Re: [MLUG - DISCUSSION] mp3 magic number?
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Tue, Aug 05, 2003 at 08:25:57AM -0500, Michael wrote:
> Does anyone know the magic for mp3 files? I'm having trouble matching 
> mime types to those that lack ID3 tags. I can't seem to find any such 
> string using a hex editor nor by looking at the format docs (unless I 
> want to use bit masks which won't really work well for me at all). I 
> know other programs manage it though.. anyone happen to know this lil 
> bit of info? :)
> 

I think it's in /usr/share/magic on my machine:

# MPEG 1.0 Layer 3
0       beshort&0xfffe  =0xfffa         \bMP3
>2      byte&0xf0       =0x10           \b,  32 kBits
>2      byte&0xf0       =0x20           \b,  40 kBits

no?

-- 
Michael Procter
EMAIL:PROTECTED
_______________________________________________
discussion mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/discussion