开发者

taglib# returns wrong duration

开发者 https://www.devze.com 2022-12-15 07:16 出处:网络
I\'m getting the duration of an MP3 file in this way: TagLib.File file = TagLib.File.Create(fileName);

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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号