在网页中嵌入H.264视频的实时RTSP流 [英] Embedding a live RTSP stream of H.264 video in a webpage

查看:1143
本文介绍了在网页中嵌入H.264视频的实时RTSP流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台通过RTSP(rtsp://...)通过网络提供实时H.264视频的服务器,并且我一直在尝试寻找一种在其浏览器中向用户显示流的方法(位于至少Windows和OS X-Linux是奖励).我目前已经嵌入了VLC Player,并且可以在IE9和Mozilla Firefox 12.0中使用,但是如果用户最多只需要为他们的浏览器或类似的东西安装插件(而不是整个程序),那将是理想的选择.

I have a server providing live H.264 video over a network via RTSP (rtsp://...), and I've been trying to find a way to display the stream to users in their browser (on at least Windows and OS X - Linux is a bonus). I currently have VLC Player embedded and have it working in both IE9 and Mozilla Firefox 12.0, but it would be ideal if, at most, the user just has to install a plugin for their browser or something similar (as opposed to a whole program).

我可以使用开源解决方案,但不能使用任何GPL. Java applet或类似的东西都是有可能的.

I am able to use Open Source solutions, but I can't use anything GPL. A Java applet or anything similar is a possibility.

到目前为止考虑的似乎无效的解决方案:

  • HTML5视频标记:似乎不支持实时RTSP流
  • GStreamer(Java绑定)/OSSBuild GStreamer-WinBuilds v0.10.7 Beta 4 LGPL :带有RTSP源和WinBuild的插件似乎不可靠(我的流给出了与流SETUP请求有关的错误,而其他的没有)
  • JavaFX :似乎已在其最新版本中放弃了对实时RTSP流的支持
  • Xuggler :许可似乎带来了问题
  • JMF :较旧,没有明显的H.264支持
  • FMJ :似乎不支持实时RTSP流
  • HTML5 Video Tag: Doesn't seem to support live RTSP streams
  • GStreamer (Java Bindings) / OSSBuild GStreamer-WinBuilds v0.10.7 Beta 4 LGPL: Plugins seemed flaky with RTSP sources and the WinBuild (my stream gave errors related to a stream SETUP request, while others did not)
  • JavaFX: Seemed to have dropped support for live RTSP streams in its most recent release
  • Xuggler: Licensing seems to pose an issue
  • JMF: Old, no apparent H.264 support
  • FMJ: Doesn't seem to be any support for live RTSP streams

我应该重新评估这些可能性吗? 任何其他建议(例如在Flash或Silverlight中)都将不胜感激.

Should I reevaluate any of these possibilities? Any other suggestions (such as in Flash or Silverlight) would be greatly appreciated.

谢谢!

以HTML5获得解决方案真的很棒.

it would be really great to get a solution in HTML5.

推荐答案

实时流必须由浏览器而不是HTML5播放器支持.您可以在此处 http://www参阅文档. bitspace.in/2011/02/html5-live-streaming-media-server.html .而且rtsp也不能像HTML5播放> http://www.jquery4u.com/flowplayer/html5-video-rtsp-live-streams/#.T9hzRjkpK0x .如果可以对视频进行转码,则可以使用HTML5.作为参考,您可以从将rtsp视频流转换为http流中查看答案>或参阅wowza服务器提供的文档以转换流

Live streaming must be supported by browser, not the HTML5 player. You can refer the documentation here http://www.bitspace.in/2011/02/html5-live-streaming-media-server.html. Also rtsp cannot be played using HTML5 as in http://www.jquery4u.com/flowplayer/html5-video-rtsp-live-streams/#.T9hzRjkpK0x. If you can transcode the video then you might use HTML5. For reference you can check the answer from Convert rtsp video stream to http stream or refer the documentation from wowza server for converting stream http://www.wowza.com/forums/content.php?39-How-to-re-stream-video-from-an-IP-camera-%28RTSP-RTP-re-streaming. In general rtsp stream opens with external player if there is no player already embedded in your code but dont know how you can give the message to the user to install any plugin to play the stream and how far this will work across devices and cross-browser. Also there is no support for any of the flash player to handle rtsp stream except http and rtmp.

这篇关于在网页中嵌入H.264视频的实时RTSP流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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