Data processing method and apparatus, device, and readable storage medium
AssigneeTencent Technology (Shenzhen) Company Limited
InventorZhicheng LI
Life of this patent
Estimating the term…
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.
Claims20
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.
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.
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.
Dependencies are inferred from the claim text.