Reputation: 7613
Ideally I want a way to uniquely identify files (audio files) where things like the ID3 tag or the file name can change and the hash remains the same.
Is there a better way I don't know of to uniquely identify files? Or would I have to change my record of the file every time an edit was made? Can I hash on other pieces of data or something?
Upvotes: 1
Views: 1171
Reputation: 39
If you only count files wich have EXACTLY the same audio information as "the same" (same bit depth, bitrate, compression, etc.) its pretty easy: you would just hash the "audio" part of the file. im not too familiar with the MPEG audio codec myself though.
reading material: http://en.wikipedia.org/wiki/MP3 http://mpgedit.org/mpgedit/mpeg_format/mpeghdr.htm
Upvotes: 2