rejoice 0 Posted November 24, 2006 Report 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. Quote Link to post Share on other sites
jesh 0 Posted November 27, 2006 Report Share Posted November 27, 2006 This link might get you started:http://www.php.net/manual/en/ref.id3.php Quote Link to post Share on other sites
justsomeguy 1,135 Posted November 27, 2006 Report 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). Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.