noexcal Posted February 24, 2008 Share Posted February 24, 2008 Alright here is the deal. When a user uploads an mp3, I need php to check the bitrate. If the bitrate is bigger than 128kbps I need to reduce it to 128. Is this possible? well.. I know it is because other sites do it, But is it with php or something else. Link to comment https://forums.phpfreaks.com/topic/92688-re-encode-mp3-files-on-upload/ Share on other sites More sharing options...
tibiz Posted February 24, 2008 Share Posted February 24, 2008 maybe, you will need to learn the mp3 file format, and write an encoder / decoder in php Link to comment https://forums.phpfreaks.com/topic/92688-re-encode-mp3-files-on-upload/#findComment-475036 Share on other sites More sharing options...
dave420 Posted February 25, 2008 Share Posted February 25, 2008 It's very easy to do this. You can use the open-source LAME utility to check the MP3 and to re-encode it if needed. It's pretty quick, too, and offers great results. Download it here: http://lame.sourceforge.net/download.php. If you're using Windows, get the binaries here: http://lame.bakerweb.biz/ Link to comment https://forums.phpfreaks.com/topic/92688-re-encode-mp3-files-on-upload/#findComment-475679 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.