Linux command
mid3v2 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Show ID3 tags
mid3v2 [file.mp3]
Set title
mid3v2 --title "[Song Title]" [file.mp3]
Set artist and album
mid3v2 --artist "[Artist]" --album "[Album]" [file.mp3]
Set track number
mid3v2 --track [5] [file.mp3]
Set year
mid3v2 --year [2024] [file.mp3]
Remove all tags
mid3v2 --delete-all [file.mp3]
Set cover art
mid3v2 --picture "[cover.jpg]" [file.mp3]
List all frames
mid3v2 --list [file.mp3]
说明
mid3v2 edits ID3v2 tags in MP3 files. It's a Mutagen-based alternative to id3v2 with better Unicode and ID3v2.4 support. The tool reads and writes ID3v2.3 and ID3v2.4 tags. It can convert legacy ID3v1 tags to the modern format. Unicode text is handled correctly. Common tags have short options (--artist, --album, --title). Arbitrary ID3v2 frames can be set using frame identifiers like TPE2 (album artist) or TXXX (user-defined text). Cover art embeds images in the audio file. JPEG and PNG formats are supported. Multiple pictures with different types (front, back, artist) can be added. Batch processing handles multiple files with wildcards. Combined with shell scripting, entire music libraries can be tagged.
参数
- -t, --title _TEXT_
- Set title (TIT2).
- -a, --artist _TEXT_
- Set artist (TPE1).
- -A, --album _TEXT_
- Set album (TALB).
- -T, --track _NUM_
- Set track number (TRCK).
- -y, --year _YEAR_
- Set year (TDRC).
- -g, --genre _GENRE_
- Set genre (TCON).
- -c, --comment _TEXT_
- Set comment (COMM).
- --picture _FILE_
- Set cover art (APIC).
- -l, --list
- List all tags.
- -D, --delete-all
- Remove all tags.
- -d, --delete-frames _FRAMES_
- Delete specific frames.
- --convert
- Convert ID3v1 to ID3v2.
- -v, --verbose
- Verbose output.
FAQ
What is the mid3v2 command used for?
mid3v2 edits ID3v2 tags in MP3 files. It's a Mutagen-based alternative to id3v2 with better Unicode and ID3v2.4 support. The tool reads and writes ID3v2.3 and ID3v2.4 tags. It can convert legacy ID3v1 tags to the modern format. Unicode text is handled correctly. Common tags have short options (--artist, --album, --title). Arbitrary ID3v2 frames can be set using frame identifiers like TPE2 (album artist) or TXXX (user-defined text). Cover art embeds images in the audio file. JPEG and PNG formats are supported. Multiple pictures with different types (front, back, artist) can be added. Batch processing handles multiple files with wildcards. Combined with shell scripting, entire music libraries can be tagged.
How do I run a basic mid3v2 example?
Run `mid3v2 [file.mp3]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -t, --title _TEXT_ do in mid3v2?
Set title (TIT2).