Video transmission code rate adjustment method and device, electronic equipment and storage medium

Through the video bit rate adjustment method based on preferred video characteristics, the problem of inaccurate video transmission bit rate adjustment in the existing technology is solved, high-quality video playback under limited hardware equipment is achieved, and hardware load and bit rate prediction are reduced. error.

CN118870072APending Publication Date: 2024-10-29SHANXI CHINA MOBILE COMM CORP +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411006913.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The existing technology cannot dynamically adjust the video transmission bit rate within the limited load operating range of the hardware device, resulting in low video playback quality and low accuracy of the transmission bit rate.

Method used

By dividing the user's video stream into preferred videos and non-preferred videos based on preferred video features, a video bit rate prediction model trained using historical network bandwidth, historical throughput and preferred video features is used to predict the video bit rate at each time node, and based on Estimated traffic adjusts the bitrate, pre-caches preferred videos, and clears non-preferred video caches to reduce hardware load.

Benefits of technology

It improves the smoothness and quality of video playback, reduces the hardware load, ensures the comprehensiveness and accuracy of the video bit rate, and improves the utilization of computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118870072A_ABST
    Figure CN118870072A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data transmission, and provides a video transmission code rate adjustment method and device, electronic equipment and a storage medium. The method comprises the following steps: dividing a video stream corresponding to a user into a preference video and a non-preference video based on preference video features, and pre-caching the preference video; inputting the video service data corresponding to the user and the preference video into a video code rate prediction model to obtain a predicted video code rate corresponding to each time node in the preference video; determining first estimated traffic corresponding to each time node based on the predicted video code rate corresponding to each time node; and based on each first estimated flow, adjusting the predicted video code rate corresponding to each time node, and clearing the cache corresponding to the non-preference video. According to the embodiment of the invention, the comprehensiveness and accuracy of the predicted video code rate can be ensured, the fluency of video playing at each time node is ensured, and the computing power resource utilization rate is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data transmission, and in particular to a method, device, electronic device and storage medium for adjusting a video transmission bit rate. Background Art

[0002] At present, the basic process of Internet video service is: the video source provides video data, the encoder encodes the video data, the encoded video data is transmitted to the user end through the network, and the user end uses a video player to play it. Among them, the video transmission bit rate is an important indicator of video transmission. If the video transmission bit rate is too low, the quality and smoothness of video playback will be seriously reduced. If the video transmission bit rate is too high, it will increase the load of hardware devices in the Internet, and even the video data cannot be played due to poor network environment.

[0003] In the prior art, the video transmission bit rate is generally adjusted by predicting the optimal transmission bit rate or detecting the user's area of ​​interest. Among them, time series prediction, time difference method and other algorithms are generally used to predict the optimal transmission bit rate with historical throughput or historical experience as input parameters, but the input parameters are relatively one-sided, resulting in low accuracy of the predicted optimal transmission bit rate; in addition, the target detection method is generally used to detect the user's area of ​​interest, but there are false detections, resulting in low accuracy of the transmission bit rate.

[0004] Therefore, how to dynamically adjust the video transmission bit rate within the limited load operating range of the hardware device to ensure high quality of video playback is an urgent problem that needs to be solved. Summary of the invention

[0005] The embodiments of the present application provide a method, device, electronic device and storage medium for adjusting the video transmission bit rate, so as to solve the problem in the prior art that the video transmission bit rate cannot be dynamically adjusted within the limited load operating range of the hardware device to ensure that the video playback has a higher quality.

[0006] In a first aspect, an embodiment of the present application provides a method for adjusting a video transmission bit rate, comprising the following steps.

[0007] Based on the preferred video feature, the video stream corresponding to the user is divided into preferred videos and non-preferred videos, and the preferred videos are pre-cached; the preferred video feature is determined by fuzzy analysis of the user's video history records; Input the video service data corresponding to the user and the preferred video into a video bit rate prediction model to obtain the predicted video bit rate corresponding to each time node in the preferred video; the video bit rate prediction model is trained based on historical network bandwidth, historical throughput and the preferred video features; the video service data is used to characterize the video transmission data of the network environment corresponding to the user; Determine a first estimated flow corresponding to each of the time nodes based on the predicted video bit rate corresponding to each of the time nodes; Based on each of the first estimated traffic flows, the predicted video bitrate corresponding to each time node is adjusted, and the cache corresponding to the non-preferred video is cleared.

[0008] In one embodiment, determining the first estimated flow corresponding to each of the time nodes based on the predicted video bit rate corresponding to each of the time nodes includes: Obtaining the flow consumption function of each of the time nodes; For each of the time nodes, based on the traffic consumption function and the predicted video bit rate corresponding to the same time node, a first estimated traffic corresponding to the time node is determined.

[0009] In one embodiment, determining the first estimated traffic corresponding to the time node based on the traffic consumption function and the predicted video bit rate corresponding to the same time node includes: Determine the time interval between the time node and the preset peak point; Based on the time interval, determining a correction parameter corresponding to the time node; Based on the correction parameter, updating the predicted video bit rate; Based on the updated predicted video bit rate and the traffic consumption function corresponding to the same time node, a convolution is performed to determine a first estimated traffic corresponding to the time node.

