Full page Terminal security video streaming media player EasyPlayer.js how to play H.265 encoded video in a web browser?

Currently security monitoring industry, almost all cameras support H264 coding, but there are already some cameras began to support the H265, H265 and supports the camera has been increasing. H265 compared to H264 has a lot of advantages, higher compression, network transmission bandwidth consumed a smaller, sharper H265 video at the same rate. H264 now can decode and play in a variety of web browsers, client, etc., but in the current H.265 encoding hardware decoding support the browser situation is not universal.

Over the years, the field of security network camera (IPC) of live video are dependent on the WEB browser plug-in, IE browser using ActiveX plug-in, Chrome and Firefox browsers use NPAPI plugin. The reason why the development of browser plug-in to receive streams, decode, play real-time video of the IPC, because the development is too slow early HTML, developers can only use a plug-in the case of pure web code can not be implemented to assist. Now Edge, Chrome, Safari, Firefox and other browsers no longer support NPAPI plug-ins, only IE browser still supports ActiveX plug-ins, resulting in IPC's web page can only play real-time video in IE browser kernel. So no plug-ins to achieve real-time playback IPC web of H264 / H265 video is very important.

Live security is the most popular form of information dissemination and social way, different from the recorded video on demand, which requires the player can obtain real-time and play the streaming video data. In order to achieve a live play, player kernel needs the help of some HTML5 technology.

Video Player architecture:

Player kernel module and rely primarily background art:

High number of pixels results in a more complex codec to minimize bandwidth requirements. Continuously connected PC or TV, the minimum smoothing 4K signal stream is 20Mbit / s, e.g. Netflix requires user's Internet connection to provide for at least a 25Mbit / s amount of bandwidth. 20 to 25Mbit / s bandwidth is a huge improvement on behalf of native, uncompressed 4K video requires will have a good performance on the bandwidth of 60Mbit / s of. For most industry applications, H265 is the answer to solve this problem.

为了解决IPC播放H265视频的难题,我们经历了不断的调整和测试,最终将H256视频兼容到EasyPlayer.JS的视频播放当中。

我们将摄像头、硬盘录像机或其他视频平台通过RTMP、RTSP等协议接入到自己的流媒体平台(以EasyDSS为例),当请求播放视频时设备端将视频数据以PS流的形式发送到EasyDSS,EasyDSS接收到PS流后Demux出视频数据,得到裸的H265以及音频数据。最终EasyDSS将H265和音频数据封装成多种互联网直播的通用流格式RTMP、HTTP-FLV、HLS、RTSP格式,分发给EasyPlayer.JS。这样就实现了EasyPlayer.JS的H265视频播放。

EasyPlayer.JS中H265视频播放效果

EasyPlayer.JS支持四分屏操作,可同时播放4路视频流,输出格式为FLV;同时也支持单路视频流大屏播放。EasyPlayer.js网页直播/点播播放器集 rtmp,hls,flv,websocket于一身,使用简单,功能强大,也为开发者提供二次集成的路径参考。不论是测试还是被集成,都能够很方便的为使用者提供服务。

更多关于EasyPlayer

EasyPlayer是一款流媒体播放器系列项目, 支持RTSP、RTMP、HTTP、HLS、UDP、RTP、File等多种流媒体协议播放、 支持本地文件播放,支持本地抓拍、本地录像、播放旋转、多屏播放、 倍数播放等多种功能特性,核心基于ffmpeg,稳定、高效、可靠、可控。 随着多年不断的发展和迭代,不断基于成功的实践经验,发展出包括有: EasyPlayer RTSP、EasyPlayer RTMP、EasyPlayerPro 和EasyPlayer.js 等播放器。目前支持Windows、 Android、iOS三个平台,EasyPlayer.js还支持Linux平台。

Guess you like

Origin www.cnblogs.com/TSINGSEE/p/12367327.html