Packet loss retransmission method and system for video group call

文档序号:1601615 发布日期:2020-01-07 浏览:7次 中文

阅读说明:本技术 视频组呼的丢包重传方法及系统 (Packet loss retransmission method and system for video group call ) 是由 方伟 张光伟 陈国斌 王亮 于 2018-06-29 设计创作,主要内容包括:本发明提供一种视频组呼的丢包重传方法及系统,服务器接收群组中的第一终端发送的视频RTP包,通过组播承载将所述视频RTP包转发给群组中的多个第二终端,并将所述视频RTP包放入重传缓存队列;当第二终端根据接收到的视频RTP包,判断存在丢失的RTP包时,通过单播承载向服务器发送RTCP包,并携带群组号和待重传RTP包的序号,服务器在重传缓存队列中找到所述待重传的RTP包,则通过单播承载向第二终端重发该RTP包;通过上述过程,解决了视频组呼业务中容易出现的数据包丢失的问题,避免了视频组呼中出现花屏、卡顿等现象,提升了用户体验。(The invention provides a packet loss retransmission method and a system of a video group call.A server receives a video RTP packet sent by a first terminal in a group, forwards the video RTP packet to a plurality of second terminals in the group through a multicast bearer, and places the video RTP packet into a retransmission cache queue; when the second terminal judges that a lost RTP packet exists according to the received video RTP packet, an RTCP packet is sent to the server through a unicast bearer and carries a group number and a serial number of the RTP packet to be retransmitted, and the server finds the RTP packet to be retransmitted in a retransmission cache queue and retransmits the RTP packet to the second terminal through the unicast bearer; through the process, the problem that data packets are easy to lose in the video group call service is solved, the phenomena of screen splash, blockage and the like in the video group call are avoided, and the user experience is improved.)

1. A packet loss retransmission method of video group calling is characterized in that the method is applied to a server and comprises the following steps:

receiving a video real-time transport protocol (RTP) packet sent by a first terminal in a group, forwarding the RTP packet to at least one second terminal in the group through a multicast bearer, and putting the RTP packet into a retransmission buffer queue;

receiving a real-time transport control protocol (RTCP) packet sent by the second terminal through unicast bearing, and analyzing the RTCP packet to obtain a group number and a serial number of an RTP packet to be retransmitted;

and if the RTP packet to be retransmitted exists in the retransmission buffer queue, retransmitting the corresponding RTP packet to the second terminal through unicast load.

2. The method of claim 1, wherein after the placing the video RTP packet into a retransmission buffer queue, further comprising:

and if the waiting time of the video RTP packet in the retransmission cache queue exceeds the preset waiting time, deleting the video RTP packet from the retransmission cache queue.

3. The method according to claim 1 or 2, wherein the receiving the video RTP packet sent by the first terminal in the group further comprises:

and respectively establishing a unicast bearer for the at least one second terminal in the group.

4. A packet loss retransmission method of a video group call is applied to a second terminal, and comprises the following steps:

receiving a video real-time transport protocol (RTP) packet sent by a server through a multicast bearer and/or a unicast bearer;

judging whether a lost RTP packet exists according to the sequence number of the video RTP packet;

and if the real-time transport control protocol RTCP packet exists, sending the real-time transport control protocol RTCP packet to the server through the unicast bearer, wherein the RTCP packet comprises a group number and a sequence number of a lost RTP packet.

5. The method of claim 4, wherein before sending the RTCP packet to the server, the method further comprises:

putting the sequence number of the lost RTP packet into a retransmission queue;

deleting the sequence number of the RTP packet from a retransmission queue when at least one of the following conditions is met for the RTP packet in the retransmission queue: the waiting time of the RTP packet in the retransmission queue exceeds the preset waiting time, the retransmission request times corresponding to the RTP packet exceed the preset times, and the RTP packet is received.

6. The method of claim 5, wherein after sending the RTCP packet to the server, the method further comprises:

and if the lost RTP packet is not received within the preset second waiting time, retransmitting the RTCP packet to the server.

7. A server, comprising:

the receiving module is used for receiving a video real-time transport protocol (RTP) packet sent by a first terminal in the group;

a sending module, configured to forward the video RTP packet to at least one second terminal in the group through a multicast bearer;

the processing module is used for putting the video RTP packet into a retransmission buffer queue;

the receiving module is further configured to receive a real-time transport control protocol RTCP packet sent by the second terminal through a unicast bearer;

the processing module is further configured to analyze the RTCP packet to obtain a group number and a sequence number of an RTP packet to be retransmitted;

and the sending module is further configured to retransmit the corresponding RTP packet to the second terminal through a unicast bearer if the RTP packet to be retransmitted exists in the retransmission buffer queue.

8. A terminal, when acting as a second terminal, comprising:

the receiving module is used for receiving a video real-time transport protocol (RTP) packet sent by a server through a multicast bearer and/or a unicast bearer;

the processing module is used for judging whether a lost RTP packet exists according to the sequence number of the video RTP packet;

and the sending module is used for sending a real-time transport control protocol (RTCP) packet to the server through unicast bearing if the lost RTP packet exists, wherein the RTCP packet comprises a group number and a serial number of the lost RTP packet.

9. A server, comprising:

a memory;

a processor; and

a computer program;

wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any one of claims 1-3.

10. A terminal, when acting as a second terminal, comprising:

a memory;

a processor; and

a computer program;

wherein the computer program is stored in the memory and configured to be executed by the processor to implement the method of any one of claims 4-6.

11. A computer-readable storage medium, having stored thereon a computer program;

the computer program is executed by a processor to implement the method of any of claims 1-3 or the method of any of claims 4-6.

12. A packet loss retransmission system for a video group call, comprising the server according to claim 9 and at least one terminal according to claim 10.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:球型摄像机的数据传输装置、球型摄像机及数据传输方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类