Achieve RTSP Camera DVR NVR web site micro letter EasyNVR deployment of H5 live program: ERR_CONTENT_LENGTH_MISMATCH

Disclaimer: This article is EasyNVR technical team of the original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/EasyNVR/article/details/90055067

background analysis

EasyNVR access to product developers know, EasyNVR is a full set of functional, simple-to-use streaming solutions, as have the ability to access the front camera, access back-end business systems, can also be used as the application layer, directly amended as part of a business user's own video management platform, its main technical characteristics are as follows:

  • Compatibility : the traditional access network cameras, the NVR, the encoder through the RTSP protocol, using the RTSP protocol compatible access network cameras on the market majority source devices, hardware devices are compatible to the maximum extent to improve the overall program, the effective the individual hardware manufacturers to avoid the use of cumbersome and not customized SDK common problem;
  • Richness : Storage offers traditional local hard disk storage, and support for extended memory. Such as support disk array access, iSCSI devices (IPSAN), Ali cloud storage, selection of storage solution;
  • Flexibility : Storage also support continuous recording server's local disk, and can be timed recording, alarm recording, etc. through their own scenarios, and can develop a series of video strategy, retrieval and playback of video playback, and supports not only traditional playback control, and added to the timeline precise control of playback control, such that the playback process more simple, flexible, accurate;
  • Scalability : For playing Hikvision, Dahua DVR NVR own video files (also known as hardware video), only the corresponding hardware configuration parameter information EasyNVR VCR, you can complete the retrieval of network DVR and video files demand playback, it is important that eliminates the need for plug-in installed, the browser and other limited rules, on the basis of watching the video recorder has a function on is to achieve a free plug-in, multi-platform free to watch playback, the video viewing more simplified, more user-friendly;
  • Pioneering : CDN support plug-flow, according to the specific needs of the site, to push real-time streaming CDN streaming media server or carried forward.

problem found:

EasyNVR Internet broadcast system has been advancing with the times, constantly improve, feature-rich, system internal testing team recently deployed a EasyNVR in linux systems, when deployed, run up and found the following problems: configuration pages of data EasyNVR get out

EasyNVR

analyse problem:

Based on a web page that appears problem, the developer must first reaction is "F12" look interface requests circumstances, if there is data to return ... ... people feel very surprised that the "headers" state everything is normal, but we the "response" data does not show the data. This shows that our interface requests no problem, the problem may arise in other areas.

EasyNVR

EasyNVR

In the case of the interface to return after the investigation finished, we take a look at the console will not come up with anything. Very friendly console throws problem * ERR_CONTENT_LENGTH_MISMATCH *

Because not encountered similar problems, we started looking for the god of support on the network.

Finally we found: the original is nginx worker processes for large files do caching, the cache at% nginx% / proxy_temp directory, the main process due to the rights issue can not be accessed in read cache time. EasyNVR really use nginx as the direction of the agent. The problem, in my understanding it seems, is the problem of file permissions under linux.

problem solved

  • linux pay more attention to file permissions, so we have to "/ proxy_temp directory" given the appropriate permissions, the permissions will be modified to correspond to the cache directory permissions.
    linuxEasyNVR

  • After editing the appropriate permissions to find an effective solution to the problem it! ! ! !

EasyNVR

ps: new to linux system, reflect on this post through the issue and found that a paradigm shift is very important! ! Go! Go! Go!

EasyNVR solution architecture

EasyNVR a program

Option One

  • Server locally, and IPCamera / NVR / encoder with a local area network with a network IP address and have access to the external network address
  • A plurality IPCamera / NVR / encoder only the IP address (not the external network IP), EasyNVR pull IPCamera / NVR / encoder streaming data through the network

EasyNVR Option II

Option II
  • Server in the public network (such as cloud host, the public web server), a device not on the same LAN in
  • IPCamera / NVR / encoder alone or shared fixed public IP address, EasyNVR server can directly access to the device

EasyNVR Option III

third solution
  • EasyNVS servers deployed in the public network (such as cloud hosting, public network server)
  • There are multiple devices within the network live broadcast of the need for public broadcast
  • EasyNVR docking EasyNVS can take advantage of on-demand broadcast networks, while shielding a variety of network environment for wired, WIFI, 4G, private network
  • Support cloud operation and maintenance, operation and maintenance of the public network specific to each field device EasyNVR
  • EasyNVS management platform to be able to get all the capabilities of EasyNVR, and Internet-based output, at the same time unified management and interface output.

EasyNVR scenarios

EasyNVR can be said to have become the vanguard of the domestic Internet video infrastructure, livelihood of the people in almost every industry have already had the ability to output video EasyNVR figure, EasyNVR years of service in all walks of life video infrastructure, EasyNVR reliability, integrity, stability It has been widely recognized in the industry!
EasyNVR stable and reliable
EasyNVR a scene

Discerning engineering

EasyNVR Scene II

Water monitoring

Scene Three EasyNVR

live streaming

EasyNVR Scene Four

Wisdom agriculture

EasyNVR security cameras web streaming service

EasyNVR have is a full, independent, controllable intellectual property rights, but also can have the function of security software and hardware integration of Internet streaming media server, network camera through a simple channel configuration, monitoring industry inside traditional high-definition network camera IP Camera , etc. with the NVR RTSP, Onvif protocol output device access to EasyNVR, EasyNVR these audio and video data can be video sources is a pull, is converted to RTMP / HLS, full internet terminal H5 live (Web, Android, iOS), and EasyNVR able to broadcast live video source of data to a third party CDN network, Internet-scale distributed. EasyNVR details you may visit the official website: http://www.easynvr.com
EasyNVR intellectual property rights

Guess you like

Origin blog.csdn.net/EasyNVR/article/details/90055067