如何使用MusicBrainz数据库清理和修复音乐库
Over the years, some of us accumulate lots and lots of music files. Since these come from a variety of sources, they’re not always as neat as they could be. If your music library is in a bit of a jumble with tags missing, oddly named files and incomplete albums, read on to see how easy it is to make it neat once and for all.
多年来,我们中的一些人积累了很多音乐文件。 由于这些来自各种来源,因此它们并不总是像它们可能的那样整洁。 如果您的音乐库有点混乱,缺少标签,名称奇怪的文件和不完整的专辑,请继续阅读以一劳永逸地使其整洁。
MusicBrainz is an online database that uses audio “fingerprints” to identify music tracks even when they’re incorrectly labelled. We’ll be using this database through a free client called Picard, available for Windows, Mac OS X and Linux. So first thing, head on over to Picard’s download page and get the installer. If you use Linux, you can install Picard using your package manager.
MusicBrainz是一个在线数据库,即使使用错误的标签,也可以使用音频“指纹”来识别音乐曲目。 我们将通过名为Picard的免费客户端使用此数据库,该客户端可用于Windows,Mac OS X和Linux。 所以首先,转到Picard的下载页面并获取安装程序。 如果使用Linux,则可以使用程序包管理器安装Picard。
Once you finish going through the installer, run Picard. Your firewall might pop up an alert telling you Picard is trying to access the Internet; you should agree to let Picard through. You will now see the main Picard interface. Click View > File browser (or press Ctrl+B).
完成安装程序后,运行Picard。 您的防火墙可能会弹出一个警报,告诉您Picard正在尝试访问Internet。 您应该同意让Picard通过。 现在,您将看到Picard主界面。 单击查看>文件浏览器(或按Ctrl + B)。
A new pane showing your file system will pop up on the left. Navigate to the music files you’d like to work with.
一个显示您的文件系统的新窗格将在左侧弹出。 导航到您要使用的音乐文件。
This folder contains only two albums, so we’re going to do both at once. If you have dozens of albums you may want to break it down into several runs, at least until you’re comfortable with Picard. Drag the main folder (or any specific album) onto Unmatched Files.
此文件夹仅包含两张专辑,因此我们将同时执行这两项。 如果您有几十张专辑,则可能需要将其分解为几张专辑,至少直到您对Picard感到满意为止。 将主文件夹(或任何特定的专辑)拖到“不匹配的文件”上。
Picard instantly identified both albums. One is Dexter’s OST, and it’s shown with a golden icon, which means it is complete and we have all the tracks for it. The other album, Tool’s Lateralus, is shown with a silver icon and clear notation showing we’re missing two tracks. One track was not identified. Click it and click Lookup. The track should instantly jump into the album it belongs to.
Picard立即识别了两张专辑。 一个是德克斯特(Dexter)的OST,它以金色图标显示,这意味着它已经完成,我们拥有所有的跟踪。 另一张专辑《 Tool's Lateralus》以银色图标显示,并带有清晰的符号,表示我们缺少两条音轨。 未确定一条轨道。 单击它,然后单击查找。 该曲目应立即跳入其所属的专辑。
The above screenshot also shows the missing track – it’s the last one, indicated by a different icon.
上面的屏幕截图还显示了丢失的曲目-这是最后一个曲目,由另一个图标表示。
Now that we have all of the correct metadata, we are ready save it into our files. But before we do that, we can also have Picard automatically rename the files based on this metadata. This functionality is disabled by default, but it’s very handy, so we’re going to have a quick look at enabling it. Click Options > Options and navigate to File naming. Check the box that says “Rename files when saving”.
现在,我们拥有所有正确的元数据,我们可以将其保存到文件中。 但是在执行此操作之前,我们还可以让Picard根据此元数据自动重命名文件。 默认情况下,此功能是禁用的,但是非常方便,因此我们将快速了解如何启用它。 单击选项>选项,然后导航到文件命名。 选中“保存时重命名文件”复选框。
If you want, you can set how exactly Picard would format the filename. For now, we’re simply going to click OK and get back to the main screen. Now select both albums on the list and hit Ctrl-S to save the metadata into the files (and optionally rename them).
如果需要,可以设置Picard格式化文件名的精确度。 现在,我们只需单击“确定”并返回主屏幕。 现在,选择列表中的两个相册,然后按Ctrl-S将元数据保存到文件中(并可以选择重命名它们)。
That’s it! Or at least, that’s the gist of it. Picard is very powerful, and music files can be quite messy. You may come across situations not covered above, but this should be enough to get you started.
而已! 至少,这就是要点。 Picard非常强大,音乐文件可能非常凌乱。 您可能会遇到以上未涵盖的情况,但这足以使您入门。