RTSP, GB28181 video cloud service H5 no plug-in live broadcast on-demand solution

Management of live video on demand through the browser WEB has the advantages of simple layout, convenient client integration, convenient access, and no need to install client software, but there are also the following two problems:

When playing H5 webpages, video frames sent by camera devices (such as Dahua) have uneven time stamps, which may lead to playback freezes. In this case, there are freezes in both public and local area networks.
The efficiency of video decoding by H5 through the JavaScript engine is relatively low. Therefore, in the H264 encoding format, we can use H5 to call the hardware graphics card for decoding acceleration; for the H265 encoding format, we can only use the wasm web page provided by the liveweb player Compilation for soft decoding is relatively inefficient. Therefore, if the web page H5 is played without a plug-in, it will face the problem that the decoding is too late to cause freezes.
Stuck solution
For the two problems described above, the liveweb H5 player integrated in the liveweb streaming media system uses two different algorithm mechanisms to solve:

For the first question, the liveweb player adopts an advanced decoding and rendering queue mechanism, and adopts a strict frame rate of 25FPS for queue rendering, so as to achieve the effect of not relying on decoding and still playing smoothly with playback timestamps;

For the second problem, the liveweb player adopts an advanced cache frame loss and frame grouping algorithm strategy. In the future, the P frame in the H265 GOP that cannot be rendered will be lost, and the cache will be cleaned regularly to prevent the browser from stacking frames and causing a large amount of memory cache data to cause the browser to Crash, and then combine with the first decoding smoothing algorithm to achieve the playback effect of dropping frames without freezing.
 

Guess you like

Origin blog.csdn.net/xiehuanbin/article/details/132494905