taglib# returns wrong duration

☆樱花仙子☆ 提交于 2019-12-13 13:48:27

问题


I'm getting the duration of an MP3 file in this way:

TagLib.File file = TagLib.File.Create(fileName);
var duration = file.Properties.Duration;

and it is consistently giving me a duration between 68 and 75% of the real duration. Windows File Manager, VLC and just playing the MP3 and measuring with a stopwatch agree on the other duration.

Any ideas what's wrong here?


回答1:


Turned out to be a bug: https://bugzilla.gnome.org/show_bug.cgi?id=605765



来源:https://stackoverflow.com/questions/1982716/taglib-returns-wrong-duration

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