DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Searching a tool to calculate checksums without taking metadata into account  (Read 5,367 times)

crono

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 179
Hi,

I need a little (commandline) tool or library to get the MD5 (or any other) Hash form MP3, FLAC, OGG and Monkey Audio Files. It should provide the checksum for the Audiotrack only, not the whole file. I have the problem of having a lot of playlists and (unsorted) files. When I move and  rename the files, the playlist couldn't find it anymore. To solve this, I wrote a script, which scans my music folder and look for a special ID3 Tag which identifies the track. Then it regenerates the playlist. This basically works, but it involves to many manual steps to get the GUIDs (Global Unique IDs) into the tags, so I would like to replace the GUID with the AudioTrack-Hash. I can not use the whole file for hashing, because I have ID Tags which get updated everytime I listen to it (playcount, last_played). Anyone know such a tool?

jgpaiva

  • Artificial Idiocy
  • Global Moderator
  • Joined in 2006
  • *****
  • Posts: 4,727
    • Cody Award
    • Participated in NANY Challenge Once
    • Coding Snacks
    • Portugal Inhabitant
    • Linux User
I don't know for FLAC, OGG and MA files, but for MP3, this could be done in java using this, for example.

crono

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 179
Thanks jgpaiva  :)
Since most of my files are Flac encoded I think I have to search on. Flac provides a switch to write the checksum right after encoding the wav to a flac into an ID3 Tag. Maybe I schould have a look at some opensource media players - they have to get raw audio at some poiint :)

Original address: https://www.donationcoder.com/forum/index.php?topic=12824.0