問題描述
我如何檢測(最好使用 Python)可以使用不同比特率(但它們是同一首歌曲)編碼的重復 MP3 文件和可能不正確的 ID3 標簽?
How could I detect (preferably with Python) duplicate MP3 files that can be encoded with different bitrates (but they are the same song) and ID3 tags that can be incorrect?
我知道我可以對文件內容進行 MD5 校驗和,但這不起作用對于不同的比特率.而且我不知道 ID3 標簽是否會影響生成 MD5 校驗和.我應該重新編碼具有不同比特率的 MP3 文件,然后我可以進行校驗和嗎?你有什么推薦的?
I know I can do an MD5 checksum of the files content but that won't work for different bitrates. And I don't know if ID3 tags have influence in generating the MD5 checksum. Should I re-encode MP3 files that have a different bitrate and then I can do the checksum? What do you recommend?
推薦答案
老AudioScrobbler 和目前 的人完全相同的問題MusicBrainz 很久以前就開始工作了.目前,可以幫助您完成任務的 Python 項目是 Picard,它將標記音頻文件(不僅是 MPEG 1 Layer 3 文件)帶有 GUID(實際上是幾個),從那時起,匹配標簽就非常簡單了.
The exact same question that people at the old AudioScrobbler and currently at MusicBrainz have worked on since long ago. For the time being, the Python project that can aid in your quest, is Picard, which will tag audio files (not only MPEG 1 Layer 3 files) with a GUID (actually, several of them), and from then on, matching the tags is quite simple.
如果您更愿意將其作為自己的項目,libofa 可能有幫助.
If you prefer to do it as a project of your own, libofa might be of help.
這篇關于檢測具有不同比特率和/或不同 ID3 標簽的重復 MP3 文件?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!