在浏览器上录制视频并上传到LAMP服务器

在浏览器上录制视频并上传到LAMP服务器

本文介绍了在浏览器上录制视频并上传到LAMP服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经尝试了很多东西:red5,jquery webcam,html5 ...但这些解决方案都没有记录视频,并准备好上传到服务器。



无论如何(HTML5,闪光,任何...更好的交叉解决方案,最好)上传视频(+音频!),并上传结果到服务器(我猜通过AJAX)? / b>

总结:


  • jQueryWebcam():它有Flash视频,上传到服务器映像,而不是视频

  • Eric Bidelman的解决方案(在html5视频,并允许您下载(所以你可以上传
    到一个服务器),但没有音频!

  • Red5():付费服务,而不是
    免费版上传:($ / b>
  • DMV():它只是捕捉照片...除了不跨浏览器


解决方案

在过去的5年里,我开发了视频录制解决方案, 。
$ b 目前有两种在线录制音频和视频的技术解决方案,一种适用于台式机,另一种适用于手机。

在桌面上,您需要一个嵌入网页的Flash应用程序,捕获访问者网络摄像头和麦克风,编码原始视频和音频数据,它通过rtmp记录到媒体服务器。



您至少有3个媒体服务器选项:


  1. 是免费的,开源(btw。在Red5中开箱即可使用)

  2. ($ 65 / month)

  3. ($ 4500)


  4. 媒体服务器(通过流/ rtmp不通过http)接收数据,在客户端使用的编解码器上,将其保存到mp4,flv或f4v文件。

    这个Flash客户端+媒体服务器记录过程 - 从Flash Player 6在2002年 - 很可能会被替换为名为的HTML5替代品(尚未实施完全由任何浏览器)。



    在手机上,您可以使用HTML媒体捕捉(。


    I have tried a lot of things out there: red5, jquery webcam, html5 ... but none of these solution record a video and leave it ready to upload to a server.

    Is there anyway (html5, flash, whatever ... the better cross-broswer solution, the best) to upload video (+ audio!) and upload the result to a server (I guess through AJAX) ?

    Summarize:

    解决方案

    I have developed video recording solutions for the better part of the last 5 years and contributed a lot to fixing video recording bugs in Red5.

    There are currently 2 production ready technical solutions for recording audio and video on the web. One for desktop and one for mobile.

    On desktop you will need a Flash application that sits embedded in a web page, captures the visitors webcam and mic, encodes the raw video and audio data and streams it as it is recorded (through rtmp) to a media server.

    You have at least 3 options for the media server:

    1. Red5 is free and open source (btw. recording works out of the box in Red5)
    2. Wowza ($65/month)
    3. Adobe Media Server Pro ($4500)

    The media server receives (again through streaming/rtmp not through http) the data and, depending on the codec used on the client, saves it to mp4, flv or f4v files.

    This Flash client + media server recording process - which has worked pretty well since Flash Player 6 in 2002 - will most likely replaced by the HTML5 alternative named MediaStream Recorder (not yet implemented fully by any browser).

    On mobile you can use HTML Media Capture (explained here with screenshots) to record video using the device's native video recording app and codecs. HTML Media Capture records locally (on the device) and then you upload (normal HTTP upload process) the file to the web server.

    A commercial solution that implements both (Flash client + media server on desktop and HTML Media Capture on mobile) is HDFVR.

    这篇关于在浏览器上录制视频并上传到LAMP服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 21:14