[0010] In one embodiment, adjusting the video transmission bit rate corresponding to each time node based on each of the first estimated flows includes: Obtain at least two historical click video bit rates corresponding to the user; the time nodes of each of the historical click video bit rates are the same as the time nodes of each of the predicted video bit rates; For each of the time nodes, based on the traffic consumption function corresponding to the same time node and the historical click video bit rate, determine the second estimated traffic corresponding to the time node; based on the first estimated traffic and the second estimated traffic, determine a freeze judgment result; based on the freeze judgment result, adjust the updated predicted video bit rate corresponding to the time node.

[0011] In one embodiment, adjusting the updated predicted video bit rate corresponding to the time node based on the freeze judgment result includes: When the jamming judgment result is that the first estimated flow rate is less than the second estimated flow rate, generating a jamming warning signal; Based on the jam warning signal, the video resolution of the preferred video corresponding to the time node is adjusted to adjust the updated predicted video bit rate corresponding to the time node.

[0012] In one embodiment, the preferred video features are determined based on the following steps: Based on the user video history records, determining at least two fuzzy sets; For each of the fuzzy sets, based on the label membership of each feature in the fuzzy set, determining the set membership corresponding to the fuzzy set; Based on all fuzzy rules and the set memberships corresponding to the at least two fuzzy sets, the rule memberships corresponding to the fuzzy rules are determined; each fuzzy rule is used to characterize the association between the key time points of the video, the video attribute labels and the video viewing time in the user video history records; The features included in the fuzzy rule corresponding to the maximum rule membership are determined as the preferred video features.

[0013] In a second aspect, an embodiment of the present application provides a device for adjusting a video transmission bit rate, comprising the following modules.

[0014] A first determination module is used to divide the video stream corresponding to the user into preferred videos and non-preferred videos based on the preferred video feature, and pre-cache the preferred video; the preferred video feature is determined by fuzzy analysis of the user's video history records; A prediction module is used to input the video service data corresponding to the user and the preferred video into a video bit rate prediction model to obtain the predicted video bit rate corresponding to each time node in the preferred video; the video bit rate prediction model is trained based on historical network bandwidth, historical throughput and the preferred video features; the video service data is used to characterize the video transmission data of the network environment corresponding to the user; A second determination module, configured to determine a first estimated flow corresponding to each of the time nodes based on the predicted video bit rate corresponding to each of the time nodes; The adjustment module is used to adjust the predicted video bit rate corresponding to each time node based on each of the first estimated flows, and clear the cache corresponding to the non-preferred video.

[0015] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a method for adjusting the video transmission bit rate as described above is implemented.

[0016] In a fourth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described methods for adjusting the video transmission bit rate.

[0017] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned methods for adjusting the video transmission bit rate.

[0018] The video transmission bitrate adjustment method, device, electronic device and storage medium provided in the embodiment of the present application divide the video stream corresponding to the user into preferred video and non-preferred video according to the preferred video feature, input the video service data and preferred video corresponding to the user into the video bitrate prediction model obtained by training through historical network bandwidth, historical throughput and preferred video features, predict the predicted video bitrate corresponding to each time node in the preferred video, predict the first estimated flow corresponding to each time node according to the predicted video bitrate corresponding to each time node, judge whether there is a possibility of jamming at each time node according to each first estimated flow, and adjust the predicted video bitrate corresponding to each time node. In the embodiment of the present application, the video bitrate prediction model is obtained by training with comprehensive historical network bandwidth, historical throughput and preferred video features to ensure the comprehensiveness and accuracy of the video bitrate prediction model to determine the predicted video bitrate, and adjust the predicted video bitrate corresponding to each time node through the first estimated flow, reduce the possibility of jamming when playing the video at each time node, and ensure the smoothness of video playback at each time node. At the same time, the preferred video is pre-cached, and the cache of the non-preferred video is cleared to ensure that there are enough computing resources to encode and decode the preferred video, improve the utilization of computing resources, and reduce the hardware load. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0020] Figure 1 It is a flowchart of a method for adjusting the video transmission bit rate provided in an embodiment of the present application.

[0021] Figure 2 Schematic diagram of the spline curve before and after correction provided in the embodiment of the present application.

[0022] Figure 3 It is a schematic diagram of the jamming judgment result provided in an embodiment of the present application.

[0023] Figure 4 It is a structural schematic diagram of a video transmission bit rate adjustment device provided in an embodiment of the present application.

[0024] Figure 5 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0026] In view of the problem that the existing technology cannot dynamically adjust the video transmission bit rate within the limited load operation range of the hardware equipment to ensure that the video playback has a higher quality, Figure 1 is a flow chart of a method for adjusting the video transmission bit rate provided in an embodiment of the present application, such as Figure 1 As shown, an embodiment of the present application provides a method for adjusting a video transmission bit rate, and the method for adjusting a video transmission bit rate includes the following steps 110 to 140.

[0027] Step 110: Based on the preferred video feature, the video stream corresponding to the user is divided into preferred videos and non-preferred videos, and the preferred videos are pre-cached; the preferred video feature is determined by fuzzy analysis of the user's video history records.

[0028] Specifically, after obtaining the video stream corresponding to the user, the video stream is segmented and identified according to the preferred video features, and the segmented videos in the video stream that meet the preferred video features are determined as the preferred videos corresponding to the user, and the other segmented videos in the video stream other than the preferred video are determined as the non-preferred videos corresponding to the user. The preferred video that the user is about to open is predicted from the video stream through the preferred video features, and the preferred video is pre-cached before the user opens the preferred video, thereby reducing the amount of video data transmission and processing operations during video playback, thereby improving the efficiency of the user's smooth playback of the preferred video.

[0029] It should be noted that both the video stream and the preferred video features have a corresponding relationship with the user, that is, different users correspond to different video streams, and different users correspond to different preferred video features.

[0030] Further, the preferred video features are determined based on the following steps: Based on the user video history records, determining at least two fuzzy sets; For each of the fuzzy sets, based on the label membership of each feature in the fuzzy set, determining the set membership corresponding to the fuzzy set; Based on all fuzzy rules and the set memberships corresponding to the at least two fuzzy sets, the rule memberships corresponding to the fuzzy rules are determined; each fuzzy rule is used to characterize the association between the key time points of the video, the video attribute labels and the video viewing time in the user video history records; The features included in the fuzzy rule corresponding to the maximum rule membership are determined as the preferred video features.

[0031] Specifically, before executing step 110, a fuzzy analysis is performed on the user's video history records to determine the preferred video features corresponding to the user. Specifically, the following steps are included.

[0032] S1. Collect the user video history records corresponding to the user, and the user video history records may include: video key time points, video attribute tags and video viewing time. Among them, the video key time points can be timestamps in different time formats, for example, video key time points 18:00 and 7 pm, etc. The video attribute tags may include the subject, category, director and actor of the video data. The timing unit corresponding to the video viewing time can be hours, minutes, seconds, etc. This embodiment of the application does not limit this.

[0033] S2. Perform data preprocessing on the user's video history records to ensure data accuracy and consistency. The data preprocessing includes operations such as data cleaning and normalization. For example, convert key time points of the video into 24-hour timestamps, and convert 7 p.m. to 19:00. For another example, normalize the values ​​of video attribute tags to real numbers or Boolean values. For another example, unify the time units corresponding to the video viewing time into seconds.

[0034] S3. Divide the user's video history records into at least two fuzzy sets. For example, according to the time period of the timestamp, divide the key time points of the video into four fuzzy sets of "morning", "noon", "afternoon" and "evening". For another example, according to the type corresponding to the theme in the video attribute tag, divide the video attribute tag into three fuzzy sets of "funny", "inspirational" and "thriller". Each fuzzy set includes at least one feature, and each feature is pre-configured with a corresponding label membership, and the value range of the label membership is [0, 1].

[0035] S4. For each fuzzy set, according to the label membership corresponding to each feature in the fuzzy set, the maximum membership method or the average membership method is used to calculate the set membership corresponding to the fuzzy set.

[0036] S4.1. The maximum membership method can be: sort the label memberships corresponding to the features in the fuzzy set in descending order, and determine the label membership with the highest order as the set membership corresponding to the fuzzy set. The value range of the set membership is [0, 1].

[0037] The set membership of the fuzzy set determined based on the maximum membership method can be expressed as: .in, represents the set membership corresponding to the jth fuzzy set, represents the label membership corresponding to the i-th feature in the j-th fuzzy set, and n represents the number of features included in the j-th fuzzy set.

[0038] S4.2, the average membership method can be: calculate the average membership corresponding to the label membership corresponding to all features in the fuzzy set, and determine the average membership as the set membership corresponding to the fuzzy set. The set membership of the fuzzy set determined based on the average membership method can be expressed as: .

[0039] S5. Based on experience or expert instructions, a fuzzy rule base is constructed, which includes multiple fuzzy rules, each of which is used to characterize the correlation between the key time point of the video, the video attribute label and the video viewing time. For example, the fuzzy rule can be: if the key time point of the video is in the morning and the video attribute label is inspirational, the longer the video viewing time.

[0040] S6. After determining multiple fuzzy rules and all fuzzy sets, determine the preferred video features using fuzzy algorithms such as fuzzy logic operations or fuzzy relationship synthesis. Specifically, for each fuzzy rule, weighted calculation of the rule membership corresponding to the fuzzy rule is performed based on the fuzzy sets included in the fuzzy rule and the set membership corresponding to each fuzzy set. After determining the rule membership corresponding to each fuzzy rule, the rule membership corresponding to each fuzzy rule can be sorted in order from large to small, and the features contained in the fuzzy rule corresponding to the top rule membership are determined as the preferred video features, that is, the features contained in the fuzzy rule corresponding to the maximum rule membership are determined as the preferred video features.

[0041] Step 120: Input the video service data corresponding to the user and the preferred video into a video bit rate prediction model to obtain the predicted video bit rate corresponding to each time node in the preferred video; the video bit rate prediction model is trained based on historical network bandwidth, historical throughput and the preferred video features; the video service data is used to characterize the video transmission data of the network environment corresponding to the user.

[0042] Specifically, after determining the preferred video, the video service data corresponding to the user can be further obtained. The video service data may include the actual network bandwidth and instance throughput in the network environment where the user is located. The actual network bandwidth may be the maximum video transmission bit rate of the network. The actual throughput refers to the amount of data used by the user to watch the video within a time period (such as one day, one week, or one month, etc.). The instance throughput may be obtained by statistics from a video streaming server or other multimedia device and sent to the electronic device by the video streaming server or other multimedia device. The instance throughput may be determined by calculating the ratio of the amount of data transmitted to the time required for transmission.

[0043] After determining the preferred video and video service data, the preferred video and video service data can be input into a pre-trained video bit rate prediction model, and the video bit rate prediction model can be used to predict the predicted video bit rate corresponding to each time node in the preferred video. The predicted video bit rate corresponding to each time node can be used as the transmission bit rate of the optimal state of the corresponding time node, and can also be used to predict the corresponding network fluctuation during the transmission of the preferred video.

[0044] It should be noted that the video bit rate prediction model can be constructed based on a BP neural network (Back Propagation Neural Network, BPNN), and the BP neural network may include an input layer, an output layer and a hidden layer. The input layer inputs historical network bandwidth, historical throughput and preferred video features, and the output layer is used to output the predicted video bit rate. The number of hidden layers and the number of hidden layer nodes can be set based on experience, and the BP neural network model is trained using an activation function and an optimization algorithm to obtain a trained video bit rate prediction model.

[0045] Step 130: Determine a first estimated flow corresponding to each of the time nodes based on the predicted video bit rate corresponding to each of the time nodes.

[0046] Specifically, after obtaining the predicted video bitrate corresponding to each time node in the preferred video, the first estimated traffic corresponding to each time node can be calculated according to the predicted video bitrate corresponding to each time node to determine whether there is a freeze at the time node.

[0047] Further, the determining the first estimated flow corresponding to each of the time nodes based on the predicted video bit rate corresponding to each of the time nodes includes: Obtaining the flow consumption function of each of the time nodes; For each of the time nodes, based on the traffic consumption function and the predicted video bit rate corresponding to the same time node, a first estimated traffic corresponding to the time node is determined.

[0048] Specifically, after obtaining the predicted video bit rate corresponding to each time node, the traffic consumption function corresponding to each time node can be obtained, and the traffic consumption function can be determined according to the historical consumption traffic corresponding to the time node. After determining the traffic consumption function corresponding to each time node, the first estimated traffic corresponding to the time node can be calculated according to the traffic consumption function and the predicted video bit rate of the same node.

[0049] Further, the determining the first estimated traffic corresponding to the time node based on the traffic consumption function and the predicted video bit rate corresponding to the same time node includes: Determine the time interval between the time node and the preset peak point; Based on the time interval, determining a correction parameter corresponding to the time node; Based on the correction parameter, updating the predicted video bit rate; Based on the updated predicted video bit rate and the traffic consumption function corresponding to the same time node, a convolution is performed to determine a first estimated traffic corresponding to the time node.

[0050] Specifically, after obtaining the predicted video bit rate corresponding to each time node, the predicted video bit rate corresponding to each time node can be visualized and fitted to obtain a spline curve. That is, a coordinate system is constructed with the amplitude corresponding to the predicted video bit rate as the vertical axis and the time node as the horizontal axis, and the predicted video bit rate corresponding to each time node is plotted in the coordinate system, thereby obtaining a spline curve to visualize the predicted network fluctuation. Optionally, the spline curve can be a second-order spline curve or a third-order spline curve, which is not limited in the embodiment of the present application.

[0051] After obtaining the predicted video bitrate corresponding to each time node, the network congestion phenomenon is aggravated because the network bandwidth is occupied by a large number of users at the same time during the peak period, resulting in data packet loss or increased delay during video transmission, which in turn causes the actual video bitrate during the peak period to be much lower than the actual video bitrate during other periods. Therefore, after obtaining the spline curve, in order to ensure the rationality of the predicted video bitrate, for each time node, the time interval between the time node and the preset peak point can be calculated, and the time interval is the absolute value of the difference between the time node and the preset peak point. The shorter the time interval, the closer the time node is to the peak period, and the greater the impact of the peak period on the actual video bitrate corresponding to the time node. On the contrary, the longer the time interval, the farther the time node is from the peak period, and the less impact of the peak period on the actual video bitrate corresponding to the time node. Afterwards, after determining the time interval corresponding to the time node, the time interval can be substituted into the correction function to calculate the correction parameter corresponding to the time node. The correction function is used to characterize the correlation between the time interval and the correction parameter, and the correction parameter decreases as the time interval increases. After calculating the correction parameter corresponding to the time node, the sum of the correction parameter and the predicted video bit rate can be calculated to obtain the updated predicted video bit rate. Afterwards, the updated predicted video bit rate can be convolved with the traffic consumption function corresponding to the same time node to calculate the first estimated traffic corresponding to the time node. The first estimated traffic can be calculated by formula (1), which is: ,

[0052] in, represents a first estimated traffic vector, where the first estimated traffic vector includes the first estimated traffic corresponding to each time node; represents a predicted video bit rate vector, which includes the predicted video bit rate corresponding to each time node. represents a traffic consumption function vector, which includes the traffic consumption function corresponding to each time node; the number of elements included in the first estimated traffic vector, the predicted video bit rate vector and the traffic consumption function vector is (positive infinity); z represents a real number; m represents the mth element in the first estimated traffic vector.

[0053] It should be noted that the preset peak point may be a time node corresponding to the peak period, the preset peak point may be a time node when network congestion is most severe during the peak period, or it may be an average time node at the time end corresponding to the peak period. The embodiment of the present application does not limit this.

[0054] Optionally, the correction function may be a linear function or a nonlinear function, which is not limited in the present embodiment. For example, the correction function is a linear function, and the correction function may be expressed as: , where y represents the correction parameter, -k represents the slope of the correction function, and k is a real number greater than 0, x represents the time interval, and b represents the correction parameter corresponding to the preset peak point in the correction function.

[0055] For example, Figure 2 is a schematic diagram of the spline curve before and after correction provided in the embodiment of the present application, such as Figure 2 As shown, the spline curve includes three coordinate points, each coordinate point represents the predicted video bit rate corresponding to each time node, the three coordinate points are A (t1, a1), B (t2, a2) and C (t3, a3), and the correction function is For example, after determining each coordinate point, the time interval between the time node corresponding to each coordinate point and the preset peak point T can be determined, that is, the first absolute value of the difference between t1 and T, the second absolute value of the difference between t2 and T, and the third absolute value of the difference between t3 and T are calculated respectively. Since the second absolute value is less than the third absolute value, and the third absolute value is less than the first absolute value, therefore, in the obtained time interval, the time interval corresponding to t2 is less than the time interval corresponding to t3, and the time interval corresponding to t3 is less than the time interval corresponding to t1. Afterwards, each time interval is substituted into the correction function, and the correction parameters corresponding to each coordinate point are calculated. It can be determined that the correction parameter y2 corresponding to t2 is the largest, and y2 is a positive number, the correction parameter y3 corresponding to t3 is the second largest, and y3 is a positive number, and the correction parameter y1 corresponding to t1 is the smallest, and y1 is a negative number. Afterwards, the sum of the predicted video bit rate a1 corresponding to t1 and the correction parameter y1 is calculated to obtain the updated predicted video bit rate a1+y1 of t1. Calculate the sum of the predicted video bit rate a2 corresponding to t2 and the correction parameter y2 to obtain the updated predicted video bit rate a2+y2 for t2. Calculate the sum of the predicted video bit rate a3 corresponding to t3 and the correction parameter y3 to obtain the updated predicted video bit rate a3+y3 for t3, that is, obtain the updated coordinate points A'(t1, a1+y1), B'(t2, a2+y2) and C'(t3, a3+y3). According to the corrected predicted video bit rate, the updated spline curve can be obtained.

[0056] Step 140: Based on each of the first estimated traffic flows, adjust the predicted video bit rate corresponding to each time node, and clear the cache corresponding to the non-preferred video.

[0057] Specifically, after determining the first estimated traffic corresponding to each time node, determine whether there is a freeze phenomenon at each time node based on each first estimated traffic, and dynamically adjust the predicted video bit rate corresponding to each time node based on the judgment result to reduce the possibility of video freeze, ensure the video playback quality of users' preferred videos, and clear the cache corresponding to non-preferred videos to clear the computing space for video transmission encoding and decoding, thereby reducing the hardware load.

[0058] Further, adjusting the video transmission bit rate corresponding to each time node based on each of the first estimated flows includes: Obtain at least two historical click video bit rates corresponding to the user; the time nodes of each of the historical click video bit rates are the same as the time nodes of each of the predicted video bit rates; For each of the time nodes, based on the traffic consumption function corresponding to the same time node and the historical click video bit rate, determine the second estimated traffic corresponding to the time node; based on the first estimated traffic and the second estimated traffic, determine a freeze judgment result; based on the freeze judgment result, adjust the updated predicted video bit rate corresponding to the time node.

[0059] Specifically, before, after, or at the same time as determining the first estimated traffic, the historical click video bitrate of the user at the same time node as the predicted video bitrate can be obtained. Afterwards, for each time node, the traffic consumption function of the same time node is convolved with the historical click video bitrate to calculate the second estimated traffic corresponding to the time node. The second estimated traffic can be calculated by formula (2), which is: ,

[0060] in, represents a second estimated traffic vector, where the second estimated traffic vector includes the second estimated traffic corresponding to each time node; represents the historical click video bit rate vector, which includes the historical click video bit rates corresponding to each time node; the number of elements included in the second estimated traffic vector and the historical click video bit rate vector is (positive infinity); z represents a real number; m can also represent the mth element in the second estimated traffic vector.

[0061] Afterwards, after calculating the first estimated traffic and the second estimated traffic, the first estimated traffic and the second estimated traffic at the same time node are compared to determine the jamming judgment result corresponding to the time node. The jamming judgment result can reflect the possibility of jamming at the time node when the user plays the preferred video. According to the jamming judgment result, the updated predicted video bit rate corresponding to the time node can be dynamically adjusted to reduce the possibility of jamming of the video playback at the time node and ensure the smoothness of the video playback.

[0062] Further, adjusting the updated predicted video bit rate corresponding to the time node based on the freeze judgment result includes: When the jamming judgment result is that the first estimated flow rate is less than the second estimated flow rate, generating a jamming warning signal; Based on the jam warning signal, the video resolution of the preferred video corresponding to the time node is adjusted to adjust the updated predicted video bit rate corresponding to the time node.

[0063] Specifically, after determining the jamming judgment result, if the first estimated flow rate in the jamming judgment result is less than the second estimated flow rate, it indicates that there is a possibility of jamming at this time node during video playback. At this time, the electronic device can generate a jamming warning signal, and after generating the jamming warning signal, reduce the video resolution of the preferred video at this time node to reduce the updated predicted video bit rate corresponding to the time node, as well as the video encoding data volume and video encoding data volume, thereby reducing the possibility of video jamming and ensuring the smoothness of video playback. If the first estimated flow rate in the jamming judgment result is greater than or equal to the second estimated flow rate, it indicates that there is no possibility of jamming at this time node during video playback. Therefore, there is no need to adjust the updated predicted video bit rate, and the updated predicted video bit rate can be used for video transmission.

[0064] For example, Figure 3 is a schematic diagram of a jamming judgment result provided in an embodiment of the present application, such as Figure 3 As shown, at time node t3, the first estimated traffic is lower than the second estimated traffic, indicating that there is a possibility of freeze at time node t3 during video playback. Therefore, the video resolution corresponding to time node t3 can be lowered to reduce the predicted video bit rate corresponding to time node t3 to ensure smooth video playback.

[0065] The video transmission bit rate adjustment method provided in the embodiment of the present application is to divide the video stream corresponding to the user into preferred video and non-preferred video according to the preferred video feature, input the video service data and preferred video corresponding to the user into the video bit rate prediction model obtained by training through historical network bandwidth, historical throughput and preferred video features, predict the predicted video bit rate corresponding to each time node in the preferred video, predict the first estimated flow corresponding to each time node according to the predicted video bit rate corresponding to each time node, and judge whether there is a possibility of jamming at each time node according to each first estimated flow, and adjust the predicted video bit rate corresponding to each time node. In the embodiment of the present application, the video bit rate prediction model is obtained by training with comprehensive historical network bandwidth, historical throughput and preferred video features to ensure the comprehensiveness and accuracy of the video bit rate prediction model to determine the predicted video bit rate, and adjust the predicted video bit rate corresponding to each time node through the first estimated flow, reduce the possibility of jamming when playing the video at each time node, and ensure the smoothness of video playback at each time node. At the same time, the preferred video is pre-cached, and the cache of the non-preferred video is cleared to ensure that there are enough computing resources to encode and decode the preferred video, improve the utilization of computing resources, and reduce the hardware load.

[0066] The following is a description of the video transmission bit rate adjustment device provided in the present application. The video transmission bit rate adjustment device described below and the video transmission bit rate adjustment method described above can refer to each other.

[0067] The embodiment of the present application also provides a device for adjusting the video transmission bit rate. Figure 4 is a structural diagram of a device for adjusting a video transmission bit rate provided in an embodiment of the present application, such as Figure 4 As shown, the video transmission bit rate adjustment device 400 includes: a first determination module 410 , a prediction module 420 , a second determination module 430 and an adjustment module 440 .

[0068] A first determination module 410 is used to determine a preferred video in a video stream corresponding to a user based on a preferred video feature, and pre-cache the preferred video; the preferred video feature is determined by fuzzy analysis of a user's video history record; Prediction module 420, used for inputting the video service data corresponding to the user and the preferred video into a video bit rate prediction model to obtain the predicted video bit rate corresponding to each time node in the preferred video; the video bit rate prediction model is trained based on historical network bandwidth, historical throughput and the preferred video features; the video service data is used to characterize the video transmission data of the network environment corresponding to the user; A second determination module 430 is used to determine a first estimated flow corresponding to each of the time nodes based on the predicted video bit rate corresponding to each of the time nodes; The adjustment module 440 is used to adjust the predicted video bit rate corresponding to each time node based on each of the first estimated flows.

[0069] The video transmission bit rate adjustment device provided in the embodiment of the present application divides the video stream corresponding to the user into preferred video and non-preferred video according to the preferred video feature, inputs the video service data and the preferred video corresponding to the user into the video bit rate prediction model obtained by training through historical network bandwidth, historical throughput and preferred video features, predicts the predicted video bit rate corresponding to each time node in the preferred video, predicts the first estimated flow corresponding to each time node according to the predicted video bit rate corresponding to each time node, and judges whether there is a possibility of jamming at each time node according to each first estimated flow, and adjusts the predicted video bit rate corresponding to each time node. In the embodiment of the present application, the video bit rate prediction model is obtained by training with comprehensive historical network bandwidth, historical throughput and preferred video features to ensure the comprehensiveness and accuracy of the video bit rate prediction model to determine the predicted video bit rate, and adjusts the predicted video bit rate corresponding to each time node through the first estimated flow, reduces the possibility of jamming when playing the video at each time node, and ensures the smoothness of video playback at each time node. At the same time, the preferred video is pre-cached, and the cache of the non-preferred video is cleared to ensure that there are enough computing resources to encode and decode the preferred video, improve the utilization of computing resources, and reduce the hardware load.

[0070] Optionally, the preferred video features are determined based on the following steps: Based on the user video history records, determining at least two fuzzy sets; For each of the fuzzy sets, based on the label membership of each feature in the fuzzy set, determining the set membership corresponding to the fuzzy set; Based on all fuzzy rules and the set memberships corresponding to the at least two fuzzy sets, the rule memberships corresponding to the fuzzy rules are determined; each fuzzy rule is used to characterize the association between the key time points of the video, the video attribute labels and the video viewing time in the user video history records; The features included in the fuzzy rule corresponding to the maximum rule membership are determined as the preferred video features.

[0071] Optionally, the second determining module 430 is specifically configured to: Obtaining the flow consumption function of each of the time nodes; For each of the time nodes, based on the traffic consumption function and the predicted video bit rate corresponding to the same time node, a first estimated traffic corresponding to the time node is determined.

[0072] Optionally, the second determining module 430 is specifically configured to: Determine the time interval between the time node and the preset peak point; Based on the time interval, determining a correction parameter corresponding to the time node; Based on the correction parameter, updating the predicted video bit rate; Based on the updated predicted video bit rate and the traffic consumption function corresponding to the same time node, a convolution is performed to determine a first estimated traffic corresponding to the time node.

[0073] Optionally, the adjustment module 440 is specifically configured to: Obtain at least two historical click video bit rates corresponding to the user; the time nodes of each of the historical click video bit rates are the same as the time nodes of each of the predicted video bit rates; For each of the time nodes, based on the traffic consumption function corresponding to the same time node and the historical click video bit rate, determine the second estimated traffic corresponding to the time node; based on the first estimated traffic and the second estimated traffic, determine a freeze judgment result; based on the freeze judgment result, adjust the updated predicted video bit rate corresponding to the time node.

[0074] Optionally, the adjustment module 440 is specifically configured to: When the jamming judgment result is that the first estimated flow rate is less than the second estimated flow rate, generating a jamming warning signal; Based on the jam warning signal, the video resolution of the preferred video corresponding to the time node is adjusted to adjust the updated predicted video bit rate corresponding to the time node.

[0075] Figure 5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Figure 5 As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the method for adjusting the video transmission bit rate, and the method includes: Based on the preferred video feature, the video stream corresponding to the user is divided into preferred videos and non-preferred videos, and the preferred videos are pre-cached; the preferred video feature is determined by fuzzy analysis of the user's video history records; Input the video service data corresponding to the user and the preferred video into a video bit rate prediction model to obtain the predicted video bit rate corresponding to each time node in the preferred video; the video bit rate prediction model is trained based on historical network bandwidth, historical throughput and the preferred video features; the video service data is used to characterize the video transmission data of the network environment corresponding to the user; Determine a first estimated flow corresponding to each of the time nodes based on the predicted video bit rate corresponding to each of the time nodes; Based on each of the first estimated traffic flows, the predicted video bitrate corresponding to each time node is adjusted, and the cache corresponding to the non-preferred video is cleared.

[0076] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable 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: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0077] On the other hand, the present application further provides a computer program product, the computer program product comprising a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can execute the video transmission bit rate adjustment method provided by the above methods, the method comprising: Based on the preferred video feature, the video stream corresponding to the user is divided into preferred videos and non-preferred videos, and the preferred videos are pre-cached; the preferred video feature is determined by fuzzy analysis of the user's video history records; Input the video service data corresponding to the user and the preferred video into a video bit rate prediction model to obtain the predicted video bit rate corresponding to each time node in the preferred video; the video bit rate prediction model is trained based on historical network bandwidth, historical throughput and the preferred video features; the video service data is used to characterize the video transmission data of the network environment corresponding to the user; Determine a first estimated flow corresponding to each of the time nodes based on the predicted video bit rate corresponding to each of the time nodes; Based on each of the first estimated traffic flows, the predicted video bitrate corresponding to each time node is adjusted, and the cache corresponding to the non-preferred video is cleared.

[0078] In another aspect, the present application further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for adjusting the video transmission bit rate provided by the above methods is implemented, and the method includes: Based on the preferred video feature, the video stream corresponding to the user is divided into preferred videos and non-preferred videos, and the preferred videos are pre-cached; the preferred video feature is determined by fuzzy analysis of the user's video history records; Input the video service data corresponding to the user and the preferred video into a video bit rate prediction model to obtain the predicted video bit rate corresponding to each time node in the preferred video; the video bit rate prediction model is trained based on historical network bandwidth, historical throughput and the preferred video features; the video service data is used to characterize the video transmission data of the network environment corresponding to the user; Determine a first estimated flow corresponding to each of the time nodes based on the predicted video bit rate corresponding to each of the time nodes; Based on each of the first estimated traffic flows, the predicted video bitrate corresponding to each time node is adjusted, and the cache corresponding to the non-preferred video is cleared.

[0079] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0080] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0081] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for adjusting a video transmission bit rate, characterized in that: include: Based on the preferred video features, the video stream corresponding to the user is divided into preferred videos and non-preferred videos, and the preferred videos are pre-cached; The preferred video feature is determined by fuzzy analysis of the user's video history records; Inputting the video service data corresponding to the user and the preferred video into a video bit rate prediction model to obtain a predicted video bit rate corresponding to each time node in the preferred video; The video bit rate prediction model is trained based on historical network bandwidth, historical throughput and the preferred video features; the video service data is used to characterize the video transmission data of the network environment corresponding to the user; Determine a first estimated flow corresponding to each of the time nodes based on the predicted video bit rate corresponding to each of the time nodes; Based on each of the first estimated traffic flows, the predicted video bitrate corresponding to each time node is adjusted, and the cache corresponding to the non-preferred video is cleared.

2. The method for adjusting the video transmission bit rate according to claim 1, characterized in that: The determining, based on the predicted video bitrate corresponding to each of the time nodes, the first estimated flow corresponding to each of the time nodes, includes: Obtaining the flow consumption function of each of the time nodes; For each of the time nodes, based on the traffic consumption function and the predicted video bit rate corresponding to the same time node, a first estimated traffic corresponding to the time node is determined.

3. The method for adjusting the video transmission bit rate according to claim 2, characterized in that: The determining, based on the traffic consumption function and the predicted video bit rate corresponding to the same time node, a first estimated traffic corresponding to the time node comprises: Determine the time interval between the time node and the preset peak point; Based on the time interval, determining a correction parameter corresponding to the time node; Based on the correction parameter, updating the predicted video bit rate; Based on the updated predicted video bit rate and the traffic consumption function corresponding to the same time node, a convolution is performed to determine a first estimated traffic corresponding to the time node.

4. The method for adjusting the video transmission bit rate according to claim 3, characterized in that: The adjusting the video transmission bit rate corresponding to each time node based on each of the first estimated flows includes: Obtain at least two historical click video bit rates corresponding to the user; the time nodes of each of the historical click video bit rates are the same as the time nodes of each of the predicted video bit rates; For each of the time nodes, based on the traffic consumption function corresponding to the same time node and the historical click video bit rate, determine the second estimated traffic corresponding to the time node; based on the first estimated traffic and the second estimated traffic, determine a freeze judgment result; based on the freeze judgment result, adjust the updated predicted video bit rate corresponding to the time node.

5. The method for adjusting the video transmission bit rate according to claim 4, characterized in that: The adjusting, based on the jamming judgment result, the updated predicted video bit rate corresponding to the time node includes: When the jamming judgment result is that the first estimated flow rate is less than the second estimated flow rate, generating a jamming warning signal; Based on the jam warning signal, the video resolution of the preferred video corresponding to the time node is adjusted to adjust the updated predicted video bit rate corresponding to the time node.

6. The method for adjusting the video transmission bit rate according to any one of claims 1 to 5, characterized in that: The preferred video features are determined based on the following steps: Based on the user video history records, determining at least two fuzzy sets; For each of the fuzzy sets, based on the label membership of each feature in the fuzzy set, determining the set membership corresponding to the fuzzy set; Based on all fuzzy rules and the set memberships corresponding to the at least two fuzzy sets, the rule memberships corresponding to the fuzzy rules are determined; each fuzzy rule is used to characterize the association between the key time points of the video, the video attribute labels and the video viewing time in the user video history records; The features included in the fuzzy rule corresponding to the maximum rule membership are determined as the preferred video features.

7. A device for adjusting a video transmission bit rate, characterized in that: include: A first determination module is used to divide the video stream corresponding to the user into preferred videos and non-preferred videos based on the preferred video features, and pre-cache the preferred videos; The preferred video feature is determined by fuzzy analysis of the user's video history records; A prediction module, used to input the video service data corresponding to the user and the preferred video into a video bit rate prediction model to obtain the predicted video bit rate corresponding to each time node in the preferred video; The video bit rate prediction model is trained based on historical network bandwidth, historical throughput and the preferred video features; the video service data is used to characterize the video transmission data of the network environment corresponding to the user; A second determination module, configured to determine a first estimated flow corresponding to each of the time nodes based on the predicted video bit rate corresponding to each of the time nodes; The adjustment module is used to adjust the predicted video bit rate corresponding to each time node based on each of the first estimated flows, and clear the cache corresponding to the non-preferred video.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method for adjusting the video transmission bit rate as described in any one of claims 1-6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for adjusting the video transmission bit rate as described in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for adjusting the video transmission bit rate as described in any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Method and system for optimizing resolution of 4K ultra-high-definition set top box

    CN120091165A