<head></head><body><table><tbody><tr><td colspan="2">thanks, the files encoded by different encoders I would consider to be different, i only want to detect files that i may have downloaded twice and are in different dirs, and someone may have changed the tag on one not the other, but the file is the same otherwise. thanks for the suggestion on the already-done dup remover, as i have no real time for writing this stuff anymore, the other question is how to find the length of the ID3v2 tag???<br><br>thanks again,<br><br>silas<br><br></td></tr><tr><td bgcolor="blue" width="5"> </td><td>
If you really want to reinvent the wheel you can -- you have to determine how long the ID3v2 tag is, skip that, then read the rest of the file (excepting the last 256 bytes if it has an ID3V1 tag). How you do this depends entirely on the library (if any) you use. Note that if all you do is a byte-by-byte comparison then you still won't detect dupes if the files were encoded by different encoders, or at different bitrates, or various other issues.
<br><br>If you don't want to reinvent the wheel, then go take a look at <a href="http://musicbrainz.org">musicbrainz.org</a> -- they've already done this. And taken care of the various issues I listed above.<br><br><div>
On 1/25/06, <b>Silas Pradetto</b> <<a href="mailto:silas@sonoroussound.com">silas@sonoroussound.com</a>> wrote:<blockquote>
I recently became added to this system of emails, and I am trying to write a program to find duplicates in MP3's. I wish to only take into consideration the actual song data, not bytes of any tags. Therefore, how do I find the first byte in the file of actual song data, ie the first byte of the first frame? I want to be able to detect duplicates that have different tags but are the exact same audio information. Also, to make the program faster, I would like to know where to find certain info such as bitrate, length in seconds, etc, so when I am scanning my 100000 song library I don't have to check bytes if the songs are obviously dissimilar. Thanks very much. Oh, and I mostly do VB 6, though I do know some C++, so if you are going to talk about file I/O stuff please refer to VB if you can.
<br><br>Silas<br>
---------------------------------------------------------------------
To unsubscribe, e-mail: <img src="data:image/bmp;base64,Qk1GAgAAAAAAADYAAAAoAAAAEAAAAAsAAAABABgAAAAAABACAADEDgAAxA4AAAAAAAAAAAAAODjaODjap6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5ODjaODjaODjaODja4uL/////////////////////////////////////////4uL/ODjaODjaODjaODjap6f54uL/////////////////////////////////4uL/p6f5ODjaODjaODjaODja4uL/p6f54uL/////////gYHygYHy////////4uL/p6f54uL/ODjaODjaODjaODja////4uL/p6f5trb/gYHyWlrpWlrpgYHytrb/p6f54uL/////ODjaODjaODjaODja////////trb/gYHyWlrpODjaODjaWlrpgYHytrb/////////ODjaODjaODjaODja////////gYHyWlrpODjatrb/trb/ODjaWlrpgYHy////////ODjaODjaODjaODja////gYHyWlrpODjatrb/////////trb/ODjaWlrpgYHy////ODjaODjaODjaODjagYHyWlrpODjatrb/////////////////trb/ODjaWlrpgYHyODjaODjaODjaODjaODjaODjatrb/////////////////////////trb/ODjaODjaODjaODjaODjaODjaODjagYHyp6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5gYHyODjaODjaODja">
<a href="mailto:id3v2-unsubscribe@id3.org">id3v2-unsubscribe@id3.org</a>
For additional commands, e-mail: <img src="data:image/bmp;base64,Qk1GAgAAAAAAADYAAAAoAAAAEAAAAAsAAAABABgAAAAAABACAADEDgAAxA4AAAAAAAAAAAAAODjaODjap6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5ODjaODjaODjaODja4uL/////////////////////////////////////////4uL/ODjaODjaODjaODjap6f54uL/////////////////////////////////4uL/p6f5ODjaODjaODjaODja4uL/p6f54uL/////////gYHygYHy////////4uL/p6f54uL/ODjaODjaODjaODja////4uL/p6f5trb/gYHyWlrpWlrpgYHytrb/p6f54uL/////ODjaODjaODjaODja////////trb/gYHyWlrpODjaODjaWlrpgYHytrb/////////ODjaODjaODjaODja////////gYHyWlrpODjatrb/trb/ODjaWlrpgYHy////////ODjaODjaODjaODja////gYHyWlrpODjatrb/////////trb/ODjaWlrpgYHy////ODjaODjaODjaODjagYHyWlrpODjatrb/////////////////trb/ODjaWlrpgYHyODjaODjaODjaODjaODjaODjatrb/////////////////////////trb/ODjaODjaODjaODjaODjaODjaODjagYHyp6f5p6f5p6f5p6f5p6f5p6f5p6f5p6f5gYHyODjaODjaODja">
<a href="mailto:id3v2-help@id3.org">id3v2-help@id3.org</a>
</blockquote></div><br>
</td></tr></tbody></table></body>
---------------------------------------------------------------------
To unsubscribe, e-mail: id3v2-unsubscribe@id3.org
For additional commands, e-mail: id3v2-help@id3.org