Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mp3 files metadata
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01628611
Message ID:
01628613
Vues:
54
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform