CN114554208A - Video coding configuration method, system, equipment and storage medium - Google Patents

Video coding configuration method, system, equipment and storage medium Download PDF

Info

Publication number
CN114554208A
CN114554208A CN202210044704.3A CN202210044704A CN114554208A CN 114554208 A CN114554208 A CN 114554208A CN 202210044704 A CN202210044704 A CN 202210044704A CN 114554208 A CN114554208 A CN 114554208A
Authority
CN
China
Prior art keywords
video
code rate
resolution
video coding
mapping information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210044704.3A
Other languages
Chinese (zh)
Inventor
袁子逸
欧明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bigo Technology Pte Ltd
Original Assignee
Bigo Technology Pte Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bigo Technology Pte Ltd filed Critical Bigo Technology Pte Ltd
Priority to CN202210044704.3A priority Critical patent/CN114554208A/en
Publication of CN114554208A publication Critical patent/CN114554208A/en
Priority to PCT/CN2023/070557 priority patent/WO2023134524A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/154Measured or subjectively estimated visual quality after decoding, e.g. measurement of distortion

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The embodiment of the application discloses a video coding configuration method, a video coding configuration system, video coding configuration equipment and a storage medium. According to the technical scheme provided by the embodiment of the application, basic data are collected, wherein the basic data comprise first mapping information of different code rates and corresponding total video watching duration and second mapping information of different code rates and corresponding video quality parameters under different resolutions; constructing a functional relation between the total quality parameters of the videos watched by all the users and the first mapping information and the second mapping information; traversing the basic data based on the functional relationship, and determining the target resolution and the corresponding target code rate under the condition that the value of the total quality parameter is maximum; and carrying out video coding configuration based on the target resolution and the corresponding target code rate. By adopting the technical means, the video coding configuration can be accurately and reasonably carried out, better video quality is provided, and the video watching experience of a user is further optimized.

Description

Video coding configuration method, system, equipment and storage medium
Technical Field
The embodiments of the present application relate to the field of video coding technologies, and in particular, to a method, a system, a device, and a storage medium for video coding configuration.
Background
The streaming media technology is a technology for compressing a series of media data and then transmitting the compressed media data in a streaming manner in a network in a segmented manner to realize real-time transmission of video and audio on the network. When data compression is performed, in order to adapt to network bandwidths of different users, an original video needs to be encoded to be transmitted to the users through a network. At present, in order to meet the requirements of different users on image quality and fluency and improve the experience of watching videos of the users, an operator sets a reasonable coding configuration table capable of meeting the requirements of most users, and performs original video coding according to the coding configuration table so as to adapt to the video watching requirements of different users.
However, most of the conventional encoding configuration tables are manually set according to operation experience, and the subjectivity of setting encoding configuration parameters is large, so that it is difficult to perform video encoding based on reasonable and accurate encoding configuration parameters. The video coded by the method is difficult to meet the ideal video quality requirement, and the video watching experience of a user is influenced.
Disclosure of Invention
The embodiment of the application provides a video coding configuration method, a system, equipment and a storage medium, which can accurately configure the code rate and the resolution of video coding and solve the error problem of video coding configuration.
In a first aspect, an embodiment of the present application provides a video coding configuration method, including:
collecting basic data, wherein the basic data comprises first mapping information of different code rates and corresponding total video watching duration and second mapping information of different code rates and corresponding video quality parameters under different resolutions;
constructing a functional relation between the total quality parameters of the videos watched by all the users and the first mapping information and the second mapping information;
traversing the basic data based on the functional relationship, and determining the target resolution and the corresponding target code rate under the condition that the value of the total quality parameter is maximum;
and carrying out video coding configuration based on the target resolution and the corresponding target code rate.
In a second aspect, an embodiment of the present application provides a video coding configuration system, including:
the collecting module is used for collecting basic data, wherein the basic data comprises first mapping information of different code rates and corresponding total video watching duration and second mapping information of different code rates and corresponding video quality parameters under different resolutions;
the construction module is used for constructing the functional relation between the total quality parameter of the video watched by all the users and the first mapping information and the second mapping information;
the traversing module is used for traversing the basic data based on the functional relationship and determining the target resolution and the corresponding target code rate under the condition that the value of the total quality parameter is maximum;
and the configuration module is used for carrying out video coding configuration based on the target resolution and the corresponding target code rate.
In a third aspect, an embodiment of the present application provides a video encoding configuration device, including:
a memory and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a video coding configuration method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium containing computer-executable instructions for performing the video coding configuration method according to the first aspect when executed by a computer processor.
The method comprises the steps that basic data are collected, wherein the basic data comprise first mapping information of different code rates and corresponding total video watching duration and second mapping information of different code rates and corresponding video quality parameters under different resolutions; constructing a functional relation between the total quality parameters of the videos watched by all the users and the first mapping information and the second mapping information; traversing the basic data based on the functional relationship, and determining the target resolution and the corresponding target code rate under the condition that the value of the total quality parameter is maximum; and carrying out video coding configuration based on the target resolution and the corresponding target code rate. By adopting the technical means, the target resolution and the corresponding target code rate are optimized by traversing the basic data, so that the video coding configuration can be accurately and reasonably carried out, better video quality is provided, and the video watching experience of a user is further optimized.
Drawings
Fig. 1 is a flowchart of a video coding configuration method according to an embodiment of the present application;
FIG. 2 is a basic data collection flow diagram in an embodiment of the present application;
FIG. 3 is a flowchart of target resolution and target bitrate determination in different bitrate positions in the embodiment of the present application;
FIG. 4 is a flowchart of target resolution and target bitrate determination in different resolution steps in the embodiment of the present application;
FIG. 5 is a flow chart of a video encoding configuration in an embodiment of the present application;
FIG. 6 is a flow chart of video encoding in the embodiment of the present application;
fig. 7 is a schematic structural diagram of a video encoding configuration system according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a video encoding configuration apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The video coding configuration method aims to establish a functional relation of total quality parameters watched by a user by collecting basic data, and traverse the collected basic data based on the functional relation, so that corresponding resolution and code rate values when the total quality parameters are maximum can be determined, video coding configuration is carried out according to the obtained resolution and code rate, the total quality parameters of videos watched by the user can be ensured to reach a relatively optimal state, and further the video watching experience of the user is optimized.
With the rapid development of intelligent devices such as computers and mobile phones and related technologies, internet applications have gradually penetrated into the aspects of life, and the life style of people is changed practically. The improvement of computing power of hardware equipment and the innovation of streaming media technology also drive the development of video and network live broadcast industries, people can watch clear and smooth videos on various terminals in real time, and the spiritual life of people is greatly enriched. Streaming Media technology (Streaming Media) is a technology for compressing a series of Media data and then transmitting the compressed Media data in a Streaming manner in a network in segments to realize real-time transmission of video and audio for viewing on the network. In streaming media technology, data compression is an essential loop. An uncompressed YUV420 format, frame rate 24 720P video, has a data volume of up to 200M per second, which is not yet sufficient for the transmission in the present civil network bandwidth. In order to adapt to the network bandwidth of the user, the original video needs to be encoded before being transmitted to the user through the network.
On the other hand, in a network live broadcast scene, the video code rate fluctuation is sensitive, and the live broadcast playing is possibly blocked due to instantaneous and large code rate fluctuation, so that negative experience is brought to a user. The number of live broadcast user groups is huge, and the requirements of different users on video definition and fluency are influenced by various factors such as personal aesthetics and network conditions in different regions, so that the single video coding mode cannot meet the requirements of most users. It is necessary to design a reasonable code configuration table that can meet the needs of most users. Based on a reasonable coding configuration table, a user can select coding configuration which can be accepted by the user to correspond to the coded video for watching, the requirements of different users on image quality and smoothness are met, and the video watching experience of the user is improved.
Because most of the traditional encoding configuration tables are manually set according to operation experience, the subjectivity of setting encoding configuration parameters is high, and video encoding is difficult to be carried out based on reasonable and accurate encoding configuration parameters. Based on this, a video coding configuration method according to an embodiment of the present application is provided to solve the error problem of the existing video coding configuration.
Example (b):
fig. 1 shows a flowchart of a video coding configuration method provided in an embodiment of the present application, where the video coding configuration method provided in this embodiment may be executed by a video coding configuration device, the video coding configuration device may be implemented in a software and/or hardware manner, and the video coding configuration device may be formed by two or more physical entities or may be formed by one physical entity. In general, the video coding configuration device may be a processing device of a video platform, a video coding server of a webcast platform, or the like.
The following description will be given taking the video encoding configuration apparatus as an example of a subject that performs the video encoding configuration method. Referring to fig. 1, the video coding configuration method specifically includes:
s110, collecting basic data, wherein the basic data comprises first mapping information of different code rates and corresponding total video watching time and second mapping information of different code rates and corresponding video quality parameters under different resolutions.
The embodiment of the application provides a video coding configuration design scheme based on the maximized overall user watching image quality when carrying out video coding configuration. By combining the function curves of different code rates and the total watching duration of the corresponding videos and the function curves of different code rates and the corresponding video quality parameters under different resolutions, a coding configuration table which enables the objective quality of the videos watched by all users to be maximum and comprises two parameters of the video resolution and the code rate is calculated. The method and the device are used for transcoding the original video in the service, so that the watching requirements of most users are met, and the watching experience of the users is improved.
Before calculating the coding configuration table, it is necessary to collect relevant basic data, the basic data and a function curve including the above different bit rates and the corresponding total video watching duration, and a function curve including different bit rates and corresponding video quality parameters at different resolutions. And defining a function curve of different code rates and corresponding video viewing total duration as first mapping information, and defining a function curve of different code rates and corresponding video quality parameters as second mapping information under different resolutions. It should be noted that the mapping information may be represented in the form of a function curve, a formula, and the like, and a specific expression manner of the mapping information in the embodiment of the present application is not limited to be fixed, and is not described herein repeatedly.
Further, when data collection is performed, referring to fig. 2, the first mapping information and the second mapping information are acquired, respectively. Wherein. For the first mapping information, historical viewing data of a user in a corresponding service scene (such as a video live broadcast scene, a video output scene and the like) is obtained. The historical watching data comprises time length information of watching videos with different code rates by different users. Based on the historical watching data, the total watching time of all users for the videos with different code rates in a set time period is determined, one total watching time of the videos is determined corresponding to one code rate value, and then the first mapping information can be correspondingly constructed based on the determined total watching time of the videos with different code rates.
The total video watching time can be accurate to seconds, and the code rate can be accurate to 100 Kbps. The duration and the code rate accuracy can be adjusted according to actual service characteristics, for example, when a coding configuration table is designed, the code rate is required to be accurate to 10Kbps, and then when data is collected in the past, the code rate granularity can be changed to 10 Kbps. Moreover, as the code rate is changed when the user watches different videos, the code rate is used as the abscissa, and the ordinate is the total video watching time of all users under the code rate, so as to construct the function curve of the first mapping information.
On the other hand, for the second mapping information, when a batch of video coding configurations and subsequent video coding configurations are selected first, the associated videos are located on the service scene. Preferably, videos covering various different service scenarios can be selected to ensure that subsequent encoding configurations can adapt to different service scenarios. And then, encoding the acquired video according to different resolutions and different code rates to determine the video quality parameters of the encoded video.
Optionally, a code rate interval [100Kbps, 3000Kbps ] is selected, and a code rate step size of 100Kbps is used for multiple CBR (constant bit rate) coding with different resolutions. The resolution when encoding can not be larger than the original resolution of the video, for example, the video with the resolution of 720P can be encoded with the resolution of 720P/540P/480P/360P. The specific coding resolution can be selected and adjusted according to the actual service scene needs. After the batch of videos is coded, objective quality of each video, namely a video quality parameter, can be calculated. The video quality parameters may be determined by using PSNR (peak signal-to-noise ratio), SSIM (structural similarity), VMAF (video multi-method evaluation and fusion), and other evaluation manners. Therefore, based on the video quality parameters corresponding to different code rates under different resolutions, a 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, and the function curve takes the code rate as the abscissa and the ordinate is the video quality parameter at the code rate.
And S120, constructing a functional relation between the total quality parameter of the video watched by all the users and the first mapping information and the second mapping information.
Further, based on the first mapping information and the second mapping information, a functional relation of the total quality parameters of the videos watched by all the users and the mapping information is constructed. The embodiment of the application defines the sum of the video quality parameters of all users watching videos with different resolutions and different code rates as a total quality parameter, and the total quality parameter reflects the total condition of all users watching videos. It can be understood that the higher the total quality parameter, the higher the quality parameter indicating that the global user watches the video, the better the resulting viewing experience. And then, the target resolution and the target code rate of the maximum total quality parameter are found according to the functional relation, so that the video coding configuration can be used, a proper and accurate video coding configuration effect is provided, and the watching experience of a user is optimized.
Wherein, it is assumed that different code rates in the first mapping information and the corresponding video watching total duration satisfy a functional relationship:
watch_time=f(x)
wherein, watch _ time represents the total watching time length of the video under the corresponding code rate, x represents the code rate of the video, and x belongs to (0, infinity).
Further, in the first mapping information, under different resolutions, different code rates and video quality parameters satisfy a functional relationship:
quality=g(x)
wherein quality represents the video quality parameter under the corresponding resolution and code rate, x represents the code rate of the video, and x belongs to (0, infinity).
Then given a certain bitrate, b Kbps, at which the total quality parameter of all users watching the video at a set time can be expressed as:
total_qualityb=watch_timeb*qualityb=f(b)*g(b)
wherein total _ quality represents a total quality parameter, and f (b) represents the total viewing time of the user when the video code rate is b Kbps; g (b) represents the video quality parameter when the video code rate is b Kbps.
Then for all possible video bitrate values, the total quality parameter of the video watched by all users as a whole can be expressed as:
Figure BDA0003471682400000061
in practical application, the basic data cannot obtain functions of continuous code rate, total watching time of the user and the code rate and the video quality parameters, but discrete code rate, total watching time of the user and functions of the code rate and the video quality parameters can be obtained based on the basic data. The above functional relationship formula can be expressed as:
Figure BDA0003471682400000062
wherein, total _ quality represents total quality parameters, x represents code rate, value interval is [ n, m ], f (x) represents first mapping information, and g (x) represents second mapping information.
In the embodiment of the present application, the code rate value interval is set to [100Kbps, 3000Kbps ], and then the above function relationship formula can be degenerated as follows:
Figure BDA0003471682400000071
wherein x represents the video code rate, x belongs to [100,3000], and is an integral multiple of 100 and has a unit of Kbps.
And S130, traversing the basic data based on the functional relationship, and determining the target resolution and the corresponding target code rate under the condition that the total quality parameter is maximum.
Based on the functional relation formula, values of resolution and code rate in the first mapping information and the second mapping information corresponding to the maximum total quality parameter value can be determined by traversing the pre-collected basic data and substituting different first mapping information and second mapping information into the functional relation formula. And defining the resolution determined at the moment as a target resolution, and defining the corresponding code rate as a target code rate for subsequent video coding configuration.
Specifically, in order to facilitate subsequent video coding configuration, different code rate gears are preset, and then, when the value of the total quality parameter is maximum, the code rate value and the resolution value in each code rate gear are determined by traversing the functional relationship. Therefore, the coding configuration table of different code rate gears is constructed, coding configuration can be conveniently carried out on the corresponding gears during video coding, and the video coding configuration efficiency is improved.
As shown in fig. 3, the target resolution and target bitrate determination process in different bitrate positions includes:
s1301, transforming a functional relation according to preset code rate gear quantity information and code rate value interval;
s1302, traversing the basic data based on the transformed functional relation, and determining the target resolution and the corresponding target code rate when the total quality parameter value is maximum under the corresponding code rate gear.
It can be understood that, when the number of code rate steps required actually is used, corresponding unknown parameters of the code rate values are constructed and then substituted into the functional relationship to obtain a corresponding decomposition formula, and the code rate value and the resolution value under each code rate step can be determined by traversing the basic data when the value of the total quality parameter is maximum.
To simplify the model, assume that the user takes conservative actions in order to maintain good video fluency while watching the video. Namely, when the video watching code rate of a user is between the code rates of certain two gears in the code configuration table, the gear corresponding to the lower code rate is selected for watching; and when the code rate of the video watched by the user is lower than the code rate corresponding to the lowest gear of the code configuration table, the user can only select the video at the lowest gear to watch.
If the code rate corresponding to the lowest gear in the design code configuration table is blowKbps, the highest gear corresponds to a code rate of bhighKbps and satisfies the relation of 100. ltoreq. blow<bhighLess than 3000, i.e. code rate value range [ n, m%]Is [100Kbps, 3000Kbps ]]And the value granularity is 100, the total quality parameter of the video watched by the future user becomes:
Figure BDA0003471682400000081
optionally, the setting code rate gear comprises a preset first gear and a preset second gear, and the code rate of the second gear is higher than that of the first gear; under the condition that only two different gears are set in the coding configuration table, the code rate corresponding to the lowest gear is blowKbps, the highest gear corresponds to a code rate of bhighKbps, then the total quality parameter of the future user viewing the video is:
Figure BDA0003471682400000082
after the first two items on the right of the equal sign are combined,
correspondingly, the formula of the functional relationship can be transformed into:
Figure BDA0003471682400000083
wherein, blowCode rate representing first gear, bhighCode rate of the second gear is represented, and the code rate value interval is [100,3000]]In Kbps.
Further, in order to design a video coding configuration table containing two gears and maximizing the overall image quality viewed by the user, only the lowest gear code rate and the highest gear code rate corresponding to the above formula are needed to be found, that is:
Figure BDA0003471682400000084
it can be understood that f (x) and g (x) correspond to the first mapping information and the second mapping information respectively, and since the basic data are all discrete point pairs, it is not necessary to find the target parameter corresponding to the maximum value of the total quality parameter of the above formula by a mathematical method. The corresponding code rate and resolution of the second-gear encoding configuration table when the overall watching image quality of the user is the maximum (namely when the total quality parameter is the maximum) can be found only by traversing all possible conditions of the basic data. Similarly, the encoding configuration table for three gears, four gears or encoding configuration tables with different resolutions can also be designed in the same way, but as the types of gears and resolutions increase, the data volume of traversal increases by geometric times. In practical applications, to facilitate the configuration of video coding, a smaller number of gears can be set to keep the amount of calculation within a controllable and acceptable range. Therefore, the calculation of each target resolution and the corresponding code rate of the coding configuration is completed.
Optionally, in the process of determining the target resolution and the target code rate, the target information may be calculated according to different preset resolution steps. Referring to fig. 4, the target resolution and target bitrate determination process in different resolution steps includes:
s1303, traversing basic data by combining preset resolution gears and corresponding functional relations;
and S1304, determining the target code rate when the total quality parameter value is maximum in the corresponding resolution gear, and taking the resolution gear as the corresponding target resolution.
It can be understood that the above functional relationship may be uniformly constructed based on all resolution gears, or may be respectively and correspondingly constructed based on different resolution gears. Only the video quality parameters g (x) superimposed in this way are different. And when the target resolution and the target code rate are determined by combining the preset resolution gear and the corresponding functional relation, the target code rate is determined by traversing the basic data according to the functional relation and maximizing the total quality parameter at the fixed resolution gear. The second mapping information g (x) used for calculating the total quality parameter at this time should be the video quality parameter in this resolution gear. And for the target resolution, taking a value according to the corresponding resolution. For example, if the current resolution stage is 720P, 720P is taken as the target resolution. Thus, the target resolution and the corresponding target code rate are determined.
And S140, configuring video coding based on the target resolution and the corresponding target code rate.
Finally, based on the calculated target resolution and target bitrate, when video coding configuration is performed, as shown in fig. 5, a video coding process includes:
s1401, constructing a coding configuration table based on the target resolution and the corresponding target code rate;
and S1402, when video coding configuration is carried out, inquiring a coding configuration table based on the original resolution of the current video, and selecting a corresponding target code rate to carry out transcoding of the current video.
It can be understood that the coding configuration table includes information of different gear code rates and corresponding resolutions. According to the resolution of the original video, the mapped target code rate can be found in the coding configuration table, and then the code rate is used for video coding, so that the image quality of the finally output video is relatively optimal, and the video watching experience of each user is optimized.
In addition, gear information selected by the user side is determined, and corresponding target resolution and target code rate are selected based on the gear information to perform video coding configuration of the user side, wherein the gear information comprises resolution gears and code rate gears. The user side video playing application can set mapping gear information corresponding to code rates and resolutions of different gears of the coding configuration table in advance so that a user can select and adapt to self requirements, and the playing image quality achieves relatively optimal target resolution and target code rate.
Illustratively, referring to fig. 6, in the embodiment of the present application, when video encoding is performed, basic data collection is performed first. And collecting the video of the related service within a period of time, and watching the distribution condition of the video code rate by the user. And drawing a user watching distribution curve (namely first mapping information) by taking the abscissa as the video code rate and the ordinate as the total duration of watching the video at the code rate in the period of time for the user, wherein the user watching distribution curve is used for representing the network condition and preference of the user in the period of time. In addition, a batch of videos capable of representing the actual service scene are collected, multiple times of encoding are carried out according to different resolutions and code rates, and video quality parameters are calculated. And drawing different objective quality curves (namely second mapping information) for different resolutions by taking the code rate as an abscissa and the video quality parameter as an ordinate.
And then, calculating a coding configuration table which enables the total quality parameter of the video watched by the user to be maximum according to different gear numbers required by the actual service scene by combining the watching distribution curve of the user and objective quality curves with different resolutions, wherein the coding configuration table mainly comprises coding resolution information and coding rate information of the video.
And finally, coding the video in the service scene according to the obtained coding configuration table to obtain the videos in different gears. Therefore, the user can select a proper gear to watch according to the requirement. The video coding configuration table for maximizing the overall watching image quality of the user is set, the coding configuration table for maximizing the video watching quality of the user is calculated by combining the code rate duration distribution of the video watched by the user and the objective quality curve of the video, and the source video is transcoded in different grades, so that the watching requirements of most users are met.
The above, by collecting the basic data, the basic data includes the first mapping information of different code rates and corresponding total video watching duration, and the second mapping information of different code rates and corresponding video quality parameters under different resolutions; constructing a functional relation between the total quality parameters of the videos watched by all the users and the first mapping information and the second mapping information; traversing the basic data based on the functional relationship, and determining the target resolution and the corresponding target code rate under the condition that the value of the total quality parameter is maximum; and carrying out video coding configuration based on the target resolution and the corresponding target code rate. By adopting the technical means, the target resolution and the corresponding target code rate are optimized by traversing the basic data, so that the video coding configuration can be accurately and reasonably carried out, better video quality is provided, and the video watching experience of a user is further optimized.
Based on the above embodiments, fig. 7 is a schematic structural diagram of a video encoding configuration system provided in the present application. Referring to fig. 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.
The collecting module 21 is configured to collect basic data, where the basic data includes first mapping information of different code rates and corresponding total video viewing durations, and second mapping information of different code rates and corresponding video quality parameters at different resolutions;
the construction module 22 is configured to construct a functional relationship between the total quality parameter of the videos watched by all the users and the first mapping information and the second mapping information;
the traversal module 23 is configured to traverse the basic data based on the functional relationship, and determine a target resolution and a corresponding target code rate when the total quality parameter value is maximum;
the configuration module 24 is configured to perform video coding configuration based on the target resolution and the corresponding target bitrate.
The traversal module 23 is specifically configured to transform a functional relationship according to preset code rate gear number information and a code rate value interval; and traversing the basic data based on the transformed functional relation, and determining the target resolution and the corresponding target code rate when the total quality parameter value is maximum under the corresponding code rate gear.
The formula of the functional relationship is:
Figure BDA0003471682400000111
wherein, total _ quality represents total quality parameters, x represents code rate, value interval is [ n, m ], f (x) represents first mapping information, and g (x) represents second mapping information.
The traversal module 23 is specifically configured to traverse the basic data by combining a preset resolution gear and a corresponding functional relationship; and determining the target code rate when the total quality parameter value is maximum under the corresponding resolution gear, and taking the resolution gear as the corresponding target resolution.
The code rate gear comprises a preset first gear and a preset second gear, and the code rate of the second gear is higher than that of the first gear;
correspondingly, the formula of the transformed functional relationship is as follows:
Figure BDA0003471682400000112
wherein, blowCode rate representing first gear, bhighThe code rate of the second gear is represented, and the code rate value interval is [ n, m ]]The unit is Kbps, and the value granularity is c.
In addition, the configuration module 24 is specifically configured to determine gear information selected by the user terminal, and select a corresponding target resolution and a corresponding target code rate based on the gear information to perform video coding configuration of the user terminal, where the gear information includes a resolution gear and a code rate gear;
constructing a coding configuration table based on the target resolution and the corresponding target code rate; when video coding configuration is carried out, a coding configuration table is inquired based on the original resolution of the current video, and a corresponding target code rate is selected to carry out transcoding of the current video.
The above, by collecting the basic data, the basic data includes the first mapping information of different code rates and corresponding total video watching duration, and the second mapping information of different code rates and corresponding video quality parameters under different resolutions; constructing a functional relation between the total quality parameters of the videos watched by all the users and the first mapping information and the second mapping information; traversing the basic data based on the functional relationship, and determining the target resolution and the corresponding target code rate under the condition that the value of the total quality parameter is maximum; and carrying out video coding configuration based on the target resolution and the corresponding target code rate. By adopting the technical means, the target resolution and the corresponding target code rate are optimized by traversing the basic data, so that the video coding configuration can be accurately and reasonably carried out, better video quality is provided, and the video watching experience of a user is further optimized.
The video coding configuration system provided by the embodiment of the application can be used for executing the video coding configuration method provided by the embodiment, and has corresponding functions and beneficial effects.
On the basis of the above practical example, an embodiment of the present application further provides a video encoding configuration apparatus, and with reference to fig. 8, the video encoding configuration apparatus includes: a processor 31, a memory 32, a communication module 33, an input device 34, and an output device 35. The memory 32 is a computer readable storage medium, and can be used for storing software programs, computer executable programs, and modules, such as program instructions/modules corresponding to the video coding configuration method according to any embodiment of the present application (for example, the collection module, the construction module, the traversal module, and the 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 executing software programs, instructions and modules stored in the memory, that is, implements the video encoding configuration method described above. The input device 34 may be used to receive entered numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 35 may include a display device such as a display screen. The video coding configuration device provided by the above can be used for executing the video coding configuration method provided by the above embodiment, and has corresponding functions and beneficial effects.
On the basis of the above embodiments, the present application also provides a storage medium containing computer-executable instructions for performing 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 provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the video coding configuration method described above, and may also perform related operations in the video coding configuration method provided in any embodiment of the present application.
The foregoing is considered as illustrative of the preferred embodiments of the invention and the technical principles employed. The present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (10)

1. A video coding configuration method, comprising:
collecting basic data, wherein the basic data comprises first mapping information of different code rates and corresponding total video watching duration and second mapping information of different code rates and corresponding video quality parameters under different resolutions;
constructing a functional relation between the total quality parameters of the videos watched by all the users and the first mapping information and the second mapping information;
traversing the basic data based on the functional relationship, and determining a target resolution and a corresponding target code rate under the condition that the value of the total quality parameter is maximum;
and carrying out video coding configuration based on the target resolution and the corresponding target code rate.
2. The method of claim 1, wherein the determining the target resolution and the corresponding target bitrate for the case where the total quality parameter is maximized by traversing the basic data based on the functional relationship comprises:
changing the functional relation according to preset code rate gear quantity information and a code rate value interval;
and traversing the basic data based on the transformed functional relation, and determining the target resolution and the corresponding target code rate when the total quality parameter value is maximum under the corresponding code rate gear.
3. A video coding configuration method according to claim 2, characterized in that said functional relationship is formulated as:
Figure FDA0003471682390000011
wherein total _ quality represents the total quality parameter, x represents a code rate, a value interval is [ n, m ], f (x) represents the first mapping information, and g (x) represents the second mapping information.
4. The method of claim 3, wherein the traversing the base data based on the functional relationship to determine the target resolution and the corresponding target bitrate under the condition that the total quality parameter value is maximum comprises:
traversing the basic data by combining preset resolution gears and the corresponding functional relation;
and determining the target code rate when the total quality parameter value is maximum under the corresponding resolution gear, and taking the resolution gear as the corresponding target resolution.
5. The video coding configuration method according to claim 4, wherein the bit rate steps include a first preset step and a second preset step, and the bit rate of the second step is higher than that of the first step;
correspondingly, the formula of the functional relationship after transformation is as follows:
Figure FDA0003471682390000012
wherein, blowCode rate representing said first gear, bhighThe code rate of the second gear is represented, and the value interval of the code rate is [ n, m]The unit is Kbps, and the value granularity is c.
6. The method of claim 4, wherein the configuring video coding based on the target resolution and the corresponding target bitrate comprises:
gear information selected by a user side is determined, and corresponding target resolution and target code rate are selected based on the gear information to carry out video coding configuration of the user side, wherein the gear information comprises resolution gear and code rate gear.
7. The method of claim 1, wherein the configuring video coding based on the target resolution and the corresponding target bitrate further comprises:
constructing a coding configuration table based on the target resolution and the corresponding target code rate;
when video coding configuration is carried out, the coding configuration table is inquired based on the original resolution of the current video, and the corresponding target code rate is selected to carry out transcoding of the current video.
8. A video coding configuration system, comprising:
the system comprises a collecting module, a quality parameter calculating module and a quality parameter calculating module, wherein the collecting module is used for collecting basic data, and the basic data comprises first mapping information of different code rates and corresponding total video watching duration and second mapping information of different code rates and corresponding video quality parameters under different resolutions;
the construction module is used for constructing a functional relation between the total quality parameter of the videos watched by all the users and the first mapping information and the second mapping information;
a traversal module, configured to traverse the basic data based on the functional relationship, and determine a target resolution and a corresponding target code rate when the total quality parameter value is the maximum;
and the configuration module is used for carrying out video coding configuration based on the target resolution and the corresponding target code rate.
9. A video encoding configuration device, comprising:
a memory and one or more processors;
the memory to store one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the video coding configuration method of any of claims 1-7.
10. A storage medium containing computer-executable instructions for performing the video encoding configuration method of any of claims 1-7 when executed by a computer processor.
CN202210044704.3A 2022-01-14 2022-01-14 Video coding configuration method, system, equipment and storage medium Pending CN114554208A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210044704.3A CN114554208A (en) 2022-01-14 2022-01-14 Video coding configuration method, system, equipment and storage medium
PCT/CN2023/070557 WO2023134524A1 (en) 2022-01-14 2023-01-04 Video coding configuration method, system and device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210044704.3A CN114554208A (en) 2022-01-14 2022-01-14 Video coding configuration method, system, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114554208A true CN114554208A (en) 2022-05-27

Family

ID=81671729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210044704.3A Pending CN114554208A (en) 2022-01-14 2022-01-14 Video coding configuration method, system, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN114554208A (en)
WO (1) WO2023134524A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023134524A1 (en) * 2022-01-14 2023-07-20 百果园技术(新加坡)有限公司 Video coding configuration method, system and device, and storage medium
CN116962757A (en) * 2023-09-20 2023-10-27 腾讯科技(深圳)有限公司 Video code rate grade determining method and device, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769754B (en) * 2018-05-14 2020-10-13 中国科学院计算技术研究所 Video playback method and system based on video playback terminal
US11128869B1 (en) * 2018-10-22 2021-09-21 Bitmovin, Inc. Video encoding based on customized bitrate table
CN110719457B (en) * 2019-09-17 2020-10-30 北京达佳互联信息技术有限公司 Video coding method and device, electronic equipment and storage medium
CN111031347A (en) * 2019-11-29 2020-04-17 广州市百果园信息技术有限公司 Video processing method and device, electronic equipment and storage medium
CN113938682A (en) * 2020-06-29 2022-01-14 北京金山云网络技术有限公司 Video coding method and device and electronic equipment
CN114554208A (en) * 2022-01-14 2022-05-27 百果园技术(新加坡)有限公司 Video coding configuration method, system, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023134524A1 (en) * 2022-01-14 2023-07-20 百果园技术(新加坡)有限公司 Video coding configuration method, system and device, and storage medium
CN116962757A (en) * 2023-09-20 2023-10-27 腾讯科技(深圳)有限公司 Video code rate grade determining method and device, electronic equipment and storage medium
CN116962757B (en) * 2023-09-20 2023-12-12 腾讯科技(深圳)有限公司 Video code rate grade determining method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2023134524A1 (en) 2023-07-20

Similar Documents

Publication Publication Date Title
Bampis et al. Towards perceptually optimized end-to-end adaptive video streaming
WO2023134524A1 (en) Video coding configuration method, system and device, and storage medium
CN105847807B (en) For optimizing computer system, the method for the coding of input video
CN102802089B (en) Shifting video code rate regulation method based on experience qualitative forecast
CN106331711B (en) A kind of dynamic code rate control method based on network characterization and video features
Bampis et al. Towards perceptually optimized adaptive video streaming-a realistic quality of experience database
CN109286855A (en) Transmission method, transmitting device and the Transmission system of panoramic video
CN110418177A (en) Method for video coding, device, equipment and storage medium
US10491911B2 (en) Transcoding on-the-fly (TOTF)
CN102137258B (en) Method for controlling three-dimensional video code rates
CN101273637A (en) Media contents management
CN110505454B (en) Video supply system and method based on scene mode and user perception requirement
CN111669617A (en) Live video stream transmission method based on intelligent edge
CN104469398A (en) Network video image processing method and device
CN104918077A (en) Video transmission method, device and system
CN114554211A (en) Content adaptive video coding method, device, equipment and storage medium
Huang et al. DAVE: Dynamic adaptive video encoding for real-time video streaming applications
Zhang et al. Mfvp: Mobile-friendly viewport prediction for live 360-degree video streaming
Tashtarian et al. Lalisa: Adaptive bitrate ladder optimization in http-based adaptive live streaming
WO2024017106A1 (en) Code table updating method, apparatus, and device, and storage medium
CN116980392A (en) Media stream processing method, device, computer equipment and storage medium
CN115767146A (en) Data flow control method, system, device, electronic equipment and storage medium
CN113411587B (en) Video compression method, device and computer readable storage medium
CN106254873B (en) Video coding method and video coding device
US8407312B2 (en) Data delivery apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination