The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Coders Corner

Reply
 
Thread Tools Display Modes
Old 04-15-2008, 04:54 PM   #1
Constant Bitrate
portreathbeach's CarPC Specs
 
Join Date: Sep 2006
Location: Cornwall, England
Vehicle: 2003 VW Transporter T5
Posts: 145
My Photos: (46)
How can I read ID3 tags in MP3 files?

Here is my problem...

I have coded my own front-end and am using the ultraID3lib.dll to pull the id3 tag info from the mp3 files. Everything works fine for v2.3 files (apart from a few that iTunes screwed up), but it doesn't work for v2.2 or v2.4. I was thinking of writing my own code to read the tags, but can only find samples of how to read v1 tags, which is pretty simple. Is there any VB.net code samples available to get the basic stuff, artist, song name etc. as well as the more advanced stuff, like album art from an MP3 file.

Thanks for any help

__________________
ViVE - Volkswagen In Van Entertainment:

VoomPC 2, VIA C7 2GHz
7" Lilliput
120Gb Sata drive
1GB RAM


[||||||||||] 100% - Planning
[||||||||||] 100% - Software coding
[||||||||||] 100% - Built

(Always tweaking!)

Last edited by portreathbeach : 04-19-2008 at 03:57 AM.
portreathbeach is offline   Reply With Quote
Sponsored Links
Old 04-15-2008, 05:28 PM   #2
Confusion Master
Enforcer's CarPC Specs
 
Enforcer's Avatar
 
Join Date: Sep 2003
Location: If you go down to the woods today, You're sure of
Vehicle: 1997 BMW E36 328I
Posts: 9,726
My Photos: (1)
This is VB6 but it might help

http://www.vbaccelerator.com/home/vb...gs/article.asp
Enforcer is offline   Reply With Quote
Old 04-16-2008, 10:41 AM   #3
Constant Bitrate
portreathbeach's CarPC Specs
 
Join Date: Sep 2006
Location: Cornwall, England
Vehicle: 2003 VW Transporter T5
Posts: 145
My Photos: (46)
Thanks for the link. Good write-up about MP3 files, haven't had time to play around with the code, but I don't see anywhere about album art in there.
__________________
ViVE - Volkswagen In Van Entertainment:

VoomPC 2, VIA C7 2GHz
7" Lilliput
120Gb Sata drive
1GB RAM


[||||||||||] 100% - Planning
[||||||||||] 100% - Software coding
[||||||||||] 100% - Built

(Always tweaking!)
portreathbeach is offline   Reply With Quote
Old 04-16-2008, 11:08 AM   #4
Confusion Master
Enforcer's CarPC Specs
 
Enforcer's Avatar
 
Join Date: Sep 2003
Location: If you go down to the woods today, You're sure of
Vehicle: 1997 BMW E36 328I
Posts: 9,726
My Photos: (1)
Warning Information overload

http://www.id3.org/id3v2.4.0-frames
Enforcer is offline   Reply With Quote
Old 04-16-2008, 01:25 PM   #5
Constant Bitrate
portreathbeach's CarPC Specs
 
Join Date: Sep 2006
Location: Cornwall, England
Vehicle: 2003 VW Transporter T5
Posts: 145
My Photos: (46)
That is a lot of reading and some pretty involved coding to read into the frames of an mp3 file. Amyway, I have found a few C# samples, and will try and translate these to VB.net.

Thanks for the help
__________________
ViVE - Volkswagen In Van Entertainment:

VoomPC 2, VIA C7 2GHz
7" Lilliput
120Gb Sata drive
1GB RAM


[||||||||||] 100% - Planning
[||||||||||] 100% - Software coding
[||||||||||] 100% - Built

(Always tweaking!)
portreathbeach is offline   Reply With Quote
Old 04-19-2008, 03:56 AM   #6
Constant Bitrate
portreathbeach's CarPC Specs
 
Join Date: Sep 2006
Location: Cornwall, England
Vehicle: 2003 VW Transporter T5
Posts: 145
My Photos: (46)
I am now using .GetDetailsOf to retrieve the Artist, Album, Title etc. but I still can't get the album art from the mp3 file. Is there any VB code that has an example of this. I havn't seen any actual code to do this, there are a few .dll files people have written, but I would like to code it myself if possible.
__________________
ViVE - Volkswagen In Van Entertainment:

VoomPC 2, VIA C7 2GHz
7" Lilliput
120Gb Sata drive
1GB RAM


[||||||||||] 100% - Planning
[||||||||||] 100% - Software coding
[||||||||||] 100% - Built

(Always tweaking!)
portreathbeach is offline   Reply With Quote
Old 04-19-2008, 05:47 AM   #7
Confusion Master
Enforcer's CarPC Specs
 
Enforcer's Avatar
 
Join Date: Sep 2003
Location: If you go down to the woods today, You're sure of
Vehicle: 1997 BMW E36 328I
Posts: 9,726
My Photos: (1)
Have look a roadrunners source, I think there maybe something in there.
Enforcer is offline   Reply With Quote
Old 04-19-2008, 04:20 PM   #8
Constant Bitrate
portreathbeach's CarPC Specs
 
Join Date: Sep 2006
Location: Cornwall, England
Vehicle: 2003 VW Transporter T5
Posts: 145
My Photos: (46)
I have had a scan through the RoadRunner source, but can't find any code that extracts the AlbumArt, the only code I can find loads the AlbumArt from files in an albumart folder. For some reason, I can't get RoadRunner to work on my machine, so can't really tell if it can extract the albumart from the mp3.
__________________
ViVE - Volkswagen In Van Entertainment:

VoomPC 2, VIA C7 2GHz
7" Lilliput
120Gb Sata drive
1GB RAM


[||||||||||] 100% - Planning
[||||||||||] 100% - Software coding
[||||||||||] 100% - Built

(Always tweaking!)
portreathbeach is offline   Reply With Quote
Old 04-19-2008, 07:56 PM   #9
Constant Bitrate
 
slvrsol's Avatar
 
Join Date: Mar 2007
Posts: 132
My Photos: (0)
try looking at the plugin source

http://www.mp3car.com/vbulletin/rr-p...rt-plugin.html
slvrsol is offline   Reply With Quote
Old 05-21-2008, 11:23 PM   #10
Newbie
 
bigbrother82's Avatar
 
Join Date: Jul 2005
Location: Chalmette, Louisiana
Vehicle: 2007 GMC Sierra
Posts: 8
My Photos: (0)
While I am not certain, and I am mainly a Java programmer, I believe the album is not embedded in the MP3 file. The MP3 file I believe has a spot for the location of the album art on the drive, but not the actual image.

I'll try to double check that and let you know. I remember reading that somewhere.

Jacob
__________________
"I have not lost my mind - it's backed up on disk somewhere." -Unknown Author
bigbrother82 is offline   Reply With Quote
Sponsored Links
Old 05-21-2008, 11:52 PM   #11
Newbie
 
bigbrother82's Avatar
 
Join Date: Jul 2005
Location: Chalmette, Louisiana
Vehicle: 2007 GMC Sierra
Posts: 8
My Photos: (0)
Well I was wrong. The album art can be embedded in ID3v2 or higher. It can not be embedded in ID3v1 though. Which I think is what you were trying to retrieve from, of I read your post right.

Check out http://www.id3.org/ID3v1.

Version 1 was very basic from my understanding.
__________________
"I have not lost my mind - it's backed up on disk somewhere." -Unknown Author
bigbrother82 is offline   Reply With Quote
Old 06-02-2008, 01:22 PM   #12
Constant Bitrate
portreathbeach's CarPC Specs
 
Join Date: Sep 2006
Location: Cornwall, England
Vehicle: 2003 VW Transporter T5
Posts: 145
My Photos: (46)
Thanks for the reply. I am now using '.GetDetailsOf' which is part of XPs 'shell32.dll' to retrieve the mp3 information which is pretty quick. I am still using 'UltraID3.dll' to retrieve the album art.
__________________
ViVE - Volkswagen In Van Entertainment:

VoomPC 2, VIA C7 2GHz
7" Lilliput
120Gb Sata drive
1GB RAM


[||||||||||] 100% - Planning
[||||||||||] 100% - Software coding
[||||||||||] 100% - Built

(Always tweaking!)
portreathbeach is offline   Reply With Quote
Old 06-02-2008, 02:34 PM   #13
Maximum Bitrate
galvitron's CarPC Specs
 
galvitron's Avatar
 
Join Date: Mar 2007
Location: Socal
Vehicle: 2006 Evo MR
Posts: 568
My Photos: (0)
Here is some more info that you might find useful:

http://www.codeproject.com/KB/recipes/vbmp3header.aspx

http://www.codeproject.com/KB/files/tagreader.aspx

http://www.codeproject.com/KB/cs/Do_..._With_ID3.aspx

And a nice tool to convert C# to VB.net and vice versa:

http://labs.developerfusion.co.uk/co...arp-to-vb.aspx
__________________
2006 Lancer Evolution IX MR In-Dash PC Project - WIP

Planning:
[----------] 100%
Purchasing:
[----------] 100%
Installation/Fab/Assembly (Revised):
[----------] 80%

galvitron is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mp3 id3 gibrish toofresh Software & Software Development 0 04-07-2008 05:01 AM
Splash screen and id3 tags Flappy Centrafuse 3 09-22-2006 04:57 AM
Help with MP3 radios, files, & directories mp3designer General Hardware Discussion 5 10-03-2001 08:27 AM
Playlists and ID3 tags in VB? Bj Software & Software Development 32 06-25-2001 08:17 PM
Do you guyz know this cool machine? Ginger General Hardware Discussion 3 04-19-2000 11:38 AM


All times are GMT -5. The time now is 01:58 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics