Re: Determining the length (in an audio sense) of an MP3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



this would be hard if you are working with VBR mp3 files, in which case you 
have to scan the whole file, or you may scan the first few frames to get a 
reasonable estimation.
For CBR mp3 files, I think Warren's reply is correct.

"Paul Reinheimer" <preinheimer@xxxxxxxxx> wrote in message 
news:6ec19ec70410071603214f31d9@xxxxxxxxxxxxxxxxx
> Hi,
>
> I am trying to determine the length (in terms of seconds) of an MP3
> file. I have seen the ID3 pear project, but I didn't see anything
> there to tell me how long the song was. There is a fileinfo pecl
> project, but it doesn't mention MP3s and I couldn't find any good
> documentation for it (looking at the pecl site).
>
> Does anyone know of an decent way to determine the length of a song?
> What about other formats (oog, wav, etc?).
>
>
> thanks
> paul 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux