LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out our Database and File IO Code Repository Files or visit the LabVIEW Wiki Database and File IO articles.


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> [CR] MP3 ID3v1 Tag I/O
eaolson
post Mar 25 2007, 02:45 PM
Post #1


Extremely Active
****

Member
Posts: 269
Joined: 15-September 05
Member No.: 3014
Using LabVIEW Since:1998
LV:7.1.1 ,8.0.1 ,8.20
United States us_texas us_illinois



File Name: MP3 ID3v1 Tag I/O
File Submitter: eaolson
File Submitted: 18 Mar 2007
File Updated: 2 Apr 2007
File Category: Database and File IO

Inspired largely by this thread, I've written a tiny little group of utilities to read and write MP3 ID3v1 tags. This handles only version 1 type tags, and not the vastly more complicated version 2 tags. After looking at the specification for v2 tags, I'm not even going to attempt it unless there is a clearly visible need for such a thing.

This implementation is done entirely in native LabVIEW; there are no DLLs involved.

MP3 ID3v1 Tags V1.0.1

Copyright © 2007, Eric Olson
All rights reserved.

Author:
Eric Olson
eaolson@yahoo.com

Distribution:
This code was downloaded from the LAVA Code Repository: http://forums.lavag.org/downloads.html

Description:
Handles ID3v1 and v1.1 tags from MP3 files. Tags can be read, written, and deleted from files. This package does not handle the more complicated ID3v2 tags.

Dependencies:
Requires oglib_file and oglib_error available from www.openg.org.

Support:
If you have any problems with this code or want to suggest features:
http://forums.lavag.org/CR-MP3-ID3v1-Tag-I-O-t7094.html

Change Log:
1.0.0: Initial release of the code.
1.0.1: Added Validate ISO 8859-1 String to distribution zip file.

License:
Creative Commons Attribution 3.0
http://creativecommons.org/licenses/by/3.0/

Click here to DOWNLOAD this file

This post has been edited by eaolson: Apr 2 2007, 08:34 AM


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Mar 25 2007, 02:45 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
orko
post Mar 25 2007, 03:50 PM
Post #2


Extremely Active
****

Premium Member
Posts: 532
Joined: 18-October 05
From: Seattle, WA
Member No.: 3266
Using LabVIEW Since:2005
LV:8.6 ,8.5.1 ,7.1.1
United States us_washington Nothing Selected My Blog


This is simply awesome. thumbup1.gif

I especially appreciate the fact that you made this in LabVIEW only style (no DLLs). I'm actually using this right now to scan through my church's 15 CDs worth of MP3s to find non-tagged files and fix them...

Thanks!

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
eaolson
post Mar 25 2007, 07:58 PM
Post #3


Extremely Active
****

Member
Posts: 269
Joined: 15-September 05
Member No.: 3014
Using LabVIEW Since:1998
LV:7.1.1 ,8.0.1 ,8.20
United States us_texas us_illinois


QUOTE (orko @ Mar 25 2007, 10:50 AM) *
I especially appreciate the fact that you made this in LabVIEW only style (no DLLs). I'm actually using this right now to scan through my church's 15 CDs worth of MP3s to find non-tagged files and fix them...

And here I was afraid this was just a silly little exercise on my part and no one would actually use it! Glad it helped.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
crelf
post May 28 2007, 02:52 PM
Post #4


I'm a LAVA, not a fighter.
******

V I Engineering, Inc.
Posts: 3751
Joined: 13-October 03
From: Michigan, USA
Member No.: 181
Using LabVIEW Since:1993
LV:8.5 ,. ,.
Australia United States Nothing Selected My Blog


...and it's fast! A simple write-ID3-tags utility that I just wrote screamed through ~6,500 mp3s in under 10 seconds thumbup1.gif Now I can organise my Zune and my wife's iPod in no time - thanks!

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
hooovahh
post Jul 30 2007, 08:28 PM
Post #5


Very Active
***

V I Engineering, Inc.
Posts: 88
Joined: 26-October 06
Member No.: 6627
Using LabVIEW Since:2004
LV:8.5 ,8.0.1 ,7.1.1
United States Nothing Selected Nothing Selected


This is an amazing VI and I appreciate all you've done.

That being said I'd like to take this a step further. Could this be adapted to also work with wma files? Do they have a non-conventional ID3 tagging that doesn't use v1? I noticed that using a wma file didn't work. Also is it possible to extract the album art from a ID3v1 tag? is that in v2 of ID3? Thanks.

--------------------
"When I look at the smiles on all the children's faces, I just know they're about to jab me with something."
"Oh, people can come up with statistics to prove anything, 14% of people know that."
"If you really want something in this life, you have to work for it - Now quiet, they're about to announce the lottery numbers!"
"Weaseling out of things is important to learn. It's what separates us from the animals ... except the weasel."


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
eaolson
post Jul 31 2007, 02:11 PM
Post #6


Extremely Active
****

Member
Posts: 269
Joined: 15-September 05
Member No.: 3014
Using LabVIEW Since:1998
LV:7.1.1 ,8.0.1 ,8.20
United States us_texas us_illinois


QUOTE (hooovahh @ Jul 30 2007, 03:28 PM) *
This is an amazing VI and I appreciate all you've done.

Thanks!

QUOTE
That being said I'd like to take this a step further. Could this be adapted to also work with wma files? Do they have a non-conventional ID3 tagging that doesn't use v1? I noticed that using a wma file didn't work.

WMA files are audio data stored in the ASF container format. The ASF specification controls how the metadata is stored. I looked briefly at that specification, and it is vastly more complicated than ID3v1. Variable-length fields, optional objects, and I think there's even an index or two at the end of the file. If anyone knows of a DLL to access these, it would be pretty trivial, but writing it from the ground up would be difficult.

QUOTE
Also is it possible to extract the album art from a ID3v1 tag? is that in v2 of ID3?

Album art isn't stored in v1 of ID3. ID3v1 contains only the song title, the artist name, the album title, the year, a short comment, and the genre of the music. You get 125 bytes to store all that. ID3v2 is again vastly more complicated than v1. I've only looked at the specification, not attempted a solution.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 2nd December 2008 - 04:03 AM