 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ken Revak Guest
|
Posted: Tue May 24, 2005 6:10 pm Post subject: MP3 file length |
|
|
I have several mp3 coded files that report an incorrect length.
One of them reports 5:30 when opened using DsMixer or TMediaPlayer,
right click properties reports 4:30 but when it is loaded into iTunes or
my program (using DSMixer) plays for 3:38. What would be causing this
problem and how do I correct it?
Ken Revak
|
|
| Back to top |
|
 |
Mike Warren Guest
|
Posted: Tue May 24, 2005 10:08 pm Post subject: Re: MP3 file length |
|
|
Hi Ken,
| Quote: | I have several mp3 coded files that report an incorrect length.
One of them reports 5:30 when opened using DsMixer or TMediaPlayer,
right click properties reports 4:30 but when it is loaded into iTunes
or my program (using DSMixer) plays for 3:38. What would be causing
this problem and how do I correct it?
|
I have seen this with MP3 files produced by Cool Edit 96.
-Mike
|
|
| Back to top |
|
 |
Uncle Potato Guest
|
Posted: Wed May 25, 2005 10:18 am Post subject: Re: MP3 file length |
|
|
Is your file encoded in VBR?
On Tue, 24 May 2005 12:10:23 -0600, Ken Revak
<ken.revak (AT) telusplanet (DOT) net> wrote:
| Quote: | I have several mp3 coded files that report an incorrect length.
One of them reports 5:30 when opened using DsMixer or TMediaPlayer,
right click properties reports 4:30 but when it is loaded into iTunes or
my program (using DSMixer) plays for 3:38. What would be causing this
problem and how do I correct it?
Ken Revak
|
|
|
| Back to top |
|
 |
Ken Revak Guest
|
Posted: Wed May 25, 2005 2:54 pm Post subject: Re: MP3 file length |
|
|
A customer supplied it and I think it was done with Cool Edit and I
don't see anything about variable bit rate. How do I check that?
Ken Revak
Uncle Potato wrote:
| Quote: | Is your file encoded in VBR?
On Tue, 24 May 2005 12:10:23 -0600, Ken Revak
[email]ken.revak (AT) telusplanet (DOT) net[/email]> wrote:
I have several mp3 coded files that report an incorrect length.
One of them reports 5:30 when opened using DsMixer or TMediaPlayer,
right click properties reports 4:30 but when it is loaded into iTunes or
my program (using DSMixer) plays for 3:38. What would be causing this
problem and how do I correct it?
Ken Revak
|
|
|
| Back to top |
|
 |
Jens Gruschel Guest
|
Posted: Thu May 26, 2005 9:44 am Post subject: Re: MP3 file length |
|
|
| Quote: | A customer supplied it and I think it was done with Cool Edit and I
don't see anything about variable bit rate. How do I check that?
|
Open the file with a hex editor and search for 'XING', which tells you
there is a xing header present, which also includes the length. Every
MP3 file with VBR should have a xing header, but if it hasn't (is
corrupt or was encoded with a bad encoder), it still can be played, but
you cannot get the length easily any more (and cannot jump forward or
backward easiliy any more). The only way to get the exact length in this
case is iterating over all frames, getting the length of each frame.
http://www.wotsit.org might help.
Jens
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|