On Jul 28, 2006, at 6:17 AM, Carlo Rubini wrote:
I'm trying to get name, artist and album of a given movie.
In the Info window of QuickTime Player I get: Fire Of Love,
Gabriela Anders, Wanting
Using this code (from the LReference -> EditableMovie) I get name
and album (for album I replace ©nam with ©alb):
myBool = myEditable.UserData.GetUserData(convertencoding
("©nam",encodings.SystemDefault),1,myVal)
for i = 0 to 30//remove undesired glyphs like option, shift etc
glyphs
myVal = myVal.ReplaceAll(chr(i), "")
next
msgBox myVal//I get: 'Fire Of Love' and 'Wanting'
To get Artist I tried ©prf, ©art, ©Art and so on, but without success.
Can somebody suggest what I should enter in order to get Artist?
©ART chr(169) + "ART"
It's a 4 byte OS type on the Mac and the first byte is 169
Apart from using a plugin, is there any free code to get Artist
from a mp3 file? (in fact I'm interested in mp3 files only). From
RBGarage I got 'MP3Info' of Christian, but I was not able to have
it work.
Having spent a fair amount of time getting several tag readers
working I can tell you that it's a pain.
Some work better than others.
MP3 files may have V1 or V2 tags.
V1 tags are easy and can easily be done in pure RB.
V2 tags are more difficult, but not impossible.
Christian does have code in his plugins to read tags using QuickTime.
It works quite well but requires Quicktime 7
If you need anything older than that then you have to try and
incorporate taglib (which has a few known bugs), id3lib, or write
your own.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>