当我使用TagLib时,如何读取音频(mp3)标签(持续时间和字幕)? [英] How to read audio (mp3) tags (Duration and Subtitle), when I use TagLib?

查看:254
本文介绍了当我使用TagLib时,如何读取音频(mp3)标签(持续时间和字幕)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用TagLib(UltraID3Lib无法读取每个MP3文件).也许TagLib会做. 而且我找不到诸如字幕,持续时间或时间之类的属性?

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?

如何找到这种标签?

示例: "Ondertitel"是指字幕

Example: "Ondertitel" means Subtitle

第二个问题是: 以及如何使用TagLib查找标签Subtitle?

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

推荐答案

这样,您可以获取持续时间:

This way, you can get the duration:

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

Console.WriteLine(file.Properties.Duration);

这篇关于当我使用TagLib时,如何读取音频(mp3)标签(持续时间和字幕)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