dqm4977 2012-07-20 05:04
浏览 132

如何在浏览器中录制音频或视频并将其存储在我的服务器数据库中?

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?

  • 写回答

1条回答 默认 最新

  • douxiajiao8445 2012-07-20 05:11
    关注

    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.

    评论

报告相同问题?

悬赏问题

  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来
  • ¥15 求帮我调试一下freefem代码
  • ¥15 matlab代码解决,怎么运行
  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法