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?
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.