1. problem phenomenon:
When the 1078 equipment is docked, the video screen and picture are not continuous, and there is a phenomenon of sticking. Caton discontinuity is mainly due to timestamp, and the screen is a problem with video data.
2. Solution
2.1 Caton
- Catondo is caused by discontinuous timestamps or incorrect timestamps. You can capture GPSMediaSvr - - - - libmdvrnet logs for analysis. For specific log capture methods, please refer to the device communication log recording function.
https://help.cmsv8.com/helpCenter/doc/index.html?isStudy=1&pageType=1&docId=216&type=1&lang=en - For video to be played continuously, the timestamps must be continuous. nPackType 1 and 2 are video frames, nPackType 3 is audio frames, and Stamp is timestamp. The time difference between two timestamps must be stable and continuous. According to the frame rate set on the device, calculate the time difference between the two frames and compare it with the time difference in the log to see if it is consistent. If 1 second is 20 frames, the time difference between the two frames = 1000 milliseconds/20=50 milliseconds = 50000 microseconds. The following figure shows the timestamp log of a normal video.

**Remarks: **
- CMediaSessRealPlay[018000360262,0,1]
018000360262: is the equipment number
0: channel number, starting from 0
1: Code stream type, 0 is the main code stream, 1 is the sub- code stream
2.2 Flower Screen
- The main reason for the flower screen is that the code stream video frame data is incorrect, mainly in the following three types:
1. When rendering dirty data, the image is obviously torn or dislocated. If there are multiple rendering threads, check whether there is mutually exclusive behavior;
2. lost frames, video frame timestamp will cause the problem; In addition, buffer queue overflow may also be caused, can try to reduce the frame rate;
3. Format conversion;
When capturing logs, you can configure and save RTP packets at the same time, and analyze the RTP packets to find out specific problems.

Document reference: https://blog.csdn.net/zhaoyun_zzz/article/details/87302600?tdsourcetag=s_pcqq_aiomsg