Read ID3 (version 2 only) from an MP3 File
This is an UPDATE of the original version by Tom Gaudette.
TAGFRAMES = ID3PARSE(FILENAME);
Opens the file whose path is given by FILENAME for reading, reads the meta-data stored in the ID3 Tag, and returns it in the structure TAGFRAMES. The structure's fields represent the titles of the various "frames" of information stored in the tag, the values of which are the associated data. Recognized frame's are given user friendly names (e.g., the TPE1 frame is labeled as 'Artist', TCON frame is labeled 'Genre') and have their data converted as appropriate. Unrecognized frames use the given 4 character frame identifier and their values are given as text (which may or may not be appropriate, depending on the content of the frame).
ID3 Tags are a standard which has largely been adopted throughout the digital media world as a means of storing meta data about digital media such as MP3 audio files and MPEG video files. ID3 Tags live in the byte sequence that makes up a file, usually at the beginning of the file (which is the only place I look for it in this script). They do not affect the remainder of the content in the file, for instance, and MP3 file's ID3 tag cannot affect the audio data stored in the file. Data stored in an ID3 Tag can be wide ranging: from the Artists and Album names, to the copyright information, even synchronized lyrics that can be presented in time to the music.
Cite As
Gordon (2024). Read ID3 (version 2 only) from an MP3 File (https://www.mathworks.com/matlabcentral/fileexchange/25190-read-id3-version-2-only-from-an-mp3-file), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Data Import and Analysis > Data Import and Export > Standard File Formats > Audio and Video Data >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |