这个“专辑艺术家”是什么? iTunes 使用的标签?有什么方法可以使用java来设置它吗?

发布于 2024-11-05 12:12:22 字数 461 浏览 4 评论 0原文

iTunes 使用名为“Album Artist”的 ID3 标签,其中一个专辑要在 iTunes 中实际分组为专辑,专辑名称和专辑艺术家必须相同。

就我而言,专辑艺术家不是官方的 ID3 标签,并且来自到目前为止我见过的 ID3 库,没有一个支持“专辑艺术家”。

Preview

有谁知道更多关于这个奇怪的标签,以及如何在 java 中设置它(或使用任何命令行实用程序)。

iTunes uses an ID3 tag called "Album Artist", and for one album to be actually grouped as an album in iTunes, both the Album Name and Album Artist must be the same.

As far as I'm concerned, Album Artist isn't an official ID3 tag, and from the ID3 libraries I've seen so far, none supported "Album Artist".

Preview

Does anyone know more about this strange tag, and how to set it in java (or with any command line utility).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

把昨日还给我 2024-11-12 12:12:22

上面的评论者是正确的,TPE2(“乐队/管弦乐队/伴奏”)是 ID3 标签,通常为此重新调整用途。我知道至少 iTunes、Windows Media Player、J River Media Center 和 XBMC 都使用此标签,因为我在自己的音乐收藏中广泛使用它,并且所有这些应用程序都无缝支持它。

要编辑此标签:

以图形方式mp3tag,我用过的唯一的图形编辑器(在本例中是 Windows,但在 Wine 下工作得很好),它可以很好地处理多个文件(除非您专门更改它们,否则保留值),让您可以自定义您拥有的字段(以及它们的方式)映射到 ID3 或 FLAC 标签等),并且还有其他好东西,例如干净地处理 APIC 标签的多种图像类型(封面、封底、光盘图像、乐队照片)等。强烈推荐。

从命令行:在这种情况下,id3v2 命令行工具非常有用:(

$ id3v2 -l foo.mp3 
[...]
id3v2 tag info for foo.mp3:
TFLT (File type): MPG/3
TIT2 (Title/songname/content description): Because Of The Blood (Single Version)
TPE1 (Lead performer(s)/Soloist(s)): Sin Fang
TPE2 (Band/orchestra/accompaniment): Sin Fang
[...]

$ id3v2 --TPE2 "Spice Girls" foo.mp3

$ id3v2 -l foo.mp3 | grep TPE2
TPE2 (Band/orchestra/accompaniment): Spice Girls

默认情况下,此工具在 Ubuntu 存储库中可用,sudo apt-get install id3v2

来自 Java:

使用类似 javamusictag 项目。我已经有一段时间没有使用它了,但是类似:

MP3File file = new MP3File(new java.io.File("foo.mp3"));
((FrameBodyTPE2) file.getID3v2Tag().getFrame("TPE2").getBody()).setText("Backstreet Boys");
file.save();

非常接近(或者至少足够接近让您开始使用)。

The commenters above are correct, TPE2 ("Band/Orchestra/Accompaniment") is the ID3 tag which is usually repurposed for this. I know that at least iTunes, Windows Media Player, J River Media Center, and XBMC all use this tag, because I use it extensively in my own music collection and all of those applications have supported it seamlessly.

To edit this tag:

Graphically: you really can't go wrong with mp3tag, the only graphical editor (Windows in this case, but works fine under Wine) I've used which handles multiple files really well (leaves values alone unless you specifically change them), lets you customise which fields you have (and how they map to ID3 or FLAC tags, etc), and has other nice stuff like handling multiple image types for the APIC tag (front cover, back cover, disc image, band photo) cleanly, etc. Highly recommended.

From the command line: the id3v2 command-line tool works a treat in this case:

$ id3v2 -l foo.mp3 
[...]
id3v2 tag info for foo.mp3:
TFLT (File type): MPG/3
TIT2 (Title/songname/content description): Because Of The Blood (Single Version)
TPE1 (Lead performer(s)/Soloist(s)): Sin Fang
TPE2 (Band/orchestra/accompaniment): Sin Fang
[...]

$ id3v2 --TPE2 "Spice Girls" foo.mp3

$ id3v2 -l foo.mp3 | grep TPE2
TPE2 (Band/orchestra/accompaniment): Spice Girls

(this tool is available by default in the Ubuntu repos, sudo apt-get install id3v2)

From Java:

Use something like the javamusictag project. I haven't used this in a while but something like:

MP3File file = new MP3File(new java.io.File("foo.mp3"));
((FrameBodyTPE2) file.getID3v2Tag().getFrame("TPE2").getBody()).setText("Backstreet Boys");
file.save();

is pretty close (or at least, close enough to get you started).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文