BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MP3 file length

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia
View previous topic :: View next topic  
Author Message
Ken Revak
Guest





PostPosted: Tue May 24, 2005 6:10 pm    Post subject: MP3 file length Reply with 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
Mike Warren
Guest





PostPosted: Tue May 24, 2005 10:08 pm    Post subject: Re: MP3 file length Reply with quote



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





PostPosted: Wed May 25, 2005 10:18 am    Post subject: Re: MP3 file length Reply with quote



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





PostPosted: Wed May 25, 2005 2:54 pm    Post subject: Re: MP3 file length Reply with 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?

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





PostPosted: Thu May 26, 2005 9:44 am    Post subject: Re: MP3 file length Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.