Help - Search - Members - Calendar
Full Version: command line tagging
Hydrogenaudio Forums > Lossless Audio Compression > FLAC
mAyDaY
Greetings everyone,

here's a question that's been troubling me for some time now...

(I googled and checked the documentation too..)

How to modify FLAC's tags (artist, title, etc.) using the command line tool?

I know there's the "-T "artist=Artist", .... option, but it seems it's ment only for encoding from wav...

so, flac -T "artist=Artist" myFlac.flac
results in a error message that the file already exist rolleyes.gif

any suggestions? unsure.gif
greynol
Use metaflac.exe.

I just gave this link out about an hour ago...
http://flac.sourceforge.net/documentation_...s_metaflac.html
mAyDaY
thnx for responding greynol, i checked out the metaflac documentation and only option that could be used is --set-tag=FIELD

so if anyone else has the dilema, here's a simple usage example:

first you have to remove all tags (because if you set-tag artist and if it's already set, your just going to add a double which won't do the desired effect)

CODE
metaflac --remove-all-tags myFlac.flac


then, modify the artist tag (for example)

CODE
metaflac --set-tag=artist="SomeArtist" myFlac.flac
jcoalson
p.s. you can do it all at once which may be faster in some cases, commands are processed in order:

CODE
metaflac --remove-all-tags --set-tag="ARTIST=blah" ... file.flac

a --replace-tag option would be useful, I'll probably add that.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.