[go: up one dir, main page]

CN111212301B - A video bit rate matching method, storage medium and terminal device - Google Patents

A video bit rate matching method, storage medium and terminal device Download PDF

Info

Publication number
CN111212301B
CN111212301B CN202010022834.8A CN202010022834A CN111212301B CN 111212301 B CN111212301 B CN 111212301B CN 202010022834 A CN202010022834 A CN 202010022834A CN 111212301 B CN111212301 B CN 111212301B
Authority
CN
China
Prior art keywords
video
cache
downloaded
video block
bit rate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010022834.8A
Other languages
Chinese (zh)
Other versions
CN111212301A (en
Inventor
李清
王潮
石婉欣
江勇
邹龙昊
齐竹云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peng Cheng Laboratory
Southern University of Science and Technology
Original Assignee
Peng Cheng Laboratory
Southern University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peng Cheng Laboratory, Southern University of Science and Technology filed Critical Peng Cheng Laboratory
Priority to CN202010022834.8A priority Critical patent/CN111212301B/en
Publication of CN111212301A publication Critical patent/CN111212301A/en
Priority to PCT/CN2020/121554 priority patent/WO2021139300A1/en
Application granted granted Critical
Publication of CN111212301B publication Critical patent/CN111212301B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23106Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2405Monitoring of the internal components or processes of the server, e.g. server load
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种视频码率的匹配方法、存储介质及终端设备,所述视频码率的匹配方法包括当缓存服务器接收到播放端发送的下载请求,获取所述播放端对应的播放状态以及所述缓存服务器对应的源服务器的链路状态;根据所述播放状态以及链路状态匹配所述下载请求对应的待下载视频块的下载方式,所述下载方式包括将下载请求转发至源服务器或选取缓存服务器中选定码率的待下载视频块。本发明在接收到下载请求时,会根据播放状态以及链路状态来为待下载视频块匹配相应的码率文件或者从源服务器下载,从而可以提高缓存命中率,给用户的使用带来方便。

Figure 202010022834

The invention discloses a video bit rate matching method, a storage medium and a terminal device. The video bit rate matching method includes, when a cache server receives a download request sent by a player, obtaining a playback state corresponding to the player, and The link status of the source server corresponding to the cache server; matching the download mode of the video block to be downloaded corresponding to the download request according to the play status and the link status, and the download mode includes forwarding the download request to the source server or Select the video chunk to be downloaded at the selected bitrate in the cache server. When receiving the download request, the present invention matches the corresponding bit rate file for the video block to be downloaded or downloads it from the source server according to the playing state and the link state, thereby improving the cache hit rate and bringing convenience to the user.

Figure 202010022834

Description

Video code rate matching method, storage medium and terminal equipment
Technical Field
The present invention relates to the field of video transmission technologies, and in particular, to a video bitrate matching method, a storage medium, and a terminal device.
Background
At present, when a network cache server receives a download request from a playing end, cache hit is triggered only when cached data is matched with a user request, otherwise, the user request needs to be forwarded to an origin server cluster. The method aggravates the waste of cache resources in a multi-rate video transmission scene, and requests the rate which is not in the cache due to the fact that the player does not know the cache resource information, so that the video resource acquisition speed is low and the transmission failure probability is high.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a video bitrate matching method, a storage medium, and a terminal device, aiming at the defects of the prior art.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a method for matching video bitrate, the method comprising:
when a cache server receives a downloading request sent by a playing end, acquiring a playing state corresponding to the playing end and a link state of an origin server corresponding to the cache server;
and matching the downloading mode of the video block to be downloaded corresponding to the downloading request according to the playing state and the link state, wherein the downloading mode comprises the step of forwarding the downloading request to a source server or selecting the video block to be downloaded with the selected code rate in a cache server.
The video code rate matching method comprises the steps that the downloading request comprises a target request code rate of a video block to be downloaded; the step of, when the cache server receives a download request sent by a play end, acquiring a play state corresponding to the play end and a link state of an origin server corresponding to the cache server specifically includes:
when a cache server receives a downloading request sent by a playing end, locally searching a video block to be downloaded with the target request code rate in the cache server;
and if the video block to be downloaded with the target request code rate is not found, acquiring a playing state corresponding to the playing end and a link state of a source server corresponding to the cache server.
The video code rate matching method, wherein the obtaining of the playing state corresponding to the playing end and the link state of the source server corresponding to the cache server when the cache server receives the download request sent by the playing end includes:
and if the video block to be downloaded with the target request code rate is found, completing video code rate matching, and sending the video block to be downloaded with the target request code rate to a playing end.
The video code rate matching method, wherein the matching of the downloading mode of the video block to be downloaded corresponding to the downloading request according to the playing state and the link state specifically includes:
inputting the playing state and the link state into a pre-trained reinforcement learning model;
outputting a probability set through the reinforcement learning model, wherein the probability set comprises the selected probability of each preset code rate and the downloading probability of the source server;
and determining a downloading mode corresponding to the downloading request according to the probability set.
The method for matching the video code rate, wherein the determining the downloading mode corresponding to the downloading request according to the probability set specifically comprises:
and selecting the maximum probability in the probability set, and taking the downloading mode corresponding to the maximum probability as the downloading mode corresponding to the downloading request.
The video code rate matching method, wherein after the video block code rate matching method to be downloaded is sent to the playing end according to the downloading mode, the method further comprises the following steps:
and obtaining QoE corresponding to a playing end, and reacting on the reinforcement learning model according to the QoE so as to correct the reinforcement learning model.
The video rate matching method further comprises the following steps:
acquiring all the downloading requests received in the preset time length every interval of the preset time length, and acquiring the probability value of the code rate corresponding to each downloading request and the video cache cost;
and determining income values corresponding to the code rates according to the obtained probability values of all the code rates and the video caching cost, and caching the video according to the income values from large to small.
The video code rate matching method comprises the step of matching the video code rate, wherein the playing state comprises a target request code rate, a previous request code rate, video time cached by a playing end, cache hit throughput of a previous video block of a video block to be downloaded and cache miss throughput of a previous video block of the video block to be downloaded.
A computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps in the video bitrate matching method as described in any one of the above.
A terminal device, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the method for matching video bitrate as described in any one of the above.
Has the advantages that: compared with the prior art, the invention provides a video code rate matching method, when a cache server receives a downloading request sent by a playing end, a playing state corresponding to the playing end and a link state of an origin server corresponding to the cache server are obtained; and matching the downloading mode of the video block to be downloaded corresponding to the downloading request according to the playing state and the link state, wherein the downloading mode comprises the step of forwarding the downloading request to a source server or selecting the video block to be downloaded with the selected code rate in a cache server. When receiving the downloading request, the invention can match the corresponding code rate file for the video block to be downloaded or download the video block from the source server according to the playing state and the link state, thereby improving the cache hit rate and bringing convenience to the use of users.
Drawings
Fig. 1 is a flowchart of a video bitrate matching method provided by the present invention.
Fig. 2 is a schematic structural diagram of a storage server in the video bitrate matching method provided by the present invention.
Fig. 3 is a schematic diagram of a reinforced agent learning module in the video bitrate matching method provided by the present invention.
Fig. 4 is a schematic structural diagram of a terminal device provided in the present invention.
Detailed Description
The invention provides a video code rate matching method, a storage medium and a terminal device, and in order to make the purpose, technical scheme and effect of the invention clearer and clearer, the invention is further described in detail below by referring to the attached drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The invention will be further explained by the description of the embodiments with reference to the drawings.
The embodiment provides a video code rate matching method. The method can be executed by a matching device, and the device can be realized by software or hardware, so that the device receives a downloading request sent by a playing end at a cache server, and obtains a playing state corresponding to the playing end and a link state of an origin server corresponding to the cache server; and matching the downloading mode of the video block to be downloaded corresponding to the downloading request according to the playing state and the link state, wherein the downloading mode comprises the step of forwarding the downloading request to a source server or selecting the video block to be downloaded with the selected code rate in a cache server. The matching device can be applied to intelligent terminals such as PCs, servers and the like which can be used as cache servers. Referring to fig. 1, the method for matching video bitrate provided in this embodiment specifically includes:
and S10, when the cache server receives the download request sent by the playing end, acquiring the playing state corresponding to the playing end and the link state of the source server corresponding to the cache server.
Specifically, the playing end is used for running a video playing program and sending a video downloading request to the cache server, wherein the playing end can be a terminal device which can be connected with the internet and has an image display function, such as a smart phone, a tablet computer, a desktop computer, and the like. The cache server has cache capacity, partial video files can be stored in the cache server, and all the video files are stored in the source server cluster. The cache server is geographically closer to the playing end than the source server, when the playing end requests a video file, the playing end sends the request to the cache server first, and when the cache server cannot respond to the request of the playing end, the cache server forwards the request to the source server.
Further, in an implementation manner of this embodiment, the download request includes a target request code rate of a video block to be downloaded; the step of, when the cache server receives a download request sent by a play end, acquiring a play state corresponding to the play end and a link state of an origin server corresponding to the cache server specifically includes:
s11, when the cache server receives a downloading request sent by a playing end, locally searching the video block to be downloaded with the target request code rate in the cache server;
s12, if the video block to be downloaded with the target request code rate is not found, acquiring a playing state corresponding to the playing end and a link state of a source server corresponding to the cache server;
and S13, if the video block to be downloaded with the target request code rate is found, completing video code rate matching, and sending the video block to be downloaded with the target request code rate to a playing end.
Specifically, the downloading request is a request for acquiring a video file, which is sent by a playing terminal to a cache server, and the downloading request is used for requesting a video block to be downloaded with a target request code rate in the cache server. And the video block to be downloaded with the target requested code rate can be stored in the cache server or not stored in the cache server. When the video block to be downloaded with the target request code rate is stored in the cache server, the cache server can directly respond to the downloading request so as to feed back the video block to be downloaded with the target request code rate to the playing end; when a video block to be downloaded with a target request code rate is not stored in the cache server, the cache server needs to acquire a playing state corresponding to a playing end and a link state of the source server corresponding to the cache server, so as to determine whether to use a video file with other code rates corresponding to the video block to be downloaded stored in the cache server or acquire the file to be downloaded with the target request code rate from the source server according to the playing state and the link state.
Further, the playing state includes a target request code rate, a previous request code rate, a video duration cached by the playing end, a cache hit throughput of a previous video block of the video block to be downloaded, and a cache miss throughput of the previous video block of the video block to be downloaded. The target request code rate is a code rate carried by the downloading request, namely the target request code rate is a video request sent by the playing end for the code rate, but a video file is not received yet. The previous request code rate refers to a request code rate of a video block file which is located before the video block to be downloaded corresponding to the download request and adjacent to the video block to be downloaded according to the playing sequence, and the previous request code rate corresponds to the fact that the video file is downloaded to the playing end. The video time length cached by the playing end refers to the video time length cached at the moment of sending the downloading request in the buffer area of the playing end. The cache hit means that the video file is stored in the cache server, and the video file is sent to the playing end from the cache server. The cache miss means that the video file is not stored in the cache server, and the video file is sent from the source server to the playing end, wherein the difference between the cache hit and the cache miss is that a link through which data passes is different.
Further, in an implementation manner of this embodiment, as shown in fig. 2, the cache server may be provided with a playing state collection module 100, a throughput regression module 200, an origin server direction network state collection module 300, a reinforcement learning agent module 400, and a cache management module 500. The playing end state collection module 100 is configured to parse a download request sent by a playing end and extract playing end state data, where the playing end state data needs to be carried by the download request sent by the playing end and is sent to a cache server through the download request, where the playing end state data may include a target request code rate, a previous request code rate, a video duration cached by the playing end, and a throughput of a previous video block of a video block to be downloaded.
The throughput regression module 200 is configured to calculate a cache hit throughput of a previous video of the video block to be downloaded or a cache miss throughput of a previous video of the video block to be downloaded, where the throughput regression module may determine to be arranged at the playing end or the cache server according to the computation of the playing end and the computation of the cache server, and it may be understood that the throughput regression module may be arranged at the playing end or the server end; when the throughput regression module is deployed at the client, the download request carries the cache hit throughput of the previous video block of the video block to be downloaded and the cache miss throughput of the previous video block of the video block to be downloaded; when the throughput regression module is deployed on the cache server, the download request only needs to carry one of the cache hit throughput of the previous video block of the video block to be downloaded and the cache miss throughput of the previous video block of the video block to be downloaded, and meanwhile the download request needs to carry state information used for calculating the cache hit throughput or the cache miss throughput, wherein the state information may include RTT transmitted between the source server and the cache server, data volume transmitted, and link bandwidth between the source server and the cache server.
The source server side needs to continuously and periodically collect the network status of the data transmitted from the source server to the cache server to the network status collection module 300. The network status can be measured by sending probe packets, which are more accurate but occupy part of the network bandwidth, or directly using the amount of miss request data, which is easily available but not accurate enough. The reinforcement learning agent module 400 stores a reinforcement learning module, and outputs a downloading mode of the video block to be downloaded corresponding to the downloading request through the reinforcement learning module. The cache management module 500 is configured to manage video files stored in a cache server.
Further, in an implementation manner of this embodiment, the cache hit throughput and the cache miss throughput are obtained to obtain the cache hit throughput or the cache miss throughput, and when the cache hit throughput is obtained, the cache miss throughput needs to be calculated according to the cache hit throughput; when the cache miss throughput is obtained, the cache hit throughput needs to be calculated according to the cache miss throughput. Under the same condition, the cache hit throughput is higher than the cache miss throughput, because the physical distance of video data transmission is short and the delay is small when the cache hit occurs, and the difference between the cache hit and the cache miss mainly lies in that the cache miss requires that a cache server video file is obtained from an origin server and then the video file is transmitted to a playing end through the cache server. Therefore, when the cache miss throughput is calculated according to the cache hit throughput or the cache hit throughput is calculated according to the cache miss throughput, the miss throughput can be obtained according to the hit throughput only by considering the influence of a link between the source server and the cache server on the throughput, and vice versa.
Further, in this embodiment, when calculating the cache miss throughput according to the cache hit throughput, or when calculating the cache hit throughput according to the cache miss throughput, the corresponding calculation may be performed according to the known throughput data, the RTT transmitted between the source server and the cache server, the amount of the transmitted data, and the link bandwidth between the source server and the cache server. For example, a regression tree based regression algorithm is used to calculate the cache hit throughput or cache miss throughput. Certainly, in the process of obtaining the regression tree model, in order to obtain the cache hit throughput and the cache miss throughput at the same time, a throughput tag may be added to the video request header, so that the cache server sequentially and respectively transmits the video in a cache hit mode and a cache miss mode according to the throughput tag, and then sequentially receives the video files twice at the playing end to respectively calculate the cache hit throughput and the cache miss throughput.
And S20, matching the downloading mode of the video block to be downloaded corresponding to the downloading request according to the playing state and the link state.
Specifically, the downloading mode includes forwarding the downloading request to the source server or selecting the video block to be downloaded with the selected code rate in the cache server. The step of forwarding the downloading request to the source server refers to acquiring a video block to be downloaded with a target request code rate through the source server; the step of selecting the video block to be downloaded with the selected code rate in the cache server refers to taking the video block to be downloaded with the selected code rate in the cache server as a video file corresponding to the downloading request, and directly sending the video block to be downloaded with the selected code rate to the playing end. The video block to be downloaded with the selected code rate and the video block to be downloaded with the target request code rate are in different code rate formats of the same video, namely, the video contents of the video block to be downloaded with the selected code rate and the video block to be downloaded with the target request code rate are only different in code rate acquired by the two videos.
Further, in an implementation manner of this embodiment, as shown in fig. 2, a reinforcement learning agent module may be configured in the cache server, and the reinforcement learning agent module may be inserted into an existing network cache process, and when a download request of a playing end is received and a video block to be downloaded with a target request code rate is searched in the cache server, the playing state and the link state may be input to the reinforcement learning agent module, so as to determine a download mode corresponding to the download request through the reinforcement learning agent module. In addition, the reinforcement learning agent module can determine the downloading mode through a reinforcement learning mode, that is, a reinforcement learning model can be configured in the reinforcement learning agent module, and the downloading mode is determined through the reinforcement learning model. Correspondingly, in an implementation manner of this embodiment, the matching, according to the play state and the link state, a downloading manner of the video block to be downloaded corresponding to the download request specifically includes:
inputting the playing state and the link state into a pre-trained reinforcement learning model;
outputting a probability set through the reinforcement learning model, wherein the probability set comprises the selected probability of each preset code rate and the downloading probability of the source server;
and determining a downloading mode corresponding to the downloading request according to the probability set.
Specifically, the reinforcement learning model is obtained by training based on preset training samples, the preset training samples include multiple groups of training sample groups, and each group of training sample group includes a playing state and a link state. The output items of the reinforcement learning are probability sets, wherein the probability sets comprise code stream probabilities and source server downloading probabilities corresponding to a plurality of code rates, and the code rates comprise all code rates which can be stored in the video file by the cache server. In the training process, after the probability set is obtained, the playing state and the downloading mode corresponding to the link state are determined according to the probability set, the QoE generated after downloading according to the downloading mode is determined, and the network is updated to the direction of maximizing the accumulated QoE through the QoE updating model parameters by reinforcement learning. It can be understood that the output items of the reinforcement learning model are probability sets, and when the reinforcement learning model is trained, the QoE generated by determining the downloading mode according to the probability sets corrects the model parameters of the reinforcement learning model.
Further, as can be seen from the training process of the reinforcement learning model, as shown in fig. 3, when the playing status and the link status are input to the reinforcement learning model trained in advance, the reinforcement learning model outputs a probability set corresponding to the playing status and the link status. The probability set comprises the probability of selecting the code rate in the cache and the downloading probability of the source server, the sum of the probability of selecting the code rate in the cache and the downloading probability of the source server is 1, in addition, because the cache server only possibly caches the video files with partial code rates, the output layer of the reinforcement learning model is provided with a mask, and the probability of not storing the code rate in the cache server is set to be 0 through the mask, so that when the downloading mode is determined according to the probability set, the code rate which is selected to be not existed in the cache server cannot be output.
Further, in an implementation manner of this embodiment, the determining, according to the probability set, the downloading manner corresponding to the downloading request refers to selecting a maximum value in the probability set, and if the maximum value corresponds to a code rate in the cache server, taking the code rate as a selected code rate, and sending a video block to be downloaded with the selected code rate to the playing end; and if the maximum value corresponds to the source server for downloading, forwarding the downloading request to the source server, acquiring the video block to be downloaded with the target request code rate through the source server, and sending the acquired video block to be downloaded with the target request code rate to a playing end. In addition, in order to improve the accuracy of the reinforcement learning model, after the reinforcement learning model determines the downloading method corresponding to the downloading request, the reinforcement learning model may be modified by using the QoE corresponding to the downloading method. Correspondingly, after the matching of the code rate to be downloaded to the playing end according to the downloading mode, the method further includes: and obtaining QoE corresponding to a playing end, and reacting on the reinforcement learning model according to the QoE so as to correct the reinforcement learning model.
Further, in an implementation manner of this embodiment, in order to improve the hit rate of the cache server, the cache server may cache the video file with the corresponding bitrate according to the revenue of the video file corresponding to the download request received by the cache server, so as to improve the QoE of the user. Correspondingly, in an implementation manner of this embodiment, after the matching of the code rate to be downloaded to the playing end according to the downloading manner, the method further includes:
acquiring all downloading requests received in a preset time length every interval of the preset time length, and acquiring a probability value of a code rate corresponding to each downloading request and video cache cost, wherein the probability value is determined by a probability set obtained when a downloading mode is determined according to the downloading request;
and determining income values corresponding to the code rates according to the obtained probability values of all the code rates and the video caching cost, and caching the video according to the income values from large to small.
Specifically, after a probability set is input through a reinforcement learning module, a probability value of each code rate output by reinforcement learning is recorded, wherein the probability value is recorded in one record entry in a file list corresponding to a video block to be downloaded, the file list corresponds to a video file, and the record entries of all code rates corresponding to the video file are stored in the file list. The entry identifier of the record entry is a video identifier of a video block to be downloaded and the code rate, and the value of the record entry is a probability and a video cache cost, wherein the video cache cost can be the size of a video file. Of course, it is worth explaining that when a plurality of probability values of a video file with a code rate are recorded within a preset time, a plurality of probability values are stored in a recording entry corresponding to the code rate.
In addition, after the preset time length is set at intervals, all the downloading requests received in the preset time length are obtained, the corresponding video identification and code rate can be determined according to the downloading requests, and the probability value and the video cache cost can be determined according to the video identification and the code rate. And when the probability value and the video caching cost are obtained, for the video files with the same code rate, calculating the profit value according to all the probability values corresponding to the video files with the code rate, and caching the video according to the profit value in descending order. In this embodiment, the profit value may be equal to the quotient of the sum of all probability values of the video file with the same bitrate and the video caching cost. Certainly, when video caching is performed according to the ascending order of the profit values, the storage space of the cache server needs to be determined, and if the storage space cannot download the video files with the large profit values, the video files which can be cached are sequentially determined according to the profit value order.
In summary, the present invention provides a method for matching video bitrate, when a cache server receives a download request sent by a play end, acquiring a play state corresponding to the play end and a link state of an origin server corresponding to the cache server; and matching the downloading mode of the video block to be downloaded corresponding to the downloading request according to the playing state and the link state, wherein the downloading mode comprises the step of forwarding the downloading request to a source server or selecting the video block to be downloaded with the selected code rate in a cache server. When receiving the downloading request, the invention can match the corresponding code rate file for the video block to be downloaded or download the video block from the source server according to the playing state and the link state, thereby improving the cache hit rate and bringing convenience to the use of users.
Based on the above matching method for video bitrate, the present embodiment provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement the steps in the matching method for video bitrate according to the above embodiment.
Based on the above matching method of video bitrate, the present invention further provides a terminal device, as shown in fig. 4, which includes at least one processor (processor) 20; a display screen 21; and a memory (memory)22, and may further include a communication Interface (Communications Interface)23 and a bus 24. The processor 20, the display 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may call logic instructions in the memory 22 to perform the methods in the embodiments described above.
Furthermore, the logic instructions in the memory 22 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 22, which is a computer-readable storage medium, may be configured to store a software program, a computer-executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes the functional application and data processing, i.e. implements the method in the above-described embodiments, by executing the software program, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 22 may include a high speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, may also be transient storage media.
In addition, the specific processes loaded and executed by the storage medium and the instruction processors in the terminal device are described in detail in the method, and are not stated herein.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

1.一种视频码率的匹配方法,其特征在于,所述方法包括:1. a matching method of video code rate, is characterized in that, described method comprises: 当缓存服务器接收到播放端发送的下载请求,获取所述播放端对应的播放状态以及所述缓存服务器对应的源服务器的链路状态;When the cache server receives the download request sent by the player, obtain the playback state corresponding to the player and the link state of the source server corresponding to the cache server; 根据所述播放状态以及链路状态,匹配所述下载请求对应的待下载视频块的下载方式,其中,所述下载方式包括将下载请求转发至源服务器或选取缓存服务器中选定码率的待下载视频块;According to the playback state and the link state, the download mode of the to-be-downloaded video block corresponding to the download request is matched, wherein the download mode includes forwarding the download request to the source server or selecting the to-be-downloaded video block with the selected bit rate in the cache server. download video chunks; 所述根据所述播放状态以及链路状态匹配所述下载请求对应的待下载视频块的下载方式具体包括:The downloading method of matching the to-be-downloaded video block corresponding to the download request according to the playback state and the link state specifically includes: 将所述播放状态以及链路状态输入至预先训练的强化学习模型;inputting the playback state and the link state into a pre-trained reinforcement learning model; 通过所述强化学习模型输出概率集,其中,所述概率集包括各预设码率的被选定概率以及源服务器下载概率;Outputting a probability set through the reinforcement learning model, wherein the probability set includes the selected probability of each preset bit rate and the download probability of the source server; 根据所述概率集确定所述下载请求对应的下载方式;Determine the download mode corresponding to the download request according to the probability set; 将所述方法还包括:The method also includes: 每间隔预设时长获取该预设时长内接收到的所有下载请求,并获取每个下载请求对应的码率的概率值以及视频缓存代价;Acquire all download requests received within the preset time interval at every preset time interval, and obtain the probability value of the bit rate corresponding to each download request and the video cache cost; 根据获取到的所有码率的概率值以及视频缓存代价确定码率对应的收益值,并按照收益值从大到小顺序进行视频缓存;Determine the income value corresponding to the code rate according to the obtained probability values of all code rates and the video caching cost, and perform video caching in descending order of the income value; 其中,所述视频缓存代价为视频文件大小,所述收益值等于码率的所有概率值的和与视频缓存代价的商。Wherein, the video cache cost is the video file size, and the gain value is equal to the quotient of the sum of all probability values of the bit rate and the video cache cost. 2.根据权利要求1所述视频码率的匹配方法,其特征在于,所述下载请求包括待下载视频块的目标请求码率;所述当缓存服务器接收到播放端发送的下载请求,获取所述播放端对应的播放状态以及所述缓存服务器对应的源服务器的链路状态具体包括:2. The matching method of video code rate according to claim 1, is characterized in that, described download request comprises the target request code rate of video block to be downloaded; Described when the cache server receives the download request sent by the player, obtains the The playback state corresponding to the playback terminal and the link state of the origin server corresponding to the cache server specifically include: 当缓存服务器接收到播放端发送的下载请求时,在所述缓存服务器本地查找所述目标请求码率的待下载视频块;When the cache server receives the download request sent by the player, the cache server locally searches for the video block to be downloaded of the target request bit rate; 若未查找到所述目标请求码率的待下载视频块,则获取所述播放端对应的播放状态以及所述缓存服务器对应的源服务器的链路状态。If the to-be-downloaded video block of the target requested bit rate is not found, the playback status corresponding to the playback terminal and the link status of the source server corresponding to the cache server are acquired. 3.根据权利要求2所述视频码率的匹配方法,其特征在于,所述当缓存服务器接收到播放端发送的下载请求,获取所述播放端对应的播放状态以及所述缓存服务器对应的源服务器的链路状态包括:3. the matching method of video bit rate according to claim 2, is characterized in that, described when cache server receives the download request that player terminal sends, obtains the source corresponding to the playback state of described player terminal and described cache server correspondence The link status of the server includes: 若查找到所述目标请求码率的待下载视频块,则完成视频码率匹配,并将所述目标请求码率的待下载视频块发送至播放端。If the to-be-downloaded video block of the target requested bit rate is found, the video bit-rate matching is completed, and the to-be-downloaded video block of the target requested bit rate is sent to the player. 4.根据权利要求1所述视频码率的匹配方法,其特征在于,所述根据所述概率集确定所述下载请求对应的下载方式具体为:4. The matching method of the video bit rate according to claim 1, wherein, the download mode determined according to the probability set corresponding to the download request is specifically: 选取所述概率集中最大概率,并将最大概率对应的下载方式作为所述下载请求对应的下载方式。The maximum probability in the probability set is selected, and the download mode corresponding to the maximum probability is used as the download mode corresponding to the download request. 5.根据权利要求1所述视频码率的匹配方法,其特征在于,所述根据所述下载方式将所述待下载视频块码率的匹配方法至所述播放端之后,所述方法还包括:5. The matching method of the video bit rate according to claim 1, characterized in that, after the matching method of the to-be-downloaded video block bit rate is applied to the player according to the download mode, the method further comprises: : 获取播放端对应的QoE,并根据所述QoE反作用于所述强化学习模型,以对所述强化学习模型进行修正。The QoE corresponding to the playback end is acquired, and the reinforcement learning model is reacted to the reinforcement learning model according to the QoE, so as to correct the reinforcement learning model. 6.根据权利要求1-5任一所述视频码率的匹配方法,其特征在于,所述播放状态包括目标请求码率、前一请求码率、播放端缓存的视频时长、待下载视频块的前一视频块的缓存命中吞吐量以及待下载视频块的前一视频块的缓存未命中吞吐量。6. according to the matching method of any described video code rate of claim 1-5, it is characterized in that, described playing state comprises target request code rate, previous request code rate, the video duration cached by the player, the video block to be downloaded The cache hit throughput of the previous video block and the cache miss throughput of the previous video block of the to-be-downloaded video block. 7.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如权利要求1~6任意一项所述的视频码率的匹配方法中的步骤。7. A computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to realize the The steps in the video bit rate matching method described in any one of 1 to 6 are required. 8.一种终端设备,其特征在于,包括:处理器、存储器及通信总线;所述存储器上存储有可被所述处理器执行的计算机可读程序;8. A terminal device, comprising: a processor, a memory and a communication bus; a computer-readable program executable by the processor is stored on the memory; 所述通信总线实现处理器和存储器之间的连接通信;The communication bus implements connection communication between the processor and the memory; 所述处理器执行所述计算机可读程序时实现如权利要求1-6任意一项所述的视频码率的匹配方法中的步骤。When the processor executes the computer-readable program, the steps in the video bit rate matching method according to any one of claims 1-6 are implemented.
CN202010022834.8A 2020-01-09 2020-01-09 A video bit rate matching method, storage medium and terminal device Active CN111212301B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010022834.8A CN111212301B (en) 2020-01-09 2020-01-09 A video bit rate matching method, storage medium and terminal device
PCT/CN2020/121554 WO2021139300A1 (en) 2020-01-09 2020-10-16 Video bitrate matching method, storage medium and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010022834.8A CN111212301B (en) 2020-01-09 2020-01-09 A video bit rate matching method, storage medium and terminal device

Publications (2)

Publication Number Publication Date
CN111212301A CN111212301A (en) 2020-05-29
CN111212301B true CN111212301B (en) 2021-10-08

Family

ID=70788782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010022834.8A Active CN111212301B (en) 2020-01-09 2020-01-09 A video bit rate matching method, storage medium and terminal device

Country Status (2)

Country Link
CN (1) CN111212301B (en)
WO (1) WO2021139300A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111212301B (en) * 2020-01-09 2021-10-08 鹏城实验室 A video bit rate matching method, storage medium and terminal device
CN113766230B (en) * 2021-11-04 2022-04-01 广州易方信息科技股份有限公司 Media file encoding method and device, computer equipment and storage medium
CN115988267B (en) * 2022-12-20 2023-09-15 哈尔滨工业大学(深圳) A DASH-based video bit rate adaptive adjustment method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559677A (en) * 2015-09-30 2017-04-05 华为技术有限公司 The method and device of terminal, caching server and acquisition video slicing
CN106688239A (en) * 2015-08-25 2017-05-17 华为技术有限公司 Video download method, device and system
CN110087109A (en) * 2019-04-19 2019-08-02 中国科学院信息工程研究所 Video code rate adaptive approach and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8914534B2 (en) * 2011-01-05 2014-12-16 Sonic Ip, Inc. Systems and methods for adaptive bitrate streaming of media stored in matroska container files using hypertext transfer protocol
WO2014073202A1 (en) * 2012-11-08 2014-05-15 日本電気株式会社 Information-processing device, information-processing method, content distribution system, and computer program recording medium
CN103024593A (en) * 2012-12-26 2013-04-03 人民搜索网络股份公司 Online VOD (video on demand) acceleration system and online VOD playing method
CN106303704B (en) * 2016-08-19 2020-06-12 上海交通大学 DASH (dynamic Address translation over Ethernet) streaming media live broadcasting system and method based on proxy server
CN110430440B (en) * 2019-06-19 2021-11-30 鹏城实验室 Video transmission method, system, computer device and storage medium
CN111212301B (en) * 2020-01-09 2021-10-08 鹏城实验室 A video bit rate matching method, storage medium and terminal device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106688239A (en) * 2015-08-25 2017-05-17 华为技术有限公司 Video download method, device and system
CN106559677A (en) * 2015-09-30 2017-04-05 华为技术有限公司 The method and device of terminal, caching server and acquisition video slicing
CN110087109A (en) * 2019-04-19 2019-08-02 中国科学院信息工程研究所 Video code rate adaptive approach and device

Also Published As

Publication number Publication date
WO2021139300A1 (en) 2021-07-15
CN111212301A (en) 2020-05-29

Similar Documents

Publication Publication Date Title
US8549177B2 (en) Communication server, method and systems, for reducing transportation volumes over communication networks
CN108429701B (en) Network acceleration system
CN111212301B (en) A video bit rate matching method, storage medium and terminal device
CN109995866B (en) Distributed file verification method and device, computer device and storage medium
US10547705B2 (en) Caching proxy method and apparatus
US20120005313A1 (en) Dynamic indexing for ad insertion in media streaming
CN106815254B (en) Data processing method and device
US20140149457A1 (en) Method and apparatus for data storage and downloading
US20140359066A1 (en) System, method and device for offline downloading resource and computer storage medium
CN114401447A (en) A method, device, device and medium for video freeze prediction
US7296051B1 (en) Predictive predownload of templates with delta encoding
CN111107423A (en) A kind of identification method and device for video service playback stuck
CN104796439A (en) Webpage pushing method, webpage pushing client, webpage pushing server and webpage pushing system
WO2022057525A1 (en) Method and device for data retrieval, electronic device, and storage medium
US11838349B2 (en) Method and device for transmitting list information
EP3579526B1 (en) Resource file feedback method and apparatus
CN116545701B (en) HTTP message rule matching method, system, equipment and medium
CN103546829A (en) Method and device for processing video service
CN108076385B (en) Method and device for reporting promotion information monitoring data
CN113228595A (en) Method and apparatus for transferring records
CN101184002A (en) A method and device for in-depth monitoring of point-to-point traffic
CN111159244B (en) Data query method and device
US11165858B2 (en) Server selection apparatus, server selection method and program
US8315979B2 (en) Node device, information communication system, method for retrieving content data, and computer readable medium
JP2018511131A (en) Hierarchical cost-based caching for online media

Legal Events

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