A video transmission method based on video conversion and request prediction
Through the cooperation of the metadata server and the edge cache server, the video quality is estimated and the edge cache server is dynamically selected, which solves the problems of video conversion quality and low resource utilization efficiency in the video transmission system, and improves the video transmission performance and cache hit rate.
Patent Information
- Application Number
- CN202211552752.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-06
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-12-06
AI Technical Summary
In the application of video conversion and super-resolution technology, the existing video transmission system fails to effectively measure or guarantee the quality of the converted video, and fails to predict the videos that may be requested in the future or identify high-request videos in a timely manner, resulting in resource utilization efficiency. Low and insufficient performance.
Through the cooperation of the metadata server and multiple edge cache servers, the storage and computing resources of other edge cache servers are used to estimate the quality of the converted video, and according to the client's network conditions and request patterns, the appropriate edge cache server is selected for video processing. Conversion and request routing to achieve dynamic video adaptation and cache replacement.
It improves the resource utilization efficiency of the edge cache network, improves the cache hit rate and response delay, ensures the quality and performance of video transmission, and reduces the client's request delay.
Smart Images

Figure CN115866301B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of video transmission, and in particular to a video transmission method based on video conversion and request prediction. Background Art
[0002] With the development of video streaming applications, the proportion of video transmission traffic in the total Internet traffic is increasing. The video transmission system connects the video source system and the client. It receives the video transmission request from the client and then sends a request to the video source system. The video source system responds to the request of the video transmission system and transmits the transmitted video to the video transmission system. The video transmission system transmits the obtained video to the client.
[0003] In order to reduce the network traffic between the video transmission system and the video source system, the number of transmission requests issued to the video source system, and reduce the time difference from the client sending a request to the client obtaining the video, the video transmission system stores part or all of the transmitted video in its own cache.
[0004] In recent years, the types of clients for playing videos have become increasingly diverse, based on a variety of electronic devices with different software and hardware configurations and video playing states. These differences include at least the operating system, driver, player, network type, network bandwidth, power state and remaining power, device temperature, processor, storage and memory resource usage, etc.
[0005] In order to provide a better experience for these clients, even if different clients want to access the same video content, the video transmission system transmits different video resources to different clients. These video resources have similar or identical pictures, but may have different attributes, which include at least video container format, encoding format, resolution, frame rate, bit rate, bit depth, encoding parameters, etc. These videos are collectively referred to as a set of video representations.
[0006] When a video is transmitted for the first time, the video transmission system sends a transmission request to the video source system to obtain the transmitted video, and transmits the obtained transmitted video to the client. If a video with completely identical attributes and content needs to be transmitted subsequently, that is, the transmission hits the cache, the video transmission system reads the video from its own cache without having to repeatedly obtain the video from the video source system.
[0007] The video transmission system counts the number of times each video is transmitted and updates its own cache in a timely manner. The video transmission system removes videos with fewer transmission times in the cache and stores videos with more transmission times to increase the probability of the transmission hitting the cache in subsequent transmissions. This timely update of its own cache is called cache replacement.
[0008] The performance of the video transmission system can be measured by multiple technical indicators, including at least back-to-source traffic and response latency. Back-to-source traffic refers to the traffic transmitted between the video transmission system and the video source system, and response latency refers to the time difference between the client sending a request and receiving the video.
[0009] Nowadays, the diversity of video content and attributes is increasing. For a fixed-size cache space, as the number of video content and attributes increases, the backhaul traffic and response latency of the above technologies are getting higher and higher. In order to improve the performance of the video transmission system, video transcoding technology and super-resolution technology are introduced into the video transmission system. Video transcoding technology receives the original video and outputs a transcoded video of the same length. The transcoded video has the same or smaller resolution and frame rate as the original video, the same or different video container format or encoding format, the same or different bit rate and encoding parameters. Video transcoding technology can be performed with the help of tools such as ffmpeg. Super-resolution technology receives the original video and outputs a super-resolution video of the same length. Super-resolution technology includes video image super-resolution technology and video interpolation technology. The former can increase the resolution of the video and the latter can increase the frame rate of the video. The super-resolution video has the same or different video container format, encoding format and encoding parameters, the same, higher or lower resolution, frame rate and bit rate. Super-resolution technology can be performed with the help of technologies such as conversion process.
[0010] To simplify the expression, video transcoding and video super-resolution are collectively referred to as video conversion, the transcoded video and the super-resolution video are collectively referred to as converted video, the video obtained from the video source system is called the reference video, and the video that should be delivered to the client after the video transmission system receives the transmission request is called the target video.
[0011] The prior art does not repeatedly perform video conversion or super-resolution on the same video, and does not measure or estimate the quality of the converted video. In other words, the original video used by the above-mentioned technology is either a reference video or a copy of the reference video cached by itself, that is, the original video is always a copy of a video in the video source system, and the prior art does not guarantee the quality of the converted video. In addition, when the prior art performs cache replacement, it only considers the statistical information of past videos, and does not consider the requests that may be received in the future. Considering that the pattern of requests issued by the client often changes, this technology can neither pre-cache the videos that the client may request, nor identify the transfer of high-request videos in the statistical data as soon as possible. Furthermore, the prior art rarely considers the collaboration between multiple edge cache servers, and thus cannot utilize the content stored by other edge cache servers in the edge cache network and the remaining processing time to achieve load transfer within the edge cache network.
[0012] In short, the existing technology neither continues to convert the converted video, nor guarantees the quality of the converted video, nor can it pre-acquire the video that may be requested later, or timely perceive the changes of the high-request video, or collaboratively utilize the storage and computing resources of other edge cache servers. That is, the performance of the existing video transmission system needs to be improved, the video quality is not guaranteed, and the resource utilization efficiency needs to be improved. Summary of the invention
[0013] In order to solve one of the above problems, an object of the present invention is to provide a video transmission method based on video conversion and request prediction.
[0014] To achieve the above object, the present invention provides the following solutions:
[0015] A video transmission method based on video conversion and request prediction, comprising:
[0016] When the metadata server receives a request from the client for a target video representation, the metadata server returns a list of edge cache servers storing the target video representation, a list of edge cache servers capable of converting a video variant of the stored video representation to the target video representation, or an empty list;
[0017] After the client receives the list returned by the metadata server, the client initializes the candidate edge cache server list to the list returned by the metadata server, selects a target edge cache server from the candidate edge cache server list, and then sends a target video representation request to the target edge cache server; the target edge cache server is an edge cache server that transmits the target video representation or requests other edge cache servers or source servers to transmit a video variant of the target video representation or a video variant of another required video representation;
[0018] When the target edge cache server receives a target video representation request sent by the client, the target edge cache server transmits a video variant of the target video representation to the client, or the target edge cache server obtains the target video representation or a video variant of other required video representation from other edge cache servers or source servers, and optionally performs video conversion, and then transmits the video variant of the target video representation to the client.
[0019] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0020] The present invention uses the storage and computing resources of other edge cache servers in a collaborative manner through the interaction of a metadata server and a plurality of edge cache servers, thereby improving resource utilization efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0022] Figure 1 A schematic diagram of the structure of a video transmission network provided by an embodiment of the present invention;
[0023] Figure 2 A schematic diagram of a process of converting a video representation into a video variant provided by an embodiment of the present invention;
[0024] Figure 3 A schematic diagram of a video transcoding process provided by an embodiment of the present invention;
[0025] Figure 4 A diagram of the interaction between a metadata server, an edge cache server, and a client provided in an embodiment of the present invention;
[0026] Figure 5 A schematic flow chart of a video transmission method based on video conversion and request prediction provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0029] like Figure 1 As shown, the video transmission network includes a source server, several edge cache servers, a metadata server and a client. This video transmission network transmits the video from the source server to the client. In order to improve the performance of the edge cache network, the video transmission network includes multiple edge cache servers that can communicate with each other bidirectionally. Each edge cache server and the client communicates with the metadata server bidirectionally.
[0030] Videos with the same or similar pictures and audio (hereinafter referred to as "videos with similar content") may have different video encoding formats, resolutions, frame rates, and bit rates. For videos with similar content, a fixed video encoding format, resolution, frame rate, and bit rate combination uniquely determines a video representation. A video with similar content contains several different video representations. For any video representation, different pictures can form video variants with different qualities, so a video representation can contain several video variants. The specific process is as follows: Figure 2 shown.
[0031] The source server stores several videos, and the edge cache server can download videos from the source server, or convert existing video representations into other video representations of the same video. Specifically, the edge cache server can use video compression technology to reduce the bit rate and resolution of the video, use video super resolution (SR) technology to increase the resolution of the video, use video frame interpolation (FI) technology to increase the video frame rate, and use video transcoding technology to convert the video encoding format. The specific process is as follows: Figure 3 shown.
[0032] The edge cache server stores video variants of several video representations. The edge cache server periodically reports the stored video variant list, available bandwidth, and remaining processing time to the metadata server, and queries the metadata server for the video variant list, available bandwidth, and remaining processing time stored by other edge cache servers. The client queries the metadata server for the address of the edge cache server where the video representation is located, and the remaining processing time of each edge cache server. The client periodically measures the network delay and network bandwidth from the client to each edge cache server for subsequent client selection of the requested edge cache server and for the edge cache server that receives the request to transfer the load to other edge cache servers.
[0033] When the quality of the converted video is estimated in advance, the quality of the converted video is evaluated by peak signal-to-noise ratio (PSNR), structural similarity index measure (SSIM) and CutBlur. The quality estimation technology of the converted video is: first compress the sample video into a compressed video with lower resolution or lower frame rate, and then use the same super-resolution technology to repeatedly apply it to the sample video to calculate the quality of each super-resolution video. This quality is the peak signal-to-noise ratio, structural similarity and CutBlur between the super-resolution video and the sample video. The algorithm applies compression and resolution technology to the obtained super-resolution video again to obtain a new super-resolution video, and calculates the quality of the new super-resolution video in the same way. The algorithm performs compression and super-resolution several times in a loop, and fits the above quality changes into a function, the input of which is the peak signal-to-noise ratio, structural similarity and CutBlur of the sample video, and the output is the peak signal-to-noise ratio, structural similarity and CutBlur of the super-resolution video after applying the super-resolution technology once.
[0034] In view of this, if Figure 5 As shown, the present invention provides a video transmission method based on video conversion and request prediction, which includes the following steps.
[0035] Step 100: When the metadata server receives a request for a target video representation from a client, the metadata server returns a list of edge cache servers storing the target video representation, a list of edge cache servers that can convert stored video variants into the target video representation, or an empty list.
[0036] In the present invention, before executing step 100, the method further includes:
[0037] (A) The client periodically executes the steps of "obtaining an address-measuring a network" to update and save the network delay and network bandwidth from the client to each edge cache server; the steps of "obtaining an address-measuring a network" are:
[0038] When the client starts, it sends a request to the metadata server to obtain the address of each edge cache server; after the client obtains the address of each edge cache server, the client sends a network measurement request to each edge cache server to measure the network delay and network bandwidth from the client to each edge cache server, and saves and updates the network delay and network bandwidth from the client to each edge cache server; in this way, the client continuously monitors the network status from its to each edge cache server.
[0039] (B) When the client needs the target video representation, the client queries the video encoding format, resolution and frame rate of the target video representation, and calculates the bit rate; the bit rate is the bit rate corresponding to obtaining the highest average subjective score when the video encoding format, resolution and frame rate are specified.
[0040] In the present invention, step 100 specifically includes:
[0041] 1) When the metadata server receives a request from a client for a target video representation, if the metadata server determines that there is an edge cache server storing the target video representation, the metadata server returns a list of edge cache servers storing the target video representation;
[0042] 2) When the metadata server receives a request from the client for a target video representation, if the metadata server determines that there is no edge cache server storing the target video representation, the metadata server uses a converted video quality estimation technique to pre-estimate the converted video quality corresponding to the target video representation, and traverses all edge cache servers according to the converted video quality, and then calculates whether each edge cache server can convert the stored video variant into the target video representation requested by the client;
[0043] 3) If the edge cache server can convert the video variant of the stored video representation into the target video representation, the metadata server returns a list of edge cache servers that can convert the video variant of the stored video representation into the target video representation;
[0044] 4) If the edge cache server cannot convert the video variant of the stored video representation into the target video representation, the metadata server returns an empty list.
[0045] Step 200: After the client receives the list returned by the metadata server, the client initializes the candidate edge cache server list to the list returned by the metadata server, selects a target edge cache server from the candidate edge cache server list, and then sends a target video representation request to the target edge cache server; the target edge cache server is an edge cache server that transmits the target video representation or requests other edge cache servers or source servers to transmit a video variant of the target video representation or a video variant of other required video representations, specifically:
[0046] 1) After the client receives the list returned by the metadata server, if the list returned by the metadata server is an empty list, the client initializes the candidate edge cache server list to a list including all edge cache servers; if the metadata server returns a list including edge cache servers storing target video representations, the client initializes the candidate edge cache server list to a list including all edge cache servers; if the metadata server returns a list including edge cache servers that can convert video variants of the stored video representations into the target video representations, the client initializes the candidate edge cache server list to a list including edge cache servers that can convert video variants of the stored video representations into the target video representations;
[0047] 2) The client traverses the candidate edge cache servers in the candidate edge cache server list, and stores the edge cache servers whose network bandwidth is not less than the bit rate represented by the target video in the high-bandwidth edge cache server list;
[0048] 3) If the high-bandwidth edge cache server list is not empty, the client sends a request to the edge cache server with the lowest network delay in the high-bandwidth edge cache server list;
[0049] 4) If the high-bandwidth edge cache server list is empty, the client sends a request to the edge cache server with the lowest network delay in the candidate edge cache server list.
[0050] The target edge cache server is an edge cache server with the lowest network delay in the high-bandwidth edge cache server list or an edge cache server with the lowest network delay in the candidate edge cache server list.
[0051] Step 300: When the target edge cache server receives a target video representation request sent by the client, the target edge cache server transmits a video variant of the target video representation to the client, or the target edge cache server obtains the target video representation or a video variant of other required video representation from other edge cache servers or source servers, and optionally performs video conversion, and then transmits the video variant of the target video representation to the client, specifically including:
[0052] 1) When the target edge cache server receives a target video representation request sent by the client, the target edge cache server enumerates the target video representation requested by the client. If the target edge cache server determines that a video variant of the target video representation is stored, the target edge cache server transmits the video variant of the target video representation to the client;
[0053] 2) If the target edge cache server determines that the video variant represented by the target video is not stored, the target edge cache server queries the video variant lists of other edge cache servers cached by the target edge cache server itself by means of query requests periodically sent to the metadata server;
[0054] 3) If the video variant list of the target video representation exists in the video variant list of other edge cache servers, the target edge cache server sends a request to the edge cache server storing the video variant of the target video representation to obtain the video variant of the target video representation, and transmits the video variant of the target video representation to the client.
[0055] 4) If the target edge cache server determines that other video representations of the target video corresponding to the target video representation are stored, the target edge cache server enumerates all video representations of the target video, and stores the video representations stored by the target edge cache server in a first list, and stores the video representations not stored by the target edge cache server in a second list;
[0056] 5) The target edge cache server determines a video variant of the target video representation according to the first list and the second list, and transmits the video variant of the target video representation to the client.
[0057] Further, the target edge cache server determines a video variant represented by the target video according to the first list and the second list, and transmits the video variant represented by the target video to the client, specifically including:
[0058] Step (1): The target edge cache server establishes a video conversion graph according to the first list;
[0059] Step (2): If the target edge cache server calculates multiple target conversion processes based on the video conversion graph, the target edge cache server executes the target conversion process with the shortest processing time to obtain a video variant of the target video representation, and transmits the video variant of the target video representation to the client; the target conversion process is a conversion process for obtaining the target video representation from the video representation in the first list; wherein the target conversion process with the shortest processing time is the optimal target conversion process.
[0060] Step (2) specifically includes:
[0061] (a) The target edge cache server initializes the priority queue to be empty, and then the target edge cache server places all feasible direct conversion relationships corresponding to the video representation in the first list as the target video into the initialized priority queue to obtain the target priority queue. The priority queue is used to store conversion processes; it is dequeued in ascending order according to whether other edge cache servers in the edge cache network store video variants represented by the target video and the processing time required for the conversion process. The target edge cache server defines a feasible conversion process as a conversion process whose processing time is less than the available processing time and whose quality of the final converted video is greater than a threshold.
[0062] (b) When the target priority queue is not empty, the target edge cache server takes out the conversion process with the shortest processing time, which is the optimal target conversion process, and obtains the video variant represented by the target video according to the optimal target conversion process, and then transmits the video variant represented by the target video to the client.
[0063] "When the target priority queue is not empty, the target edge cache server takes out the conversion process with the minimum processing time from it", specifically including:
[0064] If the converted video of this conversion process is the target video, it is terminated, and this conversion process is determined as the target conversion process, and then the target conversion process with the shortest processing time is determined as the conversion process with the shortest processing time. Otherwise, the target edge cache server will put all feasible direct conversion relationships of the converted video of this process as the original video into a queue until the converted video is the target video.
[0065] “According to the optimal target conversion process, a video variant of the target video representation is obtained, and the video variant of the target video representation is transmitted to the client”, specifically including:
[0066] a) If the target edge cache server stores the video variant of the target video representation at the starting point of the optimal target conversion process and has sufficient processing time, the target edge cache server obtains the video variant of the target video representation according to the optimal target conversion process and transmits the video variant of the target video representation to the client.
[0067] b) If the target edge cache server stores the video variant of the target video representation at the starting point of the optimal target conversion process and does not have sufficient processing time, then traverse other edge cache servers in the edge cache network, and the target edge cache server sends a request to the edge cache server that stores the video variant of the target video representation at the starting point of the optimal target conversion process, has the smallest network delay and has sufficient processing time to obtain the video variant of the target video representation, and transmits the video variant of the target video representation to the client. At this time, this edge cache server will recursively execute the above video conversion algorithm and return the variant of the video representation requested by the client;
[0068] c) if the target edge cache server does not store the video variant of the target video representation at the starting point of the optimal target conversion process, and other edge cache servers in the edge cache network store the video variant of the target video representation at the starting point of the optimal target conversion process, then the target edge cache server sends a request to the edge cache server that stores the video variant of the target video representation at the starting point of the optimal target conversion process, has the smallest network delay and has sufficient processing time, to obtain the video variant of the target video representation, and transmits the video variant of the target video representation to the client;
[0069] d) If other edge cache servers in the edge cache network do not store the video variant of the target video representation at the starting point of the optimal target conversion process, the target edge cache server downloads the video variant of the target video representation from the source server and transmits the video variant of the target video representation to the client.
[0070] If there is no edge cache server with sufficient processing time, it is deemed that the above conversion process does not exist and the process ends.
[0071] Among them, when the target priority queue is empty, it terminates and returns that there is no process of converting the target video from the current video list, that is, executing the following step (3)
[0072] Step (3): If the target edge cache server does not obtain multiple target conversion processes according to the video conversion graph, the first list is cleared, and the video representation of the second list is added to the cleared first list to update the first list, specifically:
[0073] Arrange the video representations in the second list in ascending order according to the bit rate, clear the first list one by one, remove the video with the smallest bit rate from the second list, and then add it to the first list.
[0074] Step (4): The target edge cache server establishes an updated video conversion graph according to the updated first list. The target edge cache server calculates a target conversion process with the minimum processing time according to the updated video conversion graph and executes it to obtain a video variant represented by the target video, and transmits the video variant represented by the target video to the client.
[0075] The present invention also includes: the edge cache server maintains and updates the online client list, and uses a deep learning algorithm to calculate the predicted popularity of all stored video representations based on the updated online client list, and then deletes the video representations whose predicted popularity is less than a set threshold. This online client list records the time when the client request was last received. Specifically:
[0076] 1) If a client request is received and the client is not in the online client list, the client is added to the online client list, and the time requested by the client is the current time; if the client is in the online client list, the time requested by the client is updated to the current time. If the difference between the time requested by the client in the online client list and the current time is greater than the threshold, the client will be removed from the online client list.
[0077] 3) The edge cache server records the client’s past requests and uses deep learning technology to predict the client’s future requests. The prediction result is the requested video representation and its probability.
[0078] 4) The edge cache server enumerates the clients in the online client list, accumulates the predicted lists of all online clients by video representation, and obtains the total probability of each video representation. This total probability is the predicted popularity.
[0079] This cache replacement step removes the least popular video representation from the cache and stores the most popular video representation in the cache until all computing power is consumed.
[0080] 1) The edge cache server enumerates the video representation list and predicts the predicted popularity (hereinafter referred to as popularity for simplicity) of each video representation in the video representation list.
[0081] 2) When there is still remaining computing power, the edge cache server uses priority queue or sorting to obtain the most and least popular video representations in the list, specifically:
[0082] Step (1): If the edge cache server has stored the most popular video representation, remove the most popular video representation from the video list until the list is empty or the edge cache server does not store the most popular video representation.
[0083] Step (a) terminates if the list is empty;
[0084] Step (b): If the list is not empty and the edge cache server does not store the video representation with the lowest popularity, then remove the video representation with the lowest popularity from the video list until the list is empty or the edge cache server stores the video representation with the lowest popularity, specifically:
[0085] If the list is empty, the process terminates. Otherwise, the video representations with the lowest popularity are repeatedly removed until the remaining storage space is sufficient to accommodate the video representations with the highest popularity.
[0086] Step (c): the edge cache server executes the step "converting to obtain the conversion process of the target video" again, and the calculation result is a conversion process that can be converted to obtain the video representation with the highest popularity.
[0087] Step (d): The edge cache server executes the video conversion process in step (d) again, downloads video variants from other edge cache servers or source servers as needed, converts them into the most popular video representation, and stores them.
[0088] Step (2): The edge cache server repeats the above cycle until there is no more computing power left or the above list is empty.
[0089] Step (3): In particular, the processing time for cache replacement is not included in the allocated processing time. If the edge cache server that is performing cache replacement receives a request, the edge cache server preemptively stops the ongoing cache replacement and responds to the received request first.
[0090] Compared with the prior art, the above method can improve the performance of the edge cache server, specifically by improving the cache hit rate and response delay of the edge cache server, and can ensure the service quality of the edge cache server.
[0091] Network measurement and metadata synchronization technology can monitor the storage status of each video representation in the edge cache network and the network status between the client and the edge cache server, thereby realizing the perception of network quality and storage status for use in subsequent steps.
[0092] The conversion cost and post-conversion video quality estimation technology can predict the quality of the converted video based on the quality of the video before conversion (peak signal-to-noise ratio and structural similarity), thereby ensuring the service quality of the edge cache server. At the same time, the above technology introduces the CutBlur indicator. Compared with the peak signal-to-noise ratio and structural similarity, CutBlur can more accurately measure the quality of the converted video.
[0093] Request routing technology uses the above-mentioned network measurement and metadata synchronization technology and conversion cost and post-conversion video quality estimation technology to achieve video scheduling that perceives storage distribution and network quality, thereby improving the cache hit rate of the edge cache server, avoiding unnecessary load transfer, and ultimately reducing the client's request latency.
[0094] Request forwarding technology can transparently forward requests to the edge cache server that stores variants of the corresponding video representation, thereby achieving load transfer, improving the cache hit rate of the edge cache network, and reducing the client's request latency.
[0095] The video conversion technology can convert a video representation to multiple video representations, and then can hit the client's request for multiple video representations, improving the cache hit rate and response latency of the edge cache server. Furthermore, the above method can improve the overall performance of the edge cache network by using the communication between edge cache servers, the videos stored by other edge cache servers in the edge cache network, and the remaining processing time of other edge cache servers.
[0096] Active video cache replacement technology can use the remaining computing and bandwidth resources of the idle edge cache server to store the video representations that the client may request in the future based on the prediction of video popularity, thereby improving the cache hit rate and response latency of the edge cache server. Here, the edge cache server can also use the communication between edge cache servers and the videos stored by other edge cache servers in the edge cache network to complete the cache replacement step without increasing the load on the source server.
[0097] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0098] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A video transmission method based on video conversion and request prediction, characterized in that: include: When the metadata server receives a request from the client for a target video representation, the metadata server returns a list of edge cache servers storing the target video representation, a list of edge cache servers capable of converting a video variant of the stored video representation into the target video representation, or an empty list, specifically including: When the metadata server receives a request from the client for a target video representation, if the metadata server determines that there is an edge cache server storing the target video representation, the metadata server returns a list of edge cache servers storing the target video representation; When the metadata server receives a request from the client for a target video representation, if the metadata server determines that there is no edge cache server storing the target video representation, the metadata server uses a converted video quality estimation technique to pre-estimate the converted video quality corresponding to the target video representation, and traverses all edge cache servers according to the converted video quality, and then calculates whether each edge cache server can convert the stored video variant into the target video representation requested by the client; If the edge cache server can convert the video variant of the stored video representation into the target video representation, the metadata server returns a list of edge cache servers that can convert the video variant of the stored video representation into the target video representation; If the edge cache server cannot convert the video variant of the stored video representation to the target video representation, the metadata server returns an empty list; After the client receives the list returned by the metadata server, the client initializes the candidate edge cache server list to the list returned by the metadata server, selects a target edge cache server from the candidate edge cache server list, and then sends a target video representation request to the target edge cache server; the target edge cache server is an edge cache server that transmits the target video representation or requests other edge cache servers or source servers to transmit a video variant of the target video representation or a video variant of another required video representation; When the target edge cache server receives a target video representation request sent by the client, the target edge cache server transmits a video variant of the target video representation to the client or the target edge cache server obtains the video variant of the target video representation or other required video representation from other edge cache servers or the source server, and optionally performs video conversion, and then transmits the video variant of the target video representation to the client; The edge cache server maintains and updates the online client list, and based on the updated online client list, uses a deep learning algorithm to calculate the predicted popularity of all stored video representations, and then deletes the video representations whose predicted popularity is less than the set threshold.
2. A video transmission method based on video conversion and request prediction according to claim 1, characterized in that: Also includes: The client periodically executes the "get address-measure network" step to update and save the network delay and network bandwidth from the client to each edge cache server; When the client needs the target video representation, the client queries the video encoding format, resolution and frame rate of the target video representation, and calculates the bit rate; the bit rate is the bit rate corresponding to the highest average subjective score when the video encoding format, resolution and frame rate are specified.
3. A video transmission method based on video conversion and request prediction according to claim 2, characterized in that: The steps of "obtaining address-measuring network" are: When the client starts, it sends a request to the metadata server to obtain the address of each edge cache server; After the client obtains the address of each edge cache server, the client sends a network measurement request to each edge cache server to measure the network delay and network bandwidth from the client to each edge cache server, and updates and saves the network delay and network bandwidth from the client to each edge cache server.
4. The video transmission method based on video conversion and request prediction according to claim 2, characterized in that: After the client receives the list returned by the metadata server, the client initializes the candidate edge cache server list to the list returned by the metadata server, selects a target edge cache server from the candidate edge cache server list, and then sends a target video representation request to the target edge cache server, specifically including: After the client receives the list returned by the metadata server, if the list returned by the metadata server is an empty list, the client initializes the candidate edge cache server list to a list including all edge cache servers; if the metadata server returns a list including edge cache servers storing target video representations, the client initializes the candidate edge cache server list to a list including all edge cache servers; if the metadata server returns a list including edge cache servers that can convert video variants of the stored video representations into the target video representations, the client initializes the candidate edge cache server list to a list including edge cache servers that can convert video variants of the stored video representations into the target video representations; The client traverses the edge cache servers in the candidate edge cache server list, and stores the edge cache servers whose network bandwidth is not less than the bit rate represented by the target video in the high-bandwidth edge cache server list; If the high-bandwidth edge cache server list is not empty, the client sends a target video representation request to the edge cache server with the lowest network latency in the high-bandwidth edge cache server list; If the high-bandwidth edge cache server list is empty, the client sends a target video representation request to the edge cache server with the lowest network latency in the candidate edge cache server list; The target edge cache server is an edge cache server with the lowest network delay in the high-bandwidth edge cache server list or an edge cache server with the lowest network delay in the candidate edge cache server list.
5. The video transmission method based on video conversion and request prediction according to claim 1, characterized in that: When the target edge cache server receives a target video representation request sent by the client, the target edge cache server transmits a video variant of the target video representation to the client, or the target edge cache server obtains the target video representation or a video variant of other required video representations from other edge cache servers or source servers, and optionally performs video conversion, and then transmits the video variant of the target video representation to the client, specifically including: When the target edge cache server receives the target video representation request sent by the client, the target edge cache server enumerates the target video representation requested by the client, and if the target edge cache server determines that a video variant of the target video representation is stored, the target edge cache server transmits the video variant of the target video representation to the client; If the target edge cache server determines that the video variant represented by the target video is not stored, the target edge cache server queries the video variant lists of other edge cache servers cached by the target edge cache server itself by means of query requests periodically sent to the metadata server; If the video variant list of the target video representation exists in the video variant list of the other edge cache server, the target edge cache server sends a request to the edge cache server storing the video variant of the target video representation to obtain the video variant of the target video representation, and transmits the video variant of the target video representation to the client; If the target edge cache server determines that other video representations of the target video corresponding to the target video representation are stored, the target edge cache server enumerates all video representations of the target video, and stores the video representations stored by the target edge cache server in a first list, and stores the video representations not stored by the target edge cache server in a second list; The target edge cache server determines a video variant of the target video representation according to the first list and the second list, and transmits the video variant of the target video representation to the client.
6. A video transmission method based on video conversion and request prediction according to claim 5, characterized in that: The target edge cache server determines a video variant represented by the target video according to the first list and the second list, and transmits the video variant represented by the target video to the client, specifically including: The target edge cache server establishes a video conversion graph according to the first list; If the target edge cache server calculates multiple target conversion processes according to the video conversion graph, the target edge cache server executes the target conversion process with the shortest processing time to obtain a video variant represented by the target video, and transmits the video variant represented by the target video to the client; wherein the target conversion process with the shortest processing time is the optimal target conversion process; If the target edge cache server fails to obtain the target conversion process according to the video conversion graph, the first list is cleared, and the video representation of the second list is added to the cleared first list to update the first list; The target edge cache server establishes an updated video conversion graph according to the updated first list, calculates a target conversion process with the minimum processing time according to the updated video conversion graph and executes it to obtain a video variant represented by the target video, and transmits the video variant represented by the target video to the client.
7. The video transmission method based on video conversion and request prediction according to claim 6, characterized in that: Obtaining a video variant of the target video representation according to the optimal target conversion process, and transmitting the video variant of the target video representation to the client, specifically including: If the target edge cache server stores the video variant of the target video representation at the starting point of the optimal target conversion process and has sufficient processing time, the target edge cache server obtains the video variant of the target video representation according to the optimal target conversion process and transmits the video variant of the target video representation to the client; If the target edge cache server stores a video variant of the target video representation at the starting point of the optimal target conversion process and does not have sufficient processing time, then traverse other edge cache servers in the edge cache network, and the target edge cache server sends a request to the edge cache server that stores the video variant of the target video representation at the starting point of the optimal target conversion process, has the smallest network delay, and has sufficient processing time to obtain the video variant of the target video representation, and transmits the video variant of the target video representation to the client; If the target edge cache server does not store the video variant of the target video representation at the starting point of the optimal target conversion process, and other edge cache servers in the edge cache network store the video variant of the target video representation at the starting point of the optimal target conversion process, the target edge cache server sends a request to the edge cache server that stores the video variant of the target video representation at the starting point of the optimal target conversion process, has the smallest network delay and has sufficient processing time, to obtain the video variant of the target video representation, and transmits the video variant of the target video representation to the client; If other edge cache servers in the edge cache network do not store the video variant of the target video representation at the starting point of the optimal target conversion process, the target edge cache server downloads the video variant of the target video representation from the source server and transmits the video variant of the target video representation to the client.
