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><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>

<div><br></div><div>Thoughts? </div><div><br></div><div><div>Cheers!</div>Phalgun
</div><div><br></div><div><div>[1] - <a href="http://forums.ilounge.com/music-audio/68487-calculating-file-size-bitrate.html" target="_blank">http://forums.ilounge.com/music-audio/68487-calculating-file-size-bitrate.html</a></div>

<div>[2] - <a href="http://www.linuxquestions.org/questions/general-10/bitrate-*-duration-%3D-uncompressed-file-size-890212/" target="_blank">http://www.linuxquestions.org/questions/general-10/bitrate-*-duration-%3D-uncompressed-file-size-890212/</a><br clear="all">

</div></div><div><br></div>