Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#217374 - 29/05/2004 17:23 MP3 file header and footer information
tarkie
journeyman

Registered: 28/12/2001
Posts: 99
Im doing some research into the file header and footer information that describes an MP3 file.

Unfortuanlty, from what I've found to date, there appears to be no MP3 header, but only an MP3 frame header which describes the music in the frame.

Anyone got any experience of disassembling MP3 files?
_________________________
M2a/Smoke/60gb/Tuner!! Thanks Joe M2a/Blue10gb Thanks Ian!

Top
#217375 - 30/05/2004 03:11 Re: MP3 file header and footer information [Re: tarkie]
Roger
carpal tunnel

Registered: 18/01/2000
Posts: 5682
Loc: London, UK
MP3 is a frame-based, rather than file-based format. It doesn't define a file header or footer. What you're probably looking for is documentation for the ID3 tags, which are the de facto standard for adding metadata to MP3 files.

More information is available at http://www.id3.org/

There are probably any number of projects on SourceForge for reading and writing ID3 tags.
_________________________
-- roger

Top
#217376 - 30/05/2004 10:11 Re: MP3 file header and footer information [Re: tarkie]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14484
Loc: Canada
The mp3tool program I wrote is available from the Hijack site (link at top of this page). It is a rather simple program that parses the various frames and ID3 footer, and optionally makes some (limited) changes. It also does not use/depend upon a mass of third party libraries, which may make it easier to understand than some others.

Cheers


Edited by mlord (30/05/2004 10:12)

Top
#217377 - 31/05/2004 23:14 Re: MP3 file header and footer information [Re: tarkie]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31578
Loc: Seattle, WA
Anyone got any experience of disassembling MP3 files?
Yes. The MP3 frame header specification is described nicely on this page.

The reason there is no single "unified" header on an MP3 file is that it was meant to be capable of working as a streaming protocol that didn't require you to see the beginning or end of the stream.
_________________________
Tony Fabris

Top
#217378 - 01/06/2004 04:54 Re: MP3 file header and footer information [Re: tarkie]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4174
Loc: Cambridge, England
As well as ID3v1 and ID3v2 you might want to parse this stuff: http://gabriel.mp3-tech.org/mp3infotag.html -- which works around some of the misfeaturage in the MP3 format itself, and does let you identify truncated or corrupted files if they were encoded with Lame.

Peter

Top
#217379 - 01/06/2004 12:50 Re: MP3 file header and footer information [Re: peter]
tarkie
journeyman

Registered: 28/12/2001
Posts: 99
Many thanks for those reply's time to do some digging.

I'm studying for my Computer Forensics certification, and ironicaly the practical is on illegal distribution of MP3's
_________________________
M2a/Smoke/60gb/Tuner!! Thanks Joe M2a/Blue10gb Thanks Ian!

Top
#217380 - 01/06/2004 12:57 Re: MP3 file header and footer information [Re: mlord]
tarkie
journeyman

Registered: 28/12/2001
Posts: 99
Mark,

That tool rocks, I think it very nearly exactly what I need - I might have to do some hacking about for file offsets so I can identify where in my image the file is in relation to the disk blocks, but many many thanks.

I'll give you a well deserved entry in the assignment.
_________________________
M2a/Smoke/60gb/Tuner!! Thanks Joe M2a/Blue10gb Thanks Ian!

Top