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?