HydrogenAudio

Hydrogenaudio Forum => General Audio => Topic started by: coma on 2003-04-25 12:25:20

Title: Problems with tag.exe --fromfile
Post by: coma on 2003-04-25 12:25:20
I want to be able to export tag info to text file, possibly change tags in the text file and then write them back.

I thought Ca5e's tag.exe's --tofilen and --fromfile would make my day.

When trying it I do this

Code: [Select]
tag --tofilen test.txt 11 - Ebony Samba.mp3


which gives me the test.txt file:

Code: [Select]
D:\tmp\apev2\Stan Getz - 1963 - Jazz Samba Encore (feat. Luiz Bonfa)\11 - Ebony Samba.mp3
Format:  MPEG 1 Layer 3, Joint Stereo
Details: 44100 Hz Stereo, 200 kbps, playtime 03:48
Tags:    ID3v1, APE v2.0, ID3v2
Title:   Ebony Samba
Artist:  Stan Getz
Album:   Jazz Samba Encore (feat. Luiz Bonfa)
Year:    1963
Track:   11
Genre:   Jazz
Comment: EAC+LAME uberrip by [3e]


then edit this so that the year is 1967 so that test.txt now look like

Code: [Select]
D:\tmp\apev2\Stan Getz - 1963 - Jazz Samba Encore (feat. Luiz Bonfa)\11 - Ebony Samba.mp3
Format:  MPEG 1 Layer 3, Joint Stereo
Details: 44100 Hz Stereo, 200 kbps, playtime 03:48
Tags:    ID3v1, APE v2.0, ID3v2
Title:   Ebony Samba
Artist:  Stan Getz
Album:   Jazz Samba Encore (feat. Luiz Bonfa)
Year:    1967
Track:   11
Genre:   Jazz
Comment: EAC+LAME uberrip by [3e]


and then

Code: [Select]
tag --fromfile test.txt --force apev2 11 - Ebony Samba.mp3


but if I know check the tags with

Code: [Select]
tag 11 - Ebony Samba.mp3


it is still 1963. What am I missing? Is there some spec on the allowed format of files given to --fromfile? How can I specify additional, custom tags for example?
Title: Problems with tag.exe --fromfile
Post by: Case on 2003-04-25 13:27:29
Hmm, I guess my documentation skills need improving. Tofile functions are only meant as a mean to log changes or get tag info easily into a text file that can be viewed and searched with program of choice. It is not related to --fromfile function in any way. Fromfile is meant for directly copying tags from one audio file to another and it doesn't support text files as source.
Title: Problems with tag.exe --fromfile
Post by: mrosscook on 2004-07-15 02:55:47
Case,

I have a similar problem to coma's, and I also assumed that there was a functionality to read tags from a text file.  This impression is in fact encouraged by some of the frontends to tag, particularly Mp3Tag and Tagger.

I often download operas from karadar.com, an Italian site that features out-of-print and out-of-copyright classical music; and I usually wind up with a pile of files that have the same artist, album, year, comments, etc., but different track numbers and track titles.  I prefer to put the track numbers and titles into a single text file, and to give all the tracks the same value for other tags, using a tagging program.

This turns out to be more complicated than you might think.  Both Mp3tag and Tagger claim to be able to read some of the tags from a file, and both claim to allow you to set default values for the rest.  In fact, Tagger will allow you to set defaults, but won't read tags from a text file; while Mp3Tag won't actually tag from defaults, but it WILL read tags from text files, when you specify the format.

So I have to use both of them -- I use Tagger to erase all existing tags, then use Mp3Tag to set the track numbers and track titles; then back to Tagger, and I set the remaining tags in the default table, and rename to appropriate filenames.

This is a nuisance, as you might expect.  Does anybody know of a program that will allow me to do both with one piece of software?  It would save a world of cursing.
Title: Problems with tag.exe --fromfile
Post by: Griper on 2009-04-11 13:54:37
Hi, for anyone just come acros this with the same problems :-
Instead of Test.txt , Tag likes to tag from file tag.ini

Ex:

C:\tag>tag --fromfile c:\tag\tag.ini 1.flac

Tag - Automatic Tag from filename
Copyright © 2002-2003 Case.  Minor additions by Neil Popham, 2004-2007
Version 2.0.52, Compiled 2007-05-04

C:\tag\1.flac
Format:  FLAC
Details: 44100 Hz Stereo, 862 kbps, playtime 00:36
Tag:    FLAC
Title:  live in soundboard
Artist:  Mink deville
Album:  alb
Year:    2002
Track:
Genre:
Comment:
FLAC tag written.


C:\tag>




Title: Problems with tag.exe --fromfile
Post by: Sturm on 2010-11-01 02:17:49
Hi, for anyone just come acros this with the same problems :-
Instead of Test.txt , Tag likes to tag from file tag.ini


That sounds great, but I do not know how to create said "tag.ini" file.  I have hundreds of .flac files which are properly tagged and I want to copy over their tags to the .mp3 versions of those files in a separate folder.  Using ALL2LAME doesn't work well, as the tags are never completely copied over.  Is there a batch method for me to run all of the files through at one time?

I understand that I could use the --fromfile option, but I don't know specifically how to use that, specifically running hundreds of files through it at once rather than one by one.  Any help?
Title: Problems with tag.exe --fromfile
Post by: Synthetic Soul on 2010-11-01 11:46:18
I don't have a positive suggestion, but I would warn you that Tag cannot write ID3v2 tags, so is probably a dead end here.
Title: Problems with tag.exe --fromfile
Post by: Ouroboros on 2010-11-01 15:13:22
Just do the conversion from FLAC to MP3 with foobar - it automatically copies all of your tags to the new file.