metaflac
command-line FLAC metadata editor
TLDR
List all metadata
$ metaflac --list [file.flac]
Show all tags$ metaflac --export-tags-to=- [file.flac]
Set tag value$ metaflac --set-tag="[ARTIST=Name]" [file.flac]
Remove tag$ metaflac --remove-tag="[COMMENT]" [file.flac]
Import tags from file$ metaflac --import-tags-from=[tags.txt] [file.flac]
Export cover art$ metaflac --export-picture-to=[cover.jpg] [file.flac]
Import cover art$ metaflac --import-picture-from=[cover.jpg] [file.flac]
SYNOPSIS
metaflac [options] files...
DESCRIPTION
metaflac is the command-line FLAC metadata editor. It can list, add, remove, and modify metadata in FLAC files including Vorbis comments and embedded pictures.
PARAMETERS
--list
List metadata blocks.--export-tags-to file
Export tags.--import-tags-from file
Import tags.--set-tag tag=value
Set tag.--remove-tag tag
Remove tag.--remove-all-tags
Remove all tags.--export-picture-to file
Export the embedded picture (cover art) to file.--import-picture-from file
Import a picture into the file (PNG/JPEG; specification syntax allows TYPE\|MIME\|DESC\|WIDTHxHEIGHTxDEPTH/COLORS\|FILE).--show-md5sum
Print the unencoded MD5 sum of the audio data.--show-min-blocksize / --show-max-blocksize / --show-sample-rate / --show-channels / --show-bps / --show-total-samples
Print individual STREAMINFO fields useful for scripting.--add-replay-gain
Compute and add ReplayGain tags for one or more files (treated as one album when multiple files are passed).--remove-replay-gain
Remove ReplayGain tags.--block-type / --except-block-type types
Restrict subsequent operations to specific metadata block types (e.g. VORBIS\COMMENT, PICTURE, SEEKTABLE_).
TAG FORMAT
$ # tags.txt
ARTIST=Artist Name
ALBUM=Album Name
TITLE=Track Title
TRACKNUMBER=01
ARTIST=Artist Name
ALBUM=Album Name
TITLE=Track Title
TRACKNUMBER=01
CAVEATS
Only works with FLAC files. Changes are immediate (no undo). Case-insensitive tag names. Picture imports need proper MIME type.
HISTORY
metaflac is part of the FLAC project created by Josh Coalson in 2000 as a free lossless audio codec.
