Hey Phalgun<br><br><div class="gmail_quote">On Sun, Feb 17, 2013 at 9:41 PM, Phalgun Guduthur <span dir="ltr"><<a href="mailto:phalgun.guduthur@gmail.com" target="_blank">phalgun.guduthur@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey! <div><br></div><div>A bunch of people raised concerns about the track length (nfo:duration) being zero in the Nepomuk plugin in Amarok. </div>
</blockquote><div><br>In 4.10.0 ? <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div>I tried around a few examples and the current audio metadata indexer doesn't do much about the track length. But it readily fetches data about bit rate and file size. </div>



<div><br></div><div>With a little digging <a href="http://forums.ilounge.com/music-audio/68487-calculating-file-size-bitrate.html" target="_blank">[1]</a> <a href="http://www.linuxquestions.org/questions/general-10/bitrate-*-duration-%3D-uncompressed-file-size-890212/" target="_blank">[2]</a>, I found that (file size/duration) = average bitrate. </div>



<div><br></div><div>If the indexer cannot populate nfo:duration directly using Taglib, can we compute the track length through the above equation? </div><div>I wanted to implement this in the Amarok plugin, but I figured it would be better to fix this at the source.</div>
</blockquote><div><br>We could compute it, but I think it would be better to do this directly in taglib. This might just be a bug in Taglib.<br><br>If it is a bug / not implemented in TagLib, I'll be happy to accept a patch which can be reverted when taglib has been fixed. </div>
</div><br><br clear="all"><br>-- <br><span style="color:rgb(192,192,192)">Vishesh Handa</span><br>