简体   繁体   English

如何在Chrome,Firefox和IE中显示MJPEG,H264 Live Stream和播放视频?

[英]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: 摄像机提供以下实时供稿:

  • Manufacturer_1 Feed_1: MJPEG via http 制造商_1 Feed_1:通过http的MJPEG
  • Manufacturer_1 Feed_2: h264 via rtsp 制造商_1 Feed_2:通过rtsp的h264
  • Manufacturer_2 Feed_1: h264 via http Manufacturer_2 Feed_1:通过http的h264

What Works 什么有效

For Chrome and Firefox MJPEG: 对于Chrome和Firefox MJPEG:

  • http live feeds work like a charm using the img tag and setting the source to the live feed URL. 使用img标签并将源设置为实时Feed URL时,http实时Feed就像超级按钮一样工作。
  • Playback of recorded MJPEG video or H264 works on all three browsers using VideoJS 使用VideoJS在所有三种浏览器上均可播放录制的MJPEG视频或H264

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.

相关问题 如何将Firefox连接到Chrome以通过WebRTC传输h264? - How to connect Firefox to Chrome to transfer h264 via WebRTC? webrtc h264视频铬色 - webrtc h264 video garbled chrome HTML5视频播放器无法在Chrome中播放mp4 h264视频 - HTML5 video player does not play mp4 h264 video in Chrome 支持 Android 版 Chrome 中的 sw/hw h264 解码器 - Support sw/hw h264 decoder in Chrome for Android 既然不再支持 VLC 插件,如何在 Firefox 和 Chrome 中流式传输 RTSP 实时视频? - How to stream RTSP live video in Firefox and Chrome now that the VLC plugin is not supported anymore? 在 Chrome 中播放 MP4 H.264 — 音频听起来很奇怪 - MP4 H.264 Playback in Chrome — Audio sounds strange Chrome,Firefox无法播放视频,但IE可以 - Chrome, Firefox can't play video but IE can 来自wmv的h264剪辑在iPad上的HTML5视频中不起作用(黑屏) - h264 clips from wmv's not working in HTML5 video on iPad (black screen) 如何在Firefox或IE / Edge中以Chrome和.jpg显示.webp? - How to show .webp in Chrome and .jpg in Firefox or IE/Edge? 如何在所有浏览器(IE,Chrome和Firefox)中获得相同的innertext ptoperty值 - How can I get same innertext ptoperty value in all browsers (IE, Chrome and Firefox)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM