IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
Converting ID3 tags in FLACs to native FLAC tags, Help me convert ID3 to FLAC native!
Luna-Tick
post Aug 13 2005, 07:01
Post #1





Group: Members
Posts: 6
Joined: 13-August 05
Member No.: 23875



Hello all!

I wrote the vast majority of my CD collection to Flac and checked them with the Flac test (the -t option of Flac), they played fine and all seemed wonderful.

Sadly life is no longer roses and chocolates. Now as I come to rip the whole lot to Vorbis files, Oggenc is spewing an error that the files are 'not a supported format'. As the flacs which I have produced since moving to Ubuntu (with sound juicer) seem to work, I am starting to worry that all the files which I made from CDex are going to give me grief.

It seems that the FLAC files which were written by CDex are using ID3 tags while the ones which work are using the native FLAC tags. I get this impression from looking at the file info in programmes like XMMS.

It seems, looking at the files with Metaflac, that the files may also have the information in the files as well and if I delete the tags "metaflac --remove-all-tags" XMMS will still see all the information in the ID3 tags.

If I open the file with Easytag, it shows up as having a 'FLAC Vorbis tag' ; identical to that of the ones which work fine. This reenforces my guess that my files have both.

I have tried many programmes and am not getting very far. The closest that I came was to keep removing all, deleting and adding fields in Easytag; eventually the tag was replaced by a native FLAC tag and it then went through Oggenc without a problem. Obviously I can't do this for all the FLACs which I have.

Does anybody know of a script/programme which can (as a batch) convert FLAC ID3 tags into FLAC native tags? Or, if it is all that I need, a programme which strips off a FLAC ID3 tag?

Thanks all, it seems ridiculous to have to re-encode them all just because the tags are wrong.

This post has been edited by Luna-Tick: Aug 14 2005, 02:48
Go to the top of the page
+Quote Post
gfngfgf
post Aug 13 2005, 08:16
Post #2





Group: Members
Posts: 899
Joined: 2-November 04
Member No.: 17951



I believe you can do this with Tag.exe (link) (hope you don't mind, SyntheticSoul)

From the Tag.txt file, you would use a command like:

CODE
Tag --removeid3v2 <files>


Note that I haven't tried this particular command myself, so I can't guarantee that it'll work the way you want it to. Best to try it on a file or two first.
Go to the top of the page
+Quote Post
Defsac
post Aug 13 2005, 10:13
Post #3





Group: Members
Posts: 347
Joined: 17-May 05
Member No.: 22107



Mp3tag can also remove the ID3 tags, and should leave the Vorbiscomment tags intact (I suggest trying on a test copy before batch removing just in case).

This post has been edited by Defsac: Aug 13 2005, 10:29
Go to the top of the page
+Quote Post
Synthetic Soul
post Aug 13 2005, 11:41
Post #4





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



I would use:

CODE
TAG.EXE --recursive --remove --force FLAC *.flac

... to replace existing ID3v1 tags with FLAC tags - but as gfngfgf says, always best to test on some copies first. Be warned that the command I quote will work recursively - so test in a folder with no important subfolders. I have briefly tested this myself and it works.

Even though I adapted Tag from Case's original I don't use its intracacies that much - I just use it for simple tagging from the command line. blush.gif

@gfngfgf

I have absolutely no problems with you linking to my website for Tag. I hold Case's last version, as well as those I've released. NB: Case's last version can also be found on RareWares I believe.

Personally I would recommend 2.0.43+, as it makes sense to be using the latest FLAC, OGG,and VORBIS libraries. It's also useful to have the -f switch, in case you begin using another application that uses it, like FLACAttack.


--------------------
I'm on a horse.
Go to the top of the page
+Quote Post
Luna-Tick
post Aug 14 2005, 02:48
Post #5





Group: Members
Posts: 6
Joined: 13-August 05
Member No.: 23875



Thanks a lot, guys, you have been really useful smile.gif.

I was hoping that you could point me to a Linux / Ubuntu programme but, as I only have to do it once, I suppose I could switch between the two operating systems smile.gif. Please let me know if somebody finds something which would work on Linux, though!

I shall try your suggestions and let you know how I get on smile.gif.

Thanks again
Go to the top of the page
+Quote Post
Luna-Tick
post Aug 14 2005, 03:04
Post #6





Group: Members
Posts: 6
Joined: 13-August 05
Member No.: 23875



QUOTE (Synthetic Soul @ Aug 13 2005, 10:41 PM)
Personally I would recommend 2.0.43+, as it makes sense to be using the latest FLAC, OGG,and VORBIS libraries. 
*

Ah yes... I remember Windows; having to update each individual programme every time that any of the libraries change wink.gif...
Go to the top of the page
+Quote Post
snookerdoodle
post Aug 14 2005, 04:31
Post #7





Group: Members
Posts: 120
Joined: 13-May 05
From: Albuquerque
Member No.: 22035



QUOTE (Luna-Tick @ Aug 13 2005, 07:48 PM)
I was hoping that you could point me to a Linux / Ubuntu programme but, as I only have to do it once, I suppose I could switch between the two operating systems smile.gif. Please let me know if somebody finds something which would work on Linux, though!

You could *try* re-tagging a file with EasyTAG with the "Write ID3 files in FLAC files with FLAC tag unchecked. The little help thing says that ID3 tags will be stripped if this is not activated.

Mark
Go to the top of the page
+Quote Post
Luna-Tick
post Aug 14 2005, 05:54
Post #8





Group: Members
Posts: 6
Joined: 13-August 05
Member No.: 23875



QUOTE (snookerdoodle @ Aug 14 2005, 03:31 PM)
You could *try* re-tagging a file with EasyTAG with the "Write ID3 files in FLAC files with FLAC tag unchecked. The little help thing says that ID3 tags will be stripped if this is not activated.
*

Thanks for the suggestion, but it doesn't seem to work very well. I did tweak all those settings in order to get that happening, but it doesn't seem to actually change the tags unless you perform voodoo magic. I am probably doing something wrong, but as I said, I had to remove, add and change all the tags in strange orders before it would strip the ID3 tag.
Go to the top of the page
+Quote Post
Luna-Tick
post Aug 14 2005, 05:58
Post #9





Group: Members
Posts: 6
Joined: 13-August 05
Member No.: 23875



QUOTE (Synthetic Soul @ Aug 13 2005, 10:41 PM)
I would use:

CODE
TAG.EXE --recursive --remove --force FLAC *.flac

... to replace existing ID3v1 tags with FLAC tags - but as gfngfgf says, always best to test on some copies first.  Be warned that the command I quote will work recursively - so test in a folder with no important subfolders.  I have briefly tested this myself and it works.
*

Update: This seems to work. After going into Windows and running this recursively on a test group of FLACs, I returned to Ubuntu and Oggenc seems perfectly happy smile.gif.

As I say, it would be nice if Tag was available for Linux, but this isn't a perfect world smile.gif. I should be able to use this method without too much grief - especially seeing as the new ones seem fine and I will only have to fix the old ones once.

Thanks a lot, people smile.gif.
Go to the top of the page
+Quote Post
iKs
post Mar 29 2012, 15:31
Post #10





Group: Members
Posts: 1
Joined: 29-March 12
Member No.: 98183



6 years late, but I found this topic while googling about oggenc and ID3 tags so I'd just like to point out that there is a tool in Ubuntu/Debian/Linux: id3v2 and or mid3v2.

It seems mid3v2 is a Python (Mutagen library) based replacement for id3v2.

CODE
[m]id3v2 -D yourfile.flac


should work.
Go to the top of the page
+Quote Post
totedati
post Dec 13 2013, 15:06
Post #11





Group: Members
Posts: 1
Joined: 13-December 13
Member No.: 113262



to rebump the damn thing, in linux is actually simple to repair your id3 tainted flacs! first strange thing in the linux world is that id3 tagged flacs will not bite you in any way until you try to use oggenc! you can play the flacs just fine, you can tag it in programs like kid3-qt and vorbis tags will coexist with id3 tags! ugh! ... commands like
CODE
flac -t music.flac
or
CODE
flac -t music.flac
will not give you any hint that is something wrong with you flacs! then you will try something like
CODE
oggenc --utf8 -q 4 music.flac
and bang!

CODE
ERROR: Input file "music.flac" is not a supported format


WHAT!? tongue.gif

and finally, you do, at years distance of the original ripping movements, that final check you forgot to do:

CODE
file *.flac
music.flac:  Audio file with ID3 version 2.3.0, unsynchronized frames, contains: FLAC audio bitstream data, 16 bit, stereo, 44.1 kHz, 13427568 samples


WTF!? crying.gif from where is this alien bug landed on my hdd!? and what to do now? i want my flacs back! well, in linux world is simple:

CODE
for input in $(find . -maxdepth 1 -type f -name '*.flac'); \
do temp=$(basename $input .flac); \
metaflac --export-tags-to=$temp.metaflac $input; \
id3v2 -D $input; \
metaflac --import-tags-from=$temp.metaflac $input; \
rm -v $temp.metaflac; \
done


and voila, all you flacs is back and sane:

CODE
file *.flac
music.flac:  FLAC audio bitstream data, 16 bit, stereo, 44.1 kHz, 13427568 samples


caveats emperors:
CODE
rm -v $temp.metaflac; \
is dangerous, use only if my bash programming skills look strong enough, or else is safe to edit my code snipets and delete this line
CODE
metaflac --export-tags-to
export only metadata tags, embeded pictures and imported cuesheets will be lost
Go to the top of the page
+Quote Post

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: 21st August 2014 - 19:00