Jump to content

Encode WAV files with LAME?


scooter41

Recommended Posts

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!

 

 

Link to comment
https://forums.phpfreaks.com/topic/101062-encode-wav-files-with-lame/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.