Arduino Forum

Using Arduino => Audio => Topic started by: bagopotatos on Nov 02, 2013, 10:28 pm

Title: Accessing ID3 Metadata from MP3 file
Post by: bagopotatos on Nov 02, 2013, 10:28 pm
Hi there,

I was wondering anyone knows a good way of accessing ID3 tags off of mp3 files.  I am using an Arduino Mega and STA013 MP3 decoder chip and can successfully play music from an SD card, but I would like to display MP3 file information (artist/song title/etc.).  Anyone have any experience or advice in going about this?  I have looked around a lot online but haven't found any solid help.

Thanks!
Title: Re: Accessing ID3 Metadata from MP3 file
Post by: bagopotatos on Nov 03, 2013, 01:12 am
I've figured out how to access ID3v1 data by getting the file size, offsetting 128 bytes from it, and reading from there.  Does anyone know about ID3v2? Are there any standards?
Title: Re: Accessing ID3 Metadata from MP3 file
Post by: rlogiacco on Nov 04, 2013, 08:00 pm

I've figured out how to access ID3v1 data by getting the file size, offsetting 128 bytes from it, and reading from there.  Does anyone know about ID3v2? Are there any standards?


A little search for "ID3 V2" returned tons of information, among the ones at top there's a wikipedia page http://en.wikipedia.org/wiki/ID3#ID3v2 (http://en.wikipedia.org/wiki/ID3#ID3v2) which reports detailed info regarding the ID3v2 format, current latest specs is v2.4.

Have a nice read and if you wish to share a library I believe you'll get some nice dowloads  XD
Title: Re: Accessing ID3 Metadata from MP3 file
Post by: futurebird on Sep 14, 2015, 09:29 pm
The sparkfun MP3 shield library reads these tags. I'm curious about editing them. Specifically I want to store GPS coordinates in one of the tags. Can this be done with the SD library ...?
Title: Re: Accessing ID3 Metadata from MP3 file
Post by: Serhiy on Jan 02, 2017, 01:15 pm
No. Sparkfans site (https://learn.sparkfun.com/tutorials/mp3-player-shield-hookup) say:

The SDFat library only supports "8.3" file names - that's eight characters before the '.' and three characters after (e.g. "track001.mp3").

With ID3 can help SFEMP3Shield library (https://github.com/madsci1016/Sparkfun-MP3-Player-Shield-Arduino-Library/commit/da556f869f73c4f43883b67dfbfe929dcb5d380c).