LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-14-2002, 09:50 PM   #1
oulevon
Member
 
Registered: Feb 2001
Location: Boston, USA
Distribution: Slackware
Posts: 435

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, 10:12 PM   #2
pyropenguin
Member
 
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, 03:13 AM   #3
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
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: http://freshmeat.net/projects/id3lib

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


Reply


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 08:50 AM
Updating ID3 (MP3) Tags DJ747 Linux - Software 3 05-15-2005 11:22 AM
Program for ID3 Tags Boffy Linux - General 1 02-17-2005 02:16 PM
ID3 tags in Audacity/Suse ?? redrobin77 Suse/Novell 1 11-30-2004 07:10 AM
Grip trunctuates ID3 tags GT_Onizuka Linux - Software 5 06-13-2004 10:18 AM


All times are GMT -5. The time now is 05:22 PM.

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