Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to retrieve MP3 tags using VFP

Status
Not open for further replies.

Nifrabar

Programmer
Mar 16, 2003
1,343
NL
Hi!
I am having thousands op MP3 files. Many of them are bad organized.
As worthfull info is in the MP3 file I want to use those tags to automaticly create maps with a name which is equal to the name of the singer etc. Also I want to give that file the name as the name of the song is.
I searched the could not find some example code of that. I found an article describing the several tags but I got stuck on finding out what is length of the tag-text.
Anyone who knows some of this?

As VFP is my favourite programming language I want to use this.

TIA
-Bart
 
Bart,

The tags are all stored at the very end of the file, as simple character strings.

If you open an MP3 file in a hex editor, or even an ordinary text editor, you will see the tags. That will give you a rough idea of the format. You can then do a FILETOSTR() to get at them.

A bit of experimenting should get you there.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
Nigelgomm, I didnot tried some code yet but feel this will make the data available I am looking for,

Mike, I disagree with you this time (maybe first time ;-)) Depending on versions this info is in the beginning of the file. The difficulty seems that the tag-length is not always same.

-Bart
 
Bart,

You might be right. In the older versions, the tags were at the beginning. But, in any case, I wrote my reply before I saw Nigel's post. His method is obviously better.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top