A video freeze prediction method, device, equipment and medium

By obtaining video playback and server information, using preset models to predict video freezes, and processing video data in advance, the problem of video freezes is solved and the user experience is improved.

CN114401447BActive Publication Date: 2024-08-23DOUYIN VISION CO LTD

Patent Information

Application Number
CN202111564883.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-20
Publication Date
2024-08-23
Estimated Expiration
2041-12-20

AI Technical Summary

Technical Problem

Existing technology cannot predict video freezes in advance, resulting in users being unable to ensure playback smoothness when watching live broadcasts or on-demand videos, affecting user experience.

Method used

By obtaining the current playback information and server service information, the preset freeze prediction model is used to predict video freezes, and the video freeze results are known in advance, so that video processing can be performed before playback to reduce the video bit rate or frame rate and avoid freezes.

Benefits of technology

It effectively ensures the smoothness of video playback, improves the user's viewing experience, and avoids video freezes by predicting and processing video data in advance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114401447B
    Figure CN114401447B
Patent Text Reader

Abstract

The disclosed embodiments disclose a method, device, equipment and medium for predicting video freeze. The method includes: obtaining current playback information when playing a currently downloaded video; obtaining current service information of a server; and determining a freeze prediction result when playing a currently downloaded video based on a preset freeze prediction model, current playback information and current service information. Through the technical solution of the disclosed embodiments, video freeze prediction can be performed on the currently downloaded video, so that the video freeze result can be known in advance, thereby effectively ensuring the smoothness of video playback and improving the user viewing experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to Internet technologies, and more particularly to a method, apparatus, device and medium for predicting video freeze. Background Art

[0002] With the rapid development of Internet technology, more and more users like to watch live videos or on-demand videos on the client. During video playback, the video often freezes due to the slow video download speed, which seriously affects the user's viewing experience. At present, after the video is played, the video can be processed accordingly based on whether the video freezes during the video viewing process to improve the transmission speed and stability of the video. It can be seen that this method can only know the video freeze result after the video is actually played, and the video freeze result cannot be known in advance, so the smoothness of the video playback cannot be effectively guaranteed, which reduces the user's viewing experience. Summary of the invention

[0003] The embodiments of the present disclosure provide a method, apparatus, device and medium for predicting video freeze, so as to predict the video freeze of the current video to be downloaded, so as to know the video freeze result in advance, thereby effectively ensuring the smoothness of video playback and improving the user viewing experience.

[0004] In a first aspect, an embodiment of the present disclosure provides a video freeze prediction method, comprising:

[0005] Get the current playback information when playing the currently downloaded video;

[0006] Get the current service information of the server;

[0007] According to the preset jam prediction model, the current playback information and the current service information, a jam prediction result when playing the current video to be downloaded is determined.

[0008] In a second aspect, the embodiment of the present disclosure further provides a video freeze prediction device, including:

[0009] The current playback information acquisition module is used to obtain the current playback information when playing the currently downloaded video;

[0010] The current service information acquisition module is used to obtain the current service information of the server;

[0011] The jam prediction module is used to determine the jam prediction result when playing the current video to be downloaded based on a preset jam prediction model, the current playback information and the current service information.

[0012] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0013] one or more processors;

[0014] A memory for storing one or more programs;

[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the video freeze prediction method provided in any embodiment of the present disclosure.

[0016] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a video freeze prediction method as provided in any embodiment of the present disclosure.

[0017] In the disclosed embodiment, by obtaining the current playback information when playing the currently downloaded video and the current service information of the server itself, and determining the jamming prediction result when playing the current video to be downloaded based on a preset jamming prediction model, the current playback information and the current service information, the video jamming result can be known in advance, thereby effectively ensuring the smoothness of video playback and improving the user viewing experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale.

[0019] Figure 1 is a flowchart of a video freeze prediction method provided by the first embodiment of the present disclosure;

[0020] Figure 2 This is an example of a video freeze prediction process involved in the first embodiment of the present disclosure;

[0021] Figure 3 This is a structural example of a preset jam prediction network model involved in the first embodiment of the present disclosure;

[0022] Figure 4 is a flowchart of a video freeze prediction method provided by Embodiment 2 of the present disclosure;

[0023] Figure 5 This is an example of a video freeze prediction process involved in the second embodiment of the present disclosure;

[0024] Figure 6 It is a structural schematic diagram of a video freeze prediction device provided in Embodiment 3 of the present disclosure;

[0025] Figure 7 It is a structural diagram of an electronic device provided in Embodiment 4 of the present disclosure. DETAILED DESCRIPTION

[0026] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0027] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0028] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0029] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0030] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0031] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0032] Embodiment 1

[0033] Figure 1 This is a flowchart of a video freeze prediction method provided in the first embodiment of the present disclosure. This embodiment can be used to predict in advance whether a video freeze will occur when playing the current video to be downloaded, especially in the application scenario of predicting freezes in live video or on-demand video. The method can be executed by a video freeze prediction device, which can be implemented by software and / or hardware and integrated in a client or server. Figure 1As shown, the method specifically comprises the following steps:

[0034] S110: Acquire current playback information when playing the currently downloaded video.

[0035] The currently downloaded video may refer to the downloaded video currently being played by the client. In a live broadcast scenario or a video-on-demand scenario, the live video or the video-on-demand video may be segmented by time to obtain each video segment in the live video or the video-on-demand video, so that the client can play the live video or the video-on-demand video by sequentially downloading and playing each video segment. For example, the currently downloaded video may refer to the downloaded live video segment or the downloaded video-on-demand video segment currently being played by the client.

[0036] The current playback information may include, but is not limited to, current network information, the length of the currently cached video, and the video information currently being downloaded. For example, the current network information may include, but is not limited to, packet loss rate, current bandwidth, maximum bandwidth, maximum network delay, minimum network delay, current round-trip delay, minimum round-trip delay, and maximum round-trip delay; the video information currently being downloaded may include, but is not limited to, video frame rate, video bit rate, and video data size.

[0037] Specifically, when the client plays the currently downloaded video, it can obtain the current playback information corresponding to the currently downloaded video in real time, so as to make a real-time prediction of video freezes; it can also set a corresponding time interval based on the length of the currently cached video, and periodically obtain the current playback information corresponding to the currently downloaded video based on the time interval, so as to reduce the number of freeze predictions on the basis of ensuring the smoothness of video playback, thereby saving device resources. If this method is applied to the client, the client can directly obtain the current playback information. If this method is applied to the server, the client can send the obtained current playback information to the server so that the server can receive the current playback information sent by the client. By performing a video freeze prediction operation on the server based on the current playback information sent by the client, the server resources can be fully utilized, and the video freeze prediction of the current video to be downloaded can be quickly and accurately performed, thereby improving the prediction accuracy and prediction efficiency.

[0038] S120: Obtain current service information of the server.

[0039] Among them, the current service information may refer to the information of the current server itself that may affect the video download speed. For example, the current service information may include but is not limited to: the current load of the server, CDN (Content Delivery Network) content distribution network manufacturer information and CDN cached downloadable video volume information. Among them, if the CDN manufacturer information matches the user network service provider information, the video download speed will be increased, otherwise the video download speed will be reduced. The CDN cached downloadable video volume information may refer to the length of the downloadable live video segment or the length of the downloadable on-demand video segment currently cached in the server's CDN node.

[0040] Specifically, if the method is applied to the client, the server can send the currently collected current service information to the client, so that the client can receive the current service information sent by the server. If the method is applied to the server, the server can directly obtain the current service information so as to perform freeze prediction based on the current service information.

[0041] S130. Determine a jam prediction result when playing the current video to be downloaded according to a preset jam prediction model, current playback information, and current service information.

[0042] Among them, the current video to be downloaded may refer to the video that the client is currently waiting to download. For example, the current video to be downloaded may refer to a live video clip or a video-on-demand clip that the client is currently waiting to download. The jam prediction result may include: whether jamming occurs within a preset time period after the current moment or the probability of jamming. The preset time period may be a time period pre-set based on business needs, and the preset time period may include the time period from the current moment to the playback time corresponding to the video to be downloaded. The jam prediction result may also include: the predicted jam duration, that is, the length of time that jamming is predicted to occur within the preset time period, so as to meet different business needs and scenarios. The preset jam prediction model may be a pre-set neural network model for predicting whether video jamming will occur during the subsequent playback of the current video to be downloaded. The preset jam prediction model in this embodiment may be obtained by pre-training based on sample data.

[0043] Specifically, the current playback information and the current service information can be input into a pre-trained preset jam prediction model to predict video jams, and based on the output of the preset jam prediction model, a jam prediction result when the client plays the current video to be downloaded is obtained. The preset jam prediction model can perform jam prediction based on the current playback information and the current service information at the same time, thereby further improving the accuracy of jam prediction.

[0044] Exemplarily, S130 may include: preprocessing current playback information to obtain target playback information, and preprocessing current service information to obtain target service information; inputting the target playback information and target service information into a preset stuttering prediction model to perform stuttering prediction, and obtaining a stuttering prediction result when playing the current video to be downloaded.

[0045] Specifically, by preprocessing the current playback information and the current service information, such as normalizing the current playback information and the current service information, filtering invalid information, etc., unified target playback information and target service information can be obtained, thereby ensuring the uniformity of information input into the preset freeze prediction model, and further improving the accuracy of the model prediction.

[0046] Exemplarily, preprocessing the current playback information to obtain the target playback information may include: performing data standardization processing on the current playback information based on a preset standardization model to obtain the target playback information. Preprocessing the current service information to obtain the target service information may include: performing data standardization processing on the current playback information based on a preset standardization model to obtain the target playback information.

[0047] Specifically, Figure 2 An example of a video freeze prediction process is given. Figure 2 As shown, the preset standardization model can be used to quickly perform data standardization processing on the current playback information and the current service information, so as to improve the processing efficiency and ensure the uniformity of the input information.

[0048] The preset standardized model periodically updates parameters based on the playback information and service information obtained within the latest preset duration. Figure 2 As shown, the method is applied to the server, and the server can store the current playback information reported by the client each time and the current service information collected each time in the database, so that the parameters of the preset standardization model can be updated using the latest stored playback information and service information. For example, the average value and variance of each type of information used for standardization processing in the preset standardization model can be updated using the playback information and service information stored in the latest day, so as to further improve the accuracy of the jamming prediction.

[0049] For example, this embodiment can periodically collect the current playback information reported by the client of a part of users (i.e., users who have not performed freeze prediction) and the current service information of the acquisition server, and store them in the database. These users can report whether freezes occur when actually playing the video to be downloaded, that is, the actual freeze result to the server, and the server stores the actual freeze result in the database. Figure 2As shown, this embodiment can update the weights of the preset jamming prediction network model based on the playback information and service information stored within the latest preset duration and the corresponding actual jamming results. For example, the preset jamming prediction network model can be trained again using the latest one or more days of playback information and service information and the corresponding actual jamming results to further improve the accuracy of jamming prediction.

[0050] The technical solution of the disclosed embodiment obtains the current playback information when playing the currently downloaded video and the current service information of the server itself, and determines the jamming prediction result when playing the current video to be downloaded based on a preset jamming prediction model, the current playback information and the current service information, so that the video jamming result can be known in advance, thereby effectively ensuring the smoothness of video playback and improving the user viewing experience.

[0051] Based on the above technical solution, the preset jam prediction network model may include: an output layer and at least one ResNet residual network; each ResNet residual network includes: a first fully connected layer, a first activation layer, a second fully connected layer, and a second activation layer; wherein the output of the first fully connected layer serves as the input of the first activation layer; the output of the first activation layer serves as the input of the second fully connected layer, the output of the second fully connected layer is jump-connected to the input of the first fully connected layer, and the addition result after the jump connection serves as the input of the second activation layer.

[0052] The activation function used by the first activation layer and the second activation layer may be, but not limited to, a ReLU (Rectified Linear Unit) activation function. The activation function used by the output layer may be, but not limited to, a Sigmoid function. The information output by the output layer may be the probability of a freeze. When the probability is less than 0.5, it indicates that no freeze is predicted. When the probability is greater than 0.5, it indicates that a freeze is predicted.

[0053] Specifically, Figure 3 A structural example of a preset jam prediction network model is given. Figure 3 As shown, the accuracy of jam prediction is the highest when the preset jam prediction network model includes two ResNet residual networks, so the preset jam prediction network model composed of two ResNet residual networks can be preferred. Exemplarily, Figure 3The prediction process of the preset jam prediction network model is as follows: input the target playback information and the target service information into the first fully connected layer in the first ResNet residual network to obtain the first fully connected information, input the first fully connected information into the first activation layer to obtain the first activation information, input the first activation information into the second fully connected layer to obtain the second fully connected information, and add the second fully connected information to the input target playback information and target service information, and input the obtained addition result into the second activation layer to obtain the second activation information. Similarly, input the second activation information output by the first ResNet residual network into the second ResNet residual network for similar processing to obtain the information output by the second ResNet residual network, and input the information into the output layer for mapping processing to obtain the final output jam prediction result.

[0054] Embodiment 2

[0055] Figure 4 This is a flowchart of a method for predicting video freeze provided in Embodiment 2 of the present disclosure. Based on Embodiment 1 above, this embodiment describes in detail the process of processing a video to be downloaded that is predicted to freeze. Explanations of terms that are the same or corresponding to the above embodiments are not repeated here.

