mp3 tag - reading out and changing information of mp3-tag

Hello to all!

I want to ask you:

How can I read out information of a mp3

How can I change the mp3 informations

Thanks



Answer this question

mp3 tag - reading out and changing information of mp3-tag

  • ronGot

    thanks for your answer antwan!

    I try it on the weekend out !

    see you later,sigs007


  • Doeb

    I recommend the use of the .NET Library available at:

    www.id3.org

    Its relatively easy to implement and use.

    heres an example of how to use it:

    Imports HundredMilesSoftware.UltraID3Lib 'this will implement the dll for use

    Private m_FileName As String 'Global Declaration

    Private ID3 As New UltraID3 'Global Declaration

    Private Sub ReadTrack(ByVal trackFileName As String)

    ReadTag(trackFileName)

    m_FileName = trackFileName

    End Sub

    Private Sub ReadTag(ByVal trackFileName As String)

    Try

    ID3.Read(trackFileName)

    Dim Errors As ID3MetaDataException() = ID3.GetExceptions(ID3ExceptionLevels.Error)

    Dim Warnings As ID3MetaDataException() = ID3.GetExceptions(ID3ExceptionLevels.Warning)

    Catch exc As Exception

    MsgBox(exc.Message)

    End Try

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    openDialog.FileName = ""

    With openDialog

    .Filter = "MP3 Files (mp3)|*.mp3"

    .CheckFileExists = True

    .ShowDialog()

    End With

    Dim TrackFileName As String = openDialog.FileName

    ReadTrack(TrackFileName)

    End Sub

    Now you could make a few text/label objects and place the following where you need them to collect the ID3 information:

    Artist.Text = ID3.Artist
    Title.Text = ID3.Title
    Album.Text = ID3.Album
    TrackNumber.Text = ID3.TrackNum
    Year.text = ID3.Year
    Genre.Text = ID3.Genre
    Comments.Text = ID3.Comments

    I hope this helps you in some way


  • mp3 tag - reading out and changing information of mp3-tag