c# - How can I determine the length of an mp3 file's header? -


I am writing a program for the difference, and both files or segments are either copied on the basis of the change on the closing ( Rsync-esque .. but more similarity). The main idea is to keep my music folder (all MP3) up to date in many places.

I want to send updates with segment if only a small part of the file has changed, as opposed to copying the whole file, I want a way for different segments of the file.

I initially tried to create a hash for every file block (every n bytes I want to hashed this block). I saw that when I changed an attribute (id 3v2 tag on MP3) then all palm blocks will change. It makes sense, because I thought the headers are rising because it is getting new information.

This leads me to my real question. I would like to know how to determine the length of the MP3 header, so I can make 2 comparable hashes.

1) Metadata of file (header)

2)

I am missing anything

Thanks!

Typical mpeg stream with audio (this hash should remain unchanged if I change everything)

Ty

If you want to define header information, you either:

  • a) use an MP3 library There is a need that can be parsing for you, or
  • b) and parsing it as necessary.

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -