【问题标题】:System.NotImplementedException: 'ID3v2 Version 2 is not supported.'System.NotImplementedException:“不支持 ID3v2 版本 2。”
【发布时间】:2017-09-26 06:56:04
【问题描述】:

希望一切都好。我在 C# 表单应用程序中尝试从 Visual Studio 上的 MP3 文件获取元标记时收到以下错误。任何帮助表示赞赏。提前致谢。

System.NotImplementedException: '不支持 ID3v2 版本 2。'

这是我的代码到目前为止的样子:

Mp3Lib.Mp3File mFile = new Mp3Lib.Mp3File(file: @"C:\Users\user\Music\song.mp3");
string mArtist = mFile.TagHandler.Artist;

【问题讨论】:

    标签: c# visual-studio tags id3v2


    【解决方案1】:

    您使用的“MP3Lib”库似乎不支持 ID3v2 版本 2。

    作为替代方案,我建议您使用 ATL.NET (https://github.com/Zeugma440/atldotnet) 或 TagLibSharp (https://github.com/mono/taglib-sharp)。

    两者都是最新的库,可以从 MP3 文件中读取 ID3v2.x 元数据等等。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-09-11
      • 2021-04-12
      • 1970-01-01
      • 2021-12-03
      • 1970-01-01
      • 2018-02-15
      • 2020-02-13
      相关资源
      最近更新 更多