rejoice Posted November 24, 2006 Share Posted November 24, 2006 Hi all, I need to get the length of mp3 song alike length of video file.Is it possible to get the length of a mp3 song? Please assist me regarding this. Thanks in advance. Link to comment Share on other sites More sharing options...
jesh Posted November 27, 2006 Share Posted November 27, 2006 This link might get you started:http://www.php.net/manual/en/ref.id3.php Link to comment Share on other sites More sharing options...
justsomeguy Posted November 27, 2006 Share Posted November 27, 2006 I'm not sure how to figure out the bit rate of an MP3, maybe it's encoded in the first few bytes of the file, but if you can figure out the bit rate then you can calculate the length based on the file size (I think, sounds reasonable). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now