Speed-aware video adaptive bit rate transmission method, electronic device and storage medium
By receiving cloud-side bandwidth prediction and playback speed probability distribution information, and combining them with local conditions to construct an enhanced state, the instability of the adaptive bitrate transmission method under speed-up playback and network state changes is solved, achieving more stable bitrate selection and user experience.
Patent Information
- Application Number
- CN202611252770.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-18
- Publication Date
- 2026-11-27
AI Technical Summary
Existing adaptive bitrate transmission methods suffer from unstable bitrate selection in mobile network environments due to time-varying and playback speed variations, which may lead to stuttering or image quality degradation and cannot effectively adapt to changes in network conditions and playback speed.
By receiving bandwidth prediction and playback speed probability distribution information from the cloud server, combining it with the local state to construct an enhanced state, determining the fusion bandwidth prediction value, and selecting the target bitrate based on buffer risk, the end-cloud collaborative decision-making is achieved.
It improved the reliability of bandwidth prediction and the accuracy of buffer risk assessment, stabilized bitrate selection, and improved user experience.
Smart Images

Figure CN123185355A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of video streaming media transmission technology, and in particular to a method for adaptive bitrate transmission of video with speed perception, an electronic device, and a storage medium. Background Technology
[0002] With the development of streaming media services such as video-on-demand and live playback, clients typically adopt adaptive bitrate transmission technology. Based on information such as network bandwidth and playback buffer status, the client selects the appropriate bitrate from multiple available bitrates for the current video segment to achieve a balance between video clarity and playback smoothness.
[0003] Existing adaptive bitrate transmission methods typically rely on local states such as historical throughput and current buffer length observed on the client side to determine the target bitrate. However, mobile network environments are highly time-varying, and bandwidth prediction results based solely on local observations at the client side may be affected by factors such as short-term network fluctuations, sampling windows, and observation delays, leading to unstable bitrate selection.
[0004] Furthermore, users may switch playback speeds during video playback, such as using a playback speed faster than normal. Changes in playback speed alter the actual rate at which the playback buffer is consumed: at higher playback speeds, the same length of cached video content can support a shorter actual waiting time. If a buffer evaluation method that doesn't consider playback speed is still used, the risk of rebuffering may be underestimated, leading the client to choose an excessively high bitrate, causing stuttering; or excessively reducing the bitrate, affecting video quality.
[0005] Therefore, how to combine cloud-side prediction information, real-time status on the client side, prediction error, and user playback speed in the client-side adaptive bitrate decision-making process to obtain a bitrate selection result that better matches the actual playback conditions is a technical problem that needs to be solved in the field of video streaming media transmission. Summary of the Invention
[0006] In view of this, the purpose of this invention is to provide a method for adaptive bitrate transmission of speed-sensing video, an electronic device, and a storage medium.
[0007] To achieve the above objectives, the first aspect of the present invention provides a method for speed-sensing adaptive bitrate transmission of video, applied to a client device, the method comprising:
[0008] Receive cloud-side guidance information sent by the cloud-side server, the cloud-side guidance information including cloud-side bandwidth prediction values for future video slices and probability distribution of future playback speed; Local status is obtained at the granularity of video slices. The local status includes the predicted bandwidth value of the end side, the current playback buffer length, the size information of the requested video slice under the discrete bitrate set, and the current playback speed. An enhanced state is constructed based on the local state and the cloud-side guidance information; Based on the actual throughput of the downloaded video slices, determine the cloud-side prediction error of the cloud-side bandwidth prediction value and the terminal-side prediction error of the terminal-side bandwidth prediction value. Based on the cloud-side prediction error and the terminal-side prediction error, determine the fusion weight of the cloud-side bandwidth prediction value and the terminal-side bandwidth prediction value to obtain the fused bandwidth prediction value. For each candidate bitrate in the discrete bitrate set, the predicted download time is determined based on the size information of the video slice to be requested corresponding to the candidate bitrate and the fusion bandwidth prediction value. The buffer risk is determined based on the current playback speed, the current playback buffer length and the predicted download time. Based on the enhancement status and the buffer risk, the target bitrate of the current video slice is determined from the discrete bitrate set, and the current video slice is requested and played according to the target bitrate.
[0009] A second aspect of the present invention provides a method for adaptive bitrate transmission of speed-sensing video, applied to a cloud-side server, the method comprising: Obtain historical network features, video content features, and historical playback speed switching trajectories; Based on an asynchronous inference cycle lower than the video slice request frequency, scenario inference is performed on the network historical features, the video content features, and the historical playback speed switching trajectory to generate cloud-side guidance information. The cloud-side guidance information includes cloud-side bandwidth prediction values for future video slices and probability distributions of future playback speeds. Send the cloud-side guidance information to the client device.
[0010] A third aspect of the present invention provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method as described in the first aspect or the method as described in the second aspect.
[0011] A fourth aspect of the present invention provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the method described in the first aspect or the method described in the second aspect.
[0012] As can be seen from the above description, the speed-sensing video adaptive bitrate transmission method, electronic device, and storage medium provided by this invention, when applied to a client device, include: receiving cloud-side guidance information, obtaining a local state including the end-side bandwidth prediction value, playback buffer length, candidate bitrate corresponding slice size information, and current playback speed, and constructing an enhanced state; determining the cloud-side prediction error and the end-side prediction error based on the actual throughput to obtain a fused bandwidth prediction value; determining the predicted download time for each candidate bitrate, and determining the buffer risk based on the current playback speed and playback buffer length; inputting the enhanced state and the buffer risk corresponding to each candidate bitrate into the bitrate decision model, determining the target bitrate, and requesting and playing video slices. This method can simultaneously adapt to network state fluctuations and playback speed changes, improving the reliability of bandwidth prediction, the accuracy of buffer risk assessment, and the stability of bitrate selection. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in this invention or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 The illustration shows a streaming media application scenario of an exemplary speed-sensing adaptive bitrate transmission method provided by an embodiment of the present invention.
[0015] Figure 2 The diagram illustrates a system schematic of an exemplary speed-sensing adaptive bitrate transmission method for video provided by an embodiment of the present invention.
[0016] Figure 3 The illustration shows a flowchart of an exemplary speed-sensing adaptive bitrate transmission method for video, executed by a cloud-side server according to an embodiment of the present invention.
[0017] Figure 4 The illustration shows a schematic flowchart of an exemplary speed-sensing adaptive bitrate transmission device executed by a client device according to an embodiment of the present invention.
[0018] Figure 5 The diagram illustrates a system architecture schematic of an exemplary speed-sensing adaptive bitrate transmission method for video provided by an embodiment of the present invention.
[0019] Figure 6 A schematic diagram of the hardware structure of an exemplary computer device provided in an embodiment of the present invention is shown. Detailed Implementation
[0020] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.
[0021] To make the objectives, technical solutions, and advantages of this invention clearer, the principles and spirit of the invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided merely to enable those skilled in the art to better understand and implement the invention, and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided to make the invention more thorough and complete, and to fully convey the scope of the invention to those skilled in the art.
[0022] In this article, it is important to understand that any number of elements in the accompanying figures is for illustrative purposes and not for limitation, and any naming is for distinction only and has no limiting meaning.
[0023] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this invention should have the ordinary meaning understood by one of ordinary skill in the art to which this invention pertains. The terms "first," "second," and similar terms used in the embodiments of this invention do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are used only to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly. The article "a" or "an" preceding an element does not exclude the existence of multiple such elements.
[0024] The principles and spirit of the present invention will be explained in detail below with reference to several representative embodiments.
[0025] refer to Figure 1With the rapid development of mobile internet and various long and short video platforms, playback speed adjustment has become the most common video interaction method for the public. Many audiovisual products offer multiple playback speed adjustment functions. Public industry survey data shows that over 85% of users using the speed adjustment function choose 1.25x, 1.5x, or 2.0x acceleration; the proportion of high-speed viewing is even higher in scenarios such as commuting, knowledge learning, and fast browsing of short videos. Existing adaptive bitrate (ABR) algorithms were developed during the era of default 1.0x video playback. The entire buffer modeling, bandwidth allocation, and bitrate selection logic are based on the fundamental assumption of a constant playback rate. Directly applying them to multi-speed playback scenarios will produce a series of unavoidable user experience defects. Currently, mainstream adaptive bitrate solutions are divided into three categories: traditional heuristic algorithms, deep reinforcement learning algorithms, and large model-driven streaming media algorithms. Each has significant technical shortcomings and is difficult to adapt to current mainstream multi-speed viewing scenarios.
[0026] The first category comprises traditional heuristic and cybernetics ABR algorithms, represented by BBA, BOLA, and MPC. BBA adjusts the bitrate solely based on the buffer level, completely neglecting to anticipate long-term network fluctuations. BOLA relies on Lyapunov optimization to balance image quality and buffer capacity, but its model doesn't incorporate playback speed-related variables. MPC uses a rolling time-domain mechanism to predict throughput, making it a relatively forward-looking algorithm among traditional solutions; however, all three ignore the accelerating effect of playback speed on buffer consumption. When a user enables 2.0x playback, the video buffer consumption rate doubles, yet traditional algorithms still extrapolate buffer consumption time based on 1.0x speed, resulting in significant prediction errors. During network fluctuations, algorithms are prone to misjudging sufficient buffer space and continuously selecting high-bitrate segments, leading to buffer exhaustion and prolonged stuttering. Conversely, continuously lowering the overall bitrate to avoid stuttering causes a precipitous drop in overall video clarity. Meanwhile, cognitive science research indicates that during high-speed playback, the human eye's visual attention is highly concentrated on highly salient areas such as faces and moving objects, while sensitivity to low-value scenes such as static backgrounds and empty shots is significantly reduced. However, traditional algorithms employ a uniform bandwidth allocation strategy and undifferentiated transmission logic, resulting in a significant waste of bandwidth resources on background scenes that users cannot distinguish. In mobile environments with drastically fluctuating bandwidth, such as 4G and public Wi-Fi, these defects are amplified, leading to prominent issues like prolonged stuttering and frequent bitrate switching, severely impairing the overall quality of user experience (QoE).
[0027] The second category is deep reinforcement learning-based ABR algorithms, represented by Pensieve. This algorithm, for the first time, utilizes neural networks to replace manual rules for bitrate decision-making, breaking free from the constraints of fixed heuristic logic. However, the entire training and inference process still defaults to a constant playback speed, and the state input space does not incorporate speed-related features. Traditional online reinforcement learning carries the risk of trial and error; in unfamiliar weak network or high-speed playback scenarios, it is prone to outputting aggressive bitrate strategies, directly causing playback interruptions and making the online experience uncontrollable. Simultaneously, the model's generalization ability is highly dependent on the training dataset, resulting in poor adaptation to edge networks such as 5G high-speed and public weak Wi-Fi. Furthermore, this type of algorithm only uses a few shallow network features such as throughput and buffer length, failing to extract visual semantics from video frames and distinguish the visual importance of different segments, leaving the core problem of inefficient bandwidth resource allocation unresolved.
[0028] The third category is streaming media optimization solutions driven by large language models, represented by NetLLM. This type of work pioneered the introduction of large models' long-term time-series inference and multi-source information fusion capabilities into network decision-making tasks. However, its architectural design suffers from an irreconcilable real-time contradiction. Large models have a massive number of parameters, resulting in high computational overhead and latency of hundreds of milliseconds for a single inference iteration, while video segmentation requires bitrate adjustments every few seconds. Deploying large models on edge devices such as mobile phones and tablets cannot support high-frequency inference due to insufficient computing power. Relying entirely on real-time bitrate commands from the cloud results in high-speed buffer consumption due to the high latency of edge-to-cloud transmission, often leading to buffer exhaustion before commands even reach the buffer, making it impossible to eliminate stuttering. Furthermore, existing LLM+ABR solutions lack sufficient information fusion dimensions, processing only network throughput time-series data and failing to simultaneously integrate two key types of information: video visual saliency and user long-term speed-up interaction trajectories. This makes it impossible to predict changes in user playback speed or dynamically adjust QoE optimization weights based on the importance of each frame, and the fixed reward function is ill-suited to the differentiated viewing needs of users at different speeds.
[0029] In summary, the existing technology has the following three core defects: The lack of explicit perception and proactive planning of user playback speed and the serious mismatch between the dynamic buffer model and the actual playback process lead to frequent stuttering and bitrate decision errors in high-speed scenarios. There is a time granularity mismatch between LLM's powerful long-term inference capabilities and ABR's millisecond-level real-time requirements. Existing work either makes LLM obsolete (only used for offline design assistance) or directly uses it for online decision-making (introducing unacceptable latency), lacking a reasonable task division and collaboration mechanism between edge and cloud. The lack of a content-aware differentiated bitrate allocation mechanism ignores the visual differences in video content, and allocates bitrate equally when bandwidth is limited, resulting in low resource utilization efficiency and insufficient precision in user experience optimization.
[0030] To address the aforementioned issues, this invention provides a speed-sensing video adaptive bitrate transmission scheme. When applied to a client device, this method includes: receiving cloud-side guidance information, acquiring a local state including the endpoint bandwidth prediction value, playback buffer length, candidate bitrate corresponding slice size information, and current playback speed, and constructing an enhanced state; determining the cloud-side prediction error and endpoint prediction error based on the actual throughput to obtain a fused bandwidth prediction value; determining the predicted download time for each candidate bitrate, and determining the buffer risk based on the current playback speed and playback buffer length; inputting the enhanced state and the buffer risk corresponding to each candidate bitrate into a bitrate decision model to determine the target bitrate and request and play video slices. This approach can simultaneously adapt to network state fluctuations and playback speed changes, improving the reliability of bandwidth prediction, the accuracy of buffer risk assessment, and the stability of bitrate selection.
[0031] like Figure 2 As shown, the video transmission system in this embodiment may include a cloud-side server 100, a client device 200, and a content delivery network or video service node 300.
[0032] The cloud-side server 100 is used to perform scene reasoning based on network historical features, video content features, and historical playback speed switching trajectories, generate cloud-side guidance information, and send the cloud-side guidance information to the client device 200 through a control channel, a service channel, or an information channel associated with the video request.
[0033] The client device 200 can be a smartphone, tablet, personal computer, smart TV, in-vehicle terminal, wearable device, or other electronic device with video playback capabilities. The client device 200 requests video slices from the content delivery network or video service node 300 through a video player or video playback application, and determines the target bitrate of the requested video slice based on the current network status, buffer status, playback speed, and cloud-side guidance information.
[0034] The video can be divided into multiple consecutive video slices according to a preset duration. Each video slice can be pre-encoded into multiple discrete bitrate versions. For example, for the same requested video slice, there can be multiple video representations with different bitrates, and each video representation has corresponding slice size information. The client device 200 selects a candidate bitrate from the set of discrete bitrates as the target bitrate and requests the video slice corresponding to that candidate bitrate.
[0035] The scene inference frequency of the cloud server 100 can be lower than the video slice request frequency of the client device 200. In other words, the client device 200 can make real-time bitrate decisions for each requested video slice, while the cloud server 100 does not need to perform scene inference for each video slice. By adopting asynchronous inference, the cloud server 100 can provide predictions and scene guidance for multiple future video slices at a lower frequency, while the client device 200 combines local real-time status to complete fine-grained decisions on a slice-by-slice basis.
[0036] like Figure 3 As shown, the cloud-side server 100 can perform the following steps.
[0037] S201. Obtain network historical features, video content features, and historical playback speed switching trajectory.
[0038] Among them, network history features can be used to characterize the historical network status related to video transmission.
[0039] For example, historical network characteristics may include historical throughput, network latency, network fluctuations, network congestion status, network type, signal strength change trends, or other characteristics that can reflect network transmission conditions.
[0040] Among them, video content features can be used to characterize the changes in the video content to be played over time.
[0041] For example, video content features may include the encoding complexity of video slices, slice size distribution, scene switching information, motion intensity, image salience-related features, or other features related to video content encoding and transmission requirements.
[0042] Among them, the historical playback speed switching trajectory is used to characterize the user's state and switching behavior when using different playback speeds during historical playback.
[0043] For example, the historical playback speed switching trajectory may include the duration of different playback speeds, the time position of playback speed switching, the switching direction, the switching frequency, and playback speed change information related to the position of the video content. The playback speed may include the normal playback speed and other playback speeds that are higher or lower than the normal playback speed.
[0044] S202. Based on an asynchronous inference cycle lower than the video slice request frequency, perform scene inference on the network historical features, the video content features, and the historical playback speed switching trajectory to generate cloud-side guidance information. The cloud-side guidance information includes cloud-side bandwidth prediction values for future video slices and probability distributions of future playback speeds.
[0045] In some exemplary embodiments, the asynchronous inference cycle is triggered at preset intervals based on the number of video slices, or in response to changes in network status, video content, or playback speed switching.
[0046] Among them, the cloud-side server 100 can trigger scene reasoning at preset intervals based on the number of video slices.
[0047] For example, after the client device 200 completes the download or playback of a preset number of video slices, the cloud server 100 updates the cloud guidance information once.
[0048] The cloud server 100 can also trigger scenario inference in response to state change events. The state change events may include at least one of network state changes, video content changes, and playback speed switching behaviors.
[0049] For example, when the network throughput change trend meets the preset update conditions, the video playback enters a new content scene, or the user switches the playback speed, the cloud server 100 can re-perform scene reasoning.
[0050] The cloud-side guidance information includes at least the following: Cloud-side bandwidth predictions for future video slices; The probability distribution of future playback speed.
[0051] The cloud-side bandwidth prediction value represents the predicted bandwidth available for video transmission within one or more video slice download cycles in the future. The probability distribution of future playback speeds represents the likelihood of a user using each playback speed during future playback phases.
[0052] For example, the probability distribution may correspond to multiple playback speed values in a preset playback speed set.
[0053] In some implementations, the cloud-side guidance information also includes scenario-level guidance vectors. These scenario-level guidance vectors are used to jointly characterize future network congestion trends, video content distribution, and playback behavior. The scenario-level guidance vectors can be extracted by the cloud-side server 100 based on historical network characteristics, video content characteristics, and historical playback speed switching trajectories, and then sent to the client device 200.
[0054] S203. Send the cloud-side guidance information to the client device.
[0055] The cloud-side server 100 sends cloud-side guidance information to the client device 200. The cloud-side guidance information may carry the corresponding generation time, applicable video slice range, or effective time period information, which the client device 200 can use in subsequent slice-by-slice bitrate decisions.
[0056] Upon receiving new cloud-side guidance information, the client device 200 can update its locally stored cloud-side bandwidth predictions, the probability distribution of future playback speeds, and scene-level guidance vectors. Until the next cloud-side guidance message arrives, the client device 200 can continue to combine the currently valid cloud-side guidance information with its real-time local status to make bitrate decisions.
[0057] like Figure 4 As shown, the client device 200 can perform the following steps for the requested video slice.
[0058] S301. Receive cloud-side guidance information sent by the cloud-side server, wherein the cloud-side guidance information includes cloud-side bandwidth prediction values for future video slices and probability distributions of future playback speeds.
[0059] Specifically, the client device 200 receives cloud-side guidance information sent by the cloud-side server 100. This cloud-side guidance information includes cloud-side bandwidth predictions for future video segments and a probability distribution of future playback speeds. The cloud-side bandwidth prediction is used to provide the client device 200 with a forward-looking network bandwidth reference. The probability distribution of future playback speed is used to characterize possible changes in the user's future playback behavior. Compared to selecting the bitrate solely based on the current playback speed, the probability distribution of future playback speed allows the client device 200 to consider the user's potential subsequent speed-up switching behavior when constructing the decision state.
[0060] In some implementations, the cloud-side guidance information also includes scenario-level guidance vectors.
[0061] S302. Obtain local status at the granularity of video slices. The local status includes the predicted bandwidth value of the end side, the current playback buffer length, the size information of the requested video slice under the discrete bitrate set, and the current playback speed.
[0062] Specifically, the client device 200 acquires local status at the granularity of the video slice to be requested. The local status includes the predicted bandwidth value, the current playback buffer length, the size information of the video slice to be requested under the discrete bitrate set, and the current playback speed.
[0063] The predicted bandwidth at the client end can be determined based on the historical actual throughput of video slices that have already been downloaded. The client device 200 can perform statistical analysis, smoothing, or trend prediction on the actual throughput of multiple downloaded video slices to obtain the predicted bandwidth at the client end for the current video slice download decision.
[0064] The current playback buffer length represents the amount of video content that has been downloaded but not yet played. In one implementation, the current playback buffer length can be represented by the video content duration, that is, the media playback duration corresponding to the video data in the buffer at normal playback speed.
[0065] The size information of the requested video slice under the discrete bitrate set can constitute a slice size information set or a slice size vector. For each candidate bitrate in the discrete bitrate set, the client device 200 can obtain the slice size corresponding to the requested video slice when encoded or stored at that candidate bitrate. The slice size information can be obtained from the video manifest file, media presentation description file, index file, or server response information.
[0066] The current playback speed refers to the actual playback speed currently used by the client device 200. The current playback speed can be determined by the playback control status of the video player. The current playback speed can be the normal playback speed, a multiplied playback speed, or a playback speed lower than the normal playback speed.
[0067] S303. Construct an enhanced state based on the local state and the cloud-side guidance information.
[0068] In this process, the client device 200 splices together the probability distribution of the future playback speed from the local state and the cloud-side guidance information to obtain the enhanced state.
[0069] The local state reflects the real-time network status, buffer status, slice size information, and current playback speed of the current requested video slice; the probability distribution of future playback speed reflects the possibility of future playback speed changes.
[0070] In some exemplary embodiments, constructing the enhanced state based on the local state and the cloud-side guidance information includes: Obtain a scenario-level guidance vector, which is used to characterize the joint scenario features of future network congestion trends, video content distribution, and playback behavior; The enhanced state is obtained by concatenating the local state, the probability distribution of the future playback speed, and the scene-level guidance vector.
[0071] The client device 200 can also obtain scene-level guidance vectors and concatenate the local state, the probability distribution of future playback speed, and the scene-level guidance vectors to obtain the enhanced state.
[0072] The scenario-level guidance vector reflects the joint scenario features obtained by the cloud side based on network historical features, video content features, and historical playback speed switching trajectories.
[0073] By combining the above information into an enhanced state, the client device 200 can combine the forward-looking scenario judgment on the cloud side with the real-time observation on the device side to provide input for subsequent candidate bitrate selection.
[0074] S304. Based on the actual throughput of the downloaded video slices, determine the cloud-side prediction error of the cloud-side bandwidth prediction value and the terminal-side prediction error of the terminal-side bandwidth prediction value. Based on the cloud-side prediction error and the terminal-side prediction error, determine the fusion weight of the cloud-side bandwidth prediction value and the terminal-side bandwidth prediction value to obtain the fused bandwidth prediction value.
[0075] In some exemplary embodiments, determining the cloud-side prediction error of the cloud-side bandwidth prediction value and the edge-side prediction error of the edge-side bandwidth prediction value based on the actual throughput of the downloaded video slices includes: The cloud-side bandwidth prediction error is obtained by performing an exponential moving average on the error between the cloud-side bandwidth prediction value and the actual throughput. The error between the predicted bandwidth and the actual throughput is processed by an exponential moving average to obtain the prediction error.
[0076] Among them, the client device 200 determines the cloud-side prediction error of the cloud-side bandwidth prediction value and the terminal-side prediction error of the terminal-side bandwidth prediction value based on the actual throughput of the downloaded video slices.
[0077] For any video slice that has been downloaded, the client device 200 can determine the actual throughput based on the actual amount of data downloaded and the actual download time. Based on the actual throughput, the cloud-side bandwidth prediction value, and the terminal-side bandwidth prediction value, the instantaneous error corresponding to the cloud-side prediction and the instantaneous error corresponding to the terminal-side prediction can be determined respectively.
[0078] In one implementation, the instantaneous error can be represented by the absolute value of the difference between the predicted value and the actual throughput; in other implementations, relative error, normalized error, or other error representations that can reflect the degree of deviation from the prediction can also be used.
[0079] To reduce the accidental impact of the transmission results of a single video slice, the client device 200 performs an exponential moving average on the error between the cloud-side bandwidth prediction and the actual throughput to obtain the cloud-side prediction error; and performs an exponential moving average on the error between the end-side bandwidth prediction and the actual throughput to obtain the end-side prediction error.
[0080] In some exemplary embodiments, determining the fusion weights of the cloud-side bandwidth prediction value and the terminal-side bandwidth prediction value based on the cloud-side prediction error and the terminal-side prediction error to obtain the fused bandwidth prediction value includes: Based on the cloud-side prediction error and the edge-side prediction error, the cloud-side fusion weight is determined by a normalized exponential function with a temperature parameter. The weights that are complementary to the cloud-side fusion weights are determined as the edge-side fusion weights; The cloud-side bandwidth prediction value is weighted according to the cloud-side fusion weight, and the terminal-side bandwidth prediction value is weighted according to the terminal-side fusion weight. The weighted results are added together to obtain the fused bandwidth prediction value.
[0081] In this process, the client device 200 determines the fusion weight of the cloud-side bandwidth prediction value and the terminal-side bandwidth prediction value based on the cloud-side prediction error and the terminal-side prediction error, and obtains the fused bandwidth prediction value based on the fusion weight.
[0082] In one implementation, the client device 200 uses a normalized exponential function with a temperature parameter to determine the cloud-side fusion weights. To ensure that the side with the smaller prediction error receives a larger fusion weight, the normalized exponential function can be constructed based on the negative of the prediction error.
[0083] Therefore, when the cloud-side prediction error is smaller than the edge-side prediction error, the cloud-side fusion weight is increased; conversely, when the edge-side prediction error is smaller than the cloud-side prediction error, the edge-side fusion weight is increased. The client device 200 can dynamically adjust the roles of edge-side and cloud-side information in bandwidth prediction based on actual download results.
[0084] S305. For each candidate bitrate in the discrete bitrate set, determine the predicted download time based on the size information of the requested video slice corresponding to the candidate bitrate and the fusion bandwidth prediction value. Determine the buffer risk based on the current playback speed, the current playback buffer length and the predicted download time. Based on the enhancement status and the buffer risk, determine the target bitrate of the current video slice from the discrete bitrate set, and request and play the current video slice according to the target bitrate.
[0085] Specifically, the client device 200 determines the predicted download time for each candidate bitrate in the discrete bitrate set based on the size information of the requested video slice corresponding to that candidate bitrate and the fused bandwidth prediction value.
[0086] Since different candidate bitrates correspond to different video slice sizes, they typically have different predicted download times. Higher candidate bitrates generally correspond to larger video slice sizes, and consequently, longer predicted download times.
[0087] In some exemplary embodiments, determining buffer risk based on the current playback speed, the current playback buffer length, and the predicted download duration includes: Based on the current playback buffer length and the current playback speed, determine the playback duration that the current playback buffer can support; Compare the predicted download duration with the playback duration; If the predicted download duration is greater than the playback duration, it is determined that the corresponding candidate bitrate has the buffering risk.
[0088] The client device 200 determines the buffer risk corresponding to each candidate bitrate based on the current playback speed, the current playback buffer length, and the predicted download time.
[0089] In one implementation, the current playback buffer length is represented by the duration of the video content. Based on the current playback buffer length and the current playback speed, the actual playback duration that the current playback buffer can support at the current playback speed is determined.
[0090] When the playback speed is greater than the normal playback speed, the same video content in the buffer will be played out in a shorter actual time; when the playback speed is less than the normal playback speed, the same video content in the buffer can support a longer actual waiting time.
[0091] The client device 200 compares the predicted download duration with the playback duration corresponding to each candidate bitrate.
[0092] When the predicted download duration exceeds the playback duration, the client device 200 determines that the candidate bitrate has a buffering risk. Optionally, the client device 200 may also use the difference between the predicted download duration and the playback duration as the predicted rebuffering duration corresponding to the candidate bitrate, or as a risk parameter characterizing the degree of buffering risk.
[0093] When the predicted download duration is less than or equal to the playback duration, the client device 200 can determine that the candidate bitrate does not have a rebuffering risk under the current prediction conditions, or determine that its buffering risk is lower than that of the candidate bitrate that has a rebuffering risk.
[0094] Using the above method, buffer risk corresponds to the candidate bitrate, video slice size, predicted fusion bandwidth, and the current actual playback speed. Even if the current playback buffer length is the same, the buffer risk corresponding to the candidate bitrate may differ at different playback speeds.
[0095] In some exemplary embodiments, determining the target bitrate of the current video slice from the discrete bitrate set based on the enhancement state and the buffer risk includes: The enhanced state and the buffer risk corresponding to each candidate bitrate in the discrete bitrate set are input into the pre-trained bitrate decision model to obtain the selection score corresponding to each candidate bitrate; The candidate bitrate with the highest score is selected as the target bitrate for the current video slice.
[0096] In this process, the client device 200 inputs the buffer risk corresponding to each candidate bitrate in the enhanced state and discrete bitrate set into the pre-trained bitrate decision model to obtain the selection score corresponding to each candidate bitrate.
[0097] The bitrate decision model can be deployed on the client device 200, or in a local inference component that can be invoked by the client device 200. The bitrate decision model can score different candidate bitrates based on the network, content, and playback behavior information reflected in the enhanced state, as well as the buffer risk corresponding to each candidate bitrate.
[0098] In one implementation, the input to the bitrate decision model may include enhancement status and risk characteristics associated with each candidate bitrate; the output may be a selection score, selection probability, or other decision result that can be used to compare the priority of candidate bitrates for each candidate bitrate. The client device 200 determines the candidate bitrate with the highest selection score as the target bitrate for the current video slice.
[0099] Client device 200 sends a video slice request to the content delivery network or video service node 300 according to the target bitrate, and receives and plays the requested video slice. After the subsequent video slices are downloaded, client device 200 can update the actual throughput, current playback buffer length, end-side bandwidth prediction value, cloud-side prediction error, and end-side prediction error, and repeat the above process for the next requested video slice.
[0100] In one alternative implementation, the bitrate decision model can be trained offline based on historical video transmission trajectories. These historical trajectories may include information such as network status, selected bitrate, video slice download results, playback buffer status, playback speed, rebuffering results, and bitrate switching information.
[0101] During training, the bitrate decision model can learn the bitrate selection relationship under different enhancement states and different candidate bitrate buffer risks to output a candidate bitrate selection score. Model training can take into account the image quality gains, rebuffering effects, and bitrate switching effects during video playback to make the trained model applicable to video slice bitrate selection in client devices 200.
[0102] In one alternative implementation, the bitrate decision model may employ a sequence-based decision-making model structure to leverage the state relationships between consecutive video slices. This model structure is merely an example; in practical applications, other models capable of outputting candidate bitrate selection scores based on enhancement states and candidate bitrate risks may also be used.
[0103] like Figure 5As shown, the system modeling is first introduced: Considering a video streaming adaptive bitrate transmission scenario, where users request and watch video content composed of several consecutive video slices through a client player. The system consists of a cloud-side server and several user-end devices. A large language model is deployed on the cloud side, and a lightweight decision model is deployed on the end devices. The video source is preprocessed into a uniform sequence of video slices on the server side. Let a certain video file consist of a set of slices. Composition, in which The total number of slices, and each slice The continuous playback time is Seconds. To match the network conditions of different users, each slice is pre-encoded as a set of discrete bitrates. (e.g., 3000kbps, 6000kbps, etc.). When slicing Select bitrate level as At that time, the actual physical file size corresponding to the slice is (Usually measured in MB).
[0104] Users watch and consume corresponding to the first When playing video content in slices, the actual playback rate is set to be... Let be a discrete random variable. The client maintains a local playback buffer with a length of . The dynamic update formula is as follows:
[0105] in For the first The actual download time for a slice is determined by both the network transmission rate and the slice size. , This represents the average physical bandwidth (Mbps) when downloading this slice. If the download of the slice... During the process of slicing, the download time is... If the playback time exceeds the current buffer's capacity at the current playback speed, a stutter will occur. The stutter duration is specified in the original text. The calculation is as follows:
[0106] The above model reveals the nonlinear acceleration effect of accelerated playback on buffer consumption, which is the physical basis for subsequent risk prediction and decision optimization.
[0107] The cloud-based large language model (base parameter count 32B) adopts an asynchronous low-frequency inference mechanism, performing forward propagation once every K slices (e.g., K=3 or adaptively triggered based on scene changes), thereby removing the large model inference latency from the critical path of slice requests.
[0108] The cloud-side model's input includes three types of features: network features (historical throughput sequences of the past 20 slices and slice download latency), content features (pre-encoded size matrix of future requested slices and slice-level saliency scores), and user features (user's historical speed switching trajectory). Differentiated encoding strategies are designed for different feature types: scalar features are normalized and mapped to fixed-dimensional embeddings through fully connected layers; time-series sequences are extracted using 1D-CNN and then transformed into fixed-length embeddings through pooling layers; categorical features are one-hot encoded and mapped through embedding layers; and saliency scores are normalized as continuous features and directly participate in concatenation. Subsequently, a dedicated state encoder performs cross-modal fusion of the above-encoded multi-source features, mapping them to a continuous latent space consistent with the word embedding dimensions of the large model, forming a unified structured state representation.
[0109] The cloud-based model performs three output tasks based on a unified state representation: extracting low-dimensional scene-level guidance vectors from the model's high-level hidden states. (256-dimensional) A highly condensed global understanding of future network congestion trends, video content distribution, and user behavior; predicts the average bandwidth of the next K slices. Output the probability distribution of the user's future speed increase. ,in ,and This probabilistic modeling transforms the uncertainty of user subjective interaction into a quantified confidence level. The three outputs mentioned above are asynchronously sent to the edge device via the control channel.
[0110] The following describes the real-time bitrate decision-making process on the device side: The device side collects local physical status data in real time. This includes the actual download throughput of the past 5 slices and the current buffer length. The volume matrix of the slice to be requested and the current user's actual speed multiplier. The endpoint will combine the local state with the guidance vector issued by the cloud. and speed probability distribution Perform channel splicing and reconstruct into an enhanced composite state. This splicing operation retains the edge's ability to respond quickly to instantaneous network jitter and sudden user actions, while also incorporating global trend predictions from the cloud, achieving the fusion of micro and macro information.
[0111] To avoid the impact of asynchronous prediction lag on the cloud side and local estimation noise on the edge side, this invention designs an edge-cloud bandwidth fusion mechanism based on historical error tracking. The edge side maintains the exponential moving average absolute error of the cloud-side and edge-side bandwidth predictions in real time.
[0112]
[0113] in For smoothing coefficients, Based on the actual throughput observed after all the previous images have been downloaded, and using the smoothed error expectation, the algorithm incorporates a temperature parameter. The Softmax activation function is used to calculate cloud-side weights:
[0114] in To prevent tiny positive numbers with a denominator of zero, the final robust bandwidth prediction is... for:
[0115] This fusion mechanism fully trusts long-term predictions from the cloud when the network is stable, and automatically switches to real-time perception from the edge when network mutations cause increased errors on the cloud side, ensuring the reliability of decision-making.
[0116] Based on bandwidth fusion and enhanced state reconstruction, the edge-side slice-level model performs bitrate decisions at the granularity of each video slice. Unlike traditional reinforcement learning methods that fit implicit value functions, this invention employs a decision transformer architecture, transforming bitrate control into a conditional sequence generation problem. Let the sum of the cumulative QoE rewards from time step t to the end of the video be the objective reward. During reasoning As an explicit conditional input, it guides the model to generate bitrate actions that match the expected reward. At decision time t, the model input is a sliding history trajectory of a fixed window length W (e.g., W=10), compared with the current target reward. and enhanced state Combined into a token sequence:
[0117] in This serves as the bitrate action index for each slice. The edge model utilizes a causal multi-head self-attention mechanism to extract sequence evolution features, autoregressively predicts the logits of the current action, and maps them to the optimal bitrate level in the discrete bitrate set A through an Argmax operation.
[0118] Thanks to the smaller number of parameters in the edge model and the limited context window The autoregressive inference process can be completed in tens of milliseconds on a regular mobile device, enabling high-frequency streaming intelligent decision-making based on a large model with extremely low computing power.
[0119] The following section introduces visual saliency feature extraction: This invention introduces visual saliency as a core quantitative indicator of video content semantics. The saliency features are constructed based on the TVSum50 dataset: This dataset contains 50 representative videos, including news, tutorials, documentaries, and vlogs. Each frame of the video is scored by 20 crowdsourced workers on a saliency scale of 1-5. This invention first calculates the arithmetic mean of multiple scores for a single frame to obtain a frame-level saliency score. Then, it aggregates the frame-level scores according to the slice boundaries, finally obtaining the slice-level saliency score. (Value range 1-5), the higher the score, the more visually important the content of the slice (such as faces, moving subjects, scene transitions, etc.). This score serves as the core input for video content features and is used in both cloud-side scene understanding and edge-side reward calculation.
[0120] Simultaneously, a single-step reward function was designed that integrates image quality gains, stuttering penalties, and smoothness penalties:
[0121] in: This uses dynamic semantic weighting. The algorithm dynamically amplifies the sharpness gains based on the saliency score of the current slice. High-saliency slices receive higher image quality gain weights, driving the algorithm to prioritize the sharpness of key images when bandwidth is limited; low-saliency slices tolerate lower bitrates to save bandwidth and accumulate buffer space.
[0122] For the first Step-by-step decision-making action The corresponding target bitrate (unit: Mbps).
[0123] For the first Physical stuttering time (in seconds) caused by each slice; The algorithm is set as the stuttering penalty coefficient. The occurrence of stuttering events is minimized by using high penalty weights.
[0124] This represents the bitrate fluctuation range between adjacent slices. Set to a smoothness penalty constant (1.0). This soft penalty constrains drastic fluctuations in bitrate, preventing a drop in image quality that could degrade the user experience.
[0125] Different scenarios have different physical characteristics, and the upper limit of physical QoE they can support also varies. This invention dynamically sets the initial target reward based on the network scenario. A higher target is set for 5G high-speed networks to guide the model to pursue high image quality; a lower target is set for weak networks such as 4G and WiFi to prioritize smooth playback.
[0126] Traditional residual reward update rules can lead to irrational growth of the target value when encountering negative reward penalties. This invention designs a negative reward adaptation mechanism:
[0127] in To relax the penalty factor, when a stutter occurs, the penalty is moderately decayed and deducted from the target, guiding the model to proactively reduce expectations and adopt a conservative strategy under harsh network conditions to avoid a vicious cycle of continuous stutters.
[0128] The offline training and deployment methods are described below: This invention employs an offline reinforcement learning paradigm for model training. First, various classic expert algorithms such as MPC, BOLA, and BBA are used to simulate playback on the Puffer dataset and 4G / 5G network trajectories, fully recording the state, actions, and reward values calculated using the aforementioned reward function at each decision point, thus constructing high-quality expert experience trajectories. Each trajectory further calculates the cumulative reward at each time step as the RTG label.
[0129] Real-world network trajectories exhibit a clear long-tail distribution (e.g., 4G and WiFi samples constitute the vast majority, while 5G scenario samples are scarce). This invention dynamically resamples the experience pool according to scenario categories: assigning high sampling rates to scarce scenarios such as 5G, and downsampling to dominant scenarios, thus ensuring a relatively balanced sample size across scenarios, eliminating the model's overfitting bias towards mainstream scenarios, and improving its generalization ability in edge networks.
[0130] To address the insufficient feature fitting capability of traditional low-rank adaptation in cross-modal temporal control tasks, this invention employs a high-rank LoRA fine-tuning strategy. The cloud-side model is configured with a specific rank. Scaling factor End-side model setting rank Scaling factor Simultaneously, by employing gradient accumulation technology and an increased learning rate, stable and efficient parameter updates are achieved with controllable GPU memory usage.
[0131] The proposed end-to-cloud collaborative method operates as a supplementary module to existing HTTP adaptive streaming media systems, without altering the segment request and playback logic of standard DASH or HLS. The large cloud-side model is deployed on the streaming media service provider's cloud server, while the lightweight end-to-end model is deployed on edge devices. Guidance information between the cloud and end-to-end is transmitted asynchronously via existing control channels, without interfering with the regular segment data request path. The end-to-end periodically sends back actual QoE metrics (stuttering events, bitrate records, etc.) to the cloud for continuous iterative optimization of the model. This design ensures backward compatibility and ease of implementation in real-world systems.
[0132] Compared with the prior art, the present invention has at least the following beneficial effects: By combining cloud-side bandwidth predictions with edge-side bandwidth predictions and adaptively determining the fusion weights based on their respective prediction errors relative to actual throughput, the impact of a single bandwidth prediction source being affected by short-term network fluctuations or observation range limitations can be reduced, thereby improving the adaptability of bandwidth estimation.
[0133] By constructing an enhanced state from the probability distribution of future playback speed, scene-level guidance vectors, and client-side local state, bitrate decisions can be processed in conjunction with future playback behavior, network congestion trends, and video content-related information.
[0134] By converting the current playback buffer length into a supported playback duration based on the current playback speed, and comparing this playback duration with the predicted download duration of different candidate bitrates, the buffering risk of each candidate bitrate can be assessed for playback speed scenarios, reducing the risk of rebuffering caused by changes in playback speed.
[0135] By calculating the predicted download time and buffering risk for each candidate bitrate in the discrete bitrate set, and then outputting a selection score by the bitrate decision model, adaptive selection can be made for the current video slice among video clarity, network download conditions and playback smoothness.
[0136] The cloud-side server generates and sends cloud-side guidance information at an asynchronous inference cycle that is lower than the video slice request frequency. This can reduce the computational and communication burden caused by slice-by-slice cloud inference, while providing forward-looking guidance for the client's real-time bitrate selection.
[0137] It should be noted that the method of this embodiment can be executed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method of this embodiment, and the multiple devices will interact with each other to complete the method described.
[0138] It should be noted that the above description describes some embodiments of the present invention. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims may be performed in a different order than that shown in the above embodiments and still achieve the desired results. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0139] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the methods described in any of the above embodiments.
[0140] Figure 6 This embodiment illustrates a more specific hardware structure of an electronic device. The device may include a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, memory 1020, input / output interface 1030, and communication interface 1040 are interconnected internally via the bus 1050.
[0141] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0142] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.
[0143] The input / output interface 1030 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components within the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touchscreens, microphones, various sensors, etc., while output devices may include displays, speakers, vibrators, indicator lights, etc.
[0144] The communication interface 1040 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0145] Bus 1050 includes a pathway for transmitting information between various components of the device, such as processor 1010, memory 1020, input / output interface 1030, and communication interface 1040.
[0146] It should be noted that although the above-described device only shows the processor 1010, memory 1020, input / output interface 1030, communication interface 1040, and bus 1050, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.
[0147] The electronic devices described above are used to implement the corresponding methods in any of the foregoing embodiments and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0148] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, the present invention also provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the methods described in any of the above embodiments.
[0149] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.
[0150] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to perform the methods described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0151] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, the present invention also provides a computer program product, which includes a computer program. In some embodiments, the computer program is executable by one or more processors to cause the processors to perform the method. Corresponding to the execution entity for each step in each embodiment of the method, the processor performing the corresponding step may belong to the corresponding execution entity.
[0152] The computer program products of the above embodiments are used to cause a processor to execute the methods described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0153] Those skilled in the art will recognize that embodiments of the present invention can be implemented as a system, method, or computer program product. Therefore, the present invention can be specifically implemented as entirely hardware, entirely software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as a "circuit," "module," or "system." Furthermore, in some embodiments, the present invention can also be implemented as a computer program product contained in one or more computer-readable media, which includes computer-readable program code.
[0154] Any combination of one or more computer-readable media may be used. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example,, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (not exhaustive) of a computer-readable storage medium may include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.
[0155] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0156] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0157] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0158] It should be understood that each block of a flowchart and / or block diagram, as well as combinations of blocks in a flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine that, when executed by a computer or other programmable data processing device, creates means for implementing the functions / operations specified in the blocks of the flowchart and / or block diagram.
[0159] These computer program instructions may also be stored in a computer-readable medium that enables a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable medium produce a product comprising an instruction apparatus that implements the functions / operations specified in the boxes of a flowchart and / or block diagram.
[0160] Computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, such that the instructions that execute on the computer or other programmable apparatus can provide a process for implementing the functions / operations specified in the boxes of a flowchart and / or block diagram.
[0161] Furthermore, although the operations of the method of the present invention are described in a specific order in the accompanying drawings, this does not require or imply that these operations must be performed in that specific order, or that all of the operations shown must be performed to achieve the desired result. Rather, the steps depicted in the flowchart may be performed in a different order. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step, and / or one step may be broken down into multiple steps.
[0162] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. Each block in a flowchart or block diagram may represent a module, segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0163] It should be noted that although several modules or units of the device for performing actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of the present invention, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0164] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of the invention (including the claims) is limited to these examples; within the framework of the invention, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of the invention as described above, which are not provided in the details for the sake of brevity.
[0165] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of the invention, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of the invention, and this also takes into account the fact that the details of implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of the invention will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of the invention, it will be apparent to those skilled in the art that the embodiments of the invention may be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0166] Although the invention has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.
[0167] The embodiments of this invention are intended to cover all such substitutions, modifications, and variations falling within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this invention should be included within the protection scope of this invention.
Claims
1. A method for adaptive bitrate transmission of speed-sensing video, characterized in that, Applied to a client device, the method includes: Receive cloud-side guidance information sent by the cloud-side server, the cloud-side guidance information including cloud-side bandwidth prediction values for future video slices and probability distribution of future playback speed; Local status is obtained at the granularity of video slices. The local status includes the predicted bandwidth value of the end side, the current playback buffer length, the size information of the requested video slice under the discrete bitrate set, and the current playback speed. An enhanced state is constructed based on the local state and the cloud-side guidance information; Based on the actual throughput of the downloaded video slices, determine the cloud-side prediction error of the cloud-side bandwidth prediction value and the terminal-side prediction error of the terminal-side bandwidth prediction value. Based on the cloud-side prediction error and the terminal-side prediction error, determine the fusion weight of the cloud-side bandwidth prediction value and the terminal-side bandwidth prediction value to obtain the fused bandwidth prediction value. For each candidate bitrate in the discrete bitrate set, the predicted download time is determined based on the size information of the video slice to be requested corresponding to the candidate bitrate and the fusion bandwidth prediction value. The buffer risk is determined based on the current playback speed, the current playback buffer length and the predicted download time. Based on the enhancement status and the buffer risk, the target bitrate of the current video slice is determined from the discrete bitrate set, and the current video slice is requested and played according to the target bitrate.
2. The method according to claim 1, characterized in that, The construction of the enhanced state based on the local state and the cloud-side guidance information includes: Obtain a scenario-level guidance vector, which is used to characterize the joint scenario features of future network congestion trends, video content distribution, and playback behavior; The enhanced state is obtained by concatenating the local state, the probability distribution of the future playback speed, and the scene-level guidance vector.
3. The method according to claim 1, characterized in that, The step of determining the cloud-side prediction error of the cloud-side bandwidth prediction value and the endpoint prediction error of the endpoint bandwidth prediction value based on the actual throughput of the downloaded video slices includes: The cloud-side bandwidth prediction error is obtained by performing an exponential moving average on the error between the cloud-side bandwidth prediction value and the actual throughput. The error between the predicted bandwidth and the actual throughput is processed by an exponential moving average to obtain the prediction error.
4. The method according to claim 1, characterized in that, The step of determining the fusion weight of the cloud-side bandwidth prediction value and the terminal-side bandwidth prediction value based on the cloud-side prediction error and the terminal-side prediction error, to obtain the fused bandwidth prediction value, includes: Based on the cloud-side prediction error and the edge-side prediction error, the cloud-side fusion weight is determined by a normalized exponential function with a temperature parameter. The weights that are complementary to the cloud-side fusion weights are determined as the edge-side fusion weights; The cloud-side bandwidth prediction value is weighted according to the cloud-side fusion weight, and the terminal-side bandwidth prediction value is weighted according to the terminal-side fusion weight. The weighted results are added together to obtain the fused bandwidth prediction value.
5. The method according to claim 1, characterized in that, The step of determining buffer risk based on the current playback speed, the current playback buffer length, and the predicted download duration includes: Based on the current playback buffer length and the current playback speed, determine the playback duration that the current playback buffer can support; Compare the predicted download duration with the playback duration; If the predicted download duration is greater than the playback duration, it is determined that the corresponding candidate bitrate has the buffering risk.
6. The method according to claim 1, characterized in that, Determining the target bitrate of the current video slice from the discrete bitrate set based on the enhancement state and the buffer risk includes: The enhanced state and the buffer risk corresponding to each candidate bitrate in the discrete bitrate set are input into the pre-trained bitrate decision model to obtain the selection score corresponding to each candidate bitrate; The candidate bitrate with the highest score is selected as the target bitrate for the current video slice.
7. A method for adaptive bitrate transmission of speed-sensing video, characterized in that, Applied to cloud-side servers, the method includes: Obtain historical network features, video content features, and historical playback speed switching trajectories; Based on an asynchronous inference cycle lower than the video slice request frequency, scenario inference is performed on the network historical features, the video content features, and the historical playback speed switching trajectory to generate cloud-side guidance information. The cloud-side guidance information includes cloud-side bandwidth prediction values for future video slices and probability distributions of future playback speeds. Send the cloud-side guidance information to the client device.
8. The method according to claim 7, characterized in that, The asynchronous inference cycle is triggered at preset intervals based on the number of video slices, or in response to changes in network status, video content, or playback speed switching.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method as claimed in any one of claims 1 to 6 or the method as claimed in any one of claims 7 to 8.
10. A non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1 to 6 or the method of any one of claims 7 to 8.
