Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

MP3 File Format - Size/EOF?
I've been reading information on the MP3 Format but can not find any
reference to an EOF tag.  I want to be able to view the HEX of an mp3
file and find out the size of the file OR locate an EOF tag within
that file.

From what I have read it's my understanding an MP3 is made up of
several independent frames which have their own header.  There is not
one unified header, or footer, for an MP3 file, so how do I find the
End of the file or the size of the file?

Any ideas?

Thanks
Jackson

Report this thread to moderator Post Follow-up to this message
Old Post
Jackson
09-15-04 08:55 PM


Re: MP3 File Format - Size/EOF?
Jackson wrote:
) I've been reading information on the MP3 Format but can not find any
) reference to an EOF tag.  I want to be able to view the HEX of an mp3
) file and find out the size of the file OR locate an EOF tag within
) that file.
)
) From what I have read it's my understanding an MP3 is made up of
) several independent frames which have their own header.  There is not
) one unified header, or footer, for an MP3 file, so how do I find the
) End of the file or the size of the file?

The MP3 format is a streaming format that basically doesn't have an
end as such.  The end is when the data stops coming.

Try splitting an MP3 file in two and/or concatenating several MP3 files.

On the other hand, finding the size of a file is a simple operation
on moset operating systems, as evident in the fact that the ID3 tag
is 128 bytes appended at the end of an MP3 file.


SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT

Report this thread to moderator Post Follow-up to this message
Old Post
Willem
09-16-04 01:55 AM


Re: MP3 File Format - Size/EOF?
Willem <willem@stack.nl> wrote in message news:<slrnckh8d8.22vf.willem@toad.stack.nl>...[co
lor=darkred]
> Jackson wrote:
> ) I've been reading information on the MP3 Format but can not find any
> ) reference to an EOF tag.  I want to be able to view the HEX of an mp3
> ) file and find out the size of the file OR locate an EOF tag within
> ) that file.
> )
> ) From what I have read it's my understanding an MP3 is made up of
> ) several independent frames which have their own header.  There is not
> ) one unified header, or footer, for an MP3 file, so how do I find the
> ) End of the file or the size of the file?
>
> The MP3 format is a streaming format that basically doesn't have an
> end as such.  The end is when the data stops coming.
>
> Try splitting an MP3 file in two and/or concatenating several MP3 files.
>
> On the other hand, finding the size of a file is a simple operation
> on moset operating systems, as evident in the fact that the ID3 tag
> is 128 bytes appended at the end of an MP3 file.
>
>
> SaSW, Willem[/color]

Thanks for the info.  Just curious, is the ID3 tag appened @ the end
of ALL mp3 files?  If not, what would you say is the % of MP3's that
have the ID3 tag at the end?  Again, it's my understanding there are
different vers of the ID tags out there..?

Thanks,
Jackson

Report this thread to moderator Post Follow-up to this message
Old Post
Jackson
09-16-04 09:01 PM


Re: MP3 File Format - Size/EOF?
"Jackson" <jsmith193300@yahoo.com> wrote in message
news:680af4.0409160653.1016758e@posting.google.com...
> Willem <willem@stack.nl> wrote in message
> news:<slrnckh8d8.22vf.willem@toad.stack.nl>... 
>
> Thanks for the info.  Just curious, is the ID3 tag appened @ the end
> of ALL mp3 files?  If not, what would you say is the % of MP3's that
> have the ID3 tag at the end?  Again, it's my understanding there are
> different vers of the ID tags out there..?
>
my guess is it has a lot to do with the nature of the mp3 files...
they are much more likely, say, for copied music than for, say, sound
effects or misc clips created by someone for utilitarian purposes.
it is hard to say really. if one were just to assume mp3's in general, it
could be guessed that a majority have them, in the same way that a majority
are likely copied music...

there are 1.0, 1.1, and 2.* variants.

1.0 and 1.1 are appended to the end of the file, and differ only in that one
has a 30 char comment and the other a 28 char comment and a track number.

v2 tags are actually found at the start of the file, and have a chunked
structure (and are apparently added automatically by windows in some cases,
which annoys me, and forced me to alter my copy of mpglib to make it resync
with said files...).




Report this thread to moderator Post Follow-up to this message
Old Post
cr88192
09-16-04 09:01 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Compression archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:13 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.