A method for determining encoding parameters, a video transmission method, and an apparatus.

By obtaining the pre-analytical data and encoding results of video frames, and using the regression prediction model to determine the encoding parameters, the bandwidth waste caused by constant code rate encoding is solved, and the code rate is dynamically adjusted to meet the video quality needs, improving the video processing efficiency and Resource utilization rate.

CN113301340BActive Publication Date: 2024-11-22TAOBAO CHINA SOFTWARE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011051953.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-29
Publication Date
2024-11-22
Estimated Expiration
2040-09-29

AI Technical Summary

Technical Problem

Existing video encoders use constant code rate encoding, resulting in serious bandwidth waste when the video clarity is not high and lack of effective solutions.

Method used

By obtaining the pre-analytical data and encoding results of the frames to be encoded and encoded frames, the encoding parameters are determined using the regression prediction model to avoid bandwidth waste caused by excessive peak signal-to-noise ratio, and dynamically adjusting the code rate to meet video quality requirements.

Benefits of technology

It effectively reduces bandwidth waste, improves video processing efficiency, ensures that the encoding quality is within the human eye threshold range, and avoids resource waste caused by excessively high code rates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113301340B_ABST
    Figure CN113301340B_ABST
Patent Text Reader

Abstract

The present application provides a coding parameter determination method, a video transmission method and a device, wherein the coding parameter determination method includes: determining a frame to be encoded; obtaining pre-analysis data of the frame to be encoded, as well as pre-analysis data and encoding results of the encoded frame; and determining the coding parameters of the frame to be encoded according to the pre-analysis data of the frame to be encoded, as well as the pre-analysis data and encoding results of the encoded frame. In this way, the existing problem of bandwidth waste caused by excessively high peak signal-to-noise ratio caused by encoding at a constant bit rate is solved, achieving the technical effect of effectively reducing bandwidth waste and improving video processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of Internet technology, and in particular, relates to a coding parameter determination method, a video transmission method and a device. Background Art

[0002] At present, video encoding is required in many applications. Current video encoders generally use a constant bit rate method for encoding. This will lead to a problem. When the video clarity requirement is not particularly high, the encoded video quality will exceed the human eye threshold, which will lead to a large amount of bandwidth waste.

[0003] Currently, no effective solution has been provided for the above problems. Summary of the invention

[0004] The purpose of the present application is to provide a coding parameter determination method, a video transmission method and a device, which can avoid wasting bandwidth and save bit rate.

[0005] The present application provides a coding parameter determination method, a video transmission method and a device which are implemented as follows:

[0006] A method for determining a coding parameter, the method comprising:

[0007] Determine a frame to be encoded;

[0008] Obtaining pre-analysis data of the frame to be encoded, as well as pre-analysis data and encoding results of the encoded frame;

[0009] The coding parameters of the frame to be coded are determined according to the pre-analysis data of the frame to be coded, and the pre-analysis data and coding results of the coded frame.

[0010] A video transmission method, comprising:

[0011] Receiving a video upload request, wherein the video upload request carries a video frame to be transmitted;

[0012] Obtaining pre-analysis data of the video frame to be transmitted, as well as pre-analysis data and encoding results of the encoded frame;

[0013] Determining encoding parameters of the video frame to be transmitted according to the pre-analysis data of the video frame to be transmitted, and the pre-analysis data and encoding results of the encoded frame;

[0014] The video frame to be transmitted is encoded using the determined encoding parameters, and the video encoding result is transmitted.

[0015] A coding parameter determination device, comprising:

[0016] A determination module, used for determining a frame to be encoded;

[0017] An acquisition module, used to acquire pre-analysis data of a frame to be encoded, as well as pre-analysis data and encoding results of an encoded frame;

[0018] The determination module is used to determine the encoding parameters of the frame to be encoded according to the pre-analysis data of the frame to be encoded, and the pre-analysis data and encoding results of the encoded frame.

[0019] A video transmission device, comprising:

[0020] A receiving module, configured to receive a video upload request, wherein the video upload request carries a video frame to be transmitted;

[0021] An acquisition module, used to acquire pre-analysis data of a video frame to be transmitted, as well as pre-analysis data and encoding results of an encoded frame;

[0022] A determination module, configured to determine encoding parameters of the video frame to be transmitted according to the pre-analysis data of the video frame to be transmitted, and the pre-analysis data and encoding results of the encoded frame;

[0023] The transmission module is used to perform video encoding on the video frame to be transmitted according to the determined encoding parameters, and transmit the video encoding result.

[0024] A service device comprises a processor and a memory for storing processor executable instructions, wherein when the processor executes the instructions:

[0025] Determine a frame to be encoded;

[0026] Obtaining pre-analysis data of the frame to be encoded, as well as pre-analysis data and encoding results of the encoded frame;

[0027] The coding parameters of the frame to be coded are determined according to the pre-analysis data of the frame to be coded, and the pre-analysis data and coding results of the coded frame.

[0028] A terminal device, comprising:

[0029] A processor is used to receive a video upload request, wherein the video upload request carries a video frame to be transmitted; obtain pre-analysis data of the video frame to be transmitted, and pre-analysis data and encoding results of the encoded frame; determine encoding parameters of the video frame to be transmitted according to the pre-analysis data of the video frame to be transmitted, and pre-analysis data and encoding results of the encoded frame; perform video encoding on the video frame to be transmitted according to the determined encoding parameters;

[0030] The communication module is used to transmit the video encoding result.

[0031] A computer-readable storage medium having computer instructions stored thereon, wherein the instructions, when executed, implement the steps of the following method:

[0032] Determine a frame to be encoded;

[0033] Obtaining pre-analysis data of the frame to be encoded, as well as pre-analysis data and encoding results of the encoded frame;

[0034] The coding parameters of the frame to be coded are determined according to the pre-analysis data of the frame to be coded, and the pre-analysis data and coding results of the coded frame.

[0035] A computer-readable storage medium having computer instructions stored thereon, wherein the instructions, when executed, implement the steps of the following method:

[0036] Receiving a video upload request, wherein the video upload request carries a video frame to be transmitted;

[0037] Obtaining pre-analysis data of the video frame to be transmitted, as well as pre-analysis data and encoding results of the encoded frame;

[0038] Determining encoding parameters of the video frame to be transmitted according to the pre-analysis data of the video frame to be transmitted, and the pre-analysis data and encoding results of the encoded frame;

[0039] The video frame to be transmitted is encoded using the determined encoding parameters, and the video encoding result is transmitted.

[0040] The coding parameter determination method, video transmission method and device provided in the present application determine the coding parameters through the pre-analysis data of the encoded frames, the encoding results of the encoded frames and the pre-analysis data of the frames to be encoded, instead of encoding the video in a constant bit rate manner. In this way, the problem of bandwidth waste caused by excessively high peak signal-to-noise ratio caused by the existing constant bit rate encoding is solved, and the technical effect of effectively reducing bandwidth waste and improving video processing efficiency is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0042] Figure 1 is a method flow chart of the coding parameter determination method provided by the present application;

[0043] Figure 2 It is a parameter diagram of the coding parameter determination process provided by the present application;

[0044] Figure 3 is a method flow chart of an embodiment of a method for determining coding parameters provided by the present application;

[0045] Figure 4 It is an architectural diagram of a computer terminal provided by this application;

[0046] Figure 5 It is a structural block diagram of the coding parameter determination device provided in this application. DETAILED DESCRIPTION

[0047] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

[0048] Considering that if the video encoding adopts a constant bit rate method, then for the peak signal-to-noise ratio (PSNR, which is an objective standard for evaluating images, used to reflect the ratio between the maximum possible power of the signal and the noise power affecting it), when the PSNR is higher than a certain level, the difference that the human eye can perceive is very small. Therefore, a more reasonable PSNR can be selected as the target PSNR, and then the corresponding encoding parameters can be used as the determined encoding parameters, so as to control the upper limit of the encoding quality. By controlling the upper limit of the encoding quality, the bit rate can be saved.

[0049] In this example, a video encoding method is provided, such as Figure 1 As shown, after obtaining the video to be encoded, the user can upload it to the encoder, and the encoder will encode it. The video to be encoded obtained by the user can be a video content shot by the user himself, or a video downloaded or received by the user from others. The specific source of the video is not limited in this application and can be selected according to actual needs.

[0050] For users, video resources can be obtained and uploaded through a client, where the client can be a terminal device such as a smartphone, tablet computer, laptop computer, desktop computer, smart watch or other wearable device. It can also be a software device, such as a short video application, communication application, etc.

[0051] For the encoder, it can be a processor built into the client, or it can be a video encoding unit in a server or cloud platform. The function of the encoder is to realize video encoding. Specifically, the encoder can determine the encoding parameters based on the pre-analysis data of the encoded frame, the encoding result of the encoded frame, and the pre-analysis data of the frame to be encoded. Specifically, the encoder can determine the peak signal-to-noise ratio of the frame to be encoded under different encoding parameters based on the pre-analysis data of the encoded frame, the encoding result of the encoded frame, and the pre-analysis data of the frame to be encoded, that is, obtain multiple sets of encoding parameters and corresponding peak signal-to-noise ratios, and then select the encoding parameters corresponding to the target peak signal-to-noise ratio as the encoding parameters of the frame to be encoded, so as to encode the video frame to be encoded.

[0052] During implementation, after the encoding parameters are determined, the determined encoding parameters can be displayed, and the user (e.g., a merchant, a video uploader, etc.) can determine whether to use the determined encoding parameters for encoding. That is, an operation of further determining the determined encoding parameters can be added, so that the final encoding parameters can better meet the user's needs.

[0053] Specifically, the pre-analyzer in the encoder may perform pre-analysis processing on the frame to be encoded to obtain pre-analysis data of the frame to be encoded. For the pre-analysis data of the encoded frame, the pre-analysis data may be obtained in the pre-processing stage when the encoded frame is encoded and then stored. The pre-analysis data may include but is not limited to at least one of the following: texture strength, frame type, intra-frame prediction cost, inter-frame prediction cost, and reference strength.

[0054] When implementing, these pre-analysis data can be the data that the encoder will calculate during the encoding process. When encoding the video, the encoder will set a pre-analysis process, and the pre-analyzer will scale the image to half of the original width and height. First, the variance of each 16x16 block of the image is calculated at the original resolution, that is, the energy, as its texture strength; then, the frame type of each frame is estimated at low resolution through some native algorithms, such as I frame, P frame and B frame; then, intra-frame prediction and inter-frame prediction are performed at low resolution to obtain the prediction residuals during intra-frame prediction and inter-frame prediction, and their SATD (Sum of Absolute Transformed Difference) values ​​are used as the prediction cost of intra-frame prediction and the prediction cost of inter-frame prediction; then, the motion vector and prediction cost of inter-frame prediction are used to calculate a reference strength of each other at low resolution.

[0055] For the encoder, Figure 2As shown, when the peak signal-to-noise ratio of the frame to be encoded under different encoding parameters is determined according to the pre-analysis data of the encoded frame, the encoding result of the encoded frame and the pre-analysis data of the frame to be encoded, the pre-analysis data of the encoded frame, the encoding result of the encoded frame and the pre-analysis data of the frame to be encoded can be input into the regression prediction model to obtain the peak signal-to-noise ratio of the frame to be encoded under different encoding parameters. That is, the regression prediction model is used to predict the encoding quality of subsequent frames, and the encoder is fed back to limit the bit rate, thereby avoiding bit rate waste caused by encoding quality exceeding the human eye threshold.

[0056] Among them, the regression prediction model is a mathematical model that quantitatively describes statistical relationships. For example, the mathematical model of multiple linear regression can be expressed as y=β0+β1*x+εi, where β0, β1, ..., βp are p+1 parameters to be estimated, εi is a random variable that is independent of each other and obeys the same normal distribution N(0,σ2), y is a random variable; x can be a random variable or a non-random variable, and βi is called the regression coefficient, which characterizes the degree of influence of the independent variable on the dependent variable. The regression model is a predictive modeling technique that studies the relationship between the dependent variable (target) and the independent variable (predictor). Through the regression model, the time series model can be predicted and analyzed and the causal relationship between variables can be discovered. The important basis or method of the regression model is regression analysis. Regression analysis is a computational method and theory for studying the specific dependence of a variable (explained variable) on another variable (or variables) (explanatory variables).

[0057] That is, the regression prediction model is a prediction method based on the regression method of quantitatively studying the correlation between variables. The basic idea is: through sample information, analyze the overall correlation between the prediction object and related factors, set up an appropriate mathematical model to express the type of this correlation; then use the sample information and parameter estimation method to establish a sample regression model that reflects the overall relationship between the prediction object and the main related factors, conduct necessary tests, and finally predict the future status of the research object based on the sample regression model that has been established and passed the test. Among them, the work done before prediction, including model setting, parameter estimation and model testing, can be called regression analysis. The mathematical model established by the regression method is called a regression model. When this regression model is used for prediction, it can become a regression prediction model. Among them, the regression model can be divided into a linear regression model and a nonlinear regression model, and can also be divided into a univariate regression model and a multivariate regression model. If the regression model is properly established, then a more accurate prediction result can be obtained.

[0058] Specifically, the regression prediction model is applied in this example to study the correlation between the pre-analysis data of the encoded frame, the encoding result of the encoded frame, and the pre-analysis data of the frame to be encoded and the encoding parameters and the peak signal-to-noise ratio, so as to determine the peak signal-to-noise ratio of the frame to be encoded under different encoding parameters. The encoding result of the encoded frame may include: encoding parameters, peak signal-to-noise ratio, bit rate, encoding parameters, block division method, block size of inter-frame blocks, and block size of intra-frame blocks.

[0059] Among them, the encoding parameters can be understood as quantization parameters (QP). The so-called quantization parameters reflect the compression of spatial details. For example, when QP becomes smaller, most of the details will be retained; when QP increases, some details are lost, the bit rate is reduced, but the image distortion is enhanced and the quality is reduced. In other words, QP and bit rate are inversely proportional, and this inverse relationship will be more obvious as the complexity of the video source increases. The quantization parameter is the serial number of the quantization step Qstep. The smaller the QP value, the smaller the quantization step, and the higher the quantization accuracy, which means that the amount of data generated may be larger under the same image quality.

[0060] In the above example, the coding parameters are determined by the regression prediction model. The regression prediction model can be obtained by autonomous learning, and the regression prediction model can be further adjusted based on the real-time data to improve the accuracy. It can also be that after the mathematical model of the regression prediction model is selected, the selected or set mathematical model is used as the regression prediction model to determine the coding parameters. In actual implementation, not only can the coding parameters be determined by the regression prediction model, but also a self-learning model such as a neural network model can be used to determine the coding parameters. The specific model to be used can be selected according to actual needs, and this application does not limit this.

[0061] In this example, according to the pre-analysis data of the encoded frame, the encoding result of the encoded frame and the pre-analysis data of the frame to be encoded, the peak signal-to-noise ratio of the frame to be encoded under different encoding parameters can be determined.

[0062] For example, Table 1 may be a schematic diagram of the correspondence between the determined coding parameters and the peak signal-to-noise ratio:

[0063] Table 1

[0064] Encoding parameters Peak signal-to-noise ratio A a B b C c

[0065] After the correspondence between the coding parameter of the data frame to be encoded and the peak signal-to-noise ratio is determined, the coding parameter corresponding to the target peak signal-to-noise ratio can be found according to the determined correspondence. For example, if the target peak signal-to-noise ratio is b, then the coding parameter can be determined to be B, that is, the coding parameter B is used to encode the data frame to be encoded.

[0066] Among them, the above-mentioned target peak signal-to-noise ratio can be pre-set to 40.5, then the encoding parameters corresponding to the peak signal-to-noise ratio of 40.5 are found from the determined corresponding relationship, and the video frame is encoded with this encoding parameter. Further, the target peak signal-to-noise ratio can also be selected by the user according to actual needs or display needs. The specific setting of the target peak signal-to-noise ratio can be set according to actual needs, and this application does not limit this.

[0067] Specifically, the peak signal-to-noise ratios of the frame to be encoded under different encoding parameters may be displayed, and then a user's selection operation on the peak signal-to-noise ratio may be obtained; the peak signal-to-noise ratio selected by the user may be used as a target peak signal-to-noise ratio; and the encoding parameters corresponding to the target peak signal-to-noise ratio may be used as encoding parameters of the frame to be encoded.

[0068] For the encoder, after determining the encoding parameters, the to-be-encoded frame can be encoded using the determined encoding parameters to obtain an encoded video result, and then the encoded video is transmitted to a server, or a service platform, etc.

[0069] The above-mentioned video encoding system can be applied in, but is not limited to, short video applications or live broadcast applications.

[0070] That is, in the process of encoding by the encoder, the pre-analysis data and encoding results of the encoded frame, as well as the pre-analysis data of the frame to be encoded, are used and input into the regression prediction model to estimate the peak signal-to-noise ratio and bit rate of the encoded result under different encoding parameters. Because according to the human eye threshold model, the difference that the human eye can perceive is very small after the peak signal-to-noise ratio is higher than a certain level, therefore, a peak signal-to-noise ratio can be selected, and then the corresponding encoding parameters can be determined as the parameters for encoding, so that the upper limit of the encoding quality can be controlled. Because the internal data (pre-analysis data) of the encoder is used, and the amount of calculation is small, no additional analysis or encoding operation is required, and it is relatively simple to implement. And by using the pre-analysis data of the encoder, the changes in the complexity and correlation of the input image can be responded to in time. Through the regression prediction model, the encoding quality of the subsequent frames can be predicted and fed back to the encoder to limit the bit rate, thereby avoiding the waste of bit rate caused by the encoding quality exceeding the human eye threshold.

[0071] For the service platform, the above-mentioned method for determining encoding parameters can be provided to users as a paid function. For example, an entrance can be provided. If the user chooses to process the video frame through the entrance, it is processed according to the above-mentioned method for determining encoding parameters. This service can be charged. If the user does not need the paid service, the user's video is encoded in a fixed encoding parameter manner. That is, a paid optional service model can be set. If the fee is paid, the functional service can be provided.

[0072] Figure 3 It is a method flow chart of an embodiment of a method for determining a coding parameter described in the present application. Although the present application provides method operation steps or device structures as shown in the following embodiments or drawings, more or fewer operation steps or module units may be included in the method or device based on routine or no creative labor. In the steps or structures where there is no necessary causal relationship logically, the execution order of these steps or the module structure of the device is not limited to the execution order or module structure described in the embodiments of the present application and shown in the drawings. When the method or module structure is applied to an actual device or terminal product, it can be connected according to the method or module structure shown in the embodiment or drawings for sequential execution or parallel execution (for example, a parallel processor or a multi-threaded processing environment, or even a distributed processing environment).

[0073] Specifically, Figure 3 As shown, a method for determining a coding parameter provided by an embodiment of the present application may include:

[0074] Step 301: Determine a frame to be encoded;

[0075] The frame to be encoded may be a video content shot by the user himself, or a video downloaded or received by the user and sent to him by others, etc. The specific source of the video is not limited in this application and can be selected according to actual needs.

[0076] Step 302: Obtain pre-analysis data of the frame to be encoded, as well as pre-analysis data and encoding results of the encoded frame;

[0077] The encoding result of the encoded frame may include parameters such as encoding parameters, peak signal-to-noise ratio, bit rate, block division method, block size of inter-frame blocks, and block size of intra-frame blocks.

[0078] Specifically, the pre-analysis data of the frame to be encoded can be the pre-analysis data obtained by pre-analyzing the frame to be encoded by the pre-analyzer in the encoder. Therefore, the data inside the encoder is used in this process, so the complexity can be effectively reduced.

[0079] That is, the pre-analyzer in the encoder may perform pre-analysis processing on the frame to be encoded to obtain pre-analysis data of the frame to be encoded, and the pre-analysis data of the encoded frame may be obtained in the pre-processing stage when the encoded frame is encoded and then stored. The pre-analysis data may include but is not limited to at least one of the following: texture strength, frame type, intra-frame prediction cost, inter-frame prediction cost, and reference strength.

[0080] When implementing, these pre-analysis data can be the data that the encoder will calculate during the encoding process. When encoding the video, the encoder will set a pre-analysis process, and the pre-analyzer will scale the image to half of the original width and height. First, the variance, that is, the energy, of each 16x16 block of the image is calculated at the original resolution as its texture strength; then, the frame type of each frame is estimated at low resolution through some native algorithms, such as I frame, P frame and B frame; then, intra-frame prediction and inter-frame prediction are performed at low resolution to obtain the prediction residuals during intra-frame prediction and inter-frame prediction, and their SATD values ​​are used as the prediction cost of intra-frame prediction and the prediction cost of inter-frame prediction; then, the motion vector and prediction cost of inter-frame prediction are used to calculate a reference strength of each other at low resolution.

[0081] Step 303: Determine the encoding parameters of the frame to be encoded according to the pre-analysis data of the frame to be encoded, and the pre-analysis data and encoding results of the encoded frame.

[0082] Specifically, the peak signal-to-noise ratio of the frame to be encoded under different encoding parameters can be determined according to the pre-analysis data of the frame to be encoded, as well as the pre-analysis data and encoding results of the encoded frame; and the encoding parameters corresponding to the target peak signal-to-noise ratio are selected as the encoding parameters of the frame to be encoded.

[0083] For example, pre-analysis data of encoded frames, encoding results of encoded frames and pre-analysis data of frames to be encoded may be input into a regression prediction model to obtain peak signal-to-noise ratios of frames to be encoded under different encoding parameters.

[0084] The regression prediction model can be established as follows:

[0085] S1: Acquire sample data, wherein the sample data includes: pre-analysis data of multiple target frames, pre-analysis data and encoding results of encoded frames relative to the target frames, and peak signal-to-noise ratios of the multiple target frames under different encoding parameters;

[0086] S2: taking peak signal-to-noise ratios of multiple target frames under different encoding parameters as prediction objects, taking pre-analysis data of multiple target frames, pre-analysis data of encoded frames relative to the target frames, and encoding results as relevant factors, establishing a mathematical model reflecting the correlation relationship between the prediction objects and the relevant factors;

[0087] S3: Using the established mathematical model as the regression prediction model.

[0088] The target peak signal-to-noise ratio may be preset or selected by the user in real time. For example, after obtaining the peak signal-to-noise ratio of the frame to be encoded under different encoding parameters, the peak signal-to-noise ratio of the frame to be encoded under different encoding parameters may be displayed on a display interface, and then the user's selection operation on the peak signal-to-noise ratio is obtained, and the peak signal-to-noise ratio selected by the user is used as the target peak signal-to-noise ratio; and the encoding parameters corresponding to the target peak signal-to-noise ratio are used as the encoding parameters of the frame to be encoded.

[0089] That is, multiple groups of encoding parameters and peak signal-to-noise ratios are determined through pre-analysis data of encoded frames, encoding results of encoded frames and pre-analysis data of frames to be encoded, and then encoding parameters are selected based on the peak signal-to-noise ratio, so that encoding parameters can be selected according to the set peak signal-to-noise ratio, rather than encoding the video in a constant bit rate manner. In this way, the problem of bandwidth waste caused by excessively high peak signal-to-noise ratio caused by encoding at a constant bit rate is solved, and the technical effect of effectively reducing bandwidth waste and improving video processing efficiency is achieved.

[0090] Based on the above coding parameter determination method, video transmission can be performed according to the following steps:

[0091] Step 1: receiving a video upload request, wherein the video upload request carries a video frame to be transmitted;

[0092] Step 2: In response to the video upload request, determine the encoding parameters, wherein the encoding parameters are determined in the above manner: obtain pre-analysis data of the video frame to be transmitted, and the pre-analysis data and encoding results of the encoded frame; determine the encoding parameters of the video frame to be transmitted according to the pre-analysis data of the video frame to be transmitted, and the pre-analysis data and encoding results of the encoded frame;

[0093] Step 3: Encode the video frame to be transmitted using the determined encoding parameters to obtain a video encoding result;

[0094] Step 4: Transmit the video encoding result.

[0095] For the uploaded video frames, there are generally receiving or display devices. Therefore, the target peak signal-to-noise ratio can also be determined according to the device parameters of the target playback device. That is, the device parameters of the target playback device of the UI can be first obtained, such as the type of display device, the model of the display device, the display parameters, etc., as device parameters to determine a more reasonable target peak signal-to-noise ratio, and then the target peak signal-to-noise ratio is determined according to the device parameters.

[0096] Alternatively, in response to a target peak signal-to-noise ratio setting request, multiple peak signal-to-noise ratios may be displayed on a display interface, a user selection operation on the display interface may be received, and the peak signal-to-noise ratio selected by the user may be used as the target peak signal-to-noise ratio.

[0097] It is worth noting that the above example describes the video frame as the processed object. The same method can also be applied to the processing of audio data. For example, after obtaining a section of audio data to be encoded, the pre-analysis data of the audio to be encoded, as well as the pre-analysis data and the encoding result of the encoded audio data can be obtained, and then the encoding parameters of the audio to be encoded can be determined based on the pre-analysis data of the audio to be encoded, as well as the pre-analysis data and the encoding result of the encoded audio data.

[0098] The method embodiments provided in the above embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 4 1 is a hardware structure block diagram of a computer terminal of a coding parameter determination method according to an embodiment of the present invention. Figure 4 As shown, the computer terminal 10 may include one or more (only one is shown in the figure) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission module 106 for communication functions. It can be understood by those skilled in the art that Figure 4 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 4 More or fewer components as shown, or with Figure 4 Different configurations shown.

[0099] The memory 104 can be used to store software programs and modules of application software, such as program instructions / modules corresponding to the coding parameter determination method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the coding parameter determination method of the above-mentioned application program is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0100] The transmission module 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission module 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission module 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0101] At the software level, the above devices can be Figure 5 As shown, it may include:

[0102] A determination module 501, used to determine a frame to be encoded;

[0103] An acquisition module 502 is used to acquire pre-analysis data of a frame to be encoded, and pre-analysis data and encoding results of an encoded frame;

[0104] The determination module 503 is used to determine the encoding parameters of the frame to be encoded according to the pre-analysis data of the frame to be encoded, and the pre-analysis data and encoding results of the encoded frame.

[0105] In one embodiment, the above-mentioned determination module 503 can specifically determine the peak signal-to-noise ratio of the frame to be encoded under different encoding parameters based on the pre-analysis data of the frame to be encoded, and the pre-analysis data and encoding results of the encoded frame; and select the encoding parameter corresponding to the target peak signal-to-noise ratio as the encoding parameter of the frame to be encoded.

[0106] In one implementation, the acquisition module 502 may specifically perform pre-analysis processing on the frame to be encoded through a pre-analyzer in an encoder to obtain pre-analysis data of the frame to be encoded.

[0107] In one embodiment, the pre-analysis data of the frame to be encoded may include but is not limited to at least one of the following: texture strength, frame type, intra-frame prediction cost, inter-frame prediction cost and reference strength.

[0108] In one implementation, the determination module 503 may specifically input pre-analysis data of encoded frames, encoding results of encoded frames and pre-analysis data of frames to be encoded into a regression prediction model to obtain peak signal-to-noise ratios of the frames to be encoded under different encoding parameters.

[0109] In one implementation, the determination module 503 may be specifically configured to display the peak signal-to-noise ratio of the frame to be encoded under different encoding parameters; obtain a user's selection operation on the peak signal-to-noise ratio; use the peak signal-to-noise ratio selected by the user as a target peak signal-to-noise ratio; and use the encoding parameters corresponding to the target peak signal-to-noise ratio as encoding parameters of the frame to be encoded.

[0110] In one embodiment, the above-mentioned regression prediction model can be established in the following manner: obtain sample data, wherein the sample data includes: pre-analysis data of multiple target frames, pre-analysis data and encoding results of encoded frames relative to the target frames, and peak signal-to-noise ratios of multiple target frames under different encoding parameters; using the peak signal-to-noise ratios of multiple target frames under different encoding parameters as prediction objects, and using the pre-analysis data of multiple target frames, pre-analysis data and encoding results of encoded frames relative to the target frames as relevant factors, establish a mathematical model reflecting the correlation between the prediction objects and the relevant factors; and use the established mathematical model as the regression prediction model.

[0111] In this example, a video transmission device is also provided, which may include:

[0112] A receiving module, configured to receive a video upload request, wherein the video upload request carries a video frame to be transmitted;

[0113] An acquisition module, used to acquire pre-analysis data of a video frame to be transmitted, as well as pre-analysis data and encoding results of an encoded frame;

[0114] A determination module, configured to determine encoding parameters of the video frame to be transmitted according to the pre-analysis data of the video frame to be transmitted, and the pre-analysis data and encoding results of the encoded frame;

[0115] The transmission module is used to perform video encoding on the video frame to be transmitted according to the determined encoding parameters, and transmit the video encoding result.

[0116] In one embodiment, the above-mentioned determination module can specifically determine the peak signal-to-noise ratio of the video frame to be transmitted under different encoding parameters based on the pre-analysis data of the video frame to be transmitted, as well as the pre-analysis data and encoding results of the encoded frame; and select the encoding parameter corresponding to the target peak signal-to-noise ratio as the encoding parameter of the video frame to be transmitted.

[0117] In one embodiment, the video transmission device is further configured to obtain device parameters of a target playback device; and determine the target peak signal-to-noise ratio according to the device parameters.

[0118] In one embodiment, the video transmission device is further configured to display multiple peak signal-to-noise ratios on a display interface in response to a target peak signal-to-noise ratio setting request; receive a user selection operation on the display interface; and use the peak signal-to-noise ratio selected by the user as the target peak signal-to-noise ratio.

[0119] The embodiment of the present application also provides a specific implementation of an electronic device capable of implementing all the steps in the method for determining the coding parameters in the above embodiment, wherein the electronic device specifically includes the following contents: a processor, a memory, a communication interface, and a bus; wherein the processor, the memory, and the communication interface communicate with each other through the bus; the processor is used to call a computer program in the memory, and when the processor executes the computer program, all the steps in the method for determining the coding parameters in the above embodiment are implemented. For example, when the processor executes the computer program, the following steps are implemented:

[0120] Step 1: Determine the frame to be encoded;

[0121] Step 2: Obtain pre-analysis data of the frame to be encoded, as well as pre-analysis data and encoding results of the encoded frame;

[0122] Step 3: Determine the encoding parameters of the frame to be encoded according to the pre-analysis data of the frame to be encoded, and the pre-analysis data and encoding results of the encoded frame.

[0123] From the above description, it can be seen that the embodiment of the present application determines the encoding parameters by the pre-analysis data of the encoded frame, the encoding result of the encoded frame and the pre-analysis data of the frame to be encoded, instead of encoding the video in a constant bit rate manner. In this way, the problem of bandwidth waste caused by excessively high peak signal-to-noise ratio caused by the existing constant bit rate encoding is solved, and the technical effect of effectively reducing bandwidth waste and improving video processing efficiency is achieved.

[0124] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps in the method for determining the encoding parameters in the above embodiments. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, all the steps in the method for determining the encoding parameters in the above embodiments are implemented. For example, when the processor executes the computer program, the following steps are implemented:

[0125] Step 1: Determine the frame to be encoded;

[0126] Step 2: Obtain pre-analysis data of the frame to be encoded, as well as pre-analysis data and encoding results of the encoded frame;

[0127] Step 3: Determine the encoding parameters of the frame to be encoded according to the pre-analysis data of the frame to be encoded, and the pre-analysis data and encoding results of the encoded frame.

[0128] From the above description, it can be seen that the embodiment of the present application determines the encoding parameters by the pre-analysis data of the encoded frame, the encoding result of the encoded frame and the pre-analysis data of the frame to be encoded, instead of encoding the video in a constant bit rate manner. In this way, the problem of bandwidth waste caused by excessively high peak signal-to-noise ratio caused by the existing constant bit rate encoding is solved, and the technical effect of effectively reducing bandwidth waste and improving video processing efficiency is achieved.

[0129] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the hardware + program embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0130] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0131] Although the present application provides method operation steps as described in the embodiments or flowcharts, more or fewer operation steps may be included based on conventional or non-creative labor. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the actual device or client product is executed, it can be executed in the order of the method shown in the embodiments or the drawings or in parallel (for example, in a parallel processor or multi-threaded processing environment).

[0132] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a vehicle-mounted human-computer interaction device, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0133] Although the present specification embodiment provides the method operation steps as described in the embodiment or flow chart, more or less operation steps may be included based on conventional or non-creative means. The order of steps listed in the embodiment is only one way in the order of execution of many steps, and does not represent a unique execution order. When the device or terminal product in practice is executed, it can be executed in sequence or in parallel (such as a parallel processor or a multi-threaded processing environment, or even a distributed data processing environment) according to the method shown in the embodiment or the accompanying drawings. The term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, product or equipment including a series of elements not only includes those elements, but also includes other elements not clearly listed, or also includes elements inherent to such process, method, product or equipment. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or equipment including the elements.

[0134] For the convenience of description, the above devices are described in various modules according to their functions. Of course, when implementing the embodiments of this specification, the functions of each module can be implemented in the same or more software and / or hardware, or the module implementing the same function can be implemented by a combination of multiple sub-modules or sub-units. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0135] Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code, the controller can be made to implement the same function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered as a hardware component, and the devices for implementing various functions included therein can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules for implementing the method and structures within the hardware component.

[0136] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0137] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0138] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0139] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0140] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0141] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0142] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, the embodiments of this specification may take the form of complete hardware embodiments, complete software embodiments or embodiments combining software and hardware. Moreover, the embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0143] The present specification embodiments may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present specification embodiments may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0144] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. In the description of this specification, the description of the reference terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiment of this specification. In this specification, the schematic representation of the above terms does not necessarily target the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, in the absence of contradiction, a person skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.

[0145] The above is only an example of the embodiment of the present specification and is not intended to limit the embodiment of the present specification. For those skilled in the art, the embodiment of the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiment of the present specification shall be included in the scope of the claims of the embodiment of the present specification.

Claims

1. A method for determining a coding parameter, the method comprising: Determine a frame to be encoded; Obtaining pre-analysis data of the frame to be encoded, as well as pre-analysis data and encoding results of the encoded frame; Determining encoding parameters of the frame to be encoded according to the pre-analysis data of the frame to be encoded, and the pre-analysis data and encoding results of the encoded frame; The step of determining the encoding parameters of the frame to be encoded according to the pre-analysis data of the frame to be encoded, and the pre-analysis data and encoding result of the encoded frame, comprises: Determining a peak signal-to-noise ratio of the frame to be encoded under different encoding parameters according to pre-analysis data of the frame to be encoded, and pre-analysis data and encoding results of the encoded frame; Displaying the peak signal-to-noise ratio of the frame to be encoded under different encoding parameters; Get the user's selected operation on the peak signal-to-noise ratio; The peak signal-to-noise ratio selected by the user is used as the target peak signal-to-noise ratio; The encoding parameter corresponding to the target peak signal-to-noise ratio is used as the encoding parameter of the frame to be encoded to control the upper limit of encoding quality.

2. The method according to claim 1, obtaining pre-analysis data of a frame to be encoded, comprising: The pre-analyzer in the encoder performs pre-analysis processing on the frame to be encoded to obtain pre-analysis data of the frame to be encoded.

3. According to the method of claim 2, the pre-analysis data of the frame to be encoded includes at least one of the following: texture strength, frame type, intra-frame prediction cost, inter-frame prediction cost and reference strength.

4. The method according to claim 1, determining the peak signal-to-noise ratio of the frame to be encoded under different encoding parameters according to the pre-analysis data of the frame to be encoded, and the pre-analysis data and encoding result of the encoded frame, comprising: The pre-analysis data of the frame to be encoded, and the pre-analysis data and the encoding result of the encoded frame are input into the regression prediction model to obtain the peak signal-to-noise ratio of the frame to be encoded under different encoding parameters.

5. According to the method of claim 4, the regression prediction model is established in the following manner: Get sample data, where The sample data includes: pre-analysis data of multiple target frames, pre-analysis data and encoding results of encoded frames relative to the target frames, and peak signal-to-noise ratios of the multiple target frames under different encoding parameters; Taking peak signal-to-noise ratios of multiple target frames under different encoding parameters as prediction objects, taking pre-analysis data of multiple target frames, pre-analysis data of encoded frames relative to the target frames and encoding results as relevant factors, establishing a mathematical model reflecting the correlation relationship between the prediction objects and the relevant factors; The established mathematical model is used as the regression prediction model.

6. The method according to any one of claims 1 to 5 is applied in a short video application or a live broadcast application.

7. A video transmission method, comprising: Receiving a video upload request, wherein the video upload request carries a video frame to be transmitted; Obtaining pre-analysis data of the video frame to be transmitted, as well as pre-analysis data and encoding results of the encoded frame; Determining encoding parameters of the video frame to be transmitted according to the pre-analysis data of the video frame to be transmitted, and the pre-analysis data and encoding results of the encoded frame; Performing video encoding on the to-be-transmitted video frame using the determined encoding parameters, and transmitting the video encoding result; The step of determining the encoding parameters of the video frame to be transmitted according to the pre-analysis data of the video frame to be transmitted, and the pre-analysis data and encoding result of the encoded frame, comprises: Determine the peak signal-to-noise ratio of the video frame to be transmitted under different encoding parameters according to the pre-analysis data of the video frame to be transmitted, and the pre-analysis data and encoding result of the encoded frame; Display the peak signal-to-noise ratio of the frame to be encoded under different encoding parameters; Get the user's selected operation on the peak signal-to-noise ratio; The peak signal-to-noise ratio selected by the user is used as the target peak signal-to-noise ratio; The encoding parameter corresponding to the target peak signal-to-noise ratio is used as the encoding parameter of the frame to be encoded to control the upper limit of encoding quality.

8. The method according to claim 7, further comprising: Get the device parameters of the target playback device; The target peak signal-to-noise ratio is determined according to the device parameters.

9. A coding parameter determination device, comprising: A determination module, used for determining a frame to be encoded; An acquisition module, used to acquire pre-analysis data of a frame to be encoded, as well as pre-analysis data and encoding results of an encoded frame; A determination module, configured to determine the encoding parameters of the frame to be encoded according to the pre-analysis data of the frame to be encoded, and the pre-analysis data and encoding result of the encoded frame; The step of determining the encoding parameters of the frame to be encoded according to the pre-analysis data of the frame to be encoded, and the pre-analysis data and encoding result of the encoded frame, comprises: Determining a peak signal-to-noise ratio of the frame to be encoded under different encoding parameters according to pre-analysis data of the frame to be encoded, and pre-analysis data and encoding results of the encoded frame; Displaying the peak signal-to-noise ratio of the frame to be encoded under different encoding parameters; Get the user's selected operation on the peak signal-to-noise ratio; The peak signal-to-noise ratio selected by the user is used as the target peak signal-to-noise ratio; The encoding parameter corresponding to the target peak signal-to-noise ratio is used as the encoding parameter of the frame to be encoded to control the upper limit of encoding quality.

10. A video transmission device, comprising: A receiving module, configured to receive a video upload request, wherein the video upload request carries a video frame to be transmitted; An acquisition module, used to acquire pre-analysis data of a video frame to be transmitted, as well as pre-analysis data and encoding results of an encoded frame; A determination module, configured to determine encoding parameters of the video frame to be transmitted according to the pre-analysis data of the video frame to be transmitted, and the pre-analysis data and encoding results of the encoded frame; A transmission module, used for performing video encoding on the video frame to be transmitted according to the determined encoding parameters, and transmitting the video encoding result; The step of determining the encoding parameters of the video frame to be transmitted according to the pre-analysis data of the video frame to be transmitted, and the pre-analysis data and encoding result of the encoded frame, comprises: Determine the peak signal-to-noise ratio of the to-be-transmitted video frame under different encoding parameters according to the pre-analysis data of the to-be-encoded frame, and the pre-analysis data and encoding result of the encoded frame; Displaying the peak signal-to-noise ratio of the video frame to be transmitted under different encoding parameters; Get the user's selected operation on the peak signal-to-noise ratio; The peak signal-to-noise ratio selected by the user is used as the target peak signal-to-noise ratio; The encoding parameters corresponding to the target peak signal-to-noise ratio are used as encoding parameters of the video frame to be transmitted, so as to control the upper limit of encoding quality.

11. A service device, comprising a processor and a memory for storing processor executable instructions, wherein when the processor executes the instructions: Determine a frame to be encoded; Obtaining pre-analysis data of the frame to be encoded, as well as pre-analysis data and encoding results of the encoded frame; Determining encoding parameters of the frame to be encoded according to the pre-analysis data of the frame to be encoded, and the pre-analysis data and encoding results of the encoded frame; in, Determining the encoding parameters of the frame to be encoded according to the pre-analysis data of the frame to be encoded, and the pre-analysis data and encoding results of the encoded frame, including: Determining a peak signal-to-noise ratio of the frame to be encoded under different encoding parameters according to pre-analysis data of the frame to be encoded, and pre-analysis data and encoding results of the encoded frame; Displaying the peak signal-to-noise ratio of the frame to be encoded under different encoding parameters; Get the user's selected operation on the peak signal-to-noise ratio; The peak signal-to-noise ratio selected by the user is used as the target peak signal-to-noise ratio; The encoding parameter corresponding to the target peak signal-to-noise ratio is used as the encoding parameter of the frame to be encoded to control the upper limit of encoding quality.

12. A terminal device, comprising: A processor is used to receive a video upload request, wherein the video upload request carries a video frame to be transmitted; obtain pre-analysis data of the video frame to be transmitted, and pre-analysis data and encoding results of the encoded frame; determine encoding parameters of the video frame to be transmitted according to the pre-analysis data of the video frame to be transmitted, and pre-analysis data and encoding results of the encoded frame; perform video encoding on the video frame to be transmitted according to the determined encoding parameters; A communication module, used for transmitting the video encoding result; The step of determining the encoding parameters of the video frame to be transmitted according to the pre-analysis data of the video frame to be transmitted, and the pre-analysis data and encoding result of the encoded frame, comprises: Determine the peak signal-to-noise ratio of the to-be-transmitted video frame under different encoding parameters according to the pre-analysis data of the to-be-encoded frame, and the pre-analysis data and encoding result of the encoded frame; Displaying the peak signal-to-noise ratio of the video frame to be transmitted under different encoding parameters; Get the user's selected operation on the peak signal-to-noise ratio; The peak signal-to-noise ratio selected by the user is used as the target peak signal-to-noise ratio; The encoding parameters corresponding to the target peak signal-to-noise ratio are used as encoding parameters of the video frame to be transmitted, so as to control the upper limit of encoding quality.

13. A computer-readable storage medium having computer instructions stored thereon, wherein the instructions, when executed, implement the steps of the following method: Determine a frame to be encoded; Obtaining pre-analysis data of the frame to be encoded, as well as pre-analysis data and encoding results of the encoded frame; Determining encoding parameters of the frame to be encoded according to the pre-analysis data of the frame to be encoded, and the pre-analysis data and encoding results of the encoded frame; in, Determining the encoding parameters of the frame to be encoded according to the pre-analysis data of the frame to be encoded, and the pre-analysis data and encoding results of the encoded frame, including: Determining a peak signal-to-noise ratio of the frame to be encoded under different encoding parameters according to pre-analysis data of the frame to be encoded, and pre-analysis data and encoding results of the encoded frame; Displaying the peak signal-to-noise ratio of the frame to be encoded under different encoding parameters; Get the user's selected operation on the peak signal-to-noise ratio; The peak signal-to-noise ratio selected by the user is used as the target peak signal-to-noise ratio; The encoding parameter corresponding to the target peak signal-to-noise ratio is used as the encoding parameter of the frame to be encoded to control the upper limit of encoding quality.

14. A computer-readable storage medium having computer instructions stored thereon, wherein the instructions, when executed, implement the steps of the following method: Receive a video upload request, where: The video upload request carries the video frame to be transmitted; Obtaining pre-analysis data of the video frame to be transmitted, as well as pre-analysis data and encoding results of the encoded frame; Determining encoding parameters of the video frame to be transmitted according to the pre-analysis data of the video frame to be transmitted, and the pre-analysis data and encoding results of the encoded frame; Performing video encoding on the to-be-transmitted video frame using the determined encoding parameters, and transmitting the video encoding result; The step of determining the encoding parameters of the video frame to be transmitted according to the pre-analysis data of the video frame to be transmitted, and the pre-analysis data and encoding result of the encoded frame, comprises: Determine the peak signal-to-noise ratio of the to-be-transmitted video frame under different encoding parameters according to the pre-analysis data of the to-be-encoded frame, and the pre-analysis data and encoding result of the encoded frame; Displaying the peak signal-to-noise ratio of the video frame to be transmitted under different encoding parameters; Get the user's selected operation on the peak signal-to-noise ratio; The peak signal-to-noise ratio selected by the user is used as the target peak signal-to-noise ratio; The encoding parameters corresponding to the target peak signal-to-noise ratio are used as encoding parameters of the video frame to be transmitted, so as to control the upper limit of encoding quality.