We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpIntegration › wav format conversions
Page Index Toggle Pages: 1
wav format conversions (Read 784 times)
wav format conversions
Apr 1st, 2006, 10:52pm
 
Hi. I need to convert wave samples from 8khz 16 bit mono to 44.1 khz 16 bit mono. Is there any server side software or library I can use to convert the formats either realtime. or at the time of upload to a server? Something similar to http://ffmpeg-php.sourceforge.net/ but with conversion functionality would be ideal. Thanks.
Re: wav format conversions
Reply #1 - Apr 1st, 2006, 11:59pm
 
I think that ffmpeg-php will do what you need. It's just a frontend for ffmpeg, which looks like it can do conversion of one format WAV, to another format WAV.

The ffmpeg options you'd need would be
Code:
ffmpeg -i original.wav -ar 44100 -ab 16 -ac 1 converted.wav 



No idea how that translates to ffmpeg-php code however.

EDIT: Having now looked at the ffmpeg-php docs, looks liek it onyl supports a very limited set fo the ffmpeg commands. However, if you have ffmpeg instealled, you can always use a PHP script to call the ffmpeg binary to do the conversion.
Page Index Toggle Pages: 1