Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / Design Time / January 2005

Tip: Looking for answers? Try searching our database.

Looking for proper MP3 syntax accessing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
MikeY - 18 Jan 2005 00:38 GMT
I am having trouble with and looking for the proper syntax for accessing and
renaming MP3 files properties.

Example I can access the "Name" property of the file and I can rename the
file name to a new name (and do this in mass quantity at once). What I want
to accomplish is to gain access and rename the extended properties such as
"Artist", "Title", "Album Title", "Comments", etc. A sample of my code is as
follows.

if(txtBoxNameConversion.Text != "")
{
   foreach(string myItem in CLBoxGroupFileConversion.CheckedItems)
   {
       string myItems2 = txtBoxNameConversion.Text + "-" + myItem;

       //Over-write old file with new file name
       File.Move(Path.Combine(currentFolderPath, myItem),
Path.Combine(currentFolderPath, myItem2));
   }
}

Any and all suggestions are appreciated. Thank you all in advance.

MikeY
Brian Patterson - 18 Jan 2005 22:51 GMT
I'm guessing you are talking about reading and writing the MP3v1 tag of the
file.  This information is stored at the end of the file.   You can get to
the info by reading the last 128 bytes of the file and reading the first 3
bytes of this 128 byte stream.  If there is valid information stored there
the first 3 bytes should say "TAG".  The format of the information is as
follows:

     Sign Length
     (bytes) Position
     (bytes) Description
     A 3 (0-2) Tag identification. Must contain 'TAG' if tag exists and is
correct.
     B 30 (3-32) Title
     C 30 (33-62) Artist
     D 30 (63-92) Album
     E 4 (93-96) Year
     F 30 (97-126) Comment
     G 1 (127) Genre

Also keep in mind there are different versions for this information which
you will have to account for.

Brian Patterson
http://dotnet.redeyepos.com

>I am having trouble with and looking for the proper syntax for accessing
>and
[quoted text clipped - 23 lines]
>
> MikeY
MikeY - 19 Jan 2005 00:29 GMT
Thank you Brian,

I'll give it a go now.

> I'm guessing you are talking about reading and writing the MP3v1 tag of the
> file.  This information is stored at the end of the file.   You can get to
[quoted text clipped - 48 lines]
> >
> > MikeY

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.