Without further ado, NO figure NO BB (taking the HIkang CAMERA RTSP H.265 stream played by Danniu Live SDK as an example) :

The impetuous industry, many developers even RTSP, RTP details do not understand, according to the case of some ffMPEG interface, to achieve a simple version of the player, resulting in many developers to talk to us and even said that it is easy to achieve a RTSP playback, two or three weeks or a month can do your level, Generally we do not know whether or not, was asked a lot, and occasionally refuted a sentence: we are still in place for a year you may not be able to catch up.

Danniu Live SDK believes that a good RTSP player needs to have the following functions:

1. Low latency: Most RTSP playback is for live scenes, so if the delay is too large, such as in the surveillance industry, the thief is gone, the client sees the image, or someone has rung the doorbell for a few seconds, the owner sees the image, seriously affect the experience, so, low latency is a very important indicator to measure a good RTSP player. At present, the RTSP playback delay of Daniu live SDK is controlled in several hundred milliseconds and VLC in a few seconds.

2. Audio and video synchronization or jump: In order to pursue low latency experience, some developers even do not do audio and video synchronization, and directly play audio video, resulting in a/ V synchronization, and time stamp jumping. Is it really friendly to deal with it?

3. Support multi-instance: A good player needs to support playing multi-channel audio and video data at the same time, such as 4-8-9-16-32 window;

4. Support buffer time Settings: In some scenarios with network jitter, the player needs to support accurate buffer time Settings;

5. Playing and recording of H.265: In addition to H.264, it is also necessary to support H.265. Currently, there are more and more RTSP H.265 cameras on the market, and RTSP players supporting H.265 are imminent.

6. TCP/UDP mode switching: considering that many servers only support TCP or UDP mode, a good RTSP player needs to support TCP/UDP mode switching automatically;

7. Mute support: For example, multi-window RTSP stream, if every audio is played out, the experience is very bad, so real-time mute function is very necessary;

8. Video View rotation: many cameras due to installation restrictions, resulting in image inversion, so a good RTSP player should support such as real-time video view rotation (0° 90° 180° 270°), horizontal reversal, vertical reversal;

9. Support audio/video data output after decoding: Danniu Live SDK has contacted many developers, hoping to obtain YUV or RGB data for face matching algorithm analysis while playing, so audio/video callback is optional;

10. Snapshot: it is necessary to capture interesting or important pictures in real time.

11. Network jitter handling (such as network disconnection and reconnection) : basic functions, no further description;

12. Cross-platform: a good player, cross-platform (Windows/Android/iOS) is necessary, at least for the future expansion consideration, the development of this aspect, the current DANIu live SDK RTSP player, perfectly support the above platforms;

13. Long-term stability: when it comes to stability, many developers are not impressed. In fact, stability is the most basic premise for a good product, which cannot be ignored.