# US 12,225,217 B2 · Video data processing method and apparatus, and electronic device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 12,225,217 B2
- Document ID: US12225217B2
- Status: Granted
- Kind: B2
- Application number: 17/983,562
- Filed: 2022-11-09
- Published: 2023-03-02
- Granted: 2025-02-11
- Earliest claimed: 2020-05-26
- Assignees: Vivo Mobile Communication Co., Ltd.
- Applicants: Vivo Mobile Communication Co., Ltd.
- Inventors: Jiangmin Huang
- Web page: https://patentgrep.com/patent/US12225217B2

## CPC

- H04N 19/188: {the unit being a video data packet, e.g. a network abstraction layer [NAL] unit}
- H04L 43/0829: Packet loss
- H04N 19/166: concerning the amount of transmission errors, e.g. bit error rate [BER]
- H04N 19/44: Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
- H04N 19/61: in combination with predictive coding
- H04N 21/41407: {embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop (constructional details of equipment or arrangements specially adapted for portable computer application G06F1/1626; arrangements specially adapted for mobile receivers in broadcast systems H04H20/57)}
- H04N 21/4402: involving reformatting operations of video signals for household redistribution, storage or real-time display {(details of conversion of video standards at pixel level H04N7/01; video transcoding H04N19/40; adapting incoming signals to the display format of the display terminal G09G5/005; media handling at the source in data packet switching networks H04L65/764)}
- H04N 21/44209: {Monitoring of downstream path of the transmission network originating from a server, e.g. bandwidth variations of a wireless network (arrangements for maintenance or administration in data switching networks involving bandwidth and capacity management H04L41/0896)}
- H04N 21/6437: Real-time Transport Protocol [RTP]
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## 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.

## Claims

### Claim 1

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.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the determining, based on a packet loss rate of second data packets, whether to decode the first data packet comprises:
in a case that the packet loss rate of the second data packets is greater than a preset threshold, discarding the first data packet; or
in a case that the packet loss rate of the second data packets is less than or equal to the preset threshold, decoding the first data packet.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the determining, based on a packet loss rate of second data packets, whether to decode the first data packet comprises:
determining a damage degree of the target video frame based on the packet loss rate of the second data packets; and
in a case that the damage degree satisfies a first condition, decoding the first data packet; or
in a case that the damage degree satisfies a second condition, discarding the first data packet.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the first data packet comprises N data packets; and
after the receiving a first data packet, the method further comprises:
in a case that data packet numbers of target data packets in the N data packets are determined as discontinuous, determining that the target video frame is a damaged frame, wherein
the target data packets are trailing data packets of the target video frame, and N is a positive integer.

### Claim 5

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.

### Claim 6 (depends on 5)

The electronic device according to claim 5, wherein the determining, based on a packet loss rate of second data packets, whether to decode the first data packet comprises:
in a case that the packet loss rate of the second data packets is greater than a preset threshold, discarding the first data packet; or
in a case that the packet loss rate of the second data packets is less than or equal to the preset threshold, decoding the first data packet.

### Claim 7 (depends on 5)

The electronic device according to claim 5, wherein the determining, based on a packet loss rate of second data packets, whether to decode the first data packet comprises:
determining a damage degree of the target video frame based on the packet loss rate of the second data packets; and
in a case that the damage degree satisfies a first condition, decoding the first data packet; or
in a case that the damage degree satisfies a second condition, discarding the first data packet.

### Claim 8 (depends on 5)

The electronic device according to claim 5, wherein the first data packet comprises N data packets; and
after the receiving a first data packet, the method further comprises:
in a case that data packet numbers of target data packets in the N data packets are determined as discontinuous, determining that the target video frame is a damaged frame, wherein
the target data packets are trailing data packets of the target video frame, and N is a positive integer.

### Claim 9

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.

### Claim 10 (depends on 1)

An electronic device, wherein the electronic device is configured to perform the video data processing method according to claim 1.

### Claim 11 (depends on 1)

A chip, wherein the chip comprises a processor and a communications interface, the communications interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the video data processing method according to claim 1.

### Claim 12 (depends on 9)

The non-transitory readable storage medium according to claim 9, wherein the determining, based on a packet loss rate of second data packets, whether to decode the first data packet comprises:
in a case that the packet loss rate of the second data packets is greater than a preset threshold, discarding the first data packet; or
in a case that the packet loss rate of the second data packets is less than or equal to the preset threshold, decoding the first data packet.

### Claim 13 (depends on 9)

The non-transitory readable storage medium according to claim 9, wherein the determining, based on a packet loss rate of second data packets, whether to decode the first data packet comprises:
determining a damage degree of the target video frame based on the packet loss rate of the second data packets; and
in a case that the damage degree satisfies a first condition, decoding the first data packet; or
in a case that the damage degree satisfies a second condition, discarding the first data packet.

### Claim 14 (depends on 9)

The non-transitory readable storage medium according to claim 9, wherein the first data packet comprises N data packets; and
after the receiving a first data packet, the method further comprises:
in a case that data packet numbers of target data packets in the N data packets are determined as discontinuous, determining that the target video frame is a damaged frame, wherein
the target data packets are trailing data packets of the target video frame, and N is a positive integer.
