Sign in to follow this  
Followers 0
nuki

How to read ID3 Tags

5 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



yeah i already saw that (yeah i use the search function xD) but i dont want to use a .dll

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0