Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

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

$
0
0
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...):

[ autoit ]      
$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!

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>