Help - Search - Members - Calendar
Full Version: How to use --tag ?
Hydrogenaudio Forums > Lossless Audio Compression > FLAC
I am all FLAC
Hi,

I am using Linux, and I would like flac to include the version number of flac that was used to create the flac files.

I would think
CODE
flac  --tag="encoded by"="flac 1.2.1" kingdom_of_heaven.wav

should do the trick, but it doesn't add anything.

Can someone help me with this? smile.gif


SamHain86
Try this instead:
CODE
flac  --tag="encoded by=flac 1.2.1" kingdom_of_heaven.wav
Nick E
QUOTE(I am all FLAC @ Feb 14 2008, 09:31) *

Hi,

I am using Linux, and I would like flac to include the version number of flac that was used to create the flac files.

I would think
CODE
flac  --tag="encoded by"="flac 1.2.1" kingdom_of_heaven.wav

should do the trick, but it doesn't add anything.

Can someone help me with this? smile.gif


I've not done it myself, but IIRC FLAC files use Vorbis comments. The syntax appears to be:

CODE
vorbiscomment -a -t 'ENCODED BY=flac 1.2.1' file.ogg newfile.ogg


... in your case .flac, of course.

See here:

http://linux.about.com/library/cmd/blcmdl1_vorbiscomment.htm



EDIT: No scratch that -- doesn't work. That calls Vorbis Tools. which seems to be looking for an Ogg stream.

Sorry, can't help.
Nick E
It looks to me like you want Metaflac.

If you install the Flac package with your distro's package manager you should get it.

Here are the options for using Metaflac:

http://ccrma.stanford.edu/planetccrma/man/...metaflac.1.html

I'm playing with it at the moment.
Nick E
OK< so this one is quite a saga. It turns out that the syntax of some of these options has changed ... as you'll see if you type in:

CODE
metaflac --help


What you need currently is this command line:

CODE
metaflac --set-tag=ENCODEDBY=FLAC1.2.1 filename.flac


... where filename.flac is the file in question.

Alternatively you can make a little textfile with the desired blurb in it (FILE) and import from that -- like this:

CODE
metaflac --import-tags-from=FILE filename.flac


Similarly, if you wish to look at the tags, you issue this command:

CODE
metaflac --export-tags-to=FILE filename.flac


jcoalson
QUOTE(I am all FLAC @ Feb 14 2008, 10:31) *
I am using Linux, and I would like flac to include the version number of flac that was used to create the flac files.

I would think
CODE
flac  --tag="encoded by"="flac 1.2.1" kingdom_of_heaven.wav

should do the trick, but it doesn't add anything.
that syntax is fine and worked for me when I tried it in a bash shell:

CODE
$ flac  --tag="encoded by"="flac 1.2.1" kingdom_of_heaven.wav

flac 1.2.1, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007  Josh Coalson
flac comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are
welcome to redistribute it under certain conditions.  Type `flac' for details.

kingdom_of_heaven.wav: wrote 1115781 bytes, ratio=0.766
$ metaflac --list --block-type=VORBIS_COMMENT kingdom_of_heaven.flac
METADATA block #2
  type: 4 (VORBIS_COMMENT)
  is last: false
  length: 65
  vendor string: reference libFLAC 1.2.1 20070917
  comments: 1
    comment[0]: encoded by=flac 1.2.1
MClemo
The version number gets stored anyway in a metadata block, so it doesn't make much sense to use vorbis comments for this unless you include more information like the compression level used.
This is how you access this information:
CODE
metaflac --show-vendor-tag <file>
I am all FLAC
QUOTE(jcoalson @ Feb 14 2008, 20:10) *
that syntax is fine and worked for me when I tried it in a bash shell:

I am a bit confused about these ogg tags...

When I do the encoding like you (and all the other suggestions) did, I can not see the "Encoded by" field in EasyTag being set. Try and see screenshot at
IPB Image

Is that because EasyTag adds something extra to the flac file inorder to store the "encoded by"?

Btw. So you like that trailer music as well? tongue.gif
I am all FLAC
QUOTE(MClemo @ Feb 14 2008, 20:14) *

The version number gets stored anyway in a metadata block, so it doesn't make much sense to use vorbis comments for this unless you include more information like the compression level used.
This is how you access this information:
CODE
metaflac --show-vendor-tag <file>


That's very cool biggrin.gif Then I can do thing like this
CODE
~/movie/trailers-movie/music/a$ metaflac --show-vendor-tag kingdom_of_heaven.flac | sed 's/reference //'
libFLAC 1.2.1 20070917
~/movie/trailers-movie/music/a$

and insert that dynamically biggrin.gif

Afterwards can I fill out artist,title,album and so on in EasyTag biggrin.gif
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.