Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-14-2002, 10:50 PM   #1
Registered: Feb 2001
Location: Boston, USA
Distribution: Slackware
Posts: 438

Rep: Reputation: 30
Accessing ID3 Tags

From what I understand, and ID3 tag is at the beginning of an mp3 file. I want to access this data and be able to change it. My question is, would i need a binary stream or a character stream to read it? Put it this way, I wrote a quick program in C that read all the info from an mp3 file with valid id3 tags line by line with a character stream. As you could guess, the results were unreadable, but at the very beginning of the file, it read ID3- and then the rest of the data was encoded. Could I use a binary stream to read this data? or am I missing something?
Old 11-14-2002, 11:12 PM   #2
Registered: Sep 2002
Location: Iowa
Distribution: Redhat 9.0
Posts: 52

Rep: Reputation: 15
you can change an id3 tag when you have the song in xmms by right clicking on it and going to file info
Old 11-15-2002, 04:13 AM   #3
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
You should be able to read it with a character stream as well. You will just have to convert several of the values. But there are different kinds of ID3 tags with different formats. The old ID3 tags are at the end of the file. I suggest if you want an easy way to access the ID3 tags without going through to much hastle you should use the following library:

It will do all the messy stuff for you and all you have to do is change some of the fields.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading Id3 tags jpc82 Programming 7 10-10-2005 09:50 AM
Updating ID3 (MP3) Tags DJ747 Linux - Software 3 05-15-2005 12:22 PM
Program for ID3 Tags Boffy Linux - General 1 02-17-2005 03:16 PM
ID3 tags in Audacity/Suse ?? redrobin77 SUSE / openSUSE 1 11-30-2004 08:10 AM
Grip trunctuates ID3 tags GT_Onizuka Linux - Software 5 06-13-2004 11:18 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration