IPB

Welcome Guest ( Log In | Register )

> Upload forum rules

- No over 30 sec clips of copyrighted music. Cite properly and never more than necessary for the discussion.


- No copyrighted software without permission.


- Click here for complete Hydrogenaudio Terms of Service

6 Pages V  « < 2 3 4 5 6 >  
Reply to this topicStart new topic
Changes Made to TAG.EXE, Tags from text file & OptimFrog support
odyssey
post Nov 26 2007, 16:04
Post #76





Group: Members
Posts: 2296
Joined: 18-May 03
From: Denmark
Member No.: 6695



QUOTE (Synthetic Soul @ Oct 31 2007, 21:03) *
I don't think that you can, but I don't think that you need to. You may want to look at --stdout.

Using that switch you can output the important bits to STDOUT, and leave the header writing to STDERR (IIRC).

E.g.:

CODE
TAG.EXE --stdout --hideinfo --hidenames file.mp3 > tags.txt


I figured that was the only way I could direct the output to a textfile, but it's still being displayed on the screen (it usually should not when the output is directed).

It's just a nice-to-have feature, but I created a backup-script that would save all tags to dummy-files, and it would be nice if I could disable output to the screen (while directing the output to a file using pipes, like default commandline applications act), to simplify the process window.


--------------------
Can't wait for a HD-AAC encoder :P
Go to the top of the page
+Quote Post
Synthetic Soul
post Nov 26 2007, 17:38
Post #77





Group: Super Moderator
Posts: 4887
Joined: 12-August 04
From: Exeter, UK
Member No.: 16217



QUOTE (odyssey @ Oct 31 2007, 17:13) *
Ummm, is it possible to avoid printing the copyright notice? Currently it outputs to the screen no matter what.
No, AFAIK.

QUOTE (A1S @ Nov 26 2007, 13:23) *
Thanks for the tool. Will not prompt, how I can write a cover in a wv-file? Whether it is possible to register separate tags (for example Cover Art (Front) and Cover Art (Back))?
You cannot write binary tags, AFAIK.


--------------------
I'm on a horse.
Go to the top of the page
+Quote Post
A1S
post Nov 26 2007, 18:52
Post #78





Group: Members
Posts: 3
Joined: 3-October 07
Member No.: 47545



QUOTE (Synthetic Soul @ Nov 26 2007, 19:38) *
QUOTE (A1S @ Nov 26 2007, 13:23) *
Thanks for the tool. Will not prompt, how I can write a cover in a wv-file? Whether it is possible to register separate tags (for example Cover Art (Front) and Cover Art (Back))?
You cannot write binary tags, AFAIK.

There is no possibility to make such option? Very-very big request. In foobar2000 0.9.5 there was a support Embedded album art.
Go to the top of the page
+Quote Post
Synthetic Soul
post Nov 26 2007, 19:27
Post #79





Group: Super Moderator
Posts: 4887
Joined: 12-August 04
From: Exeter, UK
Member No.: 16217



There is every possibility, but very little probability.

It is something that I would like to see in Tag, but I don't think that I have the time or skill to implement it.


--------------------
I'm on a horse.
Go to the top of the page
+Quote Post
A1S
post Nov 27 2007, 00:28
Post #80





Group: Members
Posts: 3
Joined: 3-October 07
Member No.: 47545



But can all the same it will be possible? smile.gif We by means of a script, using tag.exe and ImgBurn.exe, do a backup copy of audio-disk with all tags (cuesheet,logfile,genre,discid...) in a format wv.iso.wv (process completely automatic). The only thing of that does not suffice is tag Cover Art. sad.gif
Go to the top of the page
+Quote Post
Synthetic Soul
post Nov 27 2007, 10:27
Post #81





Group: Super Moderator
Posts: 4887
Joined: 12-August 04
From: Exeter, UK
Member No.: 16217



It is obviously possible for an accomplished C(++) programmer to add binary tag support to Tag; if MP3Tag can do it then there is no logical reason why another application cannot.

This post documents the format that MP3Tag uses.


--------------------
I'm on a horse.
Go to the top of the page
+Quote Post
ntan01
post Dec 3 2007, 21:43
Post #82





Group: Members
Posts: 2
Joined: 3-December 07
Member No.: 49234



I am having a technical problem with tag.exe.

My question involves the --allow switch on the command line. I have an automated process that records mp3's and dumps them in various directories based on a criteria setup in the recording process. I want to use tag.exe to pull information from the file path and insert it into the tags. I've gotten this much to work just fine.
My problem is that mp3's are constantly being recorded and added to the directories. I would like to schedule a task to run tag every X minutes that crawls the directories and only processes those files that do not have tag information yet. (basically anything added since the last time tag was ran)
I'm assuming that I use --allow to accomplish this, but I'm not sure how to represent a null value. --allow "album=" doesn't seem to do the trick.

Any suggestions?
Go to the top of the page
+Quote Post
Synthetic Soul
post Dec 5 2007, 20:57
Post #83





Group: Super Moderator
Posts: 4887
Joined: 12-August 04
From: Exeter, UK
Member No.: 16217



--allow will check for an exact match, and that's all. I'm not sure that it is any use to you.

I don't know what scripting language you are using, but I would probably look to using Tag's --tostdoutn switch, to output the value of a specific tag to STDOUT - checking to see whether the value was empty or not and acting accordingly.

Here is a simple DOS example, that will check for the existence of the Artist tag in all MP3s in a directory, and its subdirectories:

CODE
@ECHO OFF

FOR /R %1 %%G IN (*.mp3) DO CALL :CheckArtist "%%G"

PAUSE

GOTO :EOF

:CheckArtist
    CALL :GetTag Artist %1
    IF [] EQU [%Artist%] ECHO %1 has no Artist field.
GOTO :EOF

:GetTag
    TAG.EXE --tostdoutn %1 --hideinfo --hidetags --hidenames %2>"%TEMP%\tmp.txt"
    SET /P %1=<"%TEMP%\tmp.txt"
    DEL "%TEMP%\tmp.txt"
GOTO :EOF

(Save as a BAT file and drag the root folder onto the icon to test - or pass the folder path as a parameter on the command line.)

This post has been edited by Synthetic Soul: Dec 5 2007, 21:09


--------------------
I'm on a horse.
Go to the top of the page
+Quote Post
ntan01
post Dec 6 2007, 17:02
Post #84





Group: Members
Posts: 2
Joined: 3-December 07
Member No.: 49234



Thanks. When I drag and drop, it works fine, but I'm having troubles getting it to run from the command line.

This is probably a total noob question, but how do I get this to work from the command line. I tried:
foo.bat c:\mp3\
and that didn't work. But if I drag the mp3 folder to the foo.bat, it works fine.

What am I doing wrong?

Thanks,
-Nate
Go to the top of the page
+Quote Post
Synthetic Soul
post Dec 6 2007, 17:13
Post #85





Group: Super Moderator
Posts: 4887
Joined: 12-August 04
From: Exeter, UK
Member No.: 16217



It may be to do with the path to Tag.

Try changing the line that calls Tag to use the full path - or ensure that Tag is in a folder in your PATH (like your Windows folder).

That's all I can think of - it works fine for me either way (I have Tag in my Windows directory).


--------------------
I'm on a horse.
Go to the top of the page
+Quote Post
odyssey
post May 25 2008, 23:14
Post #86





Group: Members
Posts: 2296
Joined: 18-May 03
From: Denmark
Member No.: 6695



Is it impossible to remove all tags from a file, while tagging specific fields?

I would expect using --remove with -t item=x would erase all existing fields and only leave the specified, but it seem to disregard the --remove parameter.


--------------------
Can't wait for a HD-AAC encoder :P
Go to the top of the page
+Quote Post
Paul Burger
post Aug 5 2008, 13:14
Post #87





Group: Members
Posts: 22
Joined: 21-July 08
Member No.: 56082



Hi Synthetic Soul,

First of all, thanks for keeping TAG alive and all the work you did on REACT2!

I can get Tag to create a playlist using the REACT2. (as per the wiki post).

My idea behind creating playlists is to create a "playlist" directory for each compression type in the parent directory of the specific compression type.

For example;
..\Music\MP3\Playlists\ > contains all mp3 playlists and
..\Music\MP3\ > contains all the album directories

These playlists should therefore reference ..\"Artist - Album [Year]"\"TrackNo. TrackName".mp3. That is if I understand playlists correctly.

The idea is to copy the entire directory (e.g. MP3, Ogg or Flac) to whatever player I'm using, so when I want to play anything I simply browse the playlist directory to find the appropriate (custom or album) playlist.

I tried to get this done with Tag but it does not seem to support directory references.

If this cannot be done in Tag, can you possibly recommend something else?

Thanks
Paul
Go to the top of the page
+Quote Post
noorotic
post Aug 5 2008, 16:10
Post #88





Group: Members
Posts: 40
Joined: 22-January 07
From: usa
Member No.: 39911



Synthetic Soul, I had not checked this thread in a long time. If it is needed, I have the C code for importing and exporting binary (images) into APEv2 tags. I am not sure I know the Tag code well enough to insert into it however. Also, it would create a feature for APE not supplied by Tag for other tag types.

I personally do not care much for the embedding of artwork, for myself. It seemed like a fun thing to do. I have wondered why, since all tag formats provide for URL, and having followed the thread on artwork in the Foobar forum a bit, it would not be best simply to set the URL bit and allow people to point the player to the local file they want. Seems much more efficient.

However since most of Tag is C (I haven't picked up C++ yet) I think my import/export functions should work if integrated into Tag's code.

I'll check back some time. thx
Go to the top of the page
+Quote Post
Synthetic Soul
post Aug 5 2008, 16:46
Post #89





Group: Super Moderator
Posts: 4887
Joined: 12-August 04
From: Exeter, UK
Member No.: 16217



QUOTE (Paul Burger @ Aug 5 2008, 13:14) *
I tried to get this done with Tag but it does not seem to support directory references.

If this cannot be done in Tag, can you possibly recommend something else?
No, it doesn't look like it does.

I guess that you could just use ECHO commands in your config to append to a playlist, e.g.:

CODE
ECHO $cdartist$ - $album$ [$date$]\$track$ - $title$.mp3>>@OutRoot@\Music\MP3\Playlists\$cdartist$ - $album$.m3u

You may have to escape some characters though, otherwise ampersands (for example) will cause problems. Certainly a possibility though.

QUOTE (noorotic @ Aug 5 2008, 16:10) *
Synthetic Soul, I had not checked this thread in a long time. If it is needed, I have the C code for importing and exporting binary (images) into APEv2 tags. I am not sure I know the Tag code well enough to insert into it however. Also, it would create a feature for APE not supplied by Tag for other tag types.
I would like to see support for embedding images in Tag; however, as you say, it would be wrong to add it for APEv2 only. Also, I'm not sure that I would have the where-with-all (or inclination) to insert the code. Thanks for the thought though. I must admit that I have lost an interest in doing anything else with Tag.


--------------------
I'm on a horse.
Go to the top of the page
+Quote Post
Synthetic Soul
post Aug 7 2008, 13:11
Post #90





Group: Super Moderator
Posts: 4887
Joined: 12-August 04
From: Exeter, UK
Member No.: 16217



Off-topic posts regarding REACT moved to a new thread.


--------------------
I'm on a horse.
Go to the top of the page
+Quote Post
Lurkas
post Aug 7 2008, 13:47
Post #91





Group: Members
Posts: 37
Joined: 26-October 03
Member No.: 9455



TAG doesn't write ID3v2.3 tags. The source is out there, have anyone seen a build capable of writing those tags?

I wish someone could implement it..
Go to the top of the page
+Quote Post
Synthetic Soul
post Aug 7 2008, 13:49
Post #92





Group: Super Moderator
Posts: 4887
Joined: 12-August 04
From: Exeter, UK
Member No.: 16217



Would metamp3 (search this board) be of any use?


--------------------
I'm on a horse.
Go to the top of the page
+Quote Post
Lurkas
post Aug 7 2008, 14:26
Post #93





Group: Members
Posts: 37
Joined: 26-October 03
Member No.: 9455



Thanks for the notification but I had a look at it last night. It doesn't look like it has the character replace function and tags from file name.
Go to the top of the page
+Quote Post
greynol
post Aug 7 2008, 15:49
Post #94





Group: Super Moderator
Posts: 10000
Joined: 1-April 04
From: San Francisco
Member No.: 13167



QUOTE (Lurkas @ Aug 7 2008, 05:47) *
TAG doesn't write ID3v2.3 tags.

I'm using tag.exe with Lame and am getting ID3v2 tags with no trouble at all.

This post has been edited by greynol: Aug 7 2008, 15:50


--------------------
Placebophiles: put up or shut up!
Go to the top of the page
+Quote Post
Lurkas
post Aug 7 2008, 16:16
Post #95





Group: Members
Posts: 37
Joined: 26-October 03
Member No.: 9455



That sounds interesting. Can someone please explain how to do that?
Go to the top of the page
+Quote Post
greynol
post Aug 7 2008, 16:25
Post #96





Group: Super Moderator
Posts: 10000
Joined: 1-April 04
From: San Francisco
Member No.: 13167



CODE
tag %1 2> "%~1.tag"
FOR /F "usebackq tokens=1*" %%X IN (`findstr "Title:" "%~1.tag"`) DO (
SET title=%%Y
)
FOR /F "usebackq tokens=1*" %%X IN (`findstr "Artist:" "%~1.tag"`) DO (
SET artist=%%Y
)
FOR /F "usebackq tokens=1*" %%X IN (`findstr "Album:" "%~1.tag"`) DO (
SET album=%%Y
)
FOR /F "usebackq tokens=1*" %%X IN (`findstr "Year:" "%~1.tag"`) DO (
SET year=%%Y
)
FOR /F "usebackq tokens=1*" %%X IN (`findstr "Track:" "%~1.tag"`) DO (
SET track=%%Y
)
FOR /F "usebackq tokens=1*" %%X IN (`findstr "Genre:" "%~1.tag"`) DO (
SET genre=%%Y
)
FOR /F "usebackq tokens=1*" %%X IN (`findstr "Comment:" "%~1.tag"`) DO (
SET comment=%%Y
)
SET TAGINFO=--add-id3v2 --tt "%title%" --ta "%artist%" --tl "%album%" --ty "%year%" --tn "%track%" --tg "%genre%" --tc "%comment%"
DEL "%~1.tag"


--------------------
Placebophiles: put up or shut up!
Go to the top of the page
+Quote Post
Lurkas
post Aug 7 2008, 17:59
Post #97





Group: Members
Posts: 37
Joined: 26-October 03
Member No.: 9455



Thank you for your reply greynol. I assume that's a batch script. I'm not really sure on how to use that. Can you please give a verbose example on how to use it in a commandline?
Go to the top of the page
+Quote Post
greynol
post Aug 7 2008, 18:19
Post #98





Group: Super Moderator
Posts: 10000
Joined: 1-April 04
From: San Francisco
Member No.: 13167



It's a subroutine to be used in a batch script, though you can use it as a separate script. You call the routine and pass it the name and path of the source file. It will then generate a variable called TAGINFO which you would use in your Lame command line.

Example assuming this is a separate script called id3v2tag.bat and a source file called c:\stuff\source.flac

id3v2tag c:\stuff\source.flac

let's assume you have created source.wav (though I don't do it this way)

