| View previous topic :: View next topic |
| Author |
Message |
CarlosTheTackle
Joined: 19 Oct 2004 Posts: 102
|
Posted: Sun Mar 27, 2005 12:24 pm Post subject: Anyone know a way to read mp3 tag data? |
|
|
Any little command line tools out there for reading audio meta-data? I'd love to build some scripts that could search (and maybe even re-write) ID3 tag data.
Cheers,
C |
|
| Back to top |
|
 |
Serenity
Joined: 07 Nov 2004 Posts: 1276
|
Posted: Sun Mar 27, 2005 2:41 pm Post subject: |
|
|
I don't know any command line tools, though I like the idea of being able to write/read bytes in a file with AutoHotkey. If AutoHotkey could read the mp3 file in hex it could look for the ID3 strings and delimiters and convert the strings we want to ANSI, similar to using Loop with a text file. Perhaps this is already possible using existing functions.
On opening the mp3 file in a hex editor, I noticed that creating mp3 files with Audacity wrote the tag at the beginning of the file, and editing the tag in foobar2000 removed the tag from the start of the file, and put the tag at the end. So some shifting around of the audio data/file size needs to be possible. _________________ "Anything worth doing is worth doing slowly." - Mae West
 |
|
| Back to top |
|
 |
daonlyfreez
Joined: 16 Mar 2005 Posts: 755 Location: Berlin
|
Posted: Sun Mar 27, 2005 2:56 pm Post subject: |
|
|
From these very good pages, I got this: ID3Tools (with source)...
| Quote: | | Utilities for editing ID3 tags under DOS, and producing a directory listing including ID3 tag information. |
It consists of two command line programs:
id3dir
| Quote: | It outputs the standard filename, and alongside it the ID3
tag information (if there is any). |
and id3edit
| Quote: | When the program starts, you'll be presented with a title message and
then the editing begins.
It'll tell you what file you're editing, and whether it's already tagged
or not, then it'll ask you to enter the details. If the file is already
tagged, you will be shown the existing entry for a particular field. If
you want to keep the existing info, you can just press ENTER without
typing anything. Otherwise, type in the new details and press ENTER.
Note: You cannot currently edit genre information. This will be in
a later version.
When you've finished with one file, it'll move on to the next, until
all files have been processed. |
which looks like the editing needs to be manual input...
But then I found this: TagPro (with source)
| Quote: | TagPro Command Line
I'm sorry but the command lines are pretty complicated. Nevertheless, they are very powerfull.
Full Command Line:
/C [/W] "%path%" (tag options)
Explanation:
/C : Needed. Indicates the command line
/W : Optional. If present, a message box will appear in case of error.
%path% : Needed. Path & file name. May be DOS or Windows style. '*' and '?' wildcards accepted. Must be in brackets. (Examples: "c:\mp3\song.mp3", "c:\myfiles~1\inxs*.mp3")
Tag Options:
Tag option command line:
[/-] [/M] /x ""
Explanation:
/- : Optional. If present, deletes ID tag if it exists. All options in command line after this one will be ignored.
/M : Optional. If present, will create the Title and Artist tags from filename. If it does not succeed, it will take the specified Title and Artist tags after, depending on option. (Option 3 for Title and Artist is recommended)
/x "": x is the action. The text in the brackets is the tag to be put. Read following tables to understand how it works.
...
Examples:
Delete the tag
/C "c:\path\file - song.mp3" /-
Create the tag from scratch
/C "c:\path\file - song.mp3" /M /3 "" /3 ""
Create the tag from scratch, and fill in the rest.
/C "c:\path\file - song.mp3" /M /3 "" /3 "" /3 "Album" /3 "1998"
Change only the tag year if it already exists and make the genre "Hard Rock"
/C "c:\path\file - song.mp3" /0 "" /0 "" /0 "" /1 "2000" /0 "" /3 "79" |
 _________________ (sorry, homesite offline atm) |
|
| Back to top |
|
 |
daonlyfreez
Joined: 16 Mar 2005 Posts: 755 Location: Berlin
|
Posted: Tue Jun 07, 2005 1:14 pm Post subject: |
|
|
And this one:
id3lib, it's a DLL _________________ (sorry, homesite offline atm) |
|
| Back to top |
|
 |
CarlosTheTackle
Joined: 19 Oct 2004 Posts: 102
|
Posted: Tue Jun 07, 2005 10:09 pm Post subject: |
|
|
Thanks, d.
 |
|
| Back to top |
|
 |
savage
Joined: 02 Jul 2004 Posts: 206
|
Posted: Mon Jul 04, 2005 2:41 pm Post subject: |
|
|
Only uses id3v1 tags though. Most of mine are id3v2. _________________ <enormous animated gif> |
|
| Back to top |
|
 |
Guest
|
|
| Back to top |
|
 |
|