How to read audio (mp3) tags (Duration and Subtitle), when I use TagLib?

南楼画角 提交于 2019-12-11 09:34:12

问题


I am using TagLib (UltraID3Lib couldn't read every MP3 file). Maybe TagLib will do. And I couldn't find properties like Subtitle or Duration or Time?

How do I find this kind of tags?

Example: "Ondertitel" means Subtitle

The second question is: And how can I find the tag Subtitle by using TagLib?

回答1:


This way, you can get the duration:

var file = TagLib.File.Create(@"xyz.mp3");

Console.WriteLine(file.Properties.Duration);


来源:https://stackoverflow.com/questions/13089205/how-to-read-audio-mp3-tags-duration-and-subtitle-when-i-use-taglib

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!