Thread: Modifying MP3 tags (ID3v1)

  1. #1
    Registered User
    Join Date
    Jul 2006
    Posts
    3

    Modifying MP3 tags (ID3v1)

    Whats the easisest way to accomplish this with C++? I was looking at two MP3 libraries, but was having difficulties implementing them. The libraries that I am referring to are:

    1. http://id3lib.sourceforge.net/
    2. http://developer.kde.org/~wheeler/taglib.html

    All that I am trying to do is modify the artist field for the ID3v1 tag. Any help/pointers on how to do this would be great!

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    I had a very easy time with id3lib. Taglib, on the other hand, supports other formats than MP3.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    The format is well documented (or was last time I was playing with it) you could write your own accessors to get the data and change it... But it depends on what the goal of your project is... I just wanted to know how it worked.

  4. #4
    Registered User
    Join Date
    Jul 2006
    Posts
    3
    Quote Originally Posted by CornedBee
    I had a very easy time with id3lib. Taglib, on the other hand, supports other formats than MP3.
    Well I don't really care about any format other than MP3. I really just want the simplest way to edit the album field for the tag. I looked into it more in depth on friday, but was having difficulities getting either of the libraries to compile.

    Edit: I meant to say album, not artist! Oops.
    Last edited by yourbuddypal; 07-18-2006 at 10:28 AM.

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > but was having difficulties implementing them.
    Well you could try being more specific than "it didn't work"

    My guess is you probably didn't build the libraries after you installed them, or forgot to tell your compiler / linker where to find them.

    State compiler / OS and error messages.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  6. #6
    Registered User
    Join Date
    Jul 2006
    Posts
    3
    Well you could try being more specific than "it didn't work"

    My guess is you probably didn't build the libraries after you installed them, or forgot to tell your compiler / linker where to find them.

    State compiler / OS and error messages.
    Ack, you caught me in my web of vagueness. I am currently looking further into the id3lib. I believe i have the code that I need but I am in fact working on linking the libraries correctly. The linking issue shouldnt have been the problem when I checked this stuff out, but that was last week and I unfortunately cannot provide any more info on it. I havent really properly installed the libraries either. I was just trying to copy the specific files that i needed and include them in my project. I'm a noob with this

    Edit: Oops - Compiler is a little freeware program - Quincy 2002. OS is XP Pro.
    Last edited by yourbuddypal; 07-18-2006 at 12:43 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. HTML tags validator
    By Terrorist in forum C Programming
    Replies: 24
    Last Post: 05-09-2008, 02:14 AM
  2. which Portable mp3 player?
    By Raihana in forum A Brief History of Cprogramming.com
    Replies: 27
    Last Post: 01-09-2004, 07:58 AM
  3. mp3 players vs mp3 cd players
    By Geo-Fry in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-06-2003, 09:22 PM
  4. ID3v1 /ID3v2 Tags @ mp3s
    By Kordanor in forum Tech Board
    Replies: 15
    Last Post: 12-03-2003, 07:02 AM