How to read audio (mp3) tags (Duration and Subtitl

2019-08-08 10:58发布

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

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

1条回答
Ridiculous、
2楼-- · 2019-08-08 11:11

This way, you can get the duration:

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

Console.WriteLine(file.Properties.Duration);
查看更多
登录 后发表回答