Sign in to follow this  
Followers 0
hudl

Using taglib-sharp.dll to write extended properties to (video) files

6 posts in this topic

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!

Share this post


Link to post
Share on other sites



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!

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Or do it by using atomicparsley as diescribed here.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

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