How to record audio or video in a browser and store it in servers database?
===


I need to record audio from user and store it in local server's database..
plz suggest any method.

I had tried to record audio wit this code but in vain...

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

Plz Help...