Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: How to use --tag ? (Read 4749 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to use --tag ?

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: [Select]
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? 

How to use --tag ?

Reply #1
Try this instead:
Code: [Select]
flac  --tag="encoded by=flac 1.2.1" kingdom_of_heaven.wav
OP can't edit initial post when a solution is determined  :'-(

How to use --tag ?

Reply #2
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: [Select]
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? 


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

Code: [Select]
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.


How to use --tag ?

Reply #4
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: [Select]
metaflac --help


What you need currently is this command line:

Code: [Select]
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: [Select]
metaflac --import-tags-from=FILE filename.flac


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

Code: [Select]
metaflac --export-tags-to=FILE filename.flac

How to use --tag ?

Reply #5
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: [Select]
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: [Select]
$ 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

How to use --tag ?

Reply #6
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: [Select]
metaflac --show-vendor-tag <file>

How to use --tag ?

Reply #7
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
[a href="http://allyoucanupload.webshots.com/v/2005245467940312336" target="_blank"]

 

How to use --tag ?

Reply #8
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: [Select]
metaflac --show-vendor-tag <file>

That's very cool  Then I can do thing like this
Code: [Select]
~/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 

Afterwards can I fill out artist,title,album and so on in EasyTag