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

2019-08-08 10:35发布

问题:

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);