Re: [MP3 ENCODER] Nr. Frames in mp3 file

2000-08-22 Thread Steve Lhomme

I think the only way is to find every frame, and analyse the header. It will give you 
the frame length with the formula mentionned earlier 
(sample_per_frame/sampling_frequency).
Otherwise, you'll be missing the VBR aspect of files (unless you can get the 'real' 
bit rate).

- Original Message - 
From: "Patrick Ndjiki-Nya" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 22, 2000 8:27 AM
Subject: [MP3 ENCODER] Nr. Frames in mp3 file


> 
> Hello,
> 
> I'd like to determine the number of frames included in an mp3 file
> given its size. Using the formula
> File_Size/(1152*Bitrate/Sampling_Rate) always leads to a number of
> frames that's smaller than the one indicated by an MP3 decoder
> (eg. WinAmp) for the same file. Could someone help me out ?


--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )



[MP3 ENCODER] Nr. Frames in mp3 file

2000-08-21 Thread Patrick Ndjiki-Nya


Hello,

I'd like to determine the number of frames included in an mp3 file
given its size. Using the formula
File_Size/(1152*Bitrate/Sampling_Rate) always leads to a number of
frames that's smaller than the one indicated by an MP3 decoder
(eg. WinAmp) for the same file. Could someone help me out ?

Regards,
Patrick Ndjiki-Nya
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )