# US 2026/0149820 A1 · Data processing method and apparatus, device, and readable storage medium

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

- Number: US 2026/0149820 A1
- Document ID: US20260149820A1
- Status: Published application
- Kind: A1
- Application number: 19/454,354
- Filed: 2026-01-20
- Published: 2026-05-28
- Earliest claimed: 2021-11-02
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Zhicheng LI
- Web page: https://patentgrep.com/patent/US20260149820A1

## CPC

- H04N 19/30: using hierarchical techniques, e.g. scalability (H04N19/63 takes precedence)
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06V 10/761: {Proximity, similarity or dissimilarity measures}
- G06V 20/30: in albums, collections or shared content, e.g. social network photos or video
- G06V 20/40: in video content (extracting overlay text G06V20/62; video retrieval G06F16/70; processing of video elementary streams in video servers H04N21/234; processing of video elementary streams in video clients H04N21/44)
- H04N 19/154: Measured or subjectively estimated visual quality after decoding, e.g. measurement of distortion (use of rate-distortion criteria H04N19/147)
- H04N 19/172: the region being a picture, frame or field
- H04N 21/232: Content retrieval operation {locally} within server, e.g. reading video streams from disk arrays {(storage management G06F3/0604; details of querying and searching of video data from a database G06F16/739)}
- H04N 21/234: Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
- H04N 21/2343: involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements {(video transcoding H04N19/40; media packet handling at the source H04L65/762)}
- H04N 21/432: Content retrieval operation from a local storage medium, e.g. hard-disk {(details of retrieval of video data and associated meta data in video databases G06F16/739)}
- H04N 21/44: Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- 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: PICTORIAL COMMUNICATION, e.g. TELEVISION
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

A data processing method includes: obtaining media data and a first service scenario type to which the media data belongs; obtaining, according to mapping relationships between at least two coding configuration templates in a configuration template set and at least two service scenario types, a first coding configuration template corresponding to the first service scenario type; determining a frame coding parameter of the media data according to the first coding configuration template; and coding the media data according to the determined frame coding parameter to obtain first media data.

## Claims

### Claim 1

A data processing method, comprising:
obtaining media data to be coded and a first service scenario type to which the media data belongs;
obtaining, according to mapping relationships between at least two coding configuration templates and at least two service scenario types in a configuration template set, a first coding configuration template corresponding to the first service scenario type, comprising: in response to that the at least two service scenario types in the configuration template set does not comprise the first service scenario type,
determining at least two scenario similarities between the at least two service scenario types and the first service scenario type;
determining, in response to a maximum scenario similarity from the at least two scenario similarities being greater than a similarity threshold, a service scenario type corresponding to the maximum scenario similarity as a matching service scenario type; and
determining, from the at least two coding configuration templates, a coding configuration template having a mapping relationship with the matching service scenario type as the first coding configuration template;
determining a frame coding parameter of the media data according to the first coding configuration template; and
coding the media data according to the determined frame coding parameter to obtain first media data.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the obtaining, according to mapping relationships between at least two coding configuration templates and at least two service scenario types in the configuration template set, the first coding configuration template corresponding to the first service scenario type further comprises:
determining, from the at least two coding configuration templates in response to that the at least two service scenario types comprise a service scenario type identical with the first service scenario type, that a coding configuration template having a mapping relationship with the first service scenario type as the first coding configuration template.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the obtaining the first coding configuration template corresponding to the first service scenario type further comprises: in response to that the maximum scenario similarity being not greater than the similarity threshold,
performing a template configuration according to a scenario coding requirement of the first service scenario type, to obtain a configured template as the first coding configuration template; and
storing a mapping relationship between the configured template and the first service scenario type in the configuration template set.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the frame coding parameter comprises a frame coding structure and a frame coding quality parameter; and
the determining a frame coding parameter of the media data according to the first coding configuration template comprises:
obtaining a frame type distribution and a frame level distribution in the first coding configuration template;
determining, according to the frame type distribution and the frame level distribution, a frame coding structure corresponding to the media data; and
obtaining a coding quality parameter in the first coding configuration template, and performing quality parameter configuration on the media data according to the coding quality parameter to obtain a frame coding quality parameter corresponding to the media data.

### Claim 5 (depends on 4)

The method according to claim 4, wherein the determining, according to the frame type distribution and the frame level distribution, a frame coding structure corresponding to the media data comprises:
obtaining a unit data frame group in the media data, the unit data frame group being composed of N continuous data frames, and N being a positive integer;
performing type division on the data frames in the unit data frame group according to the frame type distribution to obtain data frames after the type division;
performing level division on the data frames after the type division according to the frame level distribution to obtain a layered coding structure corresponding to the unit data frame group; and
determining, according to the layered coding structure corresponding to the unit data frame group, the frame coding structure corresponding to the media data.

### Claim 6 (depends on 4)

The method according to claim 4, wherein the frame coding structure is a layered coding structure comprising a plurality of levels; the coding quality parameter comprises coding quality parameters each corresponding one of the plurality of levels; and
the performing quality parameter configuration on the media data according to the coding quality parameter to obtain a frame coding quality parameter corresponding to the media data comprises:
obtaining, from the media data, data frames at the plurality of levels in the layered coding structure;
obtaining device index information of a first terminal, the first terminal referring to a terminal waiting to play the media data;
in response to that the device index information satisfies a parameter adjustment condition, determining, according to the device index information and the coding quality parameters corresponding to the plurality of levels, frame coding quality parameters corresponding to the data frames at the plurality of levels.

### Claim 7 (depends on 6)

The method according to claim 6, wherein the device index information comprises a network quality parameter and decoding computing power information; and
the method further comprises:
determining, in response to that the network quality parameter is greater than a network parameter threshold and that the decoding computing power information is greater than a computing power threshold, that the device index information does not satisfy the parameter adjustment condition; and
determining, in response to that the network quality parameter is less than the network parameter threshold and that the decoding computing power information is less than the computing power threshold, that the device index information satisfies the parameter adjustment condition.

### Claim 8 (depends on 6)

The method according to claim 6, further comprising:
in response to that the device index information does not satisfy the parameter adjustment condition, determining the coding quality parameters as the frame coding quality parameters corresponding to the data frames.

### Claim 9 (depends on 6)

The method according to claim 6, wherein the coding quality parameters comprises a scenario code rate control parameter; the device index information comprises a network quality parameter; and
the determining, according to the device index information and the coding quality parameters, frame coding quality parameters corresponding to the data frames comprises: for a first data frame of the data frames,
obtaining a parameter mapping table that contains a mapping relationship between a network quality interval set and an adaptation code rate control parameter set;
obtaining, from the network quality interval set, a first network quality interval to which the network quality parameter corresponding to the first terminal belongs, and obtaining a network adaptation code rate control parameter having a mapping relationship with the first network quality interval; and
determining, according to the scenario code rate control parameter and the network adaptation code rate control parameter, the frame coding quality parameter corresponding to the first data frame.

### Claim 10 (depends on 9)

The method according to claim 9, wherein the determining, according to the scenario code rate control parameter and the network adaptation code rate control parameter, the frame coding quality parameter corresponding to the first data frame comprises:
obtaining a first operational coefficient corresponding to the first service scenario type, and a second operational coefficient corresponding to the network quality parameter;
performing calculation on the first operational coefficient and the scenario code rate control parameter to obtain a first operation code rate control parameter;
performing calculation on the second operational coefficient and the network adaptation code rate control parameter to obtain a second operation code rate control parameter; and
determining a mean value of the first operation code rate control parameter and the second operation code rate control parameter, and determining the mean value as the frame coding quality parameter corresponding to the first data frame.

### Claim 11 (depends on 9)

The method according to claim 9, wherein the determining, according to the scenario code rate control parameter and the network adaptation code rate control parameter, the frame coding quality parameter corresponding to the first data frame comprises:
determining a minimum code rate control parameter between the scenario code rate control parameter and the network adaptation code rate control parameter; and
determining the minimum code rate control parameter as the frame coding quality parameter corresponding to the first data frame.

### Claim 12 (depends on 1)

The method according to claim 1, wherein a mapping relationship exists between one coding configuration template and one service scenario type; the at least two coding configuration templates comprise the first coding configuration template;
the first media data has first media quality; and the first media quality corresponds to the first service scenario type.

### Claim 13

A data processing apparatus, comprising:
at least one processor and at least one memory,
the at least one memory being configured to store program codes, and the at least one processor being configured to invoke the program codes to cause the computer device to implement:
obtaining media data to be coded and a first service scenario type to which the media data belongs;
obtaining, according to mapping relationships between at least two coding configuration templates and at least two service scenario types in a configuration template set, a first coding configuration template corresponding to the first service scenario type, comprising: in response to that the at least two service scenario types in the configuration template set does not comprise the first service scenario type,
determining at least two scenario similarities between the at least two service scenario types and the first service scenario type;
determining, in response to a maximum scenario similarity from the at least two scenario similarities being greater than a similarity threshold, a service scenario type corresponding to the maximum scenario similarity as a matching service scenario type; and
determining, from the at least two coding configuration templates, a coding configuration template having a mapping relationship with the matching service scenario type as the first coding configuration template;
determining a frame coding parameter of the media data according to the first coding configuration template; and
coding the media data according to the determined frame coding parameter to obtain first media data.

### Claim 14 (depends on 13)

The apparatus according to claim 13, wherein the obtaining, according to mapping relationships between at least two coding configuration templates and at least two service scenario types in the configuration template set, the first coding configuration template corresponding to the first service scenario type further comprises:
determining, from the at least two coding configuration templates in response to that the at least two service scenario types comprise a service scenario type identical with the first service scenario type, that a coding configuration template having a mapping relationship with the first service scenario type as the first coding configuration template.

### Claim 15 (depends on 13)

The apparatus according to claim 13, wherein the obtaining the first coding configuration template corresponding to the first service scenario type further comprises: in response to that the maximum scenario similarity being not greater than the similarity threshold,
performing a template configuration according to a scenario coding requirement of the first service scenario type, to obtain a configured template as the first coding configuration template; and
storing a mapping relationship between the configured template and the first service scenario type in the configuration template set.

### Claim 16 (depends on 13)

The apparatus according to claim 13, wherein the frame coding parameter comprises a frame coding structure and a frame coding quality parameter; and
the determining a frame coding parameter of the media data according to the first coding configuration template comprises:
obtaining a frame type distribution and a frame level distribution in the first coding configuration template;
determining, according to the frame type distribution and the frame level distribution, a frame coding structure corresponding to the media data; and
obtaining a coding quality parameter in the first coding configuration template, and performing quality parameter configuration on the media data according to the coding quality parameter to obtain a frame coding quality parameter corresponding to the media data.

### Claim 17 (depends on 16)

The apparatus according to claim 16, wherein the determining, according to the frame type distribution and the frame level distribution, a frame coding structure corresponding to the media data comprises:
obtaining a unit data frame group in the media data, the unit data frame group being composed of N continuous data frames, and N being a positive integer;
performing type division on the data frames in the unit data frame group according to the frame type distribution to obtain data frames after type division;
performing level division on the data frames after type division according to the frame level distribution to obtain a layered coding structure corresponding to the unit data frame group; and
determining, according to the layered coding structure corresponding to the unit data frame group, the frame coding structure corresponding to the media data.

### Claim 18 (depends on 16)

The apparatus according to claim 16, wherein the frame coding structure is a layered coding structure comprising a plurality of levels; the coding quality parameter comprises coding quality parameters each corresponding one of the plurality of levels; and
the performing quality parameter configuration on the media data according to the coding quality parameter to obtain a frame coding quality parameter corresponding to the media data comprises:
obtaining, from the media data, data frames at the plurality of levels in the layered coding structure;
obtaining device index information of a first terminal, the first terminal referring to a terminal waiting to play the media data;
in response to that the device index information satisfies a parameter adjustment condition, determining, according to the device index information and the coding quality parameters corresponding to the plurality of levels, frame coding quality parameters corresponding to the data frames at the plurality of levels.

### Claim 19 (depends on 18)

The apparatus according to claim 18, wherein the device index information comprises a network quality parameter and decoding computing power information; and
the at least one processor is further configured to perform:
determining, in response to that the network quality parameter is greater than a network parameter threshold and that the decoding computing power information is greater than a computing power threshold, that the device index information does not satisfy the parameter adjustment condition; and
determining, in response to that the network quality parameter is less than the network parameter threshold and that the decoding computing power information is less than the computing power threshold, that the device index information satisfies the parameter adjustment condition.

### Claim 20

A non-transitory computer-readable storage medium, the computer-readable storage medium storing a computer program, and the computer program being executed by at least one processor to implement:
obtaining media data to be coded and a first service scenario type to which the media data belongs;
obtaining, according to mapping relationships between at least two coding configuration templates and at least two service scenario types in a configuration template set, a first coding configuration template corresponding to the first service scenario type, comprising: in response to that the at least two service scenario types in the configuration template set does not comprise the first service scenario type,
determining at least two scenario similarities between the at least two service scenario types and the first service scenario type;
determining, in response to a maximum scenario similarity from the at least two scenario similarities being greater than a similarity threshold, a service scenario type corresponding to the maximum scenario similarity as a matching service scenario type; and
determining, from the at least two coding configuration templates, a coding configuration template having a mapping relationship with the matching service scenario type as the first coding configuration template;
determining a frame coding parameter of the media data according to the first coding configuration template; and
coding the media data according to the determined frame coding parameter to obtain first media data.
