Results 1 to 4 of 4
  1. #1
    q-ball is offline Member
    Join Date
    Jul 2007
    Posts
    3
    Rep Power
    0

    Default Need some help with mp3 tagger

    Hi! I'm trying to write an mp3 tagger for id3v1.1 tags, and I'm having trouble with the writing to file part. The thing is I have to read 3 bytes from the file and replace 125 bytes at the end of the file. Is there a way of doing that without rewriting the whole file?
    Last edited by q-ball; 07-23-2007 at 02:20 PM.

  2. #2
    JavaBean's Avatar
    JavaBean is offline Moderator
    Join Date
    May 2007
    Posts
    1,270
    Rep Power
    10

    Default

    Why don't you just open the file, go to that position and write over the existing data? Try that, it should work.

    By the way, i noticed mp3 tag libraries and applications before. Two of them are below. Are you sure you need to write it from scratch instead of using existing libraries/applications?

    Java ID3 Tag Library
    Mp3Tagger - .mp3 Tag Editor

  3. #3
    q-ball is offline Member
    Join Date
    Jul 2007
    Posts
    3
    Rep Power
    0

    Default

    I tired that, using RandomAccessFile, but I get
    Java Code:
    java.io.FileNotFoundException: C:\test.mp3 (The process cannot access the file because it is being used by another process)
    P.S. I'm writing the tagger from scratch because I think it's a good way of learning/getting used to Java

  4. #4
    q-ball is offline Member
    Join Date
    Jul 2007
    Posts
    3
    Rep Power
    0

    Default

    I finally solved it! I got that error because of the embedded media player in windoze 2k. The thing is, after I first ran the program, I opened the file with notepad to see if the changes were made. After closing notepad, the file remained selected in my computer, so it was still open because of the embedded media player. Even when I deselected the file, windows media player wouldn't close it. So to close the file, I have to close "My Computer". That's Microsoft...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •