Video bit rate control method and device based on network classification

Through the video bit rate control method based on network classification, the video bit rate is dynamically adjusted, which solves the problem of poor fluency of weak network users and insufficient image quality improvement of strong network users, achieving a better playback experience.

CN115914756BActive Publication Date: 2024-10-18PETAL CLOUD TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110927016.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-12
Publication Date
2024-10-18
Estimated Expiration
2041-08-12

AI Technical Summary

Technical Problem

In existing video playback technology, the unified code rate control strategy results in poor playback fluency for users with weak networks, and users with strong networks cannot fully utilize the bandwidth, resulting in insufficient improvement in image quality.

Method used

The video bit rate control method based on network classification dynamically adjusts the video bit rate by determining multiple network levels and their corresponding bandwidth attenuation coefficients, combined with the client's download rate and buffer length, to adapt to different network environments and improve image quality and smoothness. Spend.

Benefits of technology

It effectively reduces the playback freeze rate for users with weak networks, increases the proportion of high-definition playback time for users with strong networks, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115914756B_ABST
    Figure CN115914756B_ABST
Patent Text Reader

Abstract

The present application provides a video bitrate control method, device, storage medium and chip system based on network classification, which relates to the field of video playback technology, so that different network users can obtain the best playback experience. For example, the playback freeze rate of users with weak networks is minimized, while most strong network users can make full use of their bandwidth to watch the best picture quality. The method includes: determining the first bandwidth attenuation coefficients corresponding to multiple network levels respectively; wherein the multiple network levels correspond to multiple bandwidth intervals, and different network levels in the multiple network levels correspond to different first bandwidth attenuation coefficients; determining the target network level corresponding to the client; obtaining the download rate prediction value corresponding to the client; at least according to the first bandwidth attenuation coefficient and the download rate prediction value corresponding to the target network level, determining the first target bitrate corresponding to the target video content to be downloaded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of video playback technology, and in particular to a video bit rate control method, device, storage medium and chip system based on network classification. Background Art

[0002] At present, in various video playback scenarios, in order to improve user experience, an adaptive rate control (ARC) strategy is generally adopted to dynamically adjust the video bit rate, that is, according to the fluctuation of the actual download rate of the client, during the video start or playback process, the bit rate or resolution of the video content to be downloaded is dynamically adjusted to make the client's video playback as smooth as possible and reduce the number of freezes. In a related solution, the same control strategy is adopted for clients with different network bandwidths. In order to ensure the smoothness of playback for clients with lower network bandwidth, a unified down-cutting bit rate priority control mechanism is adopted, resulting in many clients with sufficient network bandwidth resources being able to play high-resolution or high-definition videos, but can only play low-resolution or low-definition videos, which reduces the picture quality level of users. Summary of the invention

[0003] The present application provides a video bit rate control method, device, storage medium and chip system based on network classification, which can improve the picture quality level watched by users and improve the user's viewing experience.

[0004] In a first aspect, the technical solution of the present application provides a video bit rate control method based on network classification, which is applied to a client, and the method includes:

[0005] Determine the first bandwidth attenuation coefficients corresponding to the various network levels; wherein the various network levels correspond to multiple bandwidth intervals, and different network levels in the various network levels correspond to different first bandwidth attenuation coefficients; determine the target network level corresponding to the client; determine the download rate prediction value corresponding to the client; determine the first target bit rate corresponding to the target video content to be downloaded based on at least the first bandwidth attenuation coefficient and the download rate prediction value corresponding to the target network level. This method can reduce the playback freeze rate for users with weak networks, and at the same time, for users with strong networks, it can fully utilize their bandwidth to improve the viewing quality level, improve the user's viewing experience, and enable users on different networks to obtain a better playback experience.

[0006] In a possible implementation, determining a target network level corresponding to the client includes: querying the real-time download rate of the client at the current moment; and determining the network level corresponding to the bandwidth interval to which the real-time download rate belongs as the target network level corresponding to the client.

[0007] In a possible implementation, there are multiple network levels, including the first network level to the Mth network level, M≥2; wherein, when the bandwidth sizes of the bandwidth intervals corresponding to the first network level to the Mth network level are sequentially reduced, the first bandwidth attenuation coefficients corresponding to the first network level to the Mth network level are sequentially reduced. When the first target bit rate is positively correlated with the first bandwidth attenuation coefficient, the first bandwidth attenuation coefficients corresponding to the first network level to the Mth network level are sequentially reduced, so that the bit rate can be sequentially reduced according to the size of the bandwidth interval, high bandwidth corresponds to high bit rate, low bandwidth corresponds to low bit rate, different bandwidths adopt different playback strategies to adapt to different playback requirements and obtain graded playback effects.

[0008] In a possible implementation, determining the download rate prediction value corresponding to the client includes: querying multiple historical download rates corresponding to the client in the bandwidth window list, calculating a harmonic mean or an arithmetic mean based on the multiple historical download rates; and determining the harmonic mean or the arithmetic mean as the download rate prediction value corresponding to the client. The multiple historical download rates can objectively reflect the actual bandwidth level of the client.

[0009] In a possible implementation, multiple water level intervals and multiple water level coefficients corresponding to the multiple water level intervals are determined; wherein the multiple water level intervals are determined based on the buffer length during video playback; the multiple water level coefficients corresponding to the same water level interval correspond to multiple network levels; the multiple water level coefficients corresponding to the same network level correspond to the multiple water level intervals; after determining the target network level corresponding to the client, before determining the first target bit rate corresponding to the target video content to be downloaded at least based on the first bandwidth attenuation coefficient and the download rate prediction value corresponding to the target network level, the method also includes: during video playback, based on the buffer length at the specified time, determining the target water level interval corresponding to the specified time; wherein the specified time is any time before downloading the target video content; from the multiple water level coefficients corresponding to the target water level interval, selecting the target water level coefficient corresponding to the target network level; determining the first target bit rate corresponding to the target video content to be downloaded at least based on the first bandwidth attenuation coefficient and the download rate corresponding to the target network level, including: determining the first target bit rate corresponding to the target video content to be downloaded based on the first bandwidth attenuation coefficient, the download rate prediction value and the target water level coefficient. The design of the water level coefficient can further classify the network level based on the status of the buffer zone on the basis of dividing the network level according to the bandwidth, so as to achieve more precise playback strategy control.

[0010] In a possible implementation, the first target bitrate corresponding to the target video content to be downloaded is determined according to the first bandwidth attenuation coefficient, download rate prediction value and target water level coefficient corresponding to the target network level, including: performing a predetermined first operation on the first bandwidth attenuation coefficient and the target water level coefficient corresponding to the target network level, and obtaining the first operation result as the second bandwidth attenuation coefficient; determining the first target bitrate corresponding to the target video content to be downloaded at least according to the download rate and the second bandwidth attenuation coefficient. This method takes into account both the impact of bandwidth on bitrate requirements and the impact of different buffer lengths on bitrate requirements. According to this method, a bitrate suitable for the current needs of the client can be selected more accurately.

[0011] In one possible implementation, the multiple water level intervals include a first water level interval to an Nth water level interval, N≥2; wherein, when the buffer lengths corresponding to the first water level interval to the Nth water level interval increase in sequence, multiple water level coefficients corresponding to the same network level increase in sequence.

[0012] In one possible implementation, a first target bit rate corresponding to the target video content to be downloaded is determined based on at least the download rate and the second bandwidth attenuation coefficient, including: performing a predetermined second operation on the second bandwidth attenuation coefficient and the download rate, and obtaining the second operation result as a first reference value; and determining the first target bit rate corresponding to the target video content to be downloaded based at least on the first reference value.

[0013] In one possible implementation, a first target bit rate corresponding to the target video content to be downloaded is determined based at least on a first reference value, including: selecting a bit rate that does not exceed and is closest to the first reference value from multiple bit rates corresponding to the target video content to be downloaded, and determining it as the first target bit rate.

[0014] In one possible implementation, a first target bit rate corresponding to the target video content to be downloaded is determined based at least on a first reference value, including: selecting at least one bit rate that does not exceed the first reference value from multiple bit rates corresponding to the target video content to be downloaded as at least one candidate item; determining the first target bit rate from at least one candidate item based on at least one of a target network level, a target water level interval, and a buffer status corresponding to the client; wherein the buffer status is used to characterize a change state of the buffer length, including an increasing state or a decreasing state.

[0015] In a possible implementation, among multiple network levels, different network levels correspond to different level attributes; when the bandwidth sizes of the bandwidth intervals corresponding to the first network level to the Mth network level respectively decrease in sequence, the level attribute corresponding to the first network level is playback picture quality priority, and the level attribute corresponding to the Mth network level is playback smoothness priority; wherein the playback picture quality is determined based on the image resolution and / or the video bit rate; according to at least one of the target network level, target water level interval, and buffer status corresponding to the client, a first target bit rate is determined from at least one candidate item, including: according to at least one of the level attributes, target water level interval, and buffer status corresponding to the target network level corresponding to the client, a first target bit rate is determined from at least one candidate item.

[0016] In a possible implementation, the method further includes: determining an adjustment factor, where the adjustment factor is determined based on a buffer state and is used to adjust the first bandwidth attenuation coefficient; wherein the buffer state includes an increasing state or a decreasing state.

[0017] In a possible implementation, the first bandwidth attenuation coefficient is determined based on the buffer length at a specified time and a first adjustment factor.

[0018] In a possible implementation, the method further includes: determining a water level division coefficient; the water level division coefficient is used to determine a dividing point between different water level intervals.

[0019] In a possible implementation, the first target bit rate is the bit rate corresponding to the target video content to be downloaded during the video playback process; before determining the first target bit rate corresponding to the target video content to be downloaded based on at least the first bandwidth attenuation coefficient and the download rate prediction value corresponding to the target network level, the method also includes: determining multiple start adjustment coefficients corresponding to multiple network levels; among the multiple network levels, different network levels correspond to different start adjustment coefficients; based on the download rate prediction value and the start adjustment coefficient, determining the second target bit rate corresponding to the target video content to be downloaded at the video start stage.

[0020] In a possible implementation, based on the download rate prediction value and the start adjustment coefficient, a second target bit rate corresponding to the target video content to be downloaded at the video start stage is determined, including: performing a predetermined third operation on the start adjustment coefficient and the download rate prediction value, and obtaining the third operation result as a second reference value; among multiple bit rates corresponding to the target video content to be downloaded at the video start stage, a bit rate that does not exceed and is closest to the second reference value is selected, and determined as the second target bit rate.

[0021] In a possible implementation, after determining the second target bit rate corresponding to the target video content to be downloaded at the start of video playback, the method further includes: determining the amount of cached data before playback starts according to the download rate prediction value and the second target bit rate.

[0022] In a possible implementation, the method further includes: obtaining playback quality data, the playback quality data including at least one of start delay, freeze rate, bit rate, resolution, playback success rate, download rate, and target network level; and uploading the playback quality data to a server.

[0023] In one possible implementation, first bandwidth attenuation coefficients corresponding to multiple network levels are determined, including: in response to an update notification sent by the server or after the client is started, a request for control policy information is sent to the server; the update notification is used to indicate that the control policy information is to be updated; the control policy information includes first bandwidth attenuation coefficients corresponding to multiple network levels; based on the control policy information, the first bandwidth attenuation coefficients corresponding to the multiple network levels are determined.

[0024] In the second aspect, the technical solution of the present application also provides a video bit rate control method based on network classification, which is applied to a server, and the method includes: determining multiple bandwidth intervals and multiple network levels corresponding to the multiple bandwidth intervals; generating first bandwidth attenuation coefficients corresponding to the multiple network levels, and sending them to the client; wherein different network levels among the multiple network levels correspond to different first bandwidth attenuation coefficients; the first bandwidth attenuation coefficient is used to adjust the first target bit rate corresponding to the target video content to be downloaded to the client.

[0025] In a possible implementation, playback quality data uploaded by a client is received; the playback quality data includes at least one of a playback start delay, a freeze rate, a bit rate, a resolution, a playback success rate, a download rate, and a target network level.

[0026] In one possible implementation, after generating first bandwidth attenuation coefficients corresponding to multiple network levels, the method further includes: in response to a request sent by the client for obtaining control policy information, sending control policy information to the client; or, after detecting that the control policy information is updated, sending an update notification to the client; the control policy information at least includes first bandwidth attenuation coefficients corresponding to multiple network levels.

[0027] In a third aspect, the technical solution of the present application also provides an electronic device, comprising: one or more processors; a memory; at least one application; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the electronic device, enable the electronic device to perform a method as described in any one of the first or second aspects above.

[0028] In a fourth aspect, the technical solution of the present application also provides a storage medium, including computer instructions, which, when executed on an electronic device, enables the electronic device to execute a method as described in any one of the first or second aspects above.

[0029] In the fifth aspect, the technical solution of the present application also provides a chip system, including: a communication interface for inputting and / or outputting data; a processor for executing a computer executable program, so that a device equipped with the chip system executes a method as described in any one of the first or second aspects above.

[0030] In a sixth aspect, an embodiment of the present application further provides a software program product, which includes program instructions. When the program instructions are executed on an electronic device, the electronic device executes a method as described in any one of the first aspect or the second aspect above.

[0031] The network-classified video bitrate control method, device, storage medium, and chip system provided in the embodiments of the present application classify clients based on network bandwidth, and different network levels correspond to different bandwidth intervals, and corresponding control parameters (such as a first bandwidth attenuation coefficient) are set respectively. The bitrate of the target video content to be downloaded is comprehensively adjusted in combination with the client's download rate and control parameters. Based on this method, at least the hierarchical control of the video bitrate can be achieved by adjusting the control parameters corresponding to each network level, so that weak network clients with relatively low bandwidth and clients with relatively sufficient bandwidth resources can use different control strategies to respectively control the video bitrate, so that clients with relatively sufficient bandwidth resources can play videos with higher resolution or clarity, thereby improving the user's viewing experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 is a system architecture diagram of a video bit rate control method based on network classification provided in an embodiment of the present application;

[0033] Figure 2 This is an example diagram of an application scenario of the video bit rate control method based on network classification provided in an embodiment of the present application;

[0034] Figure 3is a schematic diagram of an example of water level division in a video bit rate control method based on network classification provided in an embodiment of the present application;

[0035] Figure 4 It is a flowchart of a video bit rate control method based on network classification executed on the client side in an embodiment of the present application;

[0036] Figure 5 It is a signaling flow chart of multi-party interaction between the client and the server in the embodiment of the present application;

[0037] Figure 6 It is a schematic diagram of the hardware structure of an embodiment of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0039] The embodiment of the present application provides a video bit rate control scheme, which performs adaptive dynamic bit rate control based on network classification, and can be applied to various video playback scenarios, such as video playback scenarios based on OTT (Over The Top) services, video on demand (VOD) scenarios, live broadcast scenarios, etc. The scheme can be applied to clients that support video playback functions, and the client can be any APP or player that supports video playback. The client can run based on various terminal devices, and the terminal device can be a TV, a mobile phone, a smart screen, a set-top box, a tablet computer, a personal computer, a smart watch, a wearable electronic device, an augmented reality (AR) device, a virtual reality (VR) device, a learning machine, and other terminal products that support video playback.

[0040] At present, in order to improve the user experience, video playback can use Adaptive Rate Control (ARC) technology to dynamically adjust the bit rate. The bandwidth of the IP network will fluctuate. According to the changes in the network bandwidth on the user side (i.e., the client side), the appropriate bit rate or resolution can be selected to start playback, and during the playback process, according to the changes in the bandwidth on the user side, the bit rate of the content to be played can be adjusted, that is, the video data stream with a different bit rate from the currently playing video data stream can be replaced.

[0041] For example, in the related art, OTT video service operators have put tens of thousands of hours of video content on the existing network to provide video on demand services to users. The video on demand service provided uses a Qos-based bit rate adaptive algorithm for playback. Although this solution performs dynamic bit rate adjustment during video playback, it adopts a unified control strategy for clients in different bandwidth environments, and the algorithm and control parameters are uniformly set. In order to take into account weak network users (i.e. users with low bandwidth), an overall control strategy that prioritizes playback fluency is adopted. Although this strategy tends to favor weak network users to a certain extent, in actual application scenarios, the playback fluency of weak network users is still poor, which makes weak network users have a greater impact on the overall key performance indicators (Key Performance Indicator, KPI). For example, the experience KPI statistics based on an OTT on-demand service are: 1) The proportion of playback with a download rate of less than 2Mbps is 4.69%, contributing 53.09% of the overall number of freezes; 2) The proportion of playback with a download rate of 2Mbpss~5Mbps is 8.83%, contributing 20.8% of the overall number of freezes.

[0042] In addition, for users with higher bandwidth, this related technology also has certain disadvantages. Due to the use of a unified control strategy, it tends to ensure playback smoothness and reduce the start-up delay, and tends to use weak network algorithms, ignoring the needs of users with sufficient bandwidth resources for image quality. Therefore, a conservative upper-cut resolution and aggressive lower-cut resolution control mechanism is adopted, resulting in many scenarios where the user bandwidth can watch high-resolution images, but low-resolution images are played, sacrificing the image quality level of the user, so that most users with good networks cannot fully watch high-resolution or high-definition images. In addition, since in this related technology, the algorithm for switching from low resolution to high resolution during the start-up stage and during playback is relatively conservative, the lower-cut is prioritized after jitter occurs, and it takes a long time to switch to high-resolution / high-definition code streams. In this way, even if the user network is good after the start-up, if the user network jitters, it will take a long time (for example, more than 30 seconds) to switch to high-definition images such as Blu-ray for viewing. The user network bandwidth is not fully utilized during playback, bandwidth resources are wasted, and the proportion of playback time that users can watch high-definition or Blu-ray resolution images is reduced. It can be seen that the relevant technology actually fails to effectively protect users with weak networks, resulting in a poor experience for users with weak networks; in addition, for users with relatively sufficient network bandwidth resources, their bandwidth resources cannot be fully utilized, and the user experience needs to be improved.

[0043] In view of this, the embodiment of the present application provides a video bit rate control solution, which divides multiple network levels according to the different bandwidths of the client, and dynamically selects the target video content with a bit rate that matches the client's network level for downloading and playing. An example of a feasible control strategy is that, at the start-up stage, the network level corresponding to the client is determined based on the client's historical download rate, and a start-up bit rate that is suitable for the client's network level is selected, and it is determined how long the cached data of the video to be played is downloaded before starting to play; during the playback process, before downloading each next segment, the target video content (such as the next video segment) with a bit rate or resolution is selected to be downloaded based on the user's real-time bandwidth and the bandwidth attenuation coefficient (such as the first bandwidth attenuation coefficient), thereby realizing dynamic adaptive bit rate selection and playback, which improves the playback picture quality and the user's viewing experience while ensuring smooth playback without lag.

[0044] Among them, based on the bandwidth of the client, the network is segmented, that is, a corresponding network level is set for each network bandwidth segment to achieve hierarchical setting of the control strategy. For example, multiple network levels may include network level 1, network level 2, network level 3, and network level 4. Among them, network level 1 adopts the control logic of giving the highest priority to playback clarity and aggressive bit rate cutting, network level 2 adopts the control logic of better playback freshness and more aggressive bit rate cutting, network level 3 adopts the control logic of general playback clarity, fluency requirement is higher than clarity, and more conservative bit rate cutting, and network level 4 adopts the control strategy of giving the highest priority to fluency, the lowest playback clarity, and the most aggressive bit rate cutting. Weak network users play smoothly with low definition or low bit rate and no bit rate cutting; strong network users play high definition (such as Blu-ray) playback time ratio effectively improved. Based on this hierarchical control strategy, at the start and playback of video playback, the network level of the user is determined according to the user's network bandwidth, and then the video segment with the optimal bit rate adapted to the network level is selected for download and playback. The number of levels based on network bandwidth classification, the interval length of each network bandwidth segment, the endpoint value, and various control parameters and algorithms in the corresponding control strategy can be flexibly adjusted.

[0045] Specifically, the solution provided by the embodiments of the present application solves the following problems:

[0046] (1) The related technologies uniformly adopt a control strategy that prioritizes playback fluency. However, since the same algorithm and control parameters such as factor coefficients are used as for clients with higher bandwidth, there is no special protection for weak networks, resulting in poor playback fluency for weak network clients, affecting the overall KPI. The video bit rate control strategy provided in the embodiment of the present application provides independent algorithms and adjustment coefficients (such as the first bandwidth attenuation coefficient or the second bandwidth attenuation coefficient) for weak network users through a control strategy based on network classification, so that weak network clients can take viewing fluency as the goal, effectively improving the playback experience of weak network users and solving the technical problem of high playback freeze rate of weak network clients in the related technologies. According to actual measurement statistics, after adopting the solution provided in the embodiment of the present application, the number of playback freezes in weak networks can be greatly reduced, thereby improving the overall playback experience.

[0047] (2) The solution provided in the embodiment of the present application maximizes the use of user bandwidth for strong network clients through an adaptive algorithm based on user-side network classification, while maintaining the jam ratio and start delay. At the same time, the proportion of playback time of high-definition (such as Blu-ray) playback by strong network clients is effectively improved, effectively improving the user's viewing experience. It solves the problem that the playback bit rate adaptive algorithm in the related art prioritizes playback smoothness and is conservative in bit rate increase, resulting in users with relatively sufficient network bandwidth resources being unable to fully utilize the bandwidth, and the ratio of users watching high-resolution or high-definition image quality is not high. For example, after actual measurement, after implementing the video bit rate control solution provided in the embodiment of the present application, under a network bandwidth of 10Mb, the playback time ratio of high-definition (such as Blu-ray) playback by strong network users is increased from 80% to 92%. Among them, a bandwidth lower than a preset threshold can be defined as a weak network, and a bandwidth exceeding a preset threshold can be defined as a strong network.

[0048] See also Figure 1 As shown, illustratively, the video bit rate control solution provided in the embodiment of the present application can be based on the following Figure 1The system architecture shown is implemented. Specifically, the system architecture may include a video operation management system and a client supporting video playback. The video operation management system includes a first server and a second server, wherein the first server is used to obtain the control strategy from the policy library and send it to each client, and the second server is used to perform statistical analysis of the playback quality. The client includes a playback strategy control module, a reporting module, and a player. Among them, the playback strategy control module is used to obtain a control strategy based on network classification, perform adaptive dynamic bit rate adjustment according to the control strategy, and play the video with the corresponding bit rate through the player; the reporting module is used to upload the playback quality data to the second server, for example, the control strategy information, start delay, freeze rate, resolution and other information actually adopted by the client are uploaded to the second server, so that the second server can perform statistical analysis based on the statistical data of each network level and further adjust the control strategy. Optionally, in this system architecture, the video data downloaded by the client can come from an edge server deployed based on a content delivery network (Content Delivery Network, CDN). CDN is mainly used for the distribution of video content. It is based on edge servers deployed in various places. Through the load balancing, content distribution, scheduling and other functional modules of the central platform, users can obtain video content nearby, reduce network congestion, and improve user access response speed and hit rate.

[0049] Specifically, in the system architecture, in a possible implementation, the first server is mainly used to generate control strategy information, which includes control parameters, control logic and various algorithms used for adaptive control of the client's video bit rate. The first server is responsible for sending the control strategy information to the client. The interaction mechanism between the first server and the client can be that the corresponding APP (i.e., the client) actively obtains from the first server when it is started, or, when a policy change occurs, the first server sends an update notification to the corresponding APP. After receiving the update notification, the APP actively sends a request to obtain the control strategy information to obtain the latest control strategy). In a possible implementation, the client uploads the playback quality data during the video playback process or after the video playback ends. The second server is used for playback quality statistical analysis, is responsible for receiving the playback quality data reported by the APP, and based on the network classification, statistically analyzes the playback quality of each network classification segment, and synchronizes it to the first server. So that the first server optimizes the control strategy of each network level according to the statistical analysis results to obtain a control strategy that can achieve the best playback effect. In addition, in this system architecture, the video operation management system performs operations such as operation management, user management, and activity management of video content. The APP can obtain information such as the column / content list of the video content from the video operation management system. When the user initiates playback, the APP initiates playback authentication and other requests to the video operation management system to determine whether the user can play and obtain the playback URL, and provide video management control services for video on demand or live broadcast.

[0050] It should be noted that the system architecture is only an example. Based on this example, other system architectures can be obtained by merging or splitting its components. For example, the operations performed by the first server and the second server can be implemented based on at least one server in the server cluster, that is, the first server and the second server can be the same server or multiple servers; the reporting module and the playback strategy control module can also be integrated into the same module, for example, integrated into a playback strategy control module, and the playback strategy control module supports reporting playback quality data. In addition, the playback strategy control module and the player can also be integrated into the same module, for example, integrated into a player with a playback strategy control function.

[0051] The following is a detailed description of the video bitrate control method based on network classification provided by an embodiment of the present application. Described from the perspective of the client side, the method may include: determining first bandwidth attenuation coefficients corresponding to a plurality of network levels, respectively, and the plurality of network levels are divided based on the bandwidth size of the client, corresponding to a plurality of bandwidth intervals. Moreover, different network levels among the plurality of network levels correspond to different first bandwidth attenuation coefficients. Then, based on the download rate corresponding to the client, the target network level corresponding to the client is determined, and the first target bitrate corresponding to the target video content to be downloaded is determined at least based on the first bandwidth attenuation coefficient corresponding to the target network level and the download rate corresponding to the client.

[0052] In the embodiment of the present application, the control strategy for controlling the video bit rate may include control logic, algorithm and control parameters, wherein the first bandwidth attenuation coefficient is one of the control parameters. The control parameters may also include at least one of the second bandwidth attenuation coefficient, water level coefficient, water level division coefficient, adjustment factor and start adjustment coefficient.

[0053] Specifically, in one possible implementation, the control strategy can be generated by the server side and sent to the client. Figure 2 As shown, the client (APP supporting video playback) running on the terminal device 10 can actively send a request to the server to obtain the control strategy when it is started, and the cloud-side server 20 (such as an application server) responds to the request and feeds back the control strategy to the client. Alternatively, when the control strategy information changes, the cloud-side server 20 sends an update notification, and the APP responds to the update notification and sends a request to the cloud-side server 20 again ( Figure 2 The cloud-side server responds to the acquisition request and sends the updated control strategy information to the client. It should be noted that the terminal device 10 can be Figure 2 Any device shown in the dashed box.

[0054] In another possible implementation, the control strategy can be deployed on the client side, the control parameters in the control strategy can be stored in the storage space occupied by the video player, and the control logic and algorithm based on network classification can be designed through software programming to design corresponding functional modules (for example Figure 1 The playback strategy control module shown in FIG) is solidified into the client application, that is, the corresponding control strategy is solidified as an additional function of the video player. When the control strategy needs to be updated, the control logic and algorithm in the control strategy are updated through software upgrades, etc. Alternatively, when the control parameters need to be changed, the corresponding control parameters can be changed by interacting with the server.

[0055] To facilitate understanding of the solution provided by the embodiment of the present application, it should be noted that in video on demand or live broadcast, each video content to be played corresponds to an index file, and the index file can be an index plain text file obtained by encoding in a predetermined encoding format. For example, the predetermined encoding format can be an 8-bit (Universal Character Set / Unicode Transformation Format, UTF-8) encoding format of variable-length character encoding. In the dynamic bit rate adaptive technology (HTTP Live Streaming, HLS), the index plain text file can be an m3u8 file using the UTF-8 encoding format; in the dynamic adaptive bit rate stream (Dynamic Adaptive Streaming over HTTP, DASH) technology based on HTTP, the index file can be an MPD (Media Presentation Description) file. An index file includes multiple bit rates or multiple resolutions, and each video bit rate or resolution corresponds to a uniform resource location (Uniform Resource Locator, URL) address for video playback download. The APP or player needs to download this index file before starting to play, and then download one of the bit stream data for playback through the multiple bit stream information described in the index file. A portion of the embodiments of the video bitrate control method based on network classification provided in the present application is to select the target bitrate that best matches the client from the multiple bitrates recorded in the index file, switch the bitrate of the current video data stream to the target bitrate, and thereby achieve a better video playback effect.

[0056] It should also be noted that, in the embodiment of the present application, the video content to be downloaded can be a video file of various formats encapsulated based on the fragmentation technology, for example, it is encapsulated using the MP4 (Motion Picture Experts Group-4) fragmentation method, and the fragmentation download technology is adopted. Video fragmentation, that is, when the video is encoded, a content is divided into multiple small fragments of 2s-10s. When the video is played, the small fragments are downloaded to the local for playback. The cost of video playback using the fragmentation method is low, and it is suitable for large-scale OTT on-demand or live broadcast scenarios. Therefore, in the embodiment of the present application, the target video content to be downloaded can be a video fragment (also called a slice), for example, it can be the next small fragment of 2s-10s in length.

[0057] An index file can be used to describe a complete video file or a segment in a video file. The index file is used to describe at least the multiple bitrates and URLs corresponding to a segment. For example, in an MPD file, each media file is used to describe one or more segments of a certain length, and each segment corresponds to its own URL or a different byte range of the same URL.

[0058] Based on the video segmentation technology, in the embodiment of the present application, the triggering time of dynamically switching the bit rate can be any time before downloading the next video segment. For example, one feasible way is to switch the bit rate within a predetermined time before downloading the next video segment, such as within 3 seconds before downloading the next video segment. Or, in another feasible implementation, the triggering time of dynamically switching the bit rate can be in the time slot between downloading two adjacent video segments, for example, after the download of the previous video segment is completed and before the download of the next video segment, the bit rate of the next video segment is selected based on the control scheme provided in the embodiment of the present application. In other implementations, the bit rate selection can also be performed in advance for at least one video segment, wherein the target video content can include multiple video segments, that is, each 2-4 video segments are a group, a group of video segments corresponds to the same bit rate, and a group of video segments only needs to perform one bit rate selection or switching. In this way, compared with performing one bit rate selection for each video segment, the overall complexity of the algorithm for adaptive control of the video bit rate and the consumption of resources such as computing and memory can be reduced.

[0059] In the embodiment of the present application, multiple network levels are divided based on the bandwidth size of the client, and different control strategies are set for different network levels. For example, for a network level with a poor network and a low bandwidth value, the most conservative strategy (no up-cut, maintain the lowest resolution) is used for playback, which gives priority to ensuring the playback smoothness of users with weak networks. For a network level with a higher bandwidth value, a control strategy that gives priority to playback clarity is adopted, giving priority to playback picture quality clarity, maximizing the use of user bandwidth, and ensuring the user's playback quality experience.

[0060] A plurality of network levels may include the first network level to the Mth network level, where M≥2. Exemplarily, a feasible division method is to set four network levels. If the bandwidth is ≥10Mb, it is divided into the first network level, and the corresponding bandwidth interval is [10Mb, +∞); if the bandwidth is greater than or equal to 7Mb and less than 10Mb, it is divided into the second network level, and the corresponding bandwidth interval is [7Mb, 10Mb); if the bandwidth is greater than or equal to 2Mb and less than 7Mb, it is divided into the third network level, and the corresponding bandwidth interval is [2Mb, 7Mb); if the bandwidth is less than 2Mb, it is divided into the fourth network level, and the corresponding bandwidth interval is [0Mb, 2Mb). The above-mentioned network classification method based on bandwidth is only an example, and it can also be divided according to various other division methods, wherein the number of network levels and the bandwidth interval corresponding to each network level can be adaptively adjusted. For example, it can be divided into 5 network levels, and the corresponding bandwidth intervals are: [20Mb, +∞), [15Mb, 20Mb), [10Mb, 15Mb), [5Mb, 10Mb), [0Mb, 5Mb), or it can be divided into 3 network levels, etc.

[0061] After determining multiple network levels and the bandwidth intervals corresponding to each network level, it is necessary to determine the download rate corresponding to the client, and then determine the network level corresponding to the client based on the bandwidth interval into which the client's download rate falls. Among them, the download rate corresponding to the client can be the real-time download rate at the current moment, or it can be a download rate prediction value calculated based on a bandwidth prediction algorithm. One possible implementation method is to determine the corresponding network level based on the bandwidth interval into which the real-time download rate of the client at the current moment falls. For example, if it is found that the download rate of the client at the current moment is 1Mbps, it falls into the bandwidth interval [0Mb, 2Mb). According to the above bandwidth interval division example, the corresponding network level is the fourth network level.

[0062] In the implementation method of determining the target network level based on the real-time rate, the step of determining the target network level is executed before the step of obtaining the download rate prediction value, that is, the network level is determined first. Different network levels can use different bandwidth prediction algorithms. The corresponding bandwidth prediction algorithm is selected according to the determined network level to calculate the download rate prediction value.

[0063] Another possible implementation method is to first obtain the predicted value of the client's download rate based on the bandwidth prediction algorithm, and then use the network level corresponding to the bandwidth interval in which the predicted value falls as the target network level corresponding to the client. That is, in this implementation method, the step of determining the predicted value of the download rate precedes the step of determining the target network level in terms of timing. This method is suitable for situations where multiple network levels use the same bandwidth prediction algorithm. Regardless of the level, the bandwidth prediction value (download rate prediction value) is first calculated according to the unified bandwidth prediction algorithm, and then the level is determined.

[0064] Among multiple network levels, the network level corresponding to the current target client is the target network level. This description is only for clarity and to avoid confusion. The network level corresponding to the client is uniformly described as the target network level below.

[0065] In an embodiment of the present application, the control strategy may include a bandwidth prediction algorithm. As an implementable method, the download rate corresponding to the client may be predicted based on multiple historical download rates, which may be determined specifically according to the following bandwidth prediction algorithm:

[0066] Query multiple historical download rates corresponding to the client in the bandwidth window list, calculate the harmonic mean or arithmetic mean based on the multiple historical download rates, and determine the calculated harmonic mean or arithmetic mean as the download rate corresponding to the client. Calculating the harmonic mean or arithmetic mean based on multiple historical download rates includes directly calculating the harmonic mean or arithmetic mean of multiple historical download rates, or eliminating a maximum value and / or a minimum value from multiple historical download rates, and calculating the arithmetic mean or harmonic mean of the remaining multiple historical download rates. For example, the bandwidth window list (bandwidthlist) saves the most recent 30 bandwidth values, and the harmonic mean is used for calculation, so the predicted bandwidth is calculated as: 30 / (1 / bandwidth1+1 / bandwidth2+…+1 / bandwidth30).

[0067] It should be noted that, in general, bandwidth represents data transmission capacity, that is, the expected value of the amount of data that can be transmitted per unit time, and download rate represents actual data transmission capacity, that is, the amount of data actually transmitted per unit time. In the embodiment of the present application, the download rate prediction value corresponding to the client is the bandwidth actually occupied by the client downloading the video data to be played. Accordingly, the endpoint value of the bandwidth value in the bandwidth interval can represent the actual download rate, or it can represent the expected value of the amount of data that can be transmitted per unit time, as long as there is a certain mapping relationship between the bandwidth interval and the download rate prediction value. For example, the bandwidth interval is [10Mb, +∞), and the actual download rate may only reach 5Mbps. Therefore, when determining the bandwidth interval corresponding to the client, whether the download rate value falls within the numerical interval represented by the bandwidth interval is not used as a discrimination condition, but is based on a predetermined mapping relationship from the download rate to the bandwidth interval as a discrimination condition.

[0068] Specifically, different bandwidth prediction algorithms are used for different network levels:

[0069] For the first network level, the video data stream with the highest bit rate is preferred to obtain the maximum estimated bandwidth. The arithmetic mean of the previous K download rates is used, and the abnormal minimum value is removed. K ≥ 1. For example, the bandwidth window list saves the most recent 30 bandwidth values. After removing an abnormal minimum value, the calculation formula for the predicted download rate is:

[0070] (bandwidth1+bandwidth2+…+bandwidth29) / 29.

[0071] For the second network level, a video data stream with a higher bit rate is preferred to obtain a larger user estimated bandwidth. The arithmetic mean of the previous K download rates is used, and a maximum value and a minimum value are removed. For example, the bandwidth window list saves the most recent 30 bandwidth values, and the abnormal maximum and minimum values ​​are removed. Then, at this network level, the calculation formula for the predicted download rate prediction value is:

[0072] (bandwidth1+bandwidth2+…+bandwidth28) / 28.

[0073] For the third network level, a video data stream with a lower bit rate is preferred to obtain a more conservative user estimated bandwidth. The harmonic mean algorithm is used to remove the abnormal minimum value and calculate the harmonic mean of the previous K download rates. For example, the bandwidth window list saves the most recent 30 bandwidth values. After removing a minimum value, the calculation formula for the predicted download rate at this network level is:

[0074] 29 / (1 / bandwidth1+1 / bandwidth2+…+1 / bandwidth29).

[0075] For the fourth network level, the video data stream with the lowest resolution / definition is preferred to obtain the minimum user estimated bandwidth. The harmonic mean of the previous K download rates can be calculated. For example, the bandwidth window list saves the most recent 30 bandwidth values. Then, at this network level, the calculation formula for the predicted download rate is:

[0076] 30 / (1 / bandwidth1+1 / bandwidth2+…+1 / bandwidth30).

[0077] It should be noted that K can be equal to 1. When K=1, the download rate prediction value is the most recent bandwidth value recorded in the bandwidth window list (ie, the most recent historical download rate). In addition, the download rate prediction value corresponding to the client can also be the current real-time download rate.

[0078] In practical applications, as an implementable method, the corresponding bandwidth interval can be determined based on the download rate of the client's most recent download, and then the corresponding network level can be determined. Then, according to the bandwidth prediction algorithms of the above-mentioned network levels, the arithmetic mean or harmonic mean of multiple historical download rates can be calculated again, and the calculated bandwidth can be used as the download rate prediction value corresponding to the client. Then, the corresponding network level is determined based on the download rate prediction value. The bandwidth prediction algorithm executed based on multiple historical download rates can avoid deviations caused by abnormal single-collection values ​​caused by bandwidth jitter. In other implementable methods, different network levels can also use the same bandwidth prediction algorithm. Therefore, when determining the target network level corresponding to the client, the arithmetic mean or harmonic mean of the most recent K historical download rates recorded in the bandwidth window list can be calculated according to the same bandwidth prediction algorithm, and the calculation result can be directly used as the predicted download rate prediction value.

[0079] After determining the target network level corresponding to the client, the control policy information is queried for control parameters corresponding to the target network level, and the control parameters include at least a first bandwidth attenuation coefficient, and different network levels correspond to different first bandwidth attenuation coefficients. In a possible implementation, when the bandwidth sizes of the bandwidth intervals corresponding to the first network level to the Mth network level are sequentially reduced, the first bandwidth attenuation coefficients corresponding to the first network level to the Mth network level are sequentially reduced.

[0080] After querying the first bandwidth attenuation coefficient corresponding to the client, in a possible implementation method, the bit rate (i.e., the first target bit rate) of the next target video content to be downloaded can be determined based on the first bandwidth attenuation coefficient and the predicted value of the download rate of the client. For example, the product of the first bandwidth attenuation coefficient and the predicted value of the download rate is calculated, and then the bit rate that does not exceed and is closest to the product value is selected from the candidate multi-channel bit rates as the first target bit rate. Thus, by setting different first bandwidth attenuation coefficients, the purpose of controlling the video bit rate can be achieved. The first bandwidth attenuation coefficient of the first network level is greater than the first bandwidth attenuation coefficient of the fourth network level. For example, the first bandwidth attenuation coefficients corresponding to the first network level to the fourth network level are 1.5, 1.2, 1, and 0.7, respectively. The determined video bit rates corresponding to the first network level to the fourth network level (first target bit rate) are reduced in sequence, thereby achieving hierarchical control of the video bit rate.

[0081] In an embodiment of the present application, based on the network bandwidth classification, a rate control mechanism based on water level classification is also provided. In a possible implementation, the control parameters in the control strategy may also include multiple water level coefficients corresponding to multiple water level intervals. Multiple water level intervals are determined based on the buffer length during video playback, that is, in an embodiment of the present application, in addition to dividing multiple network levels according to network bandwidth, multiple water levels are also divided according to the buffer length during video playback, and multiple water level coefficients corresponding to the same water level interval correspond to multiple network levels. Among them, different network levels may correspond to different water level coefficients, or at least two network levels among multiple network levels may correspond to different water level coefficients. The water level coefficient is used to further adjust the video bit rate corresponding to different water level intervals.

[0082] The multiple water level intervals include a first water level interval to an Nth water level interval, where N≥2. When the buffer lengths corresponding to the first water level interval to the Nth water level interval increase in sequence, the multiple water level coefficients corresponding to the same network level increase in sequence. For example, N=3, that is, 3 water level intervals are divided. In the order from the first network level to the fourth network level, the multiple water level coefficients corresponding to the first low water level interval are: 0.8, 0.7, 0.5, 0.2; the multiple water level coefficients corresponding to the second water level interval are: 1, 1, 0.9, 0.8; the multiple water level coefficients corresponding to the third water level interval are: 1.5, 1.2, 1.1, 1.0, among which the water level coefficients corresponding to the first network level (in the order from the first water level interval to the third water level interval) are 0.8, 1, 1.5; the water level coefficients corresponding to the second network level are 0.7, 1, 1.2; the water level coefficients corresponding to the third network level are 0.5, 0.9, 1.1; the water level coefficients corresponding to the fourth network level are 0.2, 0.8, 1.0.

[0083] For example, see Figure 3 As shown, a feasible way to divide the water level interval is to divide it into a starting water level interval, a low water level interval, a middle water level interval and a high water level interval. The length of the starting water level interval is the duration of a segment. For example, if a segment is 2-10s, the length of the starting water level interval is 2-10s. The dividing point between the low water level interval and the middle water level interval, and between the middle water level interval and the high water level interval, is determined based on the water level division coefficient.

[0084] Specifically, when dividing the water level interval, the reference value of the buffer length and the water level division coefficient can be set. The reference value of the buffer length is the maximum value of the water level interval. The water level division coefficient is used to determine the dividing point between different water level intervals. The reference value is multiplied by each water level division coefficient to obtain multiple water level intervals. For example, Figure 3 The reference length of the buffer zone is set to 100s, and the water level division coefficients are 0.05, 0.58, and 0.85 respectively. The multiple water level intervals divided are: starting water level interval, low water level interval, middle water level interval, and high water level interval. The starting water level interval is [0s, 5s), the low water level interval is [5s, 58s), the middle water level interval is [58s, 85s), and the high water level interval is [85s, 100s]. For another example, the reference value of the buffer length is set to 200 seconds (s), and when the buffer lengths corresponding to the first water level interval to the Nth water level interval increase in sequence, the water level division coefficient between the first water level and the second water level is set to 0.1, the water level division coefficient between the second water level interval and the third water level interval is set to 0.6, and the water level division coefficient between the third water level interval and the fourth water level interval is set to 0.8, then the first to fourth water level intervals obtained are: [0s, 20s), [20s, 60s), [60s, 80s), [80s, 100s]. For another example, the reference value of the buffer length is set to 150s, and the water level division coefficients are set to 0.05, 0.3, and 0.7 respectively, then the multiple water level intervals obtained are: [0s, 7.5s), [7.5s, 45s), [45s, 105s), [105s, 150s].

[0085] After determining multiple water level intervals and the target network level corresponding to the client, the water level interval corresponding to the specified time can be determined as the target water level interval based on the buffer length at the specified time during video playback. After determining the target water level interval, the target water level coefficient corresponding to the target network level is selected from the multiple water level coefficients corresponding to the target water level interval. The specified time can be any time before downloading the target video content.

[0086] For example, from Figure 3It can be seen that the length of the buffer (marked with a slash) at the current moment is in the low water level interval, so the target water level interval corresponding to the current moment is the low water level interval. After determining that the target water level interval is the low water level interval, query the control strategy information for multiple water level coefficients corresponding to the low water level interval, and use the water level coefficient corresponding to the target network level corresponding to the client among the multiple water level coefficients corresponding to the low water level interval as the target water level coefficient. For example, the multiple water level coefficients corresponding to the low water level interval (in the order of the first network level to the fourth network level) are: 0.8, 0.7, 0.5, 0.2, and the target network level corresponding to the client is the first network level, then the determined target water level coefficient is 0.8; if the target network level corresponding to the client is the third network level, then the determined target water level coefficient is 0.5.

[0087] The following specifically describes how to determine the first target bit rate of the target video content to be downloaded during the video playback process.

[0088] It should be noted that, for the purpose of clear description and avoidance of confusion, in the embodiment of the present application, the bit rate corresponding to the target video content to be downloaded during video playback is defined as the first target bit rate, and the bit rate corresponding to the target video content to be downloaded during the video start-up phase is defined as the second target bit rate.

[0089] Based on the above steps, the control parameters such as the first bandwidth attenuation coefficient, the second bandwidth attenuation coefficient, and the target water level coefficient corresponding to the client can be obtained, and the predicted value of the client's download rate can be determined. Next, the following methods can be used to further obtain the first target bitrate to be downloaded based on the above control parameters and corresponding algorithms:

[0090] Method 1: Determine the target bit rate based on the first bandwidth attenuation coefficient and the download rate prediction value.

[0091] A fourth operation is performed for the first bandwidth attenuation coefficient and the download rate prediction value corresponding to the target network level to obtain a fourth operation result. Among the multiple bit rates corresponding to the target video content to be downloaded, a bit rate that does not exceed and is closest to the fourth operation result is selected and determined as the first target bit rate.

[0092] For example, the fourth operation may be a product operation, that is, calculating the product of the first bandwidth attenuation coefficient corresponding to the target network level and the predicted download rate value, selecting the bit rate that does not exceed and is closest to the product value, and determining it as the first target bit rate.

[0093] In this manner, the fourth operation is not limited to a multiplication operation, but may also be a division operation, an exponential operation, or a function operation with the first bandwidth attenuation coefficient and the download rate prediction value as independent variables and the fourth operation result as the dependent variable.

[0094] It should be noted that, in one possible implementation, when the fourth operation result is positively correlated with the first bandwidth attenuation coefficient, and the bandwidth sizes of the bandwidth intervals corresponding to the first network level to the Mth network level are sequentially reduced, the first bandwidth attenuation coefficients corresponding to the first network level to the Mth network level are sequentially reduced. The fourth operation result is positively correlated with the first bandwidth attenuation coefficient, that is, if the first bandwidth attenuation coefficient increases, the fourth operation result also increases, and if the bandwidth attenuation coefficient decreases, the fourth operation result also decreases.

[0095] If the fourth operation result is negatively correlated with the first bandwidth attenuation coefficient, and the bandwidth sizes of the bandwidth intervals corresponding to the first network level to the Mth network level decrease in sequence, the first bandwidth attenuation coefficients corresponding to the first network level to the Mth network level increase in sequence (in the order from the first network level to the fourth network level).

[0096] It should be noted that two levels of hierarchical control are provided in the embodiment of the present application, one level of grading is based on network bandwidth, and the second level of grading is based on buffer length. As mentioned above, in a possible implementation, grading can be performed only based on network bandwidth. In this case, there is no need to set the water level coefficient or obtain the target water level coefficient, and the video bit rate can be controlled only by adjusting the first bandwidth attenuation coefficient.

[0097] This method adopts a layer of classification, dividing the network into multiple levels only according to the network bandwidth, without considering the water level division problem. By setting the first bandwidth attenuation coefficient of each network level, the purpose of hierarchical control of video bit rate can be achieved. This method is simple and easy to implement with low complexity.

[0098] Method 2: Determine the first target bit rate based on the first bandwidth attenuation coefficient, the target water level coefficient, and the download rate prediction value.

[0099] After obtaining the target water level coefficient, a predetermined first operation is performed for the first bandwidth attenuation coefficient and the target water level coefficient corresponding to the target network level, and the first operation result is obtained as the second bandwidth attenuation coefficient. For example, the first operation can be a product operation, with factor1 representing the first bandwidth attenuation coefficient, factor2 representing the second bandwidth attenuation coefficient, and blc (buffer level coefficient) representing the target water level coefficient, then factor1*blc=factor2, assuming that the target network level is the first network level, the corresponding setting factor1=1, and when the target water level coefficient is 0.8, then factor2=0.8. The first operation is not limited to a product operation, and can also be a division operation, an exponential operation, or a function operation with the first bandwidth attenuation coefficient and the target water level coefficient as independent variables and the first operation result as the dependent variable.

[0100] Next, after obtaining the second bandwidth attenuation coefficient, the first target bit rate corresponding to the target video content to be downloaded is determined based at least on the download rate and the second bandwidth attenuation coefficient. Specifically, a predetermined second operation can be performed for the second bandwidth attenuation coefficient and the download rate, and the second operation result obtained is used as the first reference value, and the first target bit rate corresponding to the target video content to be downloaded is determined based at least on the first reference value. The second operation can also be a product operation. For example, if the download rate is 1.2Mbps, the first reference value is 1.2Mbps*factor2. When factor2=0.8, the first reference value is 0.96Mbps. Obviously, the second operation is not limited to the product operation, but can also be a division operation, an exponential operation, or a function operation with the second bandwidth attenuation coefficient and the download rate prediction value as independent variables and the second operation result as the dependent variable.

[0101] When the lengths of the buffer zones corresponding to the first water level interval to the Nth water level interval increase in sequence, and the water level coefficient is positively correlated with the second operation result, the multiple water level coefficients corresponding to the same network level increase in sequence from the first water level interval to the Nth water level interval. If the water level coefficient is negatively correlated with the second operation result, when the lengths of the buffer zones corresponding to the first water level interval to the Nth water level interval increase in sequence, the multiple water level coefficients at the same network level decrease in sequence from the first water level interval to the Nth water level interval.

[0102] In the second method, a two-layer classification is adopted. On the basis of the network bandwidth classification, the water level interval is further divided, and the hierarchical control is performed from the two dimensions of bandwidth and buffer length. In this embodiment, the first bandwidth attenuation coefficient is equivalent to the initial value of the second attenuation coefficient, and the initial value can be preset. For example, different first bandwidth attenuation coefficients are set for different network levels, and the bandwidth corresponding to each network level is reduced or increased in sequence. Then, the difference in video bit rate selection between different network levels is further widened through the water level coefficient. The greater the difference between the multiple water level coefficients corresponding to different water level intervals of the same network level, the greater the difference in video bit rates corresponding to different water level intervals; the greater the difference between the multiple water level coefficients corresponding to different network levels of the same water level interval, the greater the difference between the video bit rates corresponding to different network levels. The division method of 3 water level intervals and 4 network levels requires setting 3*4 water level coefficients and 4 first bandwidth attenuation coefficients.

[0103] In the second method, after obtaining the first reference value based on the second bandwidth attenuation coefficient and the download rate prediction value, the first target bit rate can be obtained by using the following methods:

[0104] Method (1):

[0105] Among the multiple bit rates corresponding to the target video content to be downloaded, a bit rate that does not exceed and is closest to the first reference value is selected and determined as the first target bit rate.

[0106] For example, the first reference value is 0.96Mbps, and the multi-channel bit rates corresponding to the video segments to be downloaded are 1.2Mbps, 0.8Mbps, and 0.5Mbps, respectively. Obviously, 0.8Mbps is the bit rate that does not exceed and is closest to the first reference value, so the bit rate of the next video segment to be downloaded is determined to be 0.8Mbps. If the current bit rate is lower than 0.8Mbps, the bit rate up-cut operation is performed, and if the current bit rate is higher than 0.8Mbps, the bit rate down-cut operation is performed.

[0107] Method (2):

[0108] Among the multiple bit rates corresponding to the target video content to be downloaded, at least one bit rate that does not exceed a first reference value is selected as at least one candidate item, and the first target bit rate is determined from at least one candidate item according to at least one of the target network level, target water level interval, and buffer status corresponding to the client.

[0109] The buffer state, i.e., the change state of the buffer length within a predetermined short time slot, such as the change state within 100ms or the change state within 500ms, includes an increase state or a decrease state. If the video playback speed is greater than the buffer growth speed, it is considered to be a decrease state, and if the video playback speed is less than the buffer growth speed, it is considered to be an increase state.

[0110] In this method, the target network level reflects the data transmission capability of the client, that is, the bandwidth size; the target water level interval reflects the length of the buffer at the current moment; the buffer status reflects the relative speed between the growth rate of the buffer and the video playback speed; the target network level, target water level interval and buffer status are used as reference conditions for bit rate control, that is, multiple factors such as bandwidth size, buffer length and buffer status are comprehensively considered to further select a bit rate that matches these multiple factors from multiple bit rate candidates.

[0111] Exemplarily, the specific control logic may be: the higher the level of the target network level (the larger the bandwidth value in the corresponding bandwidth interval), the longer the length of the buffer corresponding to the target water level interval, and / or the buffer state is in a growing state, then in at least one candidate item, the operation of increasing the code rate is preferentially selected, that is, the candidate code rate greater than the current code rate is preferentially selected as the first target code rate; the lower the level of the target network level (the smaller the bandwidth value in the corresponding bandwidth interval), the shorter the length of the buffer corresponding to the target water level interval, and / or the buffer state is in a decreasing state, then the operation of decreasing the code rate is preferentially selected, that is, the candidate code rate less than the current code rate is preferentially selected as the first target code rate.

[0112] Method (3):

[0113] In this method, level attributes are also set for different network levels. The related art adopts a control mechanism that tends to give priority to the bit rate, while in the embodiment of the present application, different network levels adopt different control mechanisms. Specifically, among multiple network levels, different network levels correspond to different level attributes; when the bandwidth sizes of the bandwidth intervals corresponding to the first network level to the Mth network level are reduced in sequence, the level attribute corresponding to the first network level is to give priority to the playback picture quality, and the level attribute corresponding to the Mth network level is to give priority to the playback smoothness.

[0114] In this method, a first target bit rate is determined from at least one candidate item according to at least one item of a level attribute corresponding to a target network level corresponding to the client, a target water level interval, and a buffer status.

[0115] This method (3) is equivalent to adding a reference factor of level attribute on the basis of method (2). When the level attribute is fluency priority, the bit rate is prioritized to be lowered. When the level attribute is resolution priority, the bit rate is prioritized to be higher. When the level attribute is a balance between fluency and resolution, the current bit rate is tended to be maintained.

[0116] Here are a few specific examples to further illustrate how to control the bit rate:

[0117] During playback, before downloading each segment, the bitrate of the next segment is selected based on the client's network level, the different watermark intervals of the current buffer, such as high watermark, medium watermark, low watermark, and buffer status.

[0118] When the buffer length is in the low water level range, the water level coefficients corresponding to each network level are 0.8, 0.7, 0.5, and 0.4 respectively. When the buffer is in the low water level range and is in a decreasing state, the strategy of not increasing the bit rate or increasing the bit rate is extremely conservative.

[0119] For the first network level (maximum bandwidth), the level attribute corresponding to the first network level is that the playback picture quality is prioritized, so the target video content with the highest bit rate is preferred, which can also be understood as selecting the target video content with the highest resolution or clarity. The second bandwidth attenuation coefficient factor2 = factor1*0.8. When the download rate is 5Mbps and factor1 = 1, the first reference value is 5Mbps*1*0.8 = 4Mbps. The first target bit rate is selected from at least one candidate bit rate that does not exceed 4Mbps. If there are multiple candidate bit rates and the buffer is in a growing state, a maximum of 2 bit rates are cut (a bit rate that is two gears larger than the current bit rate is selected from multiple candidate bit rates, and one gear corresponds to one bit rate). If the buffer is in a decreasing state, the selected bit rate remains unchanged.

[0120] For the second network level (larger bandwidth), the level attribute corresponding to the second network level is that the quality of the playback picture is prioritized, and the fluency is taken into consideration, so a higher bit rate is preferred. The second bandwidth attenuation coefficient factor2 = factor1*0.7. When the download rate is 2Mbps and factor1 = 0.8, the first reference value is 2Mbps*0.8*0.7 = 1.12Mbps. The first target bit rate is selected from at least one candidate bit rate that does not exceed 1.12Mbps. If there are multiple candidate bit rates and the buffer is in a growing state, at most one bit rate is cut up (a bit rate that is one gear higher than the current bit rate is selected from multiple candidate bit rates, and one gear corresponds to one bit rate). If the buffer is in a decreasing state, the bit rate is selected to be cut down by one gear.

[0121] For the third network level (lower bandwidth), the level attribute is to prioritize playback fluency while taking resolution into consideration, so a lower bit rate is preferred; the second bandwidth attenuation coefficient factor2 = factor1*0.5. When the download rate is 1.5Mbps and factor1 = 0.7, the first reference value is 1.5Mbps*0.7*0.5 = 0.52Mbps. The first target bit rate is selected from at least one candidate bit rate that does not exceed 0.52Mbps. If there is only one candidate bit rate, the candidate bit rate is directly used as the first target bit rate. If there are multiple candidate bit rates and the buffer is in a growing state, the bit rate is increased by at most one gear. If the buffer is in a decreasing state, the bit rate is selected to be reduced by two gears. If there is no corresponding candidate bit rate after reducing two gears based on the current bit rate, then reduce one gear, that is, select the lowest bit rate as the first target bit rate.

[0122] For the fourth network level (lowest bandwidth), the level attribute is to prioritize playback fluency, so the lowest bit rate is preferred; the second bandwidth attenuation coefficient factor2 = factor1*0.2. When the download rate is 1.2Mbps and factor1 = 0.6, the first reference value is 1.2Mbps*0.6*0.4 = 0.288Mbps. The first target bit rate is selected from at least one candidate bit rate that does not exceed 0.288Mbps. If there is only one candidate bit rate, the candidate bit rate is directly used as the first target bit rate. If there are multiple candidate bit rates and the buffer is in a growing state, the bit rate is increased by at most one level. If the buffer is in a decreasing state, the lowest bit rate is selected. If there is no bit rate lower than 0.288Mbps, the lowest bit rate among the multiple bit rates is directly selected.

[0123] When the buffer length is in the middle water level interval, the water level coefficients corresponding to each network level are 1, 1, 0.9, and 0.8 respectively.

[0124] For the first network level, the level attribute is that the playback picture quality is prioritized, and the highest bit rate is preferred. The second bandwidth attenuation coefficient factor2=factor1*1. When the download rate is 5Mbps and factor1=1, the first reference value is 5Mbps*1*1=5Mbps. The first target bit rate is selected from at least one candidate bit rate that does not exceed 5Mbps. If there are multiple candidate bit rates and the buffer is in a growing state, a maximum of 2 bit rates will be increased. If the buffer is in a decreasing state, the selected bit rate remains unchanged. Among them, image resolution and / or video bit rate are some factors that determine the playback picture quality. Therefore, the priority of playback picture quality can be understood as the priority of image resolution and / or video bit rate.

[0125] For the second network level, the level attribute is to prioritize the quality of the playback picture, taking into account the fluency, and tend to choose a higher bit rate. The second bandwidth attenuation coefficient factor2 = factor1*1. When the download rate is 2Mbps and factor1 = 0.8, the first reference value is 2Mbps*0.8*1=1.6Mbps, and the first target bit rate is selected from at least one candidate bit rate that does not exceed 1.6Mbps. If there are multiple candidate bit rates and the buffer is in a growing state, the bit rate is cut up to one level at most. If the buffer is in a decreasing state, the selected bit rate remains unchanged.

[0126] For the third network level, the level attribute is to prioritize playback fluency, take into account resolution, and tend to choose a lower bit rate. The second bandwidth attenuation coefficient factor2 = factor1*0.9. When the download rate is 1.5Mbps and factor1 = 0.7, the first reference value is 1.5Mbps*0.7*0.9 = 0.945Mbps. The first target bit rate is selected from at least one candidate bit rate that does not exceed 0.945Mbps. If there are multiple candidate bit rates and the buffer is in an increasing state, the bit rate is increased by at most one level. If the buffer is in a decreasing state, the bit rate is decreased by one level.

[0127] For the fourth network level, the level attribute is to prioritize playback fluency, tend to choose the lowest bit rate, the second bandwidth attenuation coefficient factor2 = factor1 * 0.8, when the download rate is 1.2Mbps, factor1 = 0.6, then the first reference value is 1.2Mbps * 0.6 * 0.8 = 0.576Mbps, and the first target bit rate is selected from at least one candidate bit rate that does not exceed 0.576Mbps. If there are multiple candidate bit rates and the buffer is in a growing state, then at most one bit rate is increased; if the buffer is in a decreasing state, then one bit rate is decreased. If there is only one candidate bit rate, then the one candidate bit rate is directly used as the first target bit rate. If there is no bit rate lower than 0.576Mbps, then the lowest bit rate among the multiple bit rates is directly selected.

[0128] When the buffer length is in the high water level range, the water level coefficients corresponding to each network level are 1.5, 1.2, 1.1, and 1.0 respectively.

[0129] For the first network level, the level attribute is that the playback picture quality is prioritized, and the highest bit rate is preferred. The second bandwidth attenuation coefficient factor2 = factor1*1.5. When the download rate is 5Mbps and factor1 = 1, the first reference value is 5Mbps*1.5*1 = 7.5Mbps. The first target bit rate is selected from at least one candidate bit rate that does not exceed 7.5Mbps. If there are multiple candidate bit rates and the buffer is in a growing state, a maximum of 3 bit rates will be cut. If the buffer is in a decreasing state, a bit rate will be cut. The control strategy corresponding to the high water level is that the bit rate does not decrease, but only increases or maintains the bit rate.

[0130] For the second network level, the level attribute is to prioritize the quality of the playback picture, taking into account the fluency, and tend to choose a higher bit rate. The second bandwidth attenuation coefficient factor2 = factor1*1.2. When the download rate is 2Mbps and factor1 = 0.8, the first reference value is 2Mbps*0.8*1.2 = 1.92Mbps. The first target bit rate is selected from at least one candidate bit rate that does not exceed 1.92Mbps. If there are multiple candidate bit rates and the buffer is in a growing state, a maximum of 2 bit rates will be cut. If the buffer is in a decreasing state, the selected bit rate remains unchanged. At high water levels and the second network level, the corresponding control strategy is that the bit rate does not decrease.

[0131] For the third network level, the level attribute is to prioritize playback fluency, take into account resolution, tend to choose a lower bit rate, the second bandwidth attenuation coefficient factor2 = factor1 * 1.1, when the download rate is 1.5Mbps, factor1 = 0.7, then the first reference value is 1.5Mbps * 0.7 * 1.1 = 1.155Mbps, and the first target bit rate is selected from at least one candidate bit rate that does not exceed 1.155Mbps. If there are multiple candidate bit rates and the buffer is in an increasing state, then at most one bit rate is increased, and if the buffer is in a decreasing state, then one bit rate is decreased.

[0132] For the fourth network level, the level attribute is to prioritize playback fluency, tend to choose the lowest bit rate, the second bandwidth attenuation coefficient factor2 = factor1 * 1.0, when the download rate is 1.2Mbps, factor1 = 0.6, then the first reference value is 1.2Mbps * 0.6 * 1.0 = 0.72Mbps, and the first target bit rate is selected from at least one candidate bit rate that does not exceed 0.72Mbps. If there are multiple candidate bit rates and the buffer is in a growing state, then at most one bit rate is increased; if the buffer is in a decreasing state, then one bit rate is decreased. If there is only one candidate bit rate, then the one candidate bit rate is directly used as the first target bit rate. If there is no bit rate lower than 0.576Mbps, then the lowest bit rate among the multiple bit rates is directly selected.

[0133] In addition, as a possible implementation method, the relationship between the buffer (actual buffer length) and the buffer length reference value can be used as an auxiliary reference factor for controlling the bit rate. For example, if the buffer exceeds 0.9 times of 170s, the bit rate is kept unchanged, and if the bit rate value after the increase is less than the download rate prediction value (downloadbandwidth)*factor1*1.5, the bit rate is increased by one level.

[0134] In addition, it should be added that in a possible implementation, when the buffer (actual length of the buffer) is in a period of time in the middle water level interval or the high water level interval, the bit rate is kept unchanged to reduce the situation of switching back and forth between the bit rates and avoid switching too frequently. For example, when the buffer is between 0.9 (90s) and 1.1 times (110s) of 100s (reference value of the buffer length), the bit rate will switch back and forth. Therefore, when the buffer is in the interval of 90s-110s, the bit rate is kept unchanged.

[0135] It should be noted that, in one embodiment, the first bandwidth attenuation coefficient may be a constant preset for different network levels, or may be a fixed value. In another embodiment, the first bandwidth attenuation coefficient may be a dependent variable, determined based on an adjustment factor. The adjustment factor is a constant used to adjust the first bandwidth attenuation coefficient. Optionally, different water level intervals may correspond to different adjustment factors. Specifically, the first bandwidth attenuation coefficient may be determined based on the buffer length at a specified time and the first adjustment factor. The following takes the low water level interval as an example to illustrate how to determine the first bandwidth attenuation coefficient based on the adjustment factor.

[0136] Taking the low water level interval as an example, the initial values ​​of the four levels of the adjustment factor ratio allocated to the low water level interval are (0.1, 0.3, 0.5, 0.7) respectively. If the buffer is in a growing state, and the buffer length exceeds the starting water level for a time period greater than 0.75 times the length of a segment (for example, 10s), the value of the adjustment factor ratio is set to increase by 0.2, and the adjustment factor corresponding to the low water level interval increases from 0.3 to 0.5. If the buffer decreases, the adjustment factor ratio decreases by 0.2. If the current adjustment factor ratio is 0.3, it decreases to 0.1. After determining the ratio, for any network level, the value of factor1 can be obtained according to the predetermined function relationship factor1 = max(ratio, buffer / 58). Among them, buffer is the actual length (duration) of the buffer at the current moment, and 58 is the maximum endpoint value of the low water level interval, which is also the boundary value between the low water level interval and the high water level interval. For example, refer to Figure 3As shown, assuming that the actual length of the buffer at the current moment is 45s, then factor1 = max(ratio, 45 / 58). Since the maximum value of ratio is 0.7, 45 / 58 = 0.78, therefore, factor1 = 0.78. The buffer length of a weak network client may often be in a low water level interval. Therefore, setting an adjustment factor for the low water level interval and making a more refined adjustment to factor1 in the water level interval is equivalent to applying special protection measures to weak network clients. This technical means can be used as an independent control mechanism, which is implemented based on the division of water level intervals. It should be noted that based on the functional relationship factor1 = max(ratio, buffer / 58), the factor1 obtained at different network levels may be the same value. Therefore, in order to adapt to the division mechanism of multiple network levels, in a possible implementation method, the functional relationship can be factor1 = [max(ratio, buffer / 58)]*factor1, so that different network levels correspond to different first bandwidth attenuation coefficients, and bandwidth-based network grading is achieved.

[0137] In summary, the control parameters may include parameters such as water level coefficient, adjustment factor bandwidth attenuation coefficient, etc. Among them, the water level coefficient includes the starting water level coefficient, the low water level coefficient, the middle water level coefficient and the high water level coefficient. Various water level coefficient values ​​can be set to multiple levels, such as level 1, level 2, level 3, level 4, etc., and the values ​​of the water level coefficients of each level are set in order from the highest priority of playback clarity to the lowest priority of playback clarity (the highest priority of fluency).

[0138] The adjustment factor ratio can also be set to multiple levels, corresponding to level 1, level 2, level 3, level 4, etc., and is set in order from the highest priority to the lowest playback clarity (the highest priority to fluency).

[0139] The bandwidth attenuation coefficients factor1 and factor2 can also be set to multiple levels, which are set in the order of highest priority for playback clarity to lowest playback clarity (highest priority for fluency).

[0140] In the embodiment of the present application, the minimum bit rate of each level can also be set. For example, for four levels, it is set that level 1 is set to be cut down to the bit rate corresponding to 720P resolution at the lowest, with clarity as the priority, level 2 is set to be cut down to the bit rate corresponding to 480P resolution at the lowest, and level 3 is set to be cut down to the bit rate corresponding to 270P resolution at the lowest, maintaining smoothness without frame reduction; level 4 is set to be cut down to the bit rate corresponding to 270P resolution at the lowest, and frame reduction processing is performed at the same time, such as reducing the frame to 15 frames for playback.

[0141] The above implementation method describes the strategy of adaptively controlling the video bit rate during video playback. In the embodiment of the present application, a video bit rate control strategy for the start-up phase is also provided. The algorithm provided in the embodiment of the present application may also include a start-up pre-push algorithm, which is used to determine how much cached data needs to be downloaded to start playback based on the user's real-time download rate or download rate prediction value to avoid freezing after playback; it may also include a start-up bit rate selection algorithm, which is used to select which bit rate to start playback, such as setting the start-up bit rate to no more than 480P in order to reduce the start-up delay and the start-up waiting time, and at the same time not less than the most recent historical download rate * 0.2, etc.

[0142] Correspondingly, the control parameters may further include a start adjustment coefficient, and multiple network levels correspond to multiple start adjustment coefficients; and, optionally, different network levels correspond to different start adjustment coefficients.

[0143] According to the start bit rate selection algorithm, after determining the download rate prediction value corresponding to the client, the download rate prediction value and the start adjustment coefficient can be used to determine the second target bit rate corresponding to the target video content to be downloaded at the start of the video. Specifically, a predetermined third operation can be performed on the start adjustment coefficient and the download rate prediction value, and the third operation result obtained is used as the second reference value; among the multiple bit rates corresponding to the target video content to be downloaded at the start of the video, the bit rate that does not exceed and is closest to the second reference value is selected and determined as the second target bit rate. The third operation can be a product operation, a division operation, an exponential operation, a function operation, and the like.

[0144] For example, the start adjustment coefficients corresponding to the first to fourth network levels are set to 0.5, 0.4, 0.3, and 0.2 respectively, and the most recent historical download rate is selected as the download rate prediction value, then:

[0145] For the first network level, the highest bit rate is preferred, and the bit rate lower than the most recent historical download rate * 0.5 is selected for the start. For the second network level, a higher bit rate is preferred, and the bit rate lower than the most recent historical download rate * 0.4 is selected for the start. For the third network level, a lower bit rate is preferred, and the bit rate lower than the most recent historical download rate * 0.3 is selected for the start. For the fourth network level, the lowest bit rate is preferred, such as selecting a video data stream with a bit rate lower than the most recent historical download rate * 0.2 for the start. In this way, the most recent download rate corresponding to the client is set to 1.5Mbps, and the product operation is performed. The second target bit rates corresponding to the four network levels are: 1.5Mbps*0.5, 1.5Mbps*0.4, 1.5Mbps*0.3, 1.5Mbps*0.2, which are 0.75Mbps, 0.6Mbps, 0.45Mbps, and 0.3Mbps respectively.

[0146] If the historical download rate cannot be found during the start-up phase, that is, there is no historical bandwidth, the lowest bitrate will be selected from multiple bitrates to start the broadcast.

[0147] According to the pre-broadcasting algorithm, after determining the second target bit rate, the amount of cached data before broadcasting can be determined according to the quantitative relationship between the network level corresponding to the client, the predicted download rate value, and the second target bit rate. The corresponding control logic can be: the larger the bandwidth value of the bandwidth interval corresponding to the network level, and / or the larger the ratio of the predicted download rate value to the second target bit rate, the shorter the playback time corresponding to the cached data to be downloaded before broadcasting. Conversely, the longer the playback time corresponding to the cached data to be downloaded before broadcasting.

[0148] For example, for the first network level, the fastest start is preferred. If the predicted download rate is 3 times the bit rate, 800ms of cached data will be downloaded before starting broadcasting. If the predicted download rate is 2 times the resolution / bit rate, 1200ms of cached data will be downloaded before starting broadcasting. If the historical download bandwidth is 1 times the resolution / bit rate, 4000ms of cached data will be downloaded before starting broadcasting. The predicted download rate can be the most recent historical download rate, or it can be the harmonic mean or arithmetic mean of multiple historical download rates.

[0149] For the second network level, a faster start is preferred. If the download rate prediction value is 5 times the bit rate, the video will start playing after downloading 800ms of cached data. If the download rate prediction value is 3 times the bit rate, the video will start playing after downloading 1200ms of cached data. If the download rate prediction value is 2 times the bit rate, the video will start playing after downloading 4000ms of cached data. If the download rate prediction value is 1 times the bit rate, the video will start playing after downloading 6000ms of cached data.

[0150] For the third network level, a slower start is preferred, with priority given to ensuring no lag after start. If the download rate prediction value is 8 times the bit rate, the broadcast starts after downloading 800ms of cached data; if the download rate prediction value is 5 times the bit rate, the broadcast starts after downloading 1200ms of cached data; if the download rate prediction value is 3 times the bit rate, the broadcast starts after downloading 4000ms of cached data; if the download rate prediction value is 1 times the bit rate, the broadcast starts after downloading 8000ms of cached data.

[0151] For the fourth network level, the slowest start is preferred to ensure smoothness after start. If the predicted download rate is 10 times the bit rate, the broadcast will start after downloading 800ms of cached data. If the predicted download rate is 6 times the bit rate, the broadcast will start after downloading 1200ms of cached data. If the predicted download rate is 4 times the bit rate, the broadcast will start after downloading 4000ms of cached data. If the predicted download rate is 1 times the bit rate, the broadcast will start after downloading 10000ms of cached data.

[0152] In an embodiment of the present application, the client also uploads the playback quality data to the cloud side (server). The client records the playback quality data and uploads the playback quality data to the server. The playback quality data may include at least one of the start delay, jam rate, bit rate, resolution, playback success rate, download rate, and target network level, wherein the download rate may be a predicted download rate value, or may be a preset duration or the average value of the actual download rate at multiple specified times. The timing of the client upload may be during the start phase, after the video playback ends, or in real time during the video playback process. Optionally, the uploaded playback quality data may also include the network classification corresponding to the client and the control strategy actually adopted, such as the algorithm and control parameters (first bandwidth attenuation coefficient, second bandwidth attenuation coefficient, water level coefficient, adjustment factor, start adjustment coefficient, etc.) of the current network classification actually adopted. The second server on the cloud side may classify and count the key playback quality data (start delay, playback jam rate, playback success rate, etc.) of each network classification segment according to the playback quality data uploaded by multiple clients, and obtain the key indicators of the playback experience. Then, based on the statistical results of the key indicators of the playback experience, the control strategy is updated and the updated control strategy is synchronized to the first server. Alternatively, the second server synchronizes the statistical playback quality or playback experience key indicators of each network classification segment to the first server, and the first server adjusts and sets the optimal control strategy based on the playback quality or playback experience key indicators of each network classification segment, and sends the updated control strategy to the client, and the sent control strategy takes effect in real time. The above-mentioned playback quality data reporting mechanism can be implemented through a playback quality data information reporting protocol based on network classification.

[0153] In summary, in the video bit rate control solution provided in the embodiment of the present application, the operations performed by the client side may include:

[0154] S401, obtaining control strategy information;

[0155] S402, determining a download rate prediction value;

[0156] S403, determining the target network level;

[0157] S404, determining a control strategy according to the target network level;

[0158] S405, during the start-up phase, the start-up bit rate and the buffering data duration are selected;

[0159] S406, during playback, selecting the next fragment bit rate;

[0160] S407: Report the playback quality data when starting / playing / ending the playback. Afterwards, the control strategy (at least the control parameters such as the first bandwidth attenuation coefficient) is obtained from the server again at the next startup or after receiving the update notification. The server adjusts the control strategy information according to the reported playback quality data.

[0161] Described from the perspective of the server side (the first server and / or the second server), the video bitrate control method based on network classification provided in the embodiment of the present application may include: generating control strategy information, the control strategy information at least includes control parameters corresponding to multiple network levels, and the control parameters include at least a first bandwidth attenuation coefficient. Among them, multiple network levels correspond to multiple bandwidth intervals; and different network levels among the multiple network levels correspond to different first bandwidth attenuation coefficients. The first bandwidth attenuation coefficient corresponding to the target network level and the download rate prediction value corresponding to the client are used to determine the first target bitrate corresponding to the target video content to be downloaded; the target network level is determined based on the bandwidth interval corresponding to the download rate prediction value. In another embodiment, the server may also generate control logic and algorithms based on network classification.

[0162] Next, at least the control parameters are sent to the client. Specifically, in response to a request sent by the client for obtaining control policy information, the control policy information is sent to the client; or, after detecting that the control policy information is updated, an update notification is sent to the client; the control policy information at least includes the first bandwidth attenuation coefficients corresponding to the various network levels; so that the client can determine the first bandwidth attenuation coefficients corresponding to the various network levels based on the control policy information.

[0163] It should be noted that in one possible implementation, the control parameters, control logic and algorithms in the control strategy can be generated by the server and sent to the client, and the control strategies adopted by the client are all remotely obtained from the server. In another implementation, the server is only responsible for sending the control parameters, and the control logic and algorithm can be used as the software function module of the client player, that is, the server only needs to generate the control parameters, and update or adjust the corresponding control parameters according to the playback quality data reported by the client, and send them to the client. This method can reduce the communication cost between the client and the server. For example, the transmission of information such as algorithms and control logic will consume certain communication resources and increase the difficulty of data maintenance.

[0164] See also Figure 5 As shown, the video bit rate control method based on network classification provided in the embodiment of the present application, the signaling interaction process between the user, the client (APP), the cloud-side playback policy server (first server), the video operation management system (second server), the playback quality analysis server, and the CDN system may include:

[0165] S501, the playback policy server generates a control policy based on network classification;

[0166] S502, APP obtains control strategy;

[0167] After the APP is started, it initiates a request to the playback policy server to obtain the adaptive algorithm playback policy based on network classification, or the playback policy server sends an update notification. After receiving the notification, the APP obtains the adaptive algorithm playback policy based on network classification from the playback policy server in real time;

[0168] S503, the playback policy server returns a result;

[0169] S504, the user clicks on a video content and issues a play instruction;

[0170] S505, the APP initiates a playback authentication request to the video operation management system;

[0171] S506, the video operation management system returns the video playback authentication result information to the APP;

[0172] After the playback authentication is passed, the APP sets the control policy information based on network classification to the playback policy control module. It should be noted that if the player is resident in the memory, the APP can set it to the player after obtaining the control policy information.

[0173] S507, the APP determines the target network level;

[0174] The playback strategy control module of the APP determines the bitrate and related control parameters of the network classification based on the playback strategy of the network classification and the historical bandwidth information of the user's playback, selects the bitstream with the starting bitrate and downloads it;

[0175] S508, the APP determines the next slicing bit rate based on the control strategy corresponding to the target network level;

[0176] S509, the APP requests the CDN system to obtain video segments with corresponding bit rates;

[0177] During the start or playback process, the user's bandwidth download rate can be obtained. Before downloading the next segment of the video, the network classification control strategy is determined based on the current user bandwidth download rate, the bit rate during the start or playback process is selected, and a download request is initiated to the CDN.

[0178] If the user is playing for the first time and there is no historical bandwidth download rate, the lowest bitrate is selected and a download request is initiated to the CDN;

[0179] S510, the CDN system returns the video segments with the selected bit rate to the APP;

[0180] S511, the player of the APP plays the video;

[0181] S512, the APP reports the playback quality data to the playback quality analysis server;

[0182] The APP reports the quality data of the current playback to the playback quality analysis server, including the start delay, freeze rate, resolution, bit rate, and the corresponding network-level control strategy information. The cloud-side playback quality analysis server statistically analyzes the reported data. Based on the statistical results, the cloud-side updates the control strategy and sends it down (effective in real time).

[0183] S513, the playback quality analysis server returns a response result;

[0184] S514, the playback quality analysis server performs playback quality data analysis to obtain key indicators of playback experience;

[0185] The playback quality analysis server conducts big data analysis on large-scale user reporting information to obtain the start delay, non-stuttering ratio, playback success rate, playback time of each resolution (such as 1080P Blu-ray, 720P HD, 480P SD, etc.), resolution / bitrate switching information, etc. of each network classification segment as key indicators of playback experience;

[0186] S515, the playback quality analysis server synchronizes the playback quality data and / or the key indicators of the playback experience to the playback strategy server;

[0187] The playback quality analysis server synchronizes the playback quality data of different network classification segments to the playback strategy server periodically, for example, once every predetermined time period, which may be 8 hours, 12 hours, 24 hours, and so on.

[0188] S516, the playback policy server updates the control policy;

[0189] The playback strategy server adjusts the control strategies of different network classification segments according to the playback quality data of different network classification segments, and the adjusted control strategies are saved in the strategy library.

[0190] S517: The playback policy server sends an update notification to the APP.

[0191] After receiving the update notification, the APP obtains the control policy from the playback policy server in real time. Alternatively, after the APP is started, it initiates a request to obtain the control policy from the playback policy server.

[0192] In summary, the network classification-based video bit rate control method provided in the embodiment of the present application at least proposes the following points:

[0193] Based on the adaptive control strategy of network classification, the control strategy includes various algorithms. Various algorithms include download bandwidth estimation algorithm (predicted download rate prediction value), start bit rate algorithm, start buffer data duration prediction algorithm, different buffer water level bit rate switching algorithm during playback, etc. The control strategy also includes control parameters, which can be bandwidth attenuation factor, water level coefficient, adjustment factor ratio, minimum down-cut bit rate, etc.

[0194] Multiple network levels based on bandwidth, such as Level 1 (highest priority for playback clarity, aggressive), Level 2 (better playback freshness, more aggressive), Level 3 (average playback clarity, fluency is higher than clarity, more conservative), Level 4 (highest priority for fluency, lowest playback clarity, conservative), etc. The server side can set specific control parameters and algorithms corresponding to each network level. For users with weak networks, the control principle is low definition / low bit rate without up-scaling clarity. For users with strong networks, the principle of increasing the playback time ratio of high-definition (such as Blu-ray) playback is used for control. The number of network bandwidth levels and each network bandwidth level segment can be flexibly set and adjusted.

[0195] During the start-up and playback process, the video APP determines the bitrate, algorithm and parameters of the network classification based on the user's network bandwidth, and selects the optimal bitrate stream segment for download and playback. At the start-up stage, the network classification is determined based on the user's historical bandwidth download rate recorded previously. If the user has no historical bandwidth download rate, the lowest bitrate of the network classification is used. During playback, the user's bandwidth download rate can be obtained. Before downloading the next segment of the video playback, the corresponding network level is determined based on the current user bandwidth download rate, and then the corresponding algorithm and factor parameters of the level are determined, and the bitrate is selected through the control strategy.

[0196] When the APP is started, it obtains the control policy from the playback policy server. Or when the server changes the policy, it is synchronized to the playback policy control module of the APP in real time and takes effect in real time.

[0197] The APP has a playback quality reporting module, which is used to report key playback quality data (start delay, freeze rate, resolution / bitrate, and corresponding network-level policy information) of different network bandwidth levels. The cloud side performs statistical analysis on the reported data, obtains statistical results of experience indicators based on network classification, updates policies and issues them.

[0198] The video bit rate control solution provided in the embodiment of the present application achieves at least the following technical effects:

[0199] The technical problem of high playback freeze rate for users with weak networks in the existing adaptive algorithm is solved. Although the existing adaptive algorithm tends to favor weak networks, the algorithm is relatively conservative and prioritizes playback fluency. There is no special protection for weak networks. The same algorithm and factor coefficients are used as for users with good networks, resulting in poor playback fluency for users with weak networks, which reduces the KPI of the overall system. In the embodiment of the present application, an independent control strategy is provided for users with weak networks, so that the weak network completely targets viewing fluency, effectively improving the playback experience of users with weak networks. According to actual measured statistics, the solution provided based on the embodiment of the present application can improve the user experience of users with weak networks, reduce the number of playback freezes on weak network clients, and improve the overall KPI.

[0200] The problem that the existing playback bit rate adaptive algorithm prioritizes playback smoothness and is conservative in clarity, resulting in users with sufficient bandwidth resources not being able to fully utilize the bandwidth and a low rate of viewing high-definition images, is solved. The embodiment of the present application uses an adaptive algorithm based on user network classification to maximize the use of user bandwidth for strong network users, while maintaining the stuttering ratio and start delay, effectively increasing the proportion of users watching high-definition resolution playback and improving user experience. For example, under a 10Mb network bandwidth, the proportion of Blu-ray quality playback increases from 80% to 92%.

[0201] It should be noted that the video bit rate control solution provided in the embodiment of the present application can obtain infringement evidence in the following manner:

[0202] Method 1: Analyze infringement evidence through APP logs.

[0203] 1) The APP uses information logs based on network-level adaptive playback: The APP log needs to save the user's network bandwidth, the network level, and the algorithms and control parameters corresponding to this network level.

[0204] 2) Information log obtained based on the control strategy of network classification: The APP obtains the control strategy based on network classification from the playback strategy server and records the relevant log information.

[0205] Method 2: Analyze infringement evidence through test piles.

[0206] Test pile 1: From the perspective of the APP, the APP side is tested to see whether the control strategy based on network classification is obtained during the APP startup and other processes. The control strategy based on network classification is issued by the cloud side through analysis of the packet capture data.

[0207] Test pile 2: From the perspective of the server, test the playback quality analysis server to see whether it synchronizes user playback quality data information based on user network classification (including user network bandwidth, network level, algorithm used, factor parameter level, playback quality KPI such as start delay, freeze rate, etc.).

[0208] The embodiment of the present application also provides an electronic device, which may include: a processor; a memory; at least one application; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions. When the instructions are executed, the electronic device may be a terminal device or a server, and may execute any method described in the embodiments based on client execution, or execute any method described in the embodiments based on server execution.

[0209] When the electronic device is a terminal device, a feasible product hardware architecture of the terminal device is shown in Figure 6 As shown, the hardware architecture of the terminal device may include:

[0210] The display screen 61 is used to display the video image being played. Specifically, the display screen 61 may include a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the terminal device may include at least one display screen 61.

[0211] The processor 62 includes one or more processing units. For example, the processor 62 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a digital signal processor (DSP), etc. Different processing units may be independent devices or integrated into one or more processors.

[0212] The memory 63 is used to store control parameters, network classification information, and algorithms in the control strategy, and is also used to store cache data of the video to be played. The memory 63 can be an external memory independent of the processor 62, or it can be set in the processor 62. For example, in some embodiments, the memory built into the processor 62 can be a cache memory, which is used to save instructions or data that the processor 62 has just used or circulated. If the processor 62 needs to use the instruction or data again, it can be directly called from the cache memory. Repeated access is avoided and the waiting time of the processor 62 is reduced.

[0213] The memory can be a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or it can also be any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer.

[0214] The power management module 64 receives input from the battery and / or charging management module and supplies power to the processor 62, the memory 63, and the display screen 61. The power management module 64 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 64 can also be set in the processor 62. In some other embodiments, the power management module 64 and the charging management module can also be set in the same device.

[0215] A speaker 65 and an audio circuit 68 , wherein the speaker 65 is connected to the processor 62 via the audio circuit 68 for playing sound.

[0216] Input unit 66, input unit 66 is used to input the user's selection instruction for video content and start playing instruction, etc. Specifically, as an implementable manner, input unit 66 can be integrated with display screen 61 to form a touch display screen; input unit 66 can also include a pressure sensor ( Figure 6(not shown), the pressure signal generated by the user is sensed by a pressure sensor, and the pressure signal can be converted into an electrical signal to complete the user command input. In some embodiments, the pressure sensor can be set on the display screen 61. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. When a touch operation acts on the display screen 61, the terminal device 60 detects the touch operation intensity according to the pressure sensor. The terminal device 60 can also calculate the touch position based on the detection signal of the pressure sensor. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity exceeding the first pressure threshold acts on the corresponding button, it is deemed that the user has issued a corresponding instruction. For example, when the user clicks the unlock button with an operation force greater than the first pressure threshold, it is deemed that the user has issued an instruction to start playing.

[0217] The wireless communication unit 67 is used for wireless communication with the server, for example, specifically for interacting with the server to obtain control strategy information and receive video content data. The wireless communication unit 67 can be one or more devices integrating at least one communication processing module. The wireless communication module receives electromagnetic waves via an antenna, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 62. The wireless communication unit 67 can also receive the signal to be sent from the processor 62, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna.

[0218] In one implementation, the processor 62 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a general-purpose input / output (GPIO) interface, and / or a universal serial bus (USB) interface, etc.

[0219] The processor 62 may include multiple I2C bus groups, and the processor 62 may couple multiple modules through different I2C bus interfaces. For example, the processor 62 may couple the display screen 61 through the I2C interface, so that the processor 62 and the display screen 61 communicate through the I2C bus interface.

[0220] In one implementation, the processor 62 may include multiple I2S buses, and the I2S interface may be used for audio communication. The processor 62 may be coupled to the audio circuit 68 via the I2S bus to achieve communication between the processor 62 and the audio circuit 68, thereby controlling the speaker 65 to emit sound.

[0221] It is understood that the structures illustrated in the drawings of the embodiments of the present application do not constitute limitations on the terminal device. In other embodiments of the present application, the terminal device may also include more or fewer components than shown in the drawings, or combine certain components, or split certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0222] An embodiment of the present application further provides a computer storage medium, comprising computer instructions, which, when executed on an electronic device, enables the electronic device to execute any of the above methods.

[0223] An embodiment of the present application also provides a chip system, including: a communication interface for inputting and / or outputting information; a processor for executing a computer executable program so that a device equipped with the chip system executes any one of the above methods.

[0224] An embodiment of the present application further provides a software program product, which includes program instructions. When the program instructions are executed on an electronic device, the electronic device executes any one of the above methods.

[0225] It should be understood that in the various embodiments of the present application, “first”, “second”, “third”, etc. are only used to refer to different objects, and do not mean that there are other limitations on the objects referred to.

[0226] It should be understood that the term "unit" in the embodiments of the present application can be implemented in the form of software and / or hardware, and is not specifically limited to this. For example, a "unit" can be a software program, a hardware circuit, or a combination of the two that implements the above functions. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group processor, etc.) and a memory for executing one or more software or firmware programs, a merged logic circuit, and / or other suitable components that support the described functions.

[0227] Therefore, the units of each example described in the embodiments of the present application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0228] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0229] Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0230] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0231] In several embodiments provided in the present application, any function can be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as an independent product. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0232] The above is only a specific implementation of the present application. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A video bit rate control method based on network classification, characterized in that: Applied to a client, the method comprises: Determine first bandwidth attenuation coefficients corresponding to multiple network levels respectively; wherein the multiple network levels correspond to multiple bandwidth intervals, and different network levels in the multiple network levels correspond to different first bandwidth attenuation coefficients; the multiple network levels include the first network level to the Mth network level, M≥2; wherein, when the bandwidth sizes of the bandwidth intervals corresponding to the first network level to the Mth network level respectively decrease in sequence, the first bandwidth attenuation coefficients corresponding to the first network level to the Mth network level respectively decrease in sequence; Determine a target network level corresponding to the client; Obtain a download rate prediction value corresponding to the client; A first target bit rate corresponding to the target video content to be downloaded is determined based at least on a first bandwidth attenuation coefficient corresponding to the target network level and the download rate prediction value.

2. The method according to claim 1, characterized in that The determining the target network level corresponding to the client includes: Query the real-time download rate of the client at the current moment; The network level corresponding to the bandwidth interval to which the real-time download rate belongs is determined as the target network level corresponding to the client.

3. The method according to claim 1, characterized in that The obtaining the download rate prediction value corresponding to the client includes: Query multiple historical download rates corresponding to the client in the bandwidth window list, and calculate a harmonic mean or an arithmetic mean based on the multiple historical download rates; The harmonic mean or the arithmetic mean is determined as the download rate prediction value corresponding to the client.

4. The method according to claim 1, characterized in that The method further comprises: Determine multiple water level intervals and multiple water level coefficients corresponding to the multiple water level intervals; wherein the multiple water level intervals are determined based on the buffer length during video playback; the multiple water level coefficients corresponding to the same water level interval correspond to the multiple network levels; the multiple water level coefficients corresponding to the same network level correspond to the multiple water level intervals; After determining the target network level corresponding to the client, and before determining the first target bit rate corresponding to the target video content to be downloaded at least based on the first bandwidth attenuation coefficient corresponding to the target network level and the download rate prediction value, the method further includes: During video playback, based on the buffer length at a specified time, a target water level interval corresponding to the specified time is determined; wherein the specified time is any time before the target video content is downloaded; Filtering out a target water level coefficient corresponding to the target network level from a plurality of water level coefficients corresponding to the target water level interval; The determining, at least according to the first bandwidth attenuation coefficient corresponding to the target network level and the download rate, a first target bit rate corresponding to the target video content to be downloaded includes: A first target bit rate corresponding to the target video content to be downloaded is determined according to the first bandwidth attenuation coefficient corresponding to the target network level, the download rate prediction value and the target water level coefficient.

5. The method according to claim 4, characterized in that The determining, according to the first bandwidth attenuation coefficient corresponding to the target network level, the download rate prediction value and the target water level coefficient, a first target bit rate corresponding to the target video content to be downloaded includes: For the first bandwidth attenuation coefficient and the target water level coefficient corresponding to the target network level, a predetermined first operation is performed, and the first operation result obtained is used as the second bandwidth attenuation coefficient; A first target bit rate corresponding to the target video content to be downloaded is determined based at least on the download rate and the second bandwidth attenuation coefficient.

6. The method according to claim 5, characterized in that The multiple water level intervals include a first water level interval to an Nth water level interval, N≥2; wherein, when the buffer lengths corresponding to the first water level interval to the Nth water level interval increase in sequence, multiple water level coefficients corresponding to the same network level increase in sequence.

7. The method according to claim 5, characterized in that The determining, at least according to the download rate and the second bandwidth attenuation coefficient, a first target bit rate corresponding to the target video content to be downloaded includes: A predetermined second operation is performed on the second bandwidth attenuation coefficient and the download rate, and the obtained second operation result is used as a first reference value; and a first target bit rate corresponding to the target video content to be downloaded is determined based at least on the first reference value.

8. The method according to claim 7, characterized in that The determining, at least based on the first reference value, a first target bit rate corresponding to the target video content to be downloaded includes: Among the multiple bit rates corresponding to the target video content to be downloaded, a bit rate that does not exceed and is closest to the first reference value is selected and determined as the first target bit rate.

9. The method according to claim 7, characterized in that The step of determining a first target bit rate corresponding to the target video content to be downloaded based at least on the first reference value includes: Selecting, from among the multiple bit rates corresponding to the target video content to be downloaded, at least one bit rate that does not exceed the first reference value as at least one candidate item; The first target bit rate is determined from the at least one candidate item according to at least one of the target network level, target water level interval, and buffer status corresponding to the client; wherein the buffer status is used to characterize the change state of the buffer length, including an increasing state or a decreasing state.

10. The method according to claim 9, characterized in that Among the multiple network levels, different network levels correspond to different level attributes; when the bandwidth sizes of the bandwidth intervals corresponding to the first network level to the Mth network level are sequentially reduced, the level attribute corresponding to the first network level is that the playback picture quality is prioritized, and the level attribute corresponding to the Mth network level is that the playback smoothness is prioritized; wherein the playback picture quality is determined based on the image resolution and / or the video bit rate; The determining the first target bitrate from the at least one candidate item according to at least one of a target network level, a target water level interval, and a buffer status corresponding to the client includes: The first target bit rate is determined from the at least one candidate item according to at least one item of a level attribute corresponding to the target network level corresponding to the client, a target water level interval, and a buffer status.

11. The method according to claim 4, characterized in that The method further comprises: Determine an adjustment factor, where the adjustment factor is determined based on a buffer state and is used to adjust the first bandwidth attenuation coefficient; wherein the buffer state includes an increasing state or a decreasing state.

12. The method according to claim 11, characterized in that The first bandwidth attenuation coefficient is determined based on the buffer length at the specified time and the adjustment factor.

13. The method according to any one of claims 4 to 12, characterized in that: The method further comprises: Determine the water level division coefficient; the water level division coefficient is used to determine the dividing point between different water level intervals.

14. The method according to claim 1, wherein: The first target bit rate corresponds to the bit rate of the target video content to be downloaded during video playback; Before determining the first target bit rate corresponding to the target video content to be downloaded at least according to the first bandwidth attenuation coefficient corresponding to the target network level and the download rate prediction value, the method further includes: Determine a plurality of start adjustment coefficients corresponding to the plurality of network levels; among the plurality of network levels, different network levels correspond to different start adjustment coefficients; Based on the download rate prediction value and the start adjustment coefficient, a second target bit rate corresponding to the target video content to be downloaded in the video start phase is determined.

15. The method according to claim 14, characterized in that The determining, based on the download rate prediction value and the start adjustment coefficient, a second target bit rate corresponding to the target video content to be downloaded at the start of the video, comprises: Performing a predetermined third operation on the start adjustment coefficient and the download rate prediction value, and obtaining a third operation result as a second reference value; Among the multiple bit rates corresponding to the target video content to be downloaded in the video start phase, a bit rate that does not exceed and is closest to the second reference value is selected and determined as the second target bit rate.

16. The method according to claim 15, characterized in that After determining the second target bit rate corresponding to the target video content to be downloaded in the video start phase, the method further includes: The amount of cached data before starting playback is determined according to the predicted download rate value and the second target bit rate.

17. The method according to any one of claims 1 to 12 and 14 to 16, characterized in that: The method further comprises: Acquire playback quality data, where the playback quality data includes at least one of a playback start delay, a freeze rate, a bit rate, a resolution, a playback success rate, a download rate, and a target network level; The playback quality data is uploaded to a server.

18. The method according to any one of claims 1 to 12 and 14 to 16, characterized in that: The determining of first bandwidth attenuation coefficients corresponding to the plurality of network levels respectively includes: In response to an update notification sent by the server or after the client is started, a request for obtaining control strategy information is sent to the server; the update notification is used to indicate that the control strategy information is to be updated; the control strategy information includes the first bandwidth attenuation coefficients corresponding to the multiple network levels respectively; Based on the control strategy information, first bandwidth attenuation coefficients corresponding to the multiple network levels are determined.

19. A video bit rate control method based on network classification, characterized in that: Applied to a server, the method comprises: Determine a plurality of bandwidth intervals and a plurality of network levels corresponding to the plurality of bandwidth intervals; Generate first bandwidth attenuation coefficients corresponding to the multiple network levels respectively, and send them to the client; wherein different network levels among the multiple network levels correspond to different first bandwidth attenuation coefficients; the multiple network levels include the first network level to the Mth network level, M≥2; wherein, when the bandwidth sizes of the bandwidth intervals corresponding to the first network level to the Mth network level respectively decrease in sequence, the first bandwidth attenuation coefficients corresponding to the first network level to the Mth network level respectively decrease in sequence; the first bandwidth attenuation coefficient is used to adjust the first target bit rate corresponding to the target video content to be downloaded to the client.

20. The method of claim 19, wherein: The method further comprises: Receive the playback quality data uploaded by the client; the playback quality data includes at least one of the following: playback start delay, freeze rate, bit rate, resolution, playback success rate, download rate, and target network level.

21. The method of claim 19, wherein: After generating the first bandwidth attenuation coefficients respectively corresponding to the multiple network levels, the method further includes: In response to a request sent by the client for obtaining control policy information, the control policy information is sent to the client; or, after detecting that the control policy information is updated, an update notification is sent to the client; the control policy information at least includes the first bandwidth attenuation coefficients corresponding to the multiple network levels respectively.

22. An electronic device, characterized in that: The electronic device comprises: One or more processors; a memory; at least one application; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions that, when executed by the electronic device, cause the electronic device to perform a method as described in any one of claims 1-18 or 19-21.

23. A storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1-18 or 19-21.

24. A chip system, characterized in that: include: A communication interface for inputting and / or outputting data; A processor, used to execute a computer executable program so that a device equipped with the chip system executes a method as described in any one of claims 1-18 or 19-21.

25. A software program product, characterized in that The software program product includes program instructions, and when the program instructions are executed on an electronic device, the electronic device executes the method as claimed in any one of claims 1-18 or 19-21.

Citation Information

Patent Citations

  • Video code rate control method and device

    CN109218781A

  • Video playing control method, terminal equipment, server and storage medium

    CN113014969A