Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mp3 files metadata
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01628611
Message ID:
01628613
Views:
55
>Hi;
>I need to access the metadata of an MP3 or WAV file
>how can I do it?

From here:
http://www.tek-tips.com/viewthread.cfm?qid=1628734

[quote]
oShell = createobject("shell.application")
loDir = loShell.Namespace(lcDir)
lofile = loDir.parsename(lcFile)
lcArtist = loDir.GetDetailsOf(lofile,16)

see http://technet.microsoft.com/en-ca/library/ee176615.aspx for the list of properties and their index number.
Other way is to read last 128 bytes of the file.
They should start with TAG,
lcDetails = RIGHT(FILETOSTR(YoruFile), 128)
IF LEFT(lcDetails,3) == [TAG]
   ? "tiltle", SUBSTR(lcDetails,  4,30)
   ? "artist", SUBSTR(lcDetails, 34,30)
   ? "album" , SUBSTR(lcDetails, 64,30)
   ? "year"  , SUBSTR(lcDetails, 94,4)
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform