将实时IP摄像机提要嵌入到网页中 [英] embedding live ip camera feed into webpage

查看:130
本文介绍了将实时IP摄像机提要嵌入到网页中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为客户端设置一些IP摄像机。



但是我在将流从摄像机流传输到网页时遇到了麻烦通过玩家玩。我尝试过不同的播放器,例如WMP,VLC(无法正常工作)。我现在正在尝试使用jplayer,如果我能像在手机上工作的那样让它在此上运行,它会很棒。



我这样做了远就是进入我的路由器(汤姆森TG585 v8)并设置端口转发。



我已经在TCP / UDP上设置了端口554,在摄像机设置中是RTSP端口。



我已将摄像机设置为静态ip,并为ddns使用了无IP。



rtsp://thepolishedknob.servebeer.com/h264/1/media.amp



这是我尝试使用的网址,但我无法获取该流对于播放器,我知道该流在昨晚通过VLC连接到我的LAN之外时可以正常工作。



因此,如果您注意到我错过了任何东西或做错了什么,请告诉我。

解决方案

没有通用的嵌入方法。通常,解决方案是以下之一:




  • 由于IP摄像机带有Web界面,它们已经提供了一些显示视频的方法网页。通常,这是基于ActiveX控件的解决方案,具有各自的浏览器限制。您可以检查HTML并复制代码,也可以在供应商的文档中提到它。


  • 发现流是 RTSP ,并且希望在没有技巧的情况下有效的 RTSP ,可能会有第三方解决方案播放器将流显示在网页之外。


  • 您可能想将流重新编码为另一种格式(VLC或另一种应用),例如对浏览器更友好的M-JPEG。您会发现很多关于此的讨论,例如 http://forum.videolan.org/viewtopic.php?f=16& ; t = 57715



i am trying to set up a few ip cameras for a client.

yet i am having trouble getting the stream from the camera to the webpage then for it to play through a player. i have tried different players such as WMP, VLC(cant get it to work). i am now trying to use jplayer which would be great if i could get it to work on this one as works for phones or so it says.

what i have done so far is to go into my router(thomson TG585 v8) and set up port forwarding.

i have set up port 554 on TCP/UDP which in the camera settings is the RTSP port.

i have set my camera to a static ip and am using no-ip for the ddns.

rtsp://thepolishedknob.servebeer.com/h264/1/media.amp

this is the url i am trying to use but i cannot get the stream on to the player i know the stream works outside my LAN as connected to it through VLC last night.

if anyone can help me it would be greatly appreciated as been working on this for over a week and been going nowhere.

so if you have noticed i have missed anything out or done something wrong please let me know.

解决方案

There is no universal way to do the embedding. Typically solution is one of the following:

  • As IP cameras comes with web interface, they already provide some way to present video off the web page. Often, this is an ActiveX control based solution with respective browser limitations. You can check HTML and duplicate the code, and it can also be mentioned in the vendor's documentation.

  • As you discovered the stream is RTSP, and hopefully valid RTSP without tricks, there might be a third party solution "player" to present the stream off the webpage.

  • You might want to re-encode the stream into another format (VLC or another aplication), such as M-JPEG which is more browser friendly. You'll find a lot of discussions for this, e.g. http://forum.videolan.org/viewtopic.php?f=16&t=57715

这篇关于将实时IP摄像机提要嵌入到网页中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