LinuxCommandLibrary

metaflac

TLDR

List all metadata

$ metaflac --list [file.flac]
copy
Show all tags
$ metaflac --export-tags-to=- [file.flac]
copy
Set tag value
$ metaflac --set-tag="[ARTIST=Name]" [file.flac]
copy
Remove tag
$ metaflac --remove-tag="[COMMENT]" [file.flac]
copy
Import tags from file
$ metaflac --import-tags-from=[tags.txt] [file.flac]
copy
Export cover art
$ metaflac --export-picture-to=[cover.jpg] [file.flac]
copy
Import cover art
$ metaflac --import-picture-from=[cover.jpg] [file.flac]
copy

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.
metaflac operates without re-encoding the audio data.

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 artwork.
--import-picture-from file
Import artwork.

TAG FORMAT

$ # tags.txt
ARTIST=Artist Name
ALBUM=Album Name
TITLE=Track Title
TRACKNUMBER=01
copy

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.

SEE ALSO

flac(1), ffmpeg(1), mid3v2(1), eyeD3(1)

Copied to clipboard