01:17
0

To edit mp3 files tags we need UltraID3Lib.dll.

So first download it from here

UltraID3Lib.DLL 

Now we have to do this following steps.

  1. Open Visual Studio IDE
  2. Create a new windows application
  3. From Project —> Add Reference –> Browse –> Select the UltraID3Lib.DLL

After adding reference we can use this DLL.

Now the coding part…

First we need to import it.

Imports HundredMilesSoftware.UltraID3Lib


Create a new UltraID3 object.



 Dim tg1 As New UltraID3


Now we need a mp3 file for reading. The reading function tag1.Read() will does this work.



tg1.Read("c:\mp3\sample.mp3")


And then we can display the basic tags of that mp3 file using




tg1.Album
tg1.Title
tg1.Artist
tg1.Year.ToString
tg1.Comments

Now if we want to update any tag information, we just need to set the property value and use the .write() method.



tg1.Album="Demo album"
tg1.Title="Demo Title"
tg1.Artist="Demo Artist"
tg1.Year=2012
tg1.Comments="Sample Comment"

tg1.Write()

After that these informations will saved into your mp3 file.

0 comments:

Post a Comment