[英]How can I show MJPEG, H264 Live Stream, and playback video in Chrome, Firefox and IE?
Problem 问题
I have multiple IP cameras from multiple manufactures. 我有来自多个制造商的多个IP摄像机。 The cameras provide the following live feeds:
摄像机提供以下实时供稿:
What Works 什么有效
For Chrome and Firefox MJPEG: 对于Chrome和Firefox MJPEG:
What I need 我需要的
Play live feeds of H264 on all three browsers. 在所有三个浏览器上播放H264的实时供稿。 Play MJPEG feeds on IE.
在IE上播放MJPEG提要。
What I'm trying to avoid 我想避免的是
Using FFMPEG or VLC to transcode and stream H264 to MJPEG, which would still only work for Chrome and Firefox. 使用FFMPEG或VLC将H264转码并将其流传输到MJPEG,这仍然仅适用于Chrome和Firefox。
Notes 笔记
Chrome does not accept plugins. Chrome不接受插件。 Meaning Flash or other plugin based solutions will not work.
意味着Flash或其他基于插件的解决方案将无法使用。
ActiveX video controls on IE are rarely stable. IE上的ActiveX视频控件很少稳定。 Manufacturer specific controls are sub-par at best.
制造商特定的控件充其量是低于标准的。
I know that the HTML5 video tag is implemented independently by the browsers and each browser decides what video formats to support. 我知道HTML5视频标签是由浏览器独立实现的,每个浏览器都决定要支持的视频格式。
This link is a quick overview of the severe browser video limitations and the burden that falls on all of us as developers who are cough in the middle of this modern browser war. 该链接快速概述了浏览器视频的严重限制以及在现代浏览器大战中咳嗽的开发人员所承受的负担。
Chrome and Firefox both accept live video streams in the fragmented MP4 and WebM (which is irrelevant in this case) video containers. Chrome和Firefox都接受碎片化的MP4和WebM(在这种情况下无关紧要)视频容器中的实时视频流。 So you will have to do remuxing (which is still much faster than transcoding).
因此,您将必须进行重新混合(仍然比转码要快得多)。 I am also working with IP cameras and so far I haven't seen any that are capable of outputting the formats supported by the browser.
我也在使用IP摄像机,到目前为止,我还没有看到能够输出浏览器支持的格式的任何摄像机。 So the free option is to setup FFmpeg to transcode rtsp to fragmented MP4 or if you are looking for a commercial product our company has just released an video surveillance product that can offer HTML5 compatible live streaming from RTSP cameras.
因此,免费的选项是设置FFmpeg以将rtsp转换为分段的MP4,或者如果您正在寻找商用产品,我们公司刚刚发布了一种视频监控产品,该产品可以从RTSP摄像机提供与HTML5兼容的实时流。 If you have any interest in the commercial product leave a comment.
如果您对商用产品感兴趣,请发表评论。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.