Jump to content

Recommended Posts

Posted (edited)

..so I upgraded to Win10 and a script I use to rename mp3's didn't work. Looked around, and  looked around, so I said f** it. So I open the file and see a bunch of null terminated data, so I made an array and got what I wanted.

Func mp3RawRead_Comment($f)
    If Not FileGetSize($f) Then Return ""
    Local $a, $s, $h = FileOpen($f, 16)
    Local $b = FileRead($h, 4096)
    FileClose($h)
    $s = BinaryToString($b)
    $a = StringSplit($s, Chr(0))
    If UBound($a) < 73 Then Return ""
    Return $a[71]

    _ArrayDisplay($a)
EndFunc   ;==>mp3RawRead_Comment

So what is my burning question ?, ...I can't find a "proper" definition that explains why / how / ??, that is there. All I find, is just not congruent to what I see in the file.

So no hurry, no big need. Just curious. If you know, let me know :)

Edited by argumentum

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Posted

Nop, i think he means the id3 tag

  Reveal hidden contents

IUIAutomation - Topic with framework and examples

Au3Record.exe

Posted

I did an mp3 picture extractor, maybe i can tweak it to read the tags too, but it's tricky, there are a couple of versions of those tags.

  Reveal hidden contents

IUIAutomation - Topic with framework and examples

Au3Record.exe

Posted

I think one option would be to get an mp3 tag editor like mp3tag, and change any mp3 file, with it, changing each field to an unique string, so that you can later identify in the file. Let's say the title could be renamed to titlemp3 the artist to artistmp3 you get the idea. Then you open the file and there you go, everything identified.

  Reveal hidden contents

IUIAutomation - Topic with framework and examples

Au3Record.exe

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
×
×
  • Create New...