← 返回命令列表

Linux command

id3tag 命令

文件

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

常用示例

Set song title

id3tag -s "[title]" [file.mp3]

Set artist

id3tag -a "[artist]" [file.mp3]

Set album

id3tag -A "[album]" [file.mp3]

Set year and track number

id3tag -y [2024] -t [1] [file.mp3]

Set genre by number

id3tag -g [17] [file.mp3]

Set multiple tags at once

id3tag -a "[artist]" -s "[title]" -A "[album]" -y [2024] -t [1] [file.mp3]

Write only ID3v2 tags

id3tag -2 -a "[artist]" -s "[title]" [file.mp3]

说明

id3tag is a command-line tool for writing ID3 tags to MP3 files. Part of the id3lib/libid3-tools package. Renders both ID3v1 and ID3v2 tags by default; use -1 or -2 to render only one type. Can set title, artist, album, year, track number, genre, and comments. Useful for batch tagging with shell scripts. Use id3info to view existing tags.

参数

-1, --v1tag
Render only the id3v1 tag.
-2, --v2tag
Render only the id3v2 tag.
-a, --artist _ARTIST_
Set artist name.
-s, --song _SONG_
Set song title.
-A, --album _ALBUM_
Set album name.
-y, --year _NUM_
Set release year.
-t, --track _NUM_
Set track number.
-T, --total _NUM_
Set total number of tracks on the album.
-g, --genre _NUM_
Set genre by number.
-c, --comment _COMMENT_
Set comment.
-C, --desc _DESCRIPTION_
Set comment description.
-v, --version
Display version information.
-h, --help
Display help and exit.

FAQ

What is the id3tag command used for?

id3tag is a command-line tool for writing ID3 tags to MP3 files. Part of the id3lib/libid3-tools package. Renders both ID3v1 and ID3v2 tags by default; use -1 or -2 to render only one type. Can set title, artist, album, year, track number, genre, and comments. Useful for batch tagging with shell scripts. Use id3info to view existing tags.

How do I run a basic id3tag example?

Run `id3tag -s "[title]" [file.mp3]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -1, --v1tag do in id3tag?

Render only the id3v1 tag.