scooter41 Posted April 14, 2008 Share Posted April 14, 2008 Hi there, I often use LAME on our server to dynamically encode MP3's to a lower quality bitrate for web preview files. Is it possible to do this with WAV files too? I currently use the following command: $encode_cmd = "/usr/bin/lame -b 96 $newfile $preview"; $output = exec($encode_cmd . ' 2>&1', $output, $return); which is producing a file of correct size, but doesnt play in any audio player so I guess something is wrong. Many thanks for any help in advance! Quote Link to comment https://forums.phpfreaks.com/topic/101062-encode-wav-files-with-lame/ Share on other sites More sharing options...
zq29 Posted April 14, 2008 Share Posted April 14, 2008 Contrary to it's name, LAME is just an MP3 encoder. Are you asking about encoding WAV to MP3, or WAV to WAV? WAV to MP3 should be fine. Quote Link to comment https://forums.phpfreaks.com/topic/101062-encode-wav-files-with-lame/#findComment-516825 Share on other sites More sharing options...
scooter41 Posted April 14, 2008 Author Share Posted April 14, 2008 yes converting wav to mp3, so the large wav files can also have a small preview 96kb mp3 file for preview on the web Quote Link to comment https://forums.phpfreaks.com/topic/101062-encode-wav-files-with-lame/#findComment-517047 Share on other sites More sharing options...
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.