A video coding configuration method, system, device and storage medium

By constructing a functional relationship of the total video viewing quality parameters and determining the target resolution and code rate, the problem of subjectivity in the setting of traditional video encoding configuration tables is solved, and the accurate configuration of video encoding and user experience is achieved.

CN114554208BActive Publication Date: 2024-12-20BIGO TECH PTE LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210044704.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-14
Publication Date
2024-12-20
Estimated Expiration
2042-01-14

AI Technical Summary

Technical Problem

The settings of traditional video encoding configuration tables are highly subjective, and it is difficult to accurately meet users' video quality and fluency needs, affecting users' video viewing experience.

Method used

By collecting mapping information of different code rates and total video viewing time and mapping information of code rates and video quality parameters at different resolutions, the relationship between the total quality parameter function of the user's viewing videos is constructed, the target resolution and code rate are determined, and video encoding is performed Configuration.

Benefits of technology

It realizes the accurate configuration of video encoding, provides better video quality, and optimizes the user's video viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114554208B_ABST
    Figure CN114554208B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a method, system, device and storage medium for configuring video encoding. The technical solution provided by the embodiments of the present application collects basic data, including first mapping information of different bit rates and corresponding total video viewing time, and second mapping information of different bit rates and corresponding video quality parameters under different resolutions; constructs a functional relationship between the total quality parameter of all users watching videos and the first mapping information and the second mapping information; traverses the basic data based on the functional relationship to determine the target resolution and the corresponding target bit rate when the total quality parameter takes the maximum value; and performs video encoding configuration based on the target resolution and the corresponding target bit rate. The above technical means can be used to accurately and reasonably configure video encoding, provide better video quality, and thus optimize the user's video viewing experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of video coding technology, and in particular to a video coding configuration method, system, device and storage medium. Background Art

[0002] Streaming media technology refers to the technology that compresses a series of media data and transmits them in segments in the form of streams over the network to achieve real-time transmission of audio and video over the network. When compressing data, in order to adapt to the network bandwidth of different users, the original video needs to be encoded before it can be transmitted to the user over the network. At present, in order to meet the requirements of different users for image quality and smoothness and improve the user's video viewing experience, the operator will set up a reasonable encoding configuration table that can meet the needs of most users, and encode the original video according to the encoding configuration table to meet the video viewing needs of different users.

[0003] However, most traditional encoding configuration tables are manually set based on operational experience, and the setting of encoding configuration parameters is highly subjective, making it difficult to perform video encoding based on reasonable and accurate encoding configuration parameters. Videos encoded in this way are difficult to achieve ideal video quality requirements, affecting the user's video viewing experience. Summary of the invention

[0004] The embodiments of the present application provide a video coding configuration method, system, device and storage medium, which can accurately configure the bit rate and resolution of video coding and solve the error problem of video coding configuration.

[0005] In a first aspect, an embodiment of the present application provides a video encoding configuration method, including:

[0006] Collect basic data, the basic data including first mapping information of different bit rates and corresponding total video viewing time, and second mapping information of different bit rates and corresponding video quality parameters under different resolutions;

[0007] Constructing a functional relationship between a total quality parameter of videos watched by all users and the first mapping information and the second mapping information;

[0008] Based on the functional relationship, the basic data is traversed to determine the target resolution and the corresponding target bit rate when the total quality parameter value is maximized;

[0009] Configure video encoding based on the target resolution and the corresponding target bit rate.

[0010] In a second aspect, an embodiment of the present application provides a video encoding configuration system, including:

[0011] A collection module, used to collect basic data, the basic data including first mapping information of different bit rates and corresponding total video viewing time, and second mapping information of different bit rates and corresponding video quality parameters under different resolutions;

[0012] A construction module, used to construct a functional relationship between the total quality parameter of all videos watched by users and the first mapping information and the second mapping information;

[0013] A traversal module, used to traverse the basic data based on the functional relationship to determine the target resolution and the corresponding target bit rate when the total quality parameter takes the maximum value;

[0014] The configuration module is used to configure video encoding based on the target resolution and the corresponding target bit rate.

[0015] In a third aspect, an embodiment of the present application provides a video encoding configuration device, including:

[0016] memory and one or more processors;

[0017] The memory is used to store one or more programs;

[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement the video encoding configuration method as described in the first aspect.

[0019] In a fourth aspect, an embodiment of the present application provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the video encoding configuration method as described in the first aspect.

[0020] The embodiment of the present application collects basic data, including first mapping information of different bit rates and corresponding total video viewing time, and second mapping information of different bit rates and corresponding video quality parameters at different resolutions; constructs a functional relationship between the total quality parameter of all users' videos watched and the first mapping information and the second mapping information; traverses the basic data based on the functional relationship to determine the target resolution and the corresponding target bit rate when the total quality parameter takes the maximum value; and configures video encoding based on the target resolution and the corresponding target bit rate. The above technical means are used to optimize the target resolution and the corresponding target bit rate by traversing the basic data, so that the video encoding configuration can be performed accurately and reasonably, providing better video quality, thereby optimizing the user's video viewing experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a flow chart of a video encoding configuration method provided by an embodiment of the present application;

[0022] Figure 2is a basic data collection flow chart in an embodiment of the present application;

[0023] Figure 3 is a flow chart for determining target resolution and target bit rate at different bit rate levels in an embodiment of the present application;

[0024] Figure 4 is a flow chart for determining target resolution and target bit rate at different resolution levels in an embodiment of the present application;

[0025] Figure 5 is a video encoding configuration flow chart in an embodiment of the present application;

[0026] Figure 6 is a video encoding flow chart in an embodiment of the present application;

[0027] Figure 7 It is a structural diagram of a video encoding configuration system provided by an embodiment of the present application;

[0028] Figure 8 It is a structural diagram of a video encoding configuration device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

[0030] The video encoding configuration method provided in this application aims to construct a functional relationship of the user's total viewing quality parameters by collecting basic data. By traversing the collected basic data based on the functional relationship, the resolution and bit rate values ​​corresponding to the maximum value of the total quality parameter can be determined. The video encoding configuration is performed according to the obtained resolution and bit rate, which can ensure that the total quality parameters of the user's viewing video reach a relatively optimal state, thereby optimizing the user's video viewing experience.

[0031] With the rapid development of smart devices such as computers and mobile phones and their related technologies, Internet applications have gradually penetrated into all aspects of life and have effectively changed people's lifestyles. The improvement of hardware computing power and the innovation of streaming media technology have also driven the development of the video and live broadcast industries. People can watch clear and smooth videos in real time on various terminals, which greatly enriches our spiritual life. Streaming media technology refers to a technology that compresses a series of media data and transmits them in segments in the form of streams on the network to achieve real-time transmission of audio and video on the network for viewing. In streaming media technology, data compression is an indispensable part. An uncompressed 720P video in YUV420 format with a frame rate of 24 has a data volume of up to 200M per second, which is no longer able to meet the transmission requirements with the current civilian network bandwidth. In order to adapt to the user's network bandwidth, the original video needs to be encoded before it can be transmitted to the user through the network.

[0032] On the other hand, in the live broadcast scenario, the video bit rate fluctuation is relatively sensitive. Instantaneous and large bit rate fluctuations may cause the live broadcast to freeze, which brings a negative experience to users. The number of live broadcast users is huge, and different users' requirements for video clarity and smoothness will also be affected by various factors such as personal aesthetics and network conditions in different regions. Therefore, a single video encoding method cannot meet the requirements of most users. It is necessary to design a reasonable encoding configuration table that can meet the needs of most users. Based on a reasonable encoding configuration table, users can choose the encoding configuration that they can accept to watch the corresponding encoded video, which meets the requirements of different users for picture quality and smoothness, and improves the user's video viewing experience.

[0033] Since most traditional encoding configuration tables are manually set based on operational experience, the setting of encoding configuration parameters is relatively subjective, making it difficult to perform video encoding based on reasonable and accurate encoding configuration parameters. Based on this, a video encoding configuration method of an embodiment of the present application is provided to solve the error problem of existing video encoding configuration.

[0034] Example:

[0035] Figure 1 A flowchart of a video coding configuration method provided in an embodiment of the present application is given. The video coding configuration method provided in this embodiment can be executed by a video coding configuration device, which can be implemented by software and / or hardware. The video coding configuration device can be composed of two or more physical entities, or can be composed of one physical entity. Generally speaking, the video coding configuration device can be a processing device such as a video platform or a video coding server of a live broadcast platform.

[0036] The following description is made by taking the video coding configuration device as an example of the subject for executing the video coding configuration method. Figure 1 , the video encoding configuration method specifically includes:

[0037] S110, collecting basic data, where the basic data includes first mapping information between different bit rates and corresponding total video viewing duration, and second mapping information between different bit rates and corresponding video quality parameters at different resolutions.

[0038] The embodiment of the present application provides a video encoding configuration design scheme based on maximizing the overall viewing quality of users when configuring video encoding. By combining the function curves of different bit rates and the total viewing time of the corresponding videos, and the function curves of different bit rates and corresponding video quality parameters under different resolutions, a coding configuration table containing two parameters, video resolution and bit rate, is calculated to maximize the objective quality of videos viewed by all users. This is used to transcode the original videos in the business, thereby meeting the viewing needs of most users and improving the user viewing experience.

[0039] Before calculating the encoding configuration table, it is necessary to collect relevant basic data, including the function curves of the above-mentioned different bit rates and the corresponding total video viewing time, and the function curves of different bit rates and corresponding video quality parameters under different resolutions. Among them, the function curves of different bit rates and the corresponding total video viewing time are defined as the first mapping information, and the function curves of different bit rates and corresponding video quality parameters under different resolutions are defined as the second mapping information. It should be noted that the above-mentioned mapping information can be expressed in the form of function curves, formulas, etc. The embodiments of the present application do not impose fixed restrictions on the specific expression of the mapping information, which will not be elaborated here.

[0040] Furthermore, when collecting data, refer to Figure 2 , respectively obtain the first mapping information and the second mapping information. Among them. For the first mapping information, by obtaining the user's historical viewing data in the corresponding business scenario (such as live video, video output and other scenarios). The historical viewing data contains the time information of different users watching videos with different bit rates. Based on the historical viewing data, determine the total viewing time of all users for videos with different bit rates within a set time period, determine a total video viewing time for a bit rate value, and then based on the determined total video viewing time at different bit rates, the first mapping information can be constructed accordingly.

[0041] The total video viewing time can be accurate to seconds, and the bit rate can be accurate to 100Kbps. The time and bit rate accuracy can be adjusted according to the actual business characteristics. For example, when designing the encoding configuration table, if the bit rate needs to be accurate to 10Kbps, then when collecting data before, the bit rate granularity can be changed to 10Kbps. In addition, since the bit rate changes when users watch different videos, the bit rate is used as the horizontal axis and the vertical axis is the total video viewing time of all users at the bit rate, so as to construct the function curve of the first mapping information.

[0042] On the other hand, for the second mapping information, a batch of videos that are associated with the business scenarios when configuring the subsequent video encoding are first selected. Preferably, videos covering various different business scenarios can be selected to ensure that the subsequent encoding configuration can adapt to different business scenarios. Then, the obtained videos are encoded according to different resolutions and different bit rates to determine the video quality parameters of the encoded videos.

[0043] Optionally, a bit rate interval of [100Kbps, 3000Kbps] is selected, and a bit rate step of 100Kbps is used to perform CBR (constant bit rate) encoding at different resolutions multiple times. The resolution during encoding cannot be greater than the original resolution of the video. For example, a video with a resolution of 720P can be encoded with a resolution of 720P / 540P / 480P / 360P. The specific encoding resolution can be selected and adjusted according to the needs of the actual business scenario. After encoding this batch of videos, the objective quality of each video, that is, the video quality parameter, can be calculated. The video quality parameter can be determined using evaluation methods such as PSNR (peak signal-to-noise ratio), SSIM (structural similarity), and VMAF (video multi-method evaluation fusion). The embodiment of the present application does not impose fixed restrictions on the specific video quality parameter evaluation method, and will not be described in detail here. In this way, based on the video quality parameters corresponding to different resolutions and different bit rates, the function curve of the second mapping information can be constructed. It should be noted that the second mapping information constructs a function curve corresponding to each resolution gear, in which the bit rate is the horizontal coordinate and the vertical coordinate is the video quality parameter at the bit rate.

[0044] S120: Construct a functional relationship between the total quality parameter of videos watched by all users and the first mapping information and the second mapping information.

[0045] Furthermore, based on the above-mentioned first mapping information and the second mapping information, a total quality parameter of videos watched by all users is constructed as a function of the above-mentioned mapping information. The embodiment of the present application defines the sum of the video quality parameters of all users watching videos of different resolutions, different bit rates, and different lengths as a total quality parameter, and the total quality parameter reflects the overall situation of all users watching videos. It can be understood that the higher the total quality parameter, the higher the quality parameter of the global user watching the video, and the better the viewing experience obtained. Subsequently, the target resolution and target bit rate that maximize the total quality parameter are found based on the functional relationship, which can be used for video encoding configuration, providing a suitable and accurate video encoding configuration effect, and optimizing the user viewing experience.

[0046] It is assumed that different bit rates in the first mapping information and the total viewing time of the corresponding video satisfy the functional relationship:

[0047] watch_time = f(x)

[0048] Among them, watch_time represents the total viewing time of the video at the corresponding bit rate, x represents the bit rate of the video, x∈(0,+∞).

[0049] It is also assumed that in the first mapping information, under different resolutions, different bit rates and video quality parameters satisfy the functional relationship:

[0050] quality = g(x)

[0051] Where quality represents the video quality parameter at the corresponding resolution and bit rate, x represents the bit rate of the video, x∈(0,+∞).

[0052] Then given a specific bit rate b Kbps, at this bit rate, the total quality parameter of all users watching the video at a set time can be expressed as:

[0053] total_quality b =watch_time b *quality b =f(b)*g(b)

[0054] Where total_quality represents the total quality parameter, f(b) represents the total viewing time of the user when the video bit rate is b Kbps; g(b) represents the video quality parameter when the video bit rate is b Kbps.

[0055] Then for all possible video bitrate values, the total quality parameter of all users watching the video as a whole can be expressed as:

[0056]

[0057] In actual applications, since the basic data cannot obtain the continuous bit rate and the total viewing time of users, as well as the function of the bit rate and video quality parameters, but based on the basic data, the discrete bit rate and the total viewing time of users, as well as the function of the bit rate and video quality parameters can be obtained. Then the above functional relationship formula can be expressed as:

[0058]

[0059] Wherein, total_quality represents the total quality parameter, x represents the bit rate, and the value range is [n, m], f(x) represents the first mapping information, and g(x) represents the second mapping information.

[0060] In the embodiment of the present application, the bit rate value interval is set to [100 Kbps, 3000 Kbps], then the above functional relationship formula can be degenerated into:

[0061]

[0062] Where x represents the video bit rate, x∈[100,3000], which is an integer multiple of 100 and is expressed in Kbps.

[0063] S130 , traversing basic data based on the functional relationship, and determining a target resolution and a corresponding target bit rate when the total quality parameter takes a maximum value.

[0064] Based on the above functional relationship formula, by traversing the pre-collected basic data and substituting different first mapping information and second mapping information into the functional relationship formula, the values ​​of resolution and bit rate in the first mapping information and the second mapping information corresponding to the maximum value of the total quality parameter can be determined. The resolution determined at this time is defined as the target resolution, and the corresponding bit rate is defined as the target bit rate for subsequent video encoding configuration.

[0065] Specifically, in order to facilitate the subsequent video encoding configuration, different bit rate levels are pre-set, and then the bit rate value and resolution value at each bit rate level are determined by traversing the above functional relationship when the total quality parameter takes the maximum value. In this way, an encoding configuration table of different bit rate levels is constructed, which facilitates encoding configuration based on the corresponding level during video encoding and improves the efficiency of video encoding configuration.

[0066] like Figure 3 As shown in FIG. 1 , the target resolution and target bit rate determination process at different bit rate levels includes:

[0067] S1301, transforming a function relationship according to preset bit rate gear quantity information and bit rate value interval;

[0068] S1302: traverse the basic data based on the transformed functional relationship to determine the target resolution and the corresponding target bit rate when the total quality parameter takes the maximum value under the corresponding bit rate level.

[0069] It can be understood that according to the number of bit rate levels actually required, the corresponding unknown parameters of the bit rate value are constructed, and then substituted into the function relationship to obtain the corresponding decomposition formula. By traversing the basic data, the bit rate value and resolution value under each bit rate level can be determined when the total quality parameter takes the maximum value.

[0070] In order to simplify the model, it is assumed that users will take conservative actions to maintain good video fluency when watching videos. That is, when the bit rate of the video being watched by the user is between the encoding bit rates of two gears in the encoding configuration table, the gear corresponding to the lower bit rate will be selected for viewing; and when the bit rate of the video being watched by the user is lower than the encoding bit rate corresponding to the lowest gear in the encoding configuration table, the user can only choose the lowest gear video for viewing.

[0071] If the lowest gear in the design coding configuration table corresponds to a code rate of b low Kbps, the highest bit rate corresponds to b high Kbps, and satisfy the relationship 100≤b low <b high ≤3000, that is, the bit rate value interval [n,m] is [100Kbps, 3000Kbps], and the value granularity is 100. Then the total quality parameter of the video watched by users in the future will become:

[0072]

[0073] Optionally, the set bit rate gear includes a preset first gear and a second gear, and the bit rate of the second gear is higher than that of the first gear; when only two different gears are set in the encoding configuration table, the bit rate corresponding to the lowest gear is b low Kbps, the highest bit rate corresponds to b high Kbps, then the total quality parameter for future users to watch videos is:

[0074]

[0075] After combining the first two terms on the right side of the equal sign,

[0076] Correspondingly, the formula of the functional relationship can be transformed into:

[0077]

[0078] Among them, b low Indicates the bit rate of the first gear, b highIndicates the bit rate of the second gear. The bit rate value range is [100,3000], and the unit is Kbps.

[0079] Furthermore, in order to design a two-level video encoding configuration table that maximizes the overall viewing quality of the user, it is only necessary to find the lowest bit rate and the highest bit rate corresponding to maximizing the above formula, that is:

[0080]

[0081] It can be understood that f(x) and g(x) correspond to the above-mentioned first mapping information and second mapping information respectively. Since the basic data are all discrete point pairs, there is no need to use mathematical methods to find the target parameter corresponding to the maximum value of the total quality parameter in the above formula. It is only necessary to traverse all possible situations of the basic data to find the corresponding bit rate and resolution of the two-level encoding configuration table when the user's overall viewing quality is the maximum (that is, when the total quality parameter is the maximum). Similarly, the same method can be used to design three-level, four-level encoding configuration tables or encoding configuration tables with different resolutions, but as the types of levels and resolutions increase, the amount of data traversed will increase geometrically. In practical applications, in order to facilitate video encoding configuration, a smaller number of levels can be set to keep the amount of calculation within a controllable and acceptable range. In this way, the calculation of each target resolution and corresponding bit rate of the encoding configuration is completed.

[0082] Optionally, in the process of determining the target resolution and the target bit rate, the target information may be calculated respectively for different preset resolution levels. Figure 4 , the target resolution and target bit rate determination process at different resolution levels includes:

[0083] S1303, traversing basic data in combination with a preset resolution level and a corresponding function relationship;

[0084] S1304: Determine a target bit rate when the total quality parameter takes a maximum value at a corresponding resolution level, and use the resolution level as the corresponding target resolution.

[0085] It can be understood that the above functional relationship can be uniformly constructed based on all resolution levels, or can be constructed separately based on different resolution levels. It's just that the video quality parameters g(x) superimposed in this way are different. When determining the target resolution and target bit rate in combination with the preset resolution level and the corresponding functional relationship, the above functional relationship is also referred to, and the target bit rate when the total quality parameter is maximized under the fixed resolution level is determined by traversing the basic data. At this time, the second mapping information g(x) used to calculate the total quality parameter should be the video quality parameter under the resolution level. For the target resolution, the corresponding resolution is used for value taking. For example, if the current resolution level is 720P, 720P is used as the target resolution. In this way, the target resolution and the corresponding target bit rate are determined.

[0086] S140: Perform video encoding configuration based on the target resolution and the corresponding target bit rate.

[0087] Finally, based on the calculated target resolution and target bit rate, when configuring video encoding, Figure 5 As shown, the video encoding process includes:

[0088] S1401, constructing a coding configuration table based on a target resolution and a corresponding target bit rate;

[0089] S1402: When performing video encoding configuration, query the encoding configuration table based on the original resolution of the current video, and select the corresponding target bit rate to transcode the current video.

[0090] It is understandable that the encoding configuration table contains different bit rates and corresponding resolution information. According to the original video resolution, the corresponding target bit rate can be found in the encoding configuration table, and then the bit rate is used for video encoding, so that the image quality of the final output video reaches the relatively optimal level, optimizing the video viewing experience of each user.

[0091] In addition, the embodiment of the present application also determines the gear information selected by the user end, and selects the corresponding target resolution and target bit rate based on the gear information to perform video encoding configuration on the user end, and the gear information includes resolution gear and bit rate gear. The user end video playback application will pre-set the gear information mapped to the bit rate and resolution of different gears in the encoding configuration table, so that the user can choose to meet their own needs, and the playback quality reaches the relatively optimal target resolution and target bit rate.

[0092] For example, refer to Figure 6In the embodiment of the present application, basic data is first collected when performing video encoding. The distribution of the bit rates of videos watched by users over a period of time for related business videos is collected. The horizontal axis is the video bit rate, and the vertical axis is the total length of time that the user watches the video at this bit rate during this period. A user viewing distribution curve (i.e., the first mapping information) is drawn to characterize the network status and preferences of the user during this period. In addition, by collecting a batch of videos that can represent actual business scenarios, multiple encodings are performed according to different resolutions and bit rates, and video quality parameters are calculated. With the bit rate as the horizontal axis and the video quality parameter as the vertical axis, different objective quality curves (i.e., the second mapping information) are drawn for different resolutions.

[0093] Then, combining the user viewing distribution curve and the objective quality curves of different resolutions, according to the number of different gears required in the actual business scenario, the encoding configuration table that maximizes the total quality parameters of the user's viewing video is calculated. The encoding configuration table mainly includes the encoding resolution information and encoding bit rate information of the video.

[0094] Finally, according to the obtained encoding configuration table, the video in the business scenario is encoded to obtain videos of different gears. In this way, users can choose the appropriate gear to watch according to their needs. By setting the video encoding configuration table that maximizes the overall viewing quality of users, combined with the bit rate and duration distribution of the videos watched by users and the objective quality curve of the video, the encoding configuration table that maximizes the quality of the videos watched by users is calculated, and the source video is transcoded by gear, thereby meeting the viewing needs of most users.

[0095] In the above, by collecting basic data, the basic data includes the first mapping information of different bit rates and the corresponding total video viewing time, and the second mapping information of different bit rates and corresponding video quality parameters under different resolutions; constructing the functional relationship between the total quality parameter of all users watching videos and the first mapping information and the second mapping information; traversing the basic data based on the functional relationship, determining the target resolution and the corresponding target bit rate when the total quality parameter takes the maximum value; and configuring the video encoding based on the target resolution and the corresponding target bit rate. By adopting the above technical means, the target resolution and the corresponding target bit rate are optimized by traversing the basic data, so that the video encoding configuration can be accurately and reasonably performed, providing better video quality, and thus optimizing the user's video viewing experience.

[0096] Based on the above embodiments, Figure 7 A schematic diagram of the structure of a video encoding configuration system provided by this application. Figure 7 The video encoding configuration system provided in this embodiment specifically includes: a collection module 21, a construction module 22, a traversal module 23 and a configuration module 24.

[0097] The collection module 21 is used to collect basic data, including first mapping information of different bit rates and corresponding total video viewing time, and second mapping information of different bit rates and corresponding video quality parameters under different resolutions;

[0098] The construction module 22 is used to construct a functional relationship between the total quality parameter of videos watched by all users and the first mapping information and the second mapping information;

[0099] The traversal module 23 is used to traverse the basic data based on the functional relationship to determine the target resolution and the corresponding target bit rate when the total quality parameter takes the maximum value;

[0100] The configuration module 24 is used to perform video encoding configuration based on the target resolution and the corresponding target bit rate.

[0101] Among them, the traversal module 23 is specifically used to transform the functional relationship according to the preset bit rate gear number information and the bit rate value interval; traverse the basic data based on the transformed functional relationship to determine the target resolution and the corresponding target bit rate when the total quality parameter takes the maximum value under the corresponding bit rate gear.

[0102] The formula for the functional relationship is:

[0103]

[0104] Wherein, total_quality represents the total quality parameter, x represents the bit rate, and the value range is [n, m], f(x) represents the first mapping information, and g(x) represents the second mapping information.

[0105] The traversal module 23 is specifically used to traverse the basic data in combination with the preset resolution level and the corresponding functional relationship; determine the target bit rate when the total quality parameter takes the maximum value under the corresponding resolution level, and use the resolution level as the corresponding target resolution.

[0106] The bit rate level includes a preset first level and a preset second level, and the bit rate of the second level is higher than that of the first level.

[0107] Correspondingly, the formula of the transformed functional relationship is:

[0108]

[0109] Among them, b low Indicates the bit rate of the first gear, b high Indicates the bit rate of the second gear. The bit rate value range is [n,m], the unit is Kbps, and the value granularity is c.

[0110] In addition, the configuration module 24 is specifically used to determine the gear information selected by the user end, and select the corresponding target resolution and target bit rate based on the gear information to perform video encoding configuration on the user end, where the gear information includes the resolution gear and the bit rate gear;

[0111] An encoding configuration table is constructed based on the target resolution and the corresponding target bit rate; when performing video encoding configuration, the encoding configuration table is queried based on the original resolution of the current video, and the corresponding target bit rate is selected to transcode the current video.

[0112] In the above, by collecting basic data, the basic data includes the first mapping information of different bit rates and the corresponding total video viewing time, and the second mapping information of different bit rates and corresponding video quality parameters under different resolutions; constructing the functional relationship between the total quality parameter of all users watching videos and the first mapping information and the second mapping information; traversing the basic data based on the functional relationship, determining the target resolution and the corresponding target bit rate when the total quality parameter takes the maximum value; and configuring the video encoding based on the target resolution and the corresponding target bit rate. By adopting the above technical means, the target resolution and the corresponding target bit rate are optimized by traversing the basic data, so that the video encoding configuration can be accurately and reasonably performed, providing better video quality, and thus optimizing the user's video viewing experience.

[0113] The video coding configuration system provided in the embodiment of the present application can be used to execute the video coding configuration method provided in the above embodiment, and has corresponding functions and beneficial effects.

[0114] Based on the above practical example, the embodiment of the present application also provides a video encoding configuration device, referring to Figure 8 , the video coding configuration device includes: a processor 31, a memory 32, a communication module 33, an input device 34 and an output device 35. The memory 32, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the video coding configuration method described in any embodiment of the present application (for example, the collection module, construction module, traversal module and configuration module in the video coding configuration system). The communication module 33 is used for data transmission. The processor 31 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory, that is, realizes the above-mentioned video coding configuration method. The input device 34 can be used to receive input digital or character information, and generate key signal input related to the user settings and function control of the device. The output device 35 may include a display device such as a display screen. The above-mentioned video coding configuration device can be used to execute the video coding configuration method provided in the above-mentioned embodiment, and has corresponding functions and beneficial effects.

[0115] On the basis of the above embodiments, the embodiments of the present application further provide a storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute a video coding configuration method when executed by a computer processor, and the storage medium may be any of various types of memory devices or storage devices. Of course, the storage medium containing computer executable instructions provided in the embodiments of the present application, the computer executable instructions of which are not limited to the video coding configuration method described above, may also execute related operations in the video coding configuration method provided in any embodiment of the present application.

[0116] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.

Claims

1. A video coding configuration method, characterized in that: include: Collect basic data, where the basic data includes first mapping information between different bit rates and corresponding total video viewing duration, and second mapping information between different bit rates and corresponding video quality parameters at different resolutions; A functional relationship between the total quality parameter of videos watched by all users and the first mapping information and the second mapping information is constructed; the formula of the functional relationship is: Wherein, total_quality represents the total quality parameter, x represents the bit rate, and the value range is [n, m], f(x) represents the first mapping information, and g(x) represents the second mapping information; Traversing the basic data based on the functional relationship, determining a target resolution and a corresponding target bit rate when the total quality parameter takes a maximum value; Video encoding configuration is performed based on the target resolution and the corresponding target bit rate.

2. The video encoding configuration method according to claim 1, characterized in that: The traversing the basic data based on the functional relationship to determine the target resolution and the corresponding target bit rate when the total quality parameter takes the maximum value includes: Transforming the functional relationship according to the preset bit rate gear quantity information and bit rate value interval; The basic data is traversed based on the transformed functional relationship to determine a target resolution and a corresponding target bit rate when the total quality parameter takes a maximum value under a corresponding bit rate gear.

3. The video encoding configuration method according to claim 2, characterized in that: The traversing the basic data based on the functional relationship to determine the target resolution and the corresponding target bit rate when the total quality parameter takes the maximum value includes: Traversing the basic data in combination with the preset resolution level and the corresponding functional relationship; Determine a target bit rate when the total quality parameter takes a maximum value under a corresponding resolution level, and use the resolution level as the corresponding target resolution.

4. The video encoding configuration method according to claim 3, characterized in that: The bit rate gear includes a preset first gear and a second gear, and the bit rate of the second gear is higher than that of the first gear; Correspondingly, the formula of the functional relationship after transformation is: Among them, b low represents the bit rate of the first gear, b high Indicates the bit rate of the second gear, the bit rate value range is [n,m], the unit is Kbps, and the value granularity is c.

5. The video encoding configuration method according to claim 3, characterized in that: The performing video encoding configuration based on the target resolution and the corresponding target bit rate includes: Determine the gear information selected by the user end, and select a corresponding target resolution and a target bit rate based on the gear information to perform video encoding configuration of the user end, wherein the gear information includes a resolution gear and a bit rate gear.

6. The video encoding configuration method according to claim 1, characterized in that: The video encoding configuration based on the target resolution and the corresponding target bit rate also includes: Constructing a coding configuration table based on the target resolution and the corresponding target bit rate; When performing video encoding configuration, the encoding configuration table is queried based on the original resolution of the current video, and a corresponding target bit rate is selected to perform transcoding of the current video.

7. A video coding configuration system, characterized in that: include: A collection module, used to collect basic data, wherein the basic data includes first mapping information of different bit rates and corresponding total video viewing time, and second mapping information of different bit rates and corresponding video quality parameters under different resolutions; A construction module is used to construct a functional relationship between the total quality parameter of videos watched by all users and the first mapping information and the second mapping information; the formula of the functional relationship is: Wherein, total_quality represents the total quality parameter, x represents the bit rate, and the value range is [n, m], f(x) represents the first mapping information, and g(x) represents the second mapping information; A traversal module, configured to traverse the basic data based on the functional relationship to determine a target resolution and a corresponding target bit rate when the total quality parameter takes a maximum value; A configuration module is used to perform video encoding configuration based on the target resolution and the corresponding target bit rate.

8. A video encoding configuration device, characterized in that: include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the video encoding configuration method as described in any one of claims 1-6.

9. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the video encoding configuration method as described in any one of claims 1-6 when executed by a computer processor.