[0056] See also Figure 4 The video freeze prediction method provided in this embodiment specifically includes the following steps:

[0057] S410: Acquire current playback information when playing the currently downloaded video.

[0058] S420: Obtain current service information of the server.

[0059] S430: Determine a jam prediction result when playing the current video to be downloaded according to a preset jam prediction model, current playback information, and current service information.

[0060] S440. If the jamming prediction result is: jamming occurs within a preset time period after the current moment, based on a preset jamming processing method, video processing is performed on the video to be downloaded corresponding to the preset time period to reduce the video bit rate or video frame rate corresponding to the video to be downloaded.

[0061] The preset jamming processing method may be a pre-set method for reducing the amount of video data transmitted between the server and the client to avoid unnecessary video jams and ensure smooth video playback. The preset jamming processing method may include multiple methods. For example, the preset jamming processing method may refer to a method of reducing the video bit rate or a method of reducing the video frame rate.

[0062] Specifically, Figure 5An example of a video freeze prediction process is given. Figure 5 As shown, the jam avoidance strategy model in the server can make corresponding decisions based on the jam prediction result output by the preset jam prediction model. For example, when the jam prediction result is that jam occurs within a preset time period after the current moment, a jam processing method that reduces the transmission video bit rate or reduces the transmission video frame rate can be determined, so that the live broadcast / on-demand server performs video processing on the videos to be downloaded within the preset time period based on the jam processing method, thereby reducing the amount of video data transmitted between the server and the client, avoiding unnecessary video jams, ensuring the smoothness of video playback, and improving the user experience.

[0063] Exemplarily, the jam processing process for the to-be-downloaded video predicted to be jammed can be implemented in the following three ways:

[0064] As a first implementation method, "based on a preset freeze processing method, performing video processing on the video to be downloaded corresponding to the preset time period" in S440 may include: based on the first video bit rate corresponding to the video currently being downloaded, determining a second video bit rate that is less than the first video bit rate; based on the videos to be downloaded corresponding to the preset time period under each pre-stored video bit rate, determining the target video to be downloaded corresponding to the preset time period under the second video bit rate.

[0065] Specifically, in the on-demand scenario, various videos to be downloaded with different video bit rates can be pre-generated and stored for each on-demand video segment in the on-demand video. When the video to be downloaded is subjected to a freeze process, a video bit rate that is smaller than the first video bit rate currently being downloaded can be selected from the existing video bit rates as the second video bit rate, and the target video to be downloaded corresponding to the preset time period under the second video bit rate can be quickly obtained from the pre-stored videos to be downloaded, so that the client can download the target video to be downloaded, thereby improving the freeze process efficiency, and reducing the amount of downloaded video data by reducing the video bit rate, so that the target video to be downloaded can be downloaded more quickly, avoiding the situation of video freeze during subsequent playback.

[0066] As a second implementation method, "based on a preset freeze processing method, performing video processing on the video to be downloaded corresponding to the preset time period" in S440 may include: extracting video frames from the video to be downloaded corresponding to the preset time period to obtain the extracted target video to be downloaded.

[0067] Specifically, in a live broadcast scenario or a video-on-demand scenario, video frames can be extracted for each video to be downloaded corresponding to a preset time period to reduce the video frame rate of the target video to be downloaded, thereby reducing the amount of downloaded video data and avoiding subsequent video freezes.

[0068] As a third implementation method, "based on a preset freeze processing method, performing video processing on the video to be downloaded corresponding to the preset time period" in S440 may include: based on a target video encoding method, performing transcoding processing on the video to be downloaded corresponding to the preset time period to obtain a processed target video to be downloaded; wherein, the video bit rate of the target video encoding method is less than the video bit rate of the current video encoding method; or, the video frame rate of the target video encoding method is less than the video frame rate of the current video encoding method.

[0069] Specifically, in a live broadcast scenario, it is necessary to perform real-time transcoding processing on the video clips obtained in real time to ensure video fluency. In this embodiment, the target video encoding method with a lower video bit rate and / or a lower video frame rate can be used to transcode the video to be downloaded, thereby reducing the video bit rate and / or video frame rate of the processed target video to be downloaded, thereby reducing the amount of transmitted video data and avoiding the subsequent video freeze.

[0070] The technical solution of this embodiment can, when the jam prediction result is that jam occurs within a preset time period after the current moment, perform video processing on the video to be downloaded corresponding to the preset time period based on a preset jam processing method, and reduce the amount of video data transmitted between the server and the client by reducing the video bit rate or video frame rate corresponding to the video to be downloaded, thereby avoiding unnecessary video jams, ensuring the smoothness of video playback, and improving the user viewing experience.

[0071] On the basis of the above technical solution, the jam prediction result also includes: the predicted jam duration when the jam occurs within a preset time period after the current moment. Accordingly, the "based on the preset jam processing method, performing video processing on the video to be downloaded corresponding to the preset time period" in step S440 may include: based on the preset jam processing method, performing video processing on the video to be downloaded corresponding to the predicted jam duration.

[0072] Among them, the process of handling the jamming of the video to be downloaded corresponding to the predicted jamming duration can be referred to the above three implementation methods, which will not be repeated here.

[0073] Specifically, when the jamming prediction result predicts that jamming will occur, the corresponding predicted jamming duration can be further predicted, so that only the video to be downloaded that needs to be downloaded within the predicted jamming duration needs to be processed, that is, the video bit rate or video frame rate of the video to be downloaded corresponding to the predicted jamming duration needs to be reduced, and there is no need to process other videos to be downloaded, thereby further ensuring the video viewing quality and improving the user experience.

[0074] The following is an embodiment of a video freeze prediction device provided by an embodiment of the present disclosure. The device and the video freeze prediction method of the above-mentioned embodiment belong to the same inventive concept. For details not described in detail in the embodiment of the video freeze prediction device, please refer to the above-mentioned embodiment.

[0075] Embodiment 3

[0076] Figure 6 This is a schematic diagram of the structure of a video freeze prediction device provided in the third embodiment of the present disclosure. This embodiment can be used to predict in advance whether a video freeze will occur when playing the current video to be downloaded, especially in the application scenario of predicting freezes in live video or on-demand video. Figure 6 As shown, the device specifically includes: a current playback information acquisition module 610, a current service information acquisition module 620 and a freeze prediction module 630.

[0077] Among them, the current playback information acquisition module 610 is used to obtain the current playback information when playing the currently downloaded video; the current service information acquisition module 620 is used to obtain the current service information of the server; the freeze prediction module 730 is used to determine the freeze prediction result when playing the current video to be downloaded based on the preset freeze prediction model, the current playback information and the current service information.

[0078] The technical solution of the disclosed embodiment obtains the current playback information when playing the currently downloaded video and the current service information of the server itself, and determines the jamming prediction result when playing the current video to be downloaded based on a preset jamming prediction model, the current playback information and the current service information, so that the video jamming result can be known in advance, thereby effectively ensuring the smoothness of video playback and improving the user viewing experience.

[0079] Based on the above technical solution, the current service information includes: the current load of the server, CDN content distribution network manufacturer information and the amount of downloadable videos cached by the CDN.

[0080] On the basis of the above technical solutions, the preset jam prediction network model includes: an output layer and at least one ResNet residual network; each ResNet residual network includes: a first fully connected layer, a first activation layer, a second fully connected layer and a second activation layer;

[0081] Among them, the output of the first fully connected layer is used as the input of the first activation layer; the output of the first activation layer is used as the input of the second fully connected layer, the output of the second fully connected layer is jump-connected to the input of the first fully connected layer, and the addition result after the jump connection is used as the input of the second activation layer.

[0082] Based on the above technical solutions, the jam prediction module 630 may include:

[0083] A preprocessing unit, used to preprocess the current playback information to obtain target playback information, and to preprocess the current service information to obtain target service information;

[0084] The jam prediction unit is used to input the target playback information and the target service information into a preset jam prediction model to perform jam prediction and obtain a jam prediction result when playing the current video to be downloaded.

[0085] On the basis of the above-mentioned technical solutions, the preprocessing unit is specifically used to: perform data standardization processing on the current playback information based on a preset standardization model to obtain target playback information; wherein the preset standardization model periodically updates parameters based on the playback information obtained within the latest preset duration.

[0086] On the basis of the above technical solutions, the device also includes:

[0087] The jamming processing module is used to process the video to be downloaded corresponding to the preset time period based on the preset jamming processing method if the jamming prediction result is: jamming occurs within a preset time period after the current moment, so as to reduce the video bit rate or video frame rate corresponding to the video to be downloaded.

[0088] Based on the above technical solutions, the jam processing module is specifically used for:

[0089] Based on the first video bit rate corresponding to the currently downloaded video, determine a second video bit rate that is smaller than the first video bit rate; based on the videos to be downloaded corresponding to the preset time period under each pre-stored video bit rate, determine the target video to be downloaded corresponding to the preset time period under the second video bit rate.

[0090] On the basis of the above technical solutions, the jam processing module is also specifically used for:

[0091] Video frames are extracted from the video to be downloaded corresponding to the preset time period to obtain the extracted target video to be downloaded.

[0092] On the basis of the above technical solutions, the jam processing module is also specifically used for:

[0093] Based on the target video encoding method, the video to be downloaded corresponding to the preset time period is transcoded to obtain the processed target video to be downloaded; wherein the video bit rate of the target video encoding method is less than the video bit rate of the current video encoding method; or, the video frame rate of the target video encoding method is less than the video frame rate of the current video encoding method.

[0094] On the basis of the above technical solutions, the jam prediction result also includes: the predicted jam duration when the jam occurs within a preset time period after the current moment;

[0095] The jam processing module is specifically used to: based on a preset jam processing method, perform video processing on the to-be-downloaded video corresponding to the jam prediction duration.

[0096] On the basis of the above technical solutions, the current playback information includes: the current network information of the client, the length of the currently cached video and the video information currently being downloaded.

[0097] On the basis of the above technical solutions, the current network information includes: packet loss rate, current bandwidth, maximum bandwidth, maximum network delay, minimum network delay, current round-trip delay, minimum round-trip delay and maximum round-trip delay;

[0098] The video information currently being downloaded includes: video frame rate, video bit rate and video data size.

[0099] The video freeze prediction device provided in the embodiments of the present disclosure can execute the video freeze prediction method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects for executing the video freeze prediction method.

[0100] It is worth noting that in the embodiment of the above-mentioned video freeze prediction device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0101] Embodiment 4

[0102] Reference below Figure 7 , which shows a structural schematic diagram of an electronic device 900 suitable for implementing an embodiment of the present disclosure. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0103] like Figure 7 As shown, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0104] Typically, the following devices may be connected to the I / O interface 905: an input device 906 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 908 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 900 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0105] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0106] The electronic device provided in the embodiment of the present disclosure and the video freeze prediction method provided in the above embodiment belong to the same inventive concept. The technical details not fully described in the embodiment of the present disclosure can be referred to the above embodiment, and the embodiment of the present disclosure has the same beneficial effects as the above embodiment.

[0107] Embodiment 5

[0108] The embodiments of the present disclosure provide a computer storage medium on which a computer program is stored. When the program is executed by a processor, the video freeze prediction method provided in the above embodiments is implemented.

[0109] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0110] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0111] The computer-readable medium may be included in the server, or may exist independently without being installed in the server.

[0112] The computer-readable medium carries one or more programs. When the one or more programs are executed by the server, the server: obtains the current playback information when playing the currently downloaded video; obtains the current service information of the server; and determines the jamming prediction result when playing the current video to be downloaded based on a preset jamming prediction model, the current playback information and the current service information.

[0113] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0114] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0115] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, an editable content display unit may also be described as an "editing unit".

[0116] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0117] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0118] According to one or more embodiments of the present disclosure, [Example 1] provides a video freeze prediction method, including:

[0119] Get the current playback information when playing the currently downloaded video;

[0120] Get the current service information of the server;

[0121] According to the preset jam prediction model, the current playback information and the current service information, a jam prediction result when playing the current video to be downloaded is determined.

[0122] According to one or more embodiments of the present disclosure, [Example 2] provides a video freeze prediction method, which is applied to a server and further includes:

[0123] Optionally, the current service information includes: the current load of the server, CDN content delivery network vendor information, and information on the amount of downloadable videos cached by the CDN.

[0124] According to one or more embodiments of the present disclosure, [Example 3] provides a video freeze prediction method, which is applied to a server and further includes:

[0125] Optionally, the preset jam prediction network model includes: an output layer and at least one ResNet residual network;

[0126] Each of the ResNet residual networks includes: a first fully connected layer, a first activation layer, a second fully connected layer, and a second activation layer;

[0127] The output of the first fully connected layer is used as the input of the first activation layer; the output of the first activation layer is used as the input of the second fully connected layer, the output of the second fully connected layer is jump-connected to the input of the first fully connected layer, and the addition result after the jump connection is used as the input of the second activation layer.

[0128] According to one or more embodiments of the present disclosure, [Example 4] provides a video freeze prediction method, which is applied to a server and further includes:

[0129] Optionally, the determining, according to a preset jam prediction model, the current playback information, and the current service information, a jam prediction result when playing the current video to be downloaded includes:

[0130] Preprocessing the current playback information to obtain target playback information, and preprocessing the current service information to obtain target service information;

[0131] The target playback information and the target service information are input into a preset jam prediction model to perform jam prediction, and a jam prediction result is obtained when playing the current video to be downloaded.

[0132] According to one or more embodiments of the present disclosure, [Example 5] provides a video freeze prediction method, which is applied to a server and further includes:

[0133] Optionally, the preprocessing the current playback information to obtain target playback information includes:

[0134] Based on a preset standardization model, performing data standardization processing on the current playback information to obtain target playback information;

[0135] The preset standardization model periodically updates parameters based on the playback information acquired within the latest preset duration.

[0136] According to one or more embodiments of the present disclosure, [Example 6] provides a video freeze prediction method, which is applied to a server and further includes:

[0137] Optionally, the method further includes:

[0138] If the jam prediction result is that jamming occurs within a preset time period after the current moment, based on a preset jamming processing method, video processing is performed on the video to be downloaded corresponding to the preset time period to reduce the video bit rate or video frame rate corresponding to the video to be downloaded.

[0139] According to one or more embodiments of the present disclosure, [Example 7] provides a video freeze prediction method, which is applied to a server and further includes:

[0140] Optionally, the performing video processing on the video to be downloaded corresponding to the preset time period based on the preset freeze processing method includes:

[0141] Based on a first video bit rate corresponding to the video currently being downloaded, determining a second video bit rate that is less than the first video bit rate;

[0142] Based on the pre-stored videos to be downloaded corresponding to the preset time period at each video bit rate, a target video to be downloaded corresponding to the preset time period at the second video bit rate is determined.

[0143] According to one or more embodiments of the present disclosure, [Example 8] provides a video freeze prediction method, which is applied to a server and further includes:

[0144] Optionally, the performing video processing on the video to be downloaded corresponding to the preset time period based on the preset freeze processing method further includes:

[0145] Video frames are extracted from the video to be downloaded corresponding to the preset time period to obtain the extracted target video to be downloaded.

[0146] According to one or more embodiments of the present disclosure, [Example 9] provides a video freeze prediction method, which is applied to a server and further includes:

[0147] Optionally, the performing video processing on the video to be downloaded corresponding to the preset time period based on the preset freeze processing method further includes:

[0148] Based on the target video encoding method, transcoding the video to be downloaded corresponding to the preset time period to obtain a processed target video to be downloaded;

[0149] The video bit rate of the target video encoding method is smaller than the video bit rate of the current video encoding method; or the video frame rate of the target video encoding method is smaller than the video frame rate of the current video encoding method.

[0150] According to one or more embodiments of the present disclosure, [Example 10] provides a video freeze prediction method, which is applied to a server and further includes:

[0151] Optionally, the jam prediction result further includes: a predicted jam duration when the jam occurs within a preset time period after the current moment;

[0152] The video processing for the video to be downloaded corresponding to the preset time period based on the preset freeze processing method includes:

[0153] Based on a preset freeze processing method, video processing is performed on the video to be downloaded corresponding to the predicted freeze duration.

[0154] According to one or more embodiments of the present disclosure, [Example 11] provides a video freeze prediction method, further comprising:

[0155] Optionally, the current playback information includes: current network information, length of currently cached video, and information of the video currently being downloaded.

[0156] According to one or more embodiments of the present disclosure, [Example 12] provides a video freeze prediction method, further comprising:

[0157] Optionally, the current network information includes: packet loss rate, current bandwidth, maximum bandwidth, maximum network delay, minimum network delay, current round-trip delay, minimum round-trip delay and maximum round-trip delay;

[0158] The video information currently being downloaded includes: video frame rate, video bit rate and video data size.

[0159] According to one or more embodiments of the present disclosure, [Example 13] provides a video freeze prediction device, including:

[0160] The current playback information acquisition module is used to obtain the current playback information when playing the currently downloaded video;

[0161] The current service information acquisition module is used to obtain the current service information of the server;

[0162] The jam prediction module is used to determine the jam prediction result when playing the current video to be downloaded based on a preset jam prediction model, the current playback information and the current service information.

[0163] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0164] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0165] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A video freeze prediction method, characterized in that: include: Get the current playback information when playing the currently downloaded video; Get the current service information of the server; Input the current playback information and the current service information into a pre-trained preset jamming prediction model to predict video jamming, and based on the output of the preset jamming prediction model, obtain a jamming prediction result when playing the current video to be downloaded, wherein the jamming prediction result includes a predicted jamming duration when jamming occurs within a preset time period after the current moment, and the preset time period includes a time period from the current moment to the playback moment corresponding to the video to be downloaded; If the jam prediction result is: jamming occurs within a preset time period after the current moment, based on a preset jam processing method, video processing is performed on the video to be downloaded corresponding to the predicted jam duration to reduce the video bit rate or video frame rate corresponding to the video to be downloaded.

2. The method according to claim 1, characterized in that The current service information includes: the current load of the server, CDN content delivery network vendor information, and the amount of downloadable videos cached by the CDN.

3. The method according to claim 1, characterized in that The preset jam prediction network model includes: an output layer and at least one ResNet residual network; Each of the ResNet residual networks includes: a first fully connected layer, a first activation layer, a second fully connected layer, and a second activation layer; The output of the first fully connected layer is used as the input of the first activation layer; the output of the first activation layer is used as the input of the second fully connected layer, the output of the second fully connected layer is jump-connected to the input of the first fully connected layer, and the addition result after the jump connection is used as the input of the second activation layer.

4. The method according to claim 1, characterized in that: The determining, according to the preset jam prediction model, the current playback information, and the current service information, a jam prediction result when playing the current video to be downloaded includes: Preprocessing the current playback information to obtain target playback information, and preprocessing the current service information to obtain target service information; The target playback information and the target service information are input into a preset jam prediction model to perform jam prediction, and a jam prediction result is obtained when playing the current video to be downloaded.

5. The method according to claim 4, characterized in that The preprocessing of the current playback information to obtain target playback information includes: Based on a preset standardization model, performing data standardization processing on the current playback information to obtain target playback information; The preset standardization model periodically updates parameters based on the playback information acquired within the latest preset duration.

6. The method according to claim 1, characterized in that The performing video processing on the to-be-downloaded video corresponding to the predicted jam duration based on the preset jam processing method includes: Based on a first video bit rate corresponding to the video currently being downloaded, determining a second video bit rate that is less than the first video bit rate; Based on the pre-stored videos to be downloaded corresponding to the predicted freeze duration at each video bit rate, a target video to be downloaded corresponding to the predicted freeze duration at the second video bit rate is determined.

7. The method according to claim 1, characterized in that The method of performing video processing on the to-be-downloaded video corresponding to the predicted jam duration based on the preset jam processing method also includes: Video frames are extracted from the video to be downloaded corresponding to the predicted freeze duration to obtain the extracted target video to be downloaded.

8. The method according to claim 1, characterized in that The method of performing video processing on the to-be-downloaded video corresponding to the predicted jam duration based on the preset jam processing method also includes: Based on the target video encoding method, transcoding the to-be-downloaded video corresponding to the predicted freeze duration is performed to obtain a processed target to-be-downloaded video; The video bit rate of the target video encoding method is smaller than the video bit rate of the current video encoding method; or the video frame rate of the target video encoding method is smaller than the video frame rate of the current video encoding method.

9. The method according to claim 1, characterized in that: The current playback information includes: the current network information of the client, the length of the currently cached video, and the video information currently being downloaded.

10. The method according to claim 9, characterized in that The current network information includes: packet loss rate, current bandwidth, maximum bandwidth, maximum network delay, minimum network delay, current round-trip delay, minimum round-trip delay and maximum round-trip delay; The video information currently being downloaded includes: video frame rate, video bit rate and video data size.

11. A video freeze prediction device, characterized in that: include: The current playback information acquisition module is used to obtain the current playback information when playing the currently downloaded video; The current service information acquisition module is used to obtain the current service information of the server; A freeze prediction module, used for inputting the current playback information and the current service information into a pre-trained preset freeze prediction model to predict video freeze, and based on the output of the preset freeze prediction model, obtaining a freeze prediction result when playing the current video to be downloaded, wherein the freeze prediction result includes a freeze prediction duration when freeze occurs within a preset time period after the current moment, and the preset time period includes a time period from the current moment to the playback moment corresponding to the video to be downloaded; The jamming processing module is used to perform video processing on the video to be downloaded corresponding to the jamming prediction duration based on a preset jamming processing method if the jamming prediction result is: jamming occurs within a preset time period after the current moment, so as to reduce the video bit rate or video frame rate corresponding to the video to be downloaded.

12. An electronic device, characterized in that: The electronic device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the video freeze prediction method as described in any one of claims 1-10.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the video freeze prediction method as described in any one of claims 1-10 is implemented.

Citation Information

Patent Citations

  • Video frame rate prediction method and device, and equipment

    CN108900856A

  • Video code rate self-adaptive adjustment method and device and electronic equipment

    CN109982118A

  • Data processing method, data processing server, jamming detection method and server

    CN110225417A

  • Video lag model training method and prediction method, server and storage medium

    CN110958491A

  • Jamming detection method, system and device

    CN111031403A

Cited By

  • Video stutter prediction method and apparatus, device and medium

    US12568272B2