taglib# returns wrong duration
Posted
by J. Pablo Fernández
on Stack Overflow
See other posts from Stack Overflow
or by J. Pablo Fernández
Published on 2009-12-30T21:53:11Z
Indexed on
2010/06/10
10:02 UTC
Read the original article
Hit count: 247
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?
© Stack Overflow or respective owner