如何删除音乐库中不必要的 mp3 标签?

如何删除音乐库中不必要的 mp3 标签?

我有大量的音乐。有些曲目有不必要的 MP3 标志。我怎样才能摆脱它们?

答案1

要查看图书馆的污染情况,请尝试:

find ./ -type f -iname "*.mp3" -exec /usr/bin/mid3v2 -l '{}' + | egrep -e "AENC|ASPI|COMM|COMR|ENCR|EQU2|ETCO|GEOB|GRID|LINK|MCDI|MLLT|OWNE|PRIV|PCNT|POPM|POSS|RBUF|RVA2|RVRB|SEEK|SIGN|SYLT|SYTC|TBPM|TCOM|TCOP|TDEN|TDLY|TDOR|TDRL|TDTG|TENC|TEXT|TFLT|TIPL|TIT3|TKEY|TLAN|TLEN|TMCL|TMED|TMOO|TOAL|TOFN|TOLY|TOPE|TOWN|TPE3|TPE4|TPOS|TPRO|TPUB|TRSN|TRSO|TSOA|TSOP|TSOT|TSRC|TSSE|TSST|TXXX|UFID|USER|USLT|WCOM|WCOP|WOAF|WOAR|WOAS|WORS|WPAY|WPUB|WXXX"

通常您可以用来mid3v2编辑 mp3 文件的 ID3v2 标签。

find ./ -type f -iname "*.mp3" -exec /usr/bin/mid3v2 --delete-frames=AENC,ASPI,COMM,COMR,ENCR,EQU2,ETCO,GEOB,GRID,LINK,MCDI,MLLT,OWNE,PRIV,PCNT,POPM,POSS,RBUF,RVA2,RVRB,SEEK,SIGN,SYLT,SYTC,TBPM,TCOM,TCOP,TDEN,TDLY,TDOR,TDRL,TDTG,TENC,TEXT,TFLT,TIPL,TIT3,TKEY,TLAN,TLEN,TMCL,TMED,TMOO,TOAL,TOFN,TOLY,TOPE,TOWN,TPE3,TPE4,TPOS,TPRO,TPUB,TRSN,TRSO,TSOA,TSOP,TSOT,TSRC,TSSE,TSST,TXXX,UFID,USER,USLT,WCOM,WCOP,WOAF,WOAR,WOAS,WORS,WPAY,WPUB,WXXX '{}' +

这将从当前目录递归地找到所有 *.mp3 文件并删除几乎所有的 id3v2 帧。它做到了极其快速地。几乎全部意味着全部,但是:

APIC  A picture for the track, usually the albumcover.
TIT1  Content group description (I guess could be deleted too)
TIT2  The song title
TPE1  The album artist
TPE2  The artists (includes featurings)
TRCK  Tracknumber
TALB  Albumtitle
TCON  Genre
TDRC  Year of release

比较id3v2.4规范

mid3v2 在删除之前会隐式地将 TYER(发布年份的旧框架)转换为 TDRC。实际上它会将每个操作的每个文件转换为id3v2.4。看man mid3v2

再次测试它是否有效:

find ./ -type f -iname "*.mp3" -exec /usr/bin/mid3v2 -l '{}' + | egrep -e "AENC|ASPI|COMM|COMR|ENCR|EQU2|ETCO|GEOB|GRID|LINK|MCDI|MLLT|OWNE|PRIV|PCNT|POPM|POSS|RBUF|RVA2|RVRB|SEEK|SIGN|SYLT|SYTC|TBPM|TCOM|TCOP|TDEN|TDLY|TDOR|TDRL|TDTG|TENC|TEXT|TFLT|TIPL|TIT3|TKEY|TLAN|TLEN|TMCL|TMED|TMOO|TOAL|TOFN|TOLY|TOPE|TOWN|TPE3|TPE4|TPOS|TPRO|TPUB|TRSN|TRSO|TSOA|TSOP|TSOT|TSRC|TSSE|TSST|TXXX|UFID|USER|USLT|WCOM|WCOP|WOAF|WOAR|WOAS|WORS|WPAY|WPUB|WXXX"

相关内容