Jump to content

How to read ID3 Tags


nuki
 Share

Recommended Posts

I know that the ID3 Tag is at the top of a mp3 file but my problem is to read this mp3 file... i just come till ID3 ||.... when i try to read it with FileRead(), then it ends even if there is much more text.

i wondered if i could read it in hex and kill/split the strings inside wich i dont need, and save it again but i dont know how it works...

would be nice if somebody would explain it to me :)

Edited by nuki
Link to comment
Share on other sites

hm it dont works like it should... most times it shows there wouldnt be an id3 tag even if theres one... and when he found one he says things like Song Name: 0x34234234 ^^

i just want to know how to read in hex from a file, or how to read from a mp3 file without loosing information :)

edit: yea i got it... for those who are interested:

$file = "C:/test.mp3"
$open = FileOpen($file,16)
$data = FileRead($open)
$data = BinaryToString($data)
;MsgBox(0,"",StringLen($data))
FileClose($open)

$open = FileOpen("blub.txt",16+2)
FileWrite($open,$data)
FileClose($open)
Edited by nuki
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...