← 返回命令列表

Linux command

metaflac 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

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]

说明

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.

参数

--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_).

FAQ

What is the metaflac command used for?

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.

How do I run a basic metaflac example?

Run `metaflac --list [file.flac]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --list do in metaflac?

List metadata blocks.