Loading...

FLAC stands for Free Lossless Audio Codec, an audio format similar to MP3, but lossless, meaning that audio is compressed in FLAC without any loss in quality. This is similar to how Zip works, except with FLAC you will get much better compression because it is designed specifically for audio, and you can play back compressed FLAC files in your favorite player (or your car or home stereo, see supported devices) just like you would an MP3 file. http://flac.sourceforge.net/

Metadata Management

metaflac is the command-line .flac file metadata editor. You can use it to list the contents of metadata blocks, edit, delete or insert blocks, and manage padding.

Show metadata

List metadata for a single file

metaflac --list file.flac

Show vorbis-comments

Show only vorbis-comments either with the block number or block type.

Block number 2 contains vorbis comments

tan@omega:~$ metaflac --list 07\ Devipravaha\ -\ _Goddess\ River_\ \(feat.\ Roopa\ Mahadevan\).flac --block-number=2
METADATA block #2
  type: 4 (VORBIS_COMMENT)
  is last: false
  length: 316
  vendor string: reference libFLAC 1.2.1 20070917
  comments: 10
    comment[0]: ALBUM=The Drop That Contained the Sea
    comment[1]: ALBUMARTIST=Christopher Tin
    comment[2]: ARTIST=Christopher Tin
    comment[3]: COMPOSER=Christopher Tin
    comment[4]: ENCODER=xACT 2.26
    comment[5]: GENRE=Classical
    comment[6]: TITLE=Devipravaha - "Goddess River" (feat. Roopa Mahadevan)
    comment[7]: TRACKNUMBER=7
    comment[8]: TRACKTOTAL=10
    comment[9]: DATE=2014

If the block number does not fit, the block type can be used.

tan@omega:~$ metaflac --list 07\ Devipravaha\ -\ _Goddess\ River_\ \(feat.\ Roopa\ Mahadevan\).flac  --block-type=VORBIS_COMMENT
METADATA block #2
  type: 4 (VORBIS_COMMENT)
  is last: false
  length: 316
  vendor string: reference libFLAC 1.2.1 20070917
  comments: 10
    comment[0]: ALBUM=The Drop That Contained the Sea
    comment[1]: ALBUMARTIST=Christopher Tin
    comment[2]: ARTIST=Christopher Tin
    comment[3]: COMPOSER=Christopher Tin
    comment[4]: ENCODER=xACT 2.26
    comment[5]: GENRE=Classical
    comment[6]: TITLE=Devipravaha - "Goddess River" (feat. Roopa Mahadevan)
    comment[7]: TRACKNUMBER=7
    comment[8]: TRACKTOTAL=10
    comment[9]: DATE=2014

Show tag

metaflac --show-tag=comment *.flac

Remove tag

metaflac --remove-tag=comment *.flac

Resources