Jump to content

Recommended Posts

Posted

Hi!

I try to write metadata to a mp4 file. Because this is not possible with AutoIt alone, I found the taglib-sharp.dll (Windows) that should be able to do this.

Now Im struggling on how to use it - to be honest, I really don't get this dll thing at all despite of reading for hours and days! :(

I tried already a lot (DllOpen, DllCall,...) but so far I thought this should be the way how to do it (which does not work obviously - well, even reading the property does not work...):

$tagFile=ObjCreate("TagLib.File")
$myFile = $tagFile.Create("F:\TEST\myMP3.mp3")

$mp3Title = $myFile.Tag.Title

If IsObj($myFile) Then
MsgBox(0,"Title", $mp3Title)
Else
MsgBox(0,"Title", "not an object")
EndIf

It fails, stating that $tagFile must be of type "Object"...?

I copied the taglib-sharp.dll into the folder of the au3 script without registering it (what I want to avoid).

If someone could point me to a direction, I'm willing to read and learn. Thanks!

Posted

Hmm. No one has an idea?

What am I doing wrong? Do I have to load the dll first somehow? How does the system know that I want to call the function TagLig.File.Create if I didn't load or register the dll? Are all dll's within the script dir known to the script?

I know that resolving this problem would include looking into the source of the dll (that I linked up there). So I really appreciate any help.

I just want to catch on this dll thing but currently I think I'm missing something... Thanks!

  • 1 year later...
Posted

I'm also interested in using taglib-sharp.dll in Autoit3.  Can anybody give me some pointers, because I get the same errors as the OP.

Any other suggestions on how to read/write MP4 tags in Autoit?

Posted

Maybe the >UDF to write ID3 tags to mp3 files can give you an idea.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

Or do it by using atomicparsley as diescribed here.

My UDFs and Tutorials:

  Reveal hidden contents

 

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
  • Recently Browsing   0 members

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