简体   繁体   English

如何代理来自AXIS网络摄像机的视频流?

[英]How can I proxy a video stream from an AXIS web camera?

I'm developing a web system that (among other things) will be streaming video content to a limited number of users. 我正在开发一个Web系统,该系统(除其他外)将向有限数量的用户流式传输视频内容。 There won't be more than 20 users at any one time, and they may be viewing videos from up to three cameras. 一次最多不会有20位用户,并且他们可能正在观看多达三台摄像机的视频。 However there are some restrictions on the setup of the network the clients have which are making this an absolute pain, and I'm stuck on ideas. 但是,对客户端网络的设置存在一些限制,这使这绝对是一件痛苦的事,我对此深信不疑。

The cameras will be directly accessible from the web server running the software. 可以从运行该软件的Web服务器直接访问这些摄像机。 The software server will be directly accessible to web users. Web用户将可以直接访问该软件服务器。 However the cameras will not be able to be accessed by web users at all. 但是,网络用户根本无法访问这些摄像机。 So simply throwing up a flash player pointing to the url of the camera feeds isn't going to work. 因此,简单地抛出一个指向摄像机供稿网址的Flash Player是行不通的。 I need to present the video stream through the website in a cross-browser compatible manner, probably through a flash player like flowplayer, but flash is by no means a necessity. 我需要以跨浏览器兼容的方式通过网站展示视频流,可能是通过像流播放器之类的Flash播放器来呈现,但是Flash绝不是必需的。

So what are my options here? 那么我在这里有什么选择呢? Any help would be greatly appreciated. 任何帮助将不胜感激。

The web software is an ASP.NET/C# website running on a Windows server. 该网络软件是在Windows服务器上运行的ASP.NET/C#网站。 I'd prefer not to run another program on the server, but in the (likely) case that I do, the software needs to be able to run as a service so that it can run after a server restart with no user interaction. 我不希望在服务器上运行其他程序,但是在(可能的)情况下,该软件必须能够作为服务运行,以便它可以在服务器重新启动后在无用户交互的情况下运行。 Also, free and/or cheap options would be prefreable. 同样,免费和/或廉价的选择将是可取的。
The cameras are along the line of the AXIS 214 (there are others but they're similar AXIS cameras) and outputs MJPEG and MPEG4 streams at 640x480. 摄像机沿AXIS 214(虽然还有其他,但它们与AXIS摄像机类似)沿线,并以640x480的分辨率输出MJPEG和MPEG4流。

So I found a cheap windows application called WebcamXP: http://www.webcamxp.com/home.aspx 因此,我找到了一个便宜的Windows应用程序,名为WebcamXP: http : //www.webcamxp.com/home.aspx
It suits my purposes almost perfectly. 它几乎完全适合我的目的。 It captures the AXIS camera's stream with no problem, and re-streams it (in MJPEG from what I can tell). 它可以毫无问题地捕获AXIS摄像机的流,然后重新流化(据我所知,为MJPEG)。 It also includes a small flash front-end with no controls, which may be a drawback for some, but perfect for my needs. 它还包括一个没有控件的小型Flash前端,这对于某些人来说可能是一个缺点,但对于我的需求而言却是完美的。 You can just grab the embed code from WebcamXP and drop it into the website. 您只需从WebcamXP中获取嵌入代码,然后将其放入网站即可。 Nice and simple. 漂亮又简单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM