Video data processing method and apparatus, and electronic device
AssigneeVivo Mobile Communication Co., Ltd.
InventorJiangmin Huang
Life of this patent
Estimating the term…
Abstract
This application discloses a video data processing method and apparatus, and an electronic device. The method includes: receiving, by an electronic device, a first data packet, where the first data packet constitutes a target video frame; and in a case that the target video frame is a damaged frame, determining, by the electronic device based on a packet loss rate of second data packets, whether to decode the first data packet, where the second data packets are data packets received by the electronic device within a predetermined time period before the first data packet is received.
Claims14
A video data processing method, applied to an electronic device, wherein the method comprises:
- receiving a first data packet, wherein the first data packet constitutes a target video frame;
- and
- in a case that the target video frame is a damaged frame, determining, based on a packet loss rate of second data packets, whether to decode the first data packet, wherein
- the second data packets are data packets received by the electronic device within a predetermined time period before the first data packet is received;
- wherein the packet loss rate is a ratio of a quantity of lost packets to a first quantity, the quantity of lost packets is a difference between a second quantity and the first quantity, the first quantity is a quantity of data packets of a first video frame corresponding to the second data packets sent by a sender's electronic device, and the second quantity is a data packet quantity of the second data packets.
An electronic device, comprising a processor, a memory, and a program or an instruction stored in the memory and capable of running on the processor, wherein when the program or the instruction is executed by the processor, the steps of a video data processing method are implemented, and the video data processing method comprises:
- receiving a first data packet, wherein the first data packet constitutes a target video frame;
- and
- in a case that the target video frame is a damaged frame, determining, based on a packet loss rate of second data packets, whether to decode the first data packet, wherein
- the second data packets are data packets received by the electronic device within a predetermined time period before the first data packet is received;
- wherein the packet loss rate is a ratio of a quantity of lost packets to a first quantity, the quantity of lost packets is a difference between a second quantity and the first quantity, the first quantity is a quantity of data packets of a first video frame corresponding to the second data packets sent by a sender's electronic device, and the second quantity is a data packet quantity of the second data packets.
A non-transitory readable storage medium, wherein the non-transitory readable storage medium stores a program or an instruction, and when the program or the instruction is executed by a processor of an electronic device, the steps of a video data processing method are implemented, and the video data processing method comprises:
- receiving a first data packet, wherein the first data packet constitutes a target video frame;
- and
- in a case that the target video frame is a damaged frame, determining, based on a packet loss rate of second data packets, whether to decode the first data packet, wherein
- the second data packets are data packets received by the electronic device within a predetermined time period before the first data packet is received;
- wherein the packet loss rate is a ratio of a quantity of lost packets to a first quantity, the quantity of lost packets is a difference between a second quantity and the first quantity, the first quantity is a quantity of data packets of a first video frame corresponding to the second data packets sent by a sender's electronic device, and the second quantity is a data packet quantity of the second data packets.
Dependencies are inferred from the claim text.