2009/11/24 Ken Restivo <span dir="ltr">&lt;<a href="mailto:ken@restivo.org">ken@restivo.org</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">On Fri, Nov 20, 2009 at 03:24:58PM +0000, Gwenhwyfaer wrote:<br>
&gt; On 20/11/2009, <a href="mailto:hollunder@gmx.at">hollunder@gmx.at</a> &lt;<a href="mailto:hollunder@gmx.at">hollunder@gmx.at</a>&gt; wrote:<br>
&gt; &gt;&gt; Is it a variable-rate MP3, by any chance? In which case, it&#39;s probably<br>
&gt; &gt;&gt; dividing the length of the song in bytes by the bitrate of the first<br>
&gt; &gt;&gt; frame; no really good way to fix that, other than by recording the<br>
&gt; &gt;&gt; real song length (or mean bitrate) somewhere else.<br>
&gt; &gt;<br>
&gt; &gt; I&#39;m sure there is a good way to fix that, just few players implement<br>
&gt; &gt; it. I&#39;m sure the length can be found in some header or tag or<br>
&gt; &gt; something. Foobar2k manages to show it correctly, so should others.<br>
&gt;<br>
&gt; Well, there is one way to fix it - read the entire MP3 file at once<br>
&gt; (since you only really care about the length of a file which you<br>
&gt; already have all of) and counting each frame, without looking at the<br>
&gt; bitrate. But for players which treat files and streams identically, I<br>
&gt; guess an iffy time display is quite a way down on the list of sins.<br>
&gt;<br>
&gt; Mind, there&#39;s no excuse whatsoever for my portable MP3 player getting<br>
&gt; it wrong. ;-)<br>
<br>
</div>If I chop up an MP3 or Ogg file, using mpgsplt or oggz-chop, the time is forever wrong on that file. It&#39;ll show the start time that it was in the ORIGINAL file, not in this new, shorter file, which should start from 00:00. And, alas, my Sanza Fuze loses control of its bladder when it sees a file starting at 49:32, for example, and refuses to play it.<br>


<font color="#888888"><br>
-ken</font></blockquote><div><br></div><div>Are we looking at a library (low-level) fault here? If so we should staple and bug a bug report.</div></div>