3

I need to record audio from a user and store it in my local server's database. I tried this, but it didn't work.

<html>
<head></head> 
<body>
<?php
if(isset($_POST[submit1]))
{
echo exec("ffmpeg -f alsa -ac 2 -i pulse  -acodec pcm_s16le -vcodec libx264 -vpre      lossless_ultrafast -threads 0  -y  ./Desktop/myVOICE1.wav");
}
?>
<form name="form1" method="POST" action="sample.php">

<input type="Text"  name="username">
<input type="submit" name="submit1" value="go">
</form>

</body>
</html>

May i know wats wrong wit my code and why doesnt it work?

What should I do?

nbbk
  • 1,102
  • 2
  • 14
  • 32
  • 1
    this might be helpful for you: http://stackoverflow.com/questions/4227313/audio-capturing-with-html5 – Sal Jul 20 '12 at 05:10

1 Answers1

1

You can try the open source (Red 5 ) it uses server side software to capture and distribute.

We tried this, installing it was very frustrated task so I just used Flash Media Server http://www.adobe.com/products/flashmediaserver/ hosted by another company.

JSJ
  • 5,653
  • 3
  • 25
  • 32