lame -V5 %TAGINFO% c:\stuff\source.wav c:\stuff\source.mp3

EDIT: Here's an example of a similar routine put to use in a script to encode using neroAacEnc:
http://www.hydrogenaudio.org/forums/index....st&p=580029

This post has been edited by greynol: Aug 7 2008, 18:26


--------------------
Placebophiles: put up or shut up!
Go to the top of the page
+Quote Post
Lurkas
post Aug 11 2008, 20:30
Post #99





Group: Members
Posts: 37
Joined: 26-October 03
Member No.: 9455



Can I get this to work with wildcards, and what syntax to use if so?

Is it possible to just tag an encoded file with lame.exe? I've only pulled it off while encoding..
Go to the top of the page
+Quote Post
greynol
post Aug 11 2008, 20:45
Post #100





Group: Super Moderator
Posts: 10000
Joined: 1-April 04
From: San Francisco
Member No.: 13167



>Can I get this to work with wildcards, and what syntax to use if so?
You can't pass a wildcard to the script as it currently exists.

>Is it possible to just tag an encoded file with lame.exe?
No.

Please, no more questions about batch scripts. Let's keep this discussion on topic. Synthetic Soul has had to split this thread once already.

This post has been edited by greynol: Aug 11 2008, 20:46


--------------------
Placebophiles: put up or shut up!
Go to the top of the page
+Quote Post

6 Pages V  « < 2 3 4 5 6 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 30th July 2014 - 23:48