A video download control method, device, equipment and storage medium
By estimating the video playback time and setting the cache time threshold, and controlling video downloads, the problem of resource waste in video playback is solved, and the effect of saving download costs and improving efficiency is achieved.
Patent Information
- Application Number
- CN202310185786.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-20
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2043-02-20
AI Technical Summary
The existing video download technology continuously downloads subsequent data during video playback, resulting in useless data generated when the user exits, resulting in waste of resources and increased download costs.
By obtaining the current playback time and total duration of the target video, determine the target playback time probability density function of the target video, estimate the playback time, and set the cache time threshold based on the estimated playback time to control video downloads to avoid excessive data cache .
While ensuring the smoothness of video, it saves download costs, avoids the download of useless data, and improves download efficiency.
Smart Images

Figure CN116208787B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to computer technology, and more particularly to a video download control method, apparatus, device and storage medium. Background Art
[0002] With the rapid development of computer technology, during video playback, the player can download video data subsequent to the current playback progress in advance and cache the downloaded video data, thereby avoiding video playback freezes caused by bandwidth jitter.
[0003] Currently, as long as the video is still playing, subsequent video data will continue to be downloaded until the video is downloaded. However, the user may quit watching the video before the video is finished, resulting in the subsequent downloaded video data being useless data, which greatly wastes download resources and increases download costs. Summary of the invention
[0004] The present disclosure provides a video download control method, device, equipment and storage medium to avoid downloading and caching too much video data while ensuring video fluency, thereby saving download costs.
[0005] In a first aspect, an embodiment of the present disclosure provides a video download control method, including:
[0006] Get the current playback time and total duration of the target video;
[0007] Determine a target playback duration probability density function corresponding to the target video;
[0008] Determine a target estimated playback time corresponding to the target video based on the current playback time, the total playback time of the target video, and the target playback time probability density function;
[0009] Based on the target estimated playback duration, a target cache duration threshold corresponding to the target video is determined, and based on the target cache duration threshold, downloading of the target video is controlled.
[0010] In a second aspect, the embodiment of the present disclosure further provides a video download control device, including:
[0011] The duration acquisition module is used to obtain the current playback duration of the target video and the total duration of the target video;
[0012] A probability density function determination module, used to determine a target playback duration probability density function corresponding to the target video;
[0013] A playback duration estimation module, used to determine a target estimated playback duration corresponding to the target video based on the current playback duration, the total duration of the target video and the target playback duration probability density function;
[0014] The video download control module is used to determine a target cache duration threshold corresponding to the target video based on the target estimated playback duration, and to control the download of the target video based on the target cache duration threshold.
[0015] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0016] one or more processors;
[0017] a storage device for storing one or more programs,
[0018] When the one or more programs are executed by the one or more processors, the one or more processors implement the video download control method as described in any one of the embodiments of the present disclosure.
[0019] In a fourth aspect, the embodiments of the present disclosure further provide a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the video download control method as described in any one of the embodiments of the present disclosure.
[0020] The disclosed embodiments determine a target playback duration probability density function corresponding to a target video, determine a target estimated playback duration when the target video exits playback based on the current playback duration of the target video, the total duration of the target video and the target playback duration probability density function, determine a target cache duration threshold corresponding to the target video based on the target estimated playback duration, and control the download of the target video based on the target cache duration threshold, thereby controlling the download cache duration of the target video to not exceed the target cache duration threshold, thereby ensuring video fluency while avoiding downloading and caching too much video data, thereby saving download costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] 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.
[0022] Figure 1 It is a flow chart of a video download control method provided by an embodiment of the present disclosure;
[0023] Figure 2 is a flow chart of another video download control method provided by an embodiment of the present disclosure;
[0024] Figure 3 This is an example of the fitting effect of a playback duration probability density function involved in an embodiment of the present disclosure;
[0025] Figure 4 It is a flowchart of another video download control method provided by an embodiment of the present disclosure;
[0026] Figure 5 is a structural schematic diagram of a video download control device provided by an embodiment of the present disclosure;
[0027] Figure 6 It is a structural schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0028] 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.
[0029] 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.
[0030] 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.
[0031] 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.
[0032] 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".
[0033] 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.
[0034] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0035] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0036] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0037] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0038] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0039] Figure 1 A flow chart of a video download control method provided in an embodiment of the present disclosure is applicable to the case of downloading and controlling videos played online. The method can be executed by a video download control device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, PC, server or other device that can play videos.
[0040] like Figure 1 As shown, the video download control method specifically includes the following steps:
[0041] S110: Obtain the current playing time of the target video and the total playing time of the target video.
[0042] The target video may refer to the video currently being played by the player. The target video may be an online video that is being downloaded while being played. The current played time may refer to the video time that the player has played at the current moment. The current played time may be used to characterize the current playing progress of the target video. The current played time changes dynamically as the target video is played. The total duration of the target video may refer to the overall duration of the target video. The current played time is less than or equal to the total duration of the target video.
[0043] Specifically, during the process of playing the target video, the player can obtain the current playing time of the target video at regular intervals, and based on the current playing time obtained each time, control the download of the target video by executing subsequent steps S120-S140, thereby realizing dynamic control of video downloading, further improving control efficiency, and avoiding downloading and caching too much video data.
[0044] S120: Determine a target playback duration probability density function corresponding to the target video.
[0045] Among them, the target playback time probability density function can be a function used to describe the possibility that the playback time of the target video is near a certain value point. The random variable in the target playback time probability density function is the playback time of the target video, and the playback time refers to the total playback time when the target video exits playback. Videos with different total video durations can correspond to different playback time probability density functions. Alternatively, videos with a total video duration within a certain range correspond to the same playback time probability density function. For example, videos with a total video duration between 30 seconds and 35 seconds correspond to the same playback time probability density function.
[0046] Specifically, the server can pre-fit based on the historical play time corresponding to each video to obtain the play time probability density function corresponding to each video. Alternatively, the total video duration can be divided, such as dividing an interval every 5 seconds, so as to obtain multiple video total duration intervals, and fitting is performed based on the historical play time of the video in each video total duration interval to obtain the play time probability density function corresponding to each video total duration interval. Among them, the historical play time can refer to the total play time when the video is historically played and the playback of the video is exited. After obtaining all the play time probability density functions, the server can pre-send all the play time probability density functions to the player, so that when the player plays the target video, it can quickly determine the target play time probability density function corresponding to the target video from the pre-sent play time probability density function, thereby further improving the control effect. Alternatively, when playing the target video, the player can generate a probability density function acquisition request corresponding to the target video, and send the probability density function acquisition request to the server, so that the server determines the target playback time probability density function corresponding to the target video from all obtained playback time probability density functions based on the probability density function acquisition request, and returns the target playback time probability density function to the playback end, thereby further saving storage resources and transmission costs.
[0047] S130: Determine a target estimated playback time corresponding to the target video based on the current playback time, the total playback time of the target video, and a target playback time probability density function.
[0048] Among them, the target estimated playback time may refer to the estimated playback time of the target video when the playback is exited during the playback of the target video. The target estimated playback time may also refer to the estimated viewing time when the user exits watching the target video. The target estimated playback time may be less than or equal to the total duration of the target video. If the target estimated playback time is equal to the total duration of the target video, it indicates that the playback of the target video is complete, that is, the user will exit watching only after the playback of the target video is complete. It should be noted that the target estimated playback time may change dynamically with the change of the current playback time.
[0049] Specifically, during the playback of the target video, that is, when the user is watching the target video, integration processing can be performed based on the target playback time probability density function corresponding to the target video, the current playback time and the total duration of the target video to estimate the target estimated playback time when the target video exits playback.
[0050] S140: Determine a target cache duration threshold corresponding to the target video based on the target estimated playback duration, and control downloading of the target video based on the target cache duration threshold.
[0051] The target cache duration threshold may refer to the longest video duration of the target video cached in the cache area. The target cache duration threshold is positively correlated with the target estimated playback duration, that is, the larger the target estimated playback duration, the larger the target cache duration threshold. The target cache duration threshold may change dynamically with the change of the target estimated playback duration, thereby realizing dynamic control of video downloading and further ensuring the video downloading control effect.
[0052] Specifically, the target estimated playback time can be multiplied by the preset weight, and the multiplication result obtained is the target cache time threshold corresponding to the target video. Among them, the preset weight can be a weight coefficient greater than 0 that is pre-set based on the actual business scenario. By utilizing the target cache time threshold, the target video duration of the download cache can be controlled to be less than or equal to the target cache time threshold, and the download of the target video data can be stopped when the cached target video duration is equal to the target cache time threshold, so that only the video data that the user needs to watch can be downloaded, avoiding downloading video data that the user will not watch, thereby greatly saving the download cost while ensuring the video fluency.
[0053] Exemplarily, "controlling the download of the target video based on the target cache duration threshold" in S140 may include: if the current cache duration of the target video is less than the target cache duration threshold, downloading the to-be-downloaded segments in the target video and caching the downloaded segment data; if the current cache duration of the target video is greater than or equal to the target cache duration threshold, stopping downloading the to-be-downloaded segments in the target video.
[0054] The current cache duration may refer to the duration of the video cached in the cache area at the current moment. The current video may be downloaded and played in the form of video segments, that is, the target video may include multiple video segments, and the download and play operations of the target panoramic video are achieved by downloading and playing the video segments in sequence. The segments to be downloaded may refer to the video segments in the target video that have not yet been downloaded.
[0055] Specifically, whether to download the target video is controlled by detecting whether the current cache duration of the target video is less than the target cache duration threshold. When the current cache duration is less than the target cache duration threshold, it indicates that the cache upper limit has not been reached, and the to-be-downloaded segments in the target video can continue to be downloaded. As the video segments are downloaded, the current cache duration may gradually increase. When it increases to the target cache duration threshold, the download of the to-be-downloaded segments in the target video can be stopped in time to avoid exceeding the cache upper limit, thereby avoiding downloading too much useless video data and saving data transmission costs.
[0056] The technical solution of the disclosed embodiment determines a target playback duration probability density function corresponding to the target video based on the target video's total duration; determines a target estimated playback duration when the target video exits playback based on the target video's current playback duration, the target video's total duration and the target playback duration probability density function; determines a target cache duration threshold corresponding to the target video based on the target estimated playback duration; and controls the download of the target video based on the target cache duration threshold, thereby controlling the download cache duration of the target video to not exceed the target cache duration threshold, thereby ensuring video fluency while avoiding downloading and caching too much video data, saving download costs.
[0057] On the basis of the above technical solution, S120 may include: obtaining the playback time probability density function corresponding to each video total time interval, wherein the playback time probability density function is determined by fitting based on the historical playback time corresponding to the historical video, and the total video time of the historical video is located in the corresponding video total time interval; based on the total time of the target video and the playback time probability density function corresponding to each video total time interval, determining the target playback time probability density function corresponding to the target video.
[0058] The total video duration interval may refer to the total duration range of a video. For example, every 5 seconds may be used as a total video duration interval. For example, from 30 to 35 seconds is a total video duration interval. Historical videos may refer to videos that have been played in the past. Historical playback duration may refer to the playback duration of historical videos when the playback is exited.
[0059] Specifically, for each video total duration interval, the server can obtain the historical playback duration corresponding to all historical videos in the video total duration interval, and can perform probability density fitting analysis on these historical playback durations offline. For example, the historical playback duration can be used as the horizontal coordinate and the video playback rate can be used as the vertical coordinate to perform probability density function fitting to obtain the playback duration probability density function corresponding to the video total duration interval. Among them, the video playback rate corresponding to a certain historical playback duration can refer to the ratio between the number of video playbacks with the historical playback duration and the total number of video playbacks. The server can send the playback duration probability density function corresponding to each determined video total duration interval to the player, so that the player can obtain the playback duration probability density function corresponding to each video total duration interval. The player can compare the target video total duration with the video total duration interval, determine the target video total duration interval where the target video total duration is located, and determine the playback duration probability density function corresponding to the target video total duration interval as the target playback duration probability density function. By fitting historical videos within a certain interval, the probability density function of the playback time can be determined more accurately, thereby improving the accuracy of playback time estimation and further improving the video download control effect.
[0060] Based on the above technical solution, step S130 may include the following steps S131-S133:
[0061] S131. Determine a first probability that the playback duration is less than or equal to the current playback duration based on the target playback duration probability density function and the current playback duration.
[0062] The play time refers to the total play time of the video when the video is exited. The first probability may refer to the probability value that the play time is less than or equal to the current play time.
[0063] Specifically, the target playback duration probability density function f(t) can be integrated between 0 and the current playback duration, and the obtained integration result is the first probability p1 that the playback duration t is less than or equal to the current playback duration t1, that is,
[0064] S132: Determine the expected playback duration based on the target playback duration probability density function, the current playback duration, and the total duration of the target video.
[0065] The expected playback time may refer to the average value of the random variable of the playback time.
[0066] Specifically, the target playback time probability density function f(t) and the playback time t can be multiplied, and the result obtained is used as the integral function tf(t), and the integral function is integrated between the current playback time t1 and the total duration of the target video t0, and the integral result obtained is the expected playback time E, that is,
[0067] S133: Determine a target estimated playback time corresponding to the target video based on the first probability and the expected playback time.
[0068] Specifically, based on the business scenario, it is known that the estimated playback time is greater than the current playback time, so conditional probability calculation is required, that is, the target estimated playback time is solved under the condition that the playback time is greater than the current playback time. For example, conditional probability calculation can be performed based on the first probability and the playback time expectation to estimate the target estimated playback time of the target video when exiting playback.
[0069] Exemplarily, S133 may include: based on the first probability, determining a second probability that the playback duration is greater than the current playback duration; and determining a ratio of the expected playback duration to the second probability as a target estimated playback duration corresponding to the target video.
[0070] Specifically, the result of subtracting the first probability p1 from 1 can be used as the second probability p2 that the playback duration is greater than the current playback duration, that is, p2=1-p1. The ratio of the expected playback duration E to the second probability p2 can be determined as the target estimated playback duration T, that is, T=E / p2, so that the expected playback duration under the condition that the playback duration is greater than the current playback duration, that is, the target estimated playback duration, can be accurately obtained, thereby further improving the accuracy of video download control.
[0071] Figure 2 This is a flow chart of another video download control method provided by the embodiment of the present disclosure. Based on the above disclosed embodiment, the present disclosed embodiment optimizes the step of "obtaining the playback duration probability density function corresponding to each video total duration interval", and on this basis, also optimizes the step of "determining the target playback duration probability density function corresponding to the target video based on the total duration of the target video and the playback duration probability density function corresponding to each video total duration interval". The explanations of the terms that are the same or corresponding to the above disclosed embodiments are not repeated here.
[0072] like Figure 2 As shown, the video download control method specifically includes the following steps:
[0073] S210: Obtain the current playing time of the target video and the total playing time of the target video.
[0074] S220. Obtain a basic probability density function corresponding to the playback duration and a function adjustment coefficient corresponding to each video total duration interval, wherein the function adjustment coefficient is determined based on the playback duration probability density function and the basic probability density function corresponding to each video total duration interval.
[0075] Among them, the curves of the probability density functions of the playback duration corresponding to different video total duration intervals are consistent, and only differ in the specific values. The basic probability density function may refer to a basic probability density function that takes the playback duration as a random variable. The playback duration probability density function corresponding to each video total duration interval may be obtained by adjusting the basic probability density function. The function adjustment coefficient may be a weight coefficient for adjusting the basic probability density function. Different video total duration intervals may correspond to different function adjustment coefficients.
[0076] Specifically, the server may perform probability density fitting analysis on the historical playback durations corresponding to all historical videos in each video total duration interval to obtain a playback duration probability density function corresponding to each video total duration interval. Figure 3 An example of the fitting effect of the probability density function of the playback time is given. Figure 3 The fourth function in is not fully shown. Figure 3This is a function curve obtained by fitting the probability density of the historical playback time corresponding to the historical videos with a total video length between 30 seconds and 35 seconds. It can be seen that a single function cannot fit the function curve well, so the function curve can be fitted in sections to ensure the fitting effect. Figure 3 The probability density function curve in can be fitted in sections using 4 functions. After determining the probability density function of each playback time, each playback time probability density function can be compared with the basic probability density function to determine the function adjustment coefficient corresponding to each video total time interval. For example, the function adjustment coefficient can be determined based on the ratio of the playback time probability density function to the basic probability density function. The server sends the basic probability density function and the function adjustment coefficient corresponding to each video total time interval to the player. Compared with sending all playback time probability density functions, the amount of transmitted data is greatly reduced, further saving transmission costs.
[0077] Exemplarily, the basic probability density function may include: a first segment function, a second segment function, a third segment function and a fourth segment function, wherein the first segment function may be a probability distribution curve function whose playback time is less than a first playback time threshold, the second segment function may be a linear function whose playback time is greater than or equal to the first playback time threshold and less than the second playback time threshold, the third segment function may be a first constant function whose playback time is greater than or equal to the second playback time threshold and less than the total video duration; the fourth segment function may be a second constant function whose playback time is equal to the total video duration.
[0078] Specifically, the basic probability density function curve is Figure 3 The fitted playback time probability density function curves have the same shape, only the shape parameter values are different. The first segment function, the second segment function, the third segment function and the fourth segment function are all functions that take the playback time as the independent variable. The first playback time threshold, the second playback time threshold and the total video duration are the demarcation points for the independent variable values of the four segment functions. When the playback time is less than the first playback time threshold, the basic probability density function is the first segment function, that is, the probability distribution curve function. When the playback time is greater than or equal to the first playback time threshold and less than the second playback time threshold, the basic probability density function is the second segment function, that is, the linear function. When the playback time is greater than or equal to the second playback time threshold and less than the total video duration, the basic probability density function is the third segment function, that is, the first constant function. When the playback time is equal to the total video duration, the basic probability density function is the fourth segment function, that is, the second constant function.
[0079] The probability distribution curve function may be a function fitted using a probability distribution curve. The probability distribution may be a lognormal distribution, an inverse Gaussian distribution, a gamma distribution, a beta distribution, or a normal distribution. The linear function may be, but is not limited to, a cubic linear function. The first constant function is a straight line parallel to the horizontal axis when the playback time is within the range of the second playback time threshold and the total video time. The second constant function is a coordinate point at which the playback time is equal to the total video time. The second constant function may also refer to the probability of video playback completion, i.e., the completion rate. See Figure 3 , the second constant function is much larger than the first constant function.
[0080] It should be noted that Figure 3 The reason why the fourth segment of the function is a line segment instead of a coordinate point is that the playback time probability density function corresponds to a total playback time interval, so the fourth segment of the function, namely the completion rate, is a line segment within the total playback time interval, such as 5s, but for each video in this interval, the fourth segment of the function is a coordinate point.
[0081] Exemplarily, the function adjustment coefficients may include: a first adjustment coefficient corresponding to the first segment function, a second adjustment coefficient corresponding to the second segment function, a third adjustment coefficient corresponding to the third segment function, and a fourth adjustment coefficient corresponding to the fourth segment function.
[0082] Specifically, each segment function in the basic probability density function corresponds to an adjustment coefficient, which is used to adjust the corresponding segment function, so as to obtain the corresponding segment function in the playback duration probability density function. Among them, the first adjustment coefficient can be obtained by dividing the first segment function in the basic probability density function and the first segment function in the playback duration probability density function. The second adjustment coefficient can be obtained by dividing the second segment function in the basic probability density function and the second segment function in the playback duration probability density function. The third segment function and the fourth segment function are both constant functions, so the third adjustment coefficient and the fourth adjustment coefficient can both be 1, without adjustment.
[0083] S230: Determine a target function adjustment coefficient corresponding to the target video based on the total duration of the target video and the function adjustment coefficient corresponding to the total duration of each video.
[0084] Specifically, the target video total duration and the video total duration interval can be compared to determine the target video total duration interval in which the target video total duration is located, and the function adjustment coefficient corresponding to the target video total duration interval is determined as the target function adjustment coefficient.
[0085] S240: Determine a target playback duration probability density function corresponding to the target video based on the basic probability density function corresponding to the playback duration and the target function adjustment coefficient.
[0086] Specifically, the basic probability density function and the target function adjustment coefficient can be multiplied to obtain the target playback time probability density function. For example, when the basic probability density function includes the first segment function, the second segment function, the third segment function and the fourth segment function, the first segment function in the target playback time probability density function is: when the playback time is less than the first playback time threshold, the multiplication result of the first segment function and the target first adjustment coefficient. The second segment function in the target playback time probability density function is: when the playback time is greater than or equal to the first playback time threshold and less than the second playback time threshold, the multiplication result of the second segment function and the target second adjustment coefficient. The third segment function in the target playback time probability density function is: when the playback time is greater than or equal to the second playback time threshold and less than the total video duration, the multiplication result of the third segment function and the target third adjustment coefficient. The fourth segment function in the target playback time probability density function is: when the playback time is equal to the total video duration, the multiplication result of the fourth segment function and the target fourth adjustment coefficient.
[0087] S250: Determine a target estimated playback time corresponding to the target video based on the current playback time, the total playback time of the target video, and a target playback time probability density function.
[0088] S260: Determine a target cache duration threshold corresponding to the target video based on the target estimated playback duration, and control downloading of the target video based on the target cache duration threshold.
[0089] The technical solution of the disclosed embodiment obtains the basic probability density function corresponding to the playback duration and the function adjustment coefficient corresponding to each video total duration interval, determines the target function adjustment coefficient corresponding to the target video based on the total duration of the target video and the function adjustment coefficient corresponding to the total duration of each video, and determines the target playback duration probability density function corresponding to the target video based on the basic probability density function corresponding to the playback duration and the target function adjustment coefficient, thereby using the basic probability density function and the function adjustment coefficient to characterize the playback duration probability density function, which can reduce redundant parameters, reduce the amount of transmitted data, and further save transmission costs.
[0090] Figure 4 This is a flow chart of another video download control method provided by the disclosed embodiment. Based on the above disclosed embodiments, the disclosed embodiment optimizes the step of "determining the target cache duration threshold corresponding to the target video based on the target estimated playback duration". The explanations of the terms that are the same or corresponding to the above disclosed embodiments are not repeated here.
[0091] like Figure 4 As shown, the video download control method specifically includes the following steps:
[0092] S410, obtaining the current playing time of the target video and the total playing time of the target video;
[0093] S420: Determine a target playback duration probability density function corresponding to the target video.
[0094] S430: Determine a target estimated playback time corresponding to the target video based on the current playback time, the total playback time of the target video, and a target playback time probability density function.
[0095] S440: Obtain a target video bit rate and a current download network speed corresponding to the target video.
[0096] The target video bit rate may refer to the average bit rate of the target video. The current download network speed may refer to the network speed for downloading the target video at the current moment.
[0097] S450: Determine a target cache duration threshold corresponding to the target video based on the target estimated playback duration, the target video bit rate, and the current download network speed.
[0098] Specifically, the target estimated playback duration can be further adjusted based on the target video bit rate and the current download network speed to obtain the target cache duration threshold corresponding to the target video, so that the determined cache duration threshold is more in line with reality, further improving the accuracy of the cache duration threshold, further avoiding downloading too much useless video data, and further saving download costs. For example, if the current download network speed is better than the target video bit rate and the target video can be downloaded quickly, the target estimated playback duration can be directly used as the target cache duration threshold. If the current download network speed is poor compared to the target video bit rate and the target video cannot be downloaded quickly, the user may quit watching before the target estimated playback duration due to network speed reasons. At this time, a target cache duration threshold that is lower than the target estimated playback duration can be determined. This can further avoid downloading too much video data.
[0099] Exemplarily, S450 may include: determining a ratio result between a current download network speed and a target video bit rate; and determining a target cache duration threshold corresponding to the target video based on the ratio result and the target estimated playback duration.
[0100] Specifically, the current download network speed can be divided by the target video bit rate to obtain a ratio result. If the ratio result is less than 1, it indicates that the network speed is poor. At this time, the difference between 1 and the ratio result can be used as the weight coefficient, and the target estimated playback time can be multiplied by the weight coefficient. The multiplication result is used as the target cache time threshold corresponding to the target video. If the ratio result is greater than or equal to 1, it indicates that the network speed is good. At this time, the target estimated playback time can be directly used as the target cache time threshold.
[0101] S460: Control the downloading of the target video based on the target cache duration threshold.
[0102] The technical solution of the disclosed embodiment further adjusts the target estimated playback time based on the target video bit rate and the current download network speed to obtain the target cache time threshold corresponding to the target video, thereby making the determined cache time threshold more realistic, further improving the accuracy of the cache time threshold, and further avoiding downloading too much useless video data, saving download costs.
[0103] Figure 5 A schematic diagram of the structure of a video download control device provided by an embodiment of the present disclosure is shown in FIG. Figure 5 As shown, the device specifically includes: a duration acquisition module 510, a probability density function determination module 520, a play duration estimation module 530 and a video download control module 540.
[0104] Among them, the duration acquisition module 510 is used to obtain the current playback duration and the total duration of the target video; the probability density function determination module 520 is used to determine the target playback duration probability density function corresponding to the target video; the playback duration estimation module 530 is used to determine the target estimated playback duration corresponding to the target video based on the current playback duration, the total duration of the target video and the target playback duration probability density function; the video download control module 540 is used to determine the target cache duration threshold corresponding to the target video based on the target estimated playback duration, and control the download of the target video based on the target cache duration threshold.
[0105] The technical solution provided by the embodiment of the present disclosure determines a target playback time probability density function corresponding to the target video based on the total target video time of the target video; determines a target estimated playback time when the target video exits playback based on the current playback time of the target video, the total target video time and the target playback time probability density function; determines a target cache time threshold corresponding to the target video based on the target estimated playback time; and controls the download of the target video based on the target cache time threshold, so that the download cache time of the target video can be controlled not to exceed the target cache time threshold, thereby ensuring the video fluency while avoiding downloading and caching too much video data, saving download costs.
[0106] Based on the above technical solution, the probability density function determination module 520 includes:
[0107] A probability density function acquisition unit, used to acquire a playback time probability density function corresponding to each video total time interval, wherein the playback time probability density function is determined by fitting based on the historical playback time corresponding to the historical video, and the total video time of the historical video is in the corresponding video total time interval;
[0108] The probability density function determination unit is used to determine the target playback duration probability density function corresponding to the target video based on the total duration of the target video and the playback duration probability density function corresponding to each video total duration interval.
[0109] On the basis of the above technical solutions, the probability density function acquisition unit is specifically used for:
[0110] Obtain a basic probability density function corresponding to the playback duration and a function adjustment coefficient corresponding to each video total duration interval, wherein the function adjustment coefficient is determined based on the playback duration probability density function corresponding to each video total duration interval and the basic probability density function.
[0111] On the basis of the above technical solutions, the probability density function determination unit is specifically used for:
[0112] Based on the function adjustment coefficient corresponding to the total duration of the target video and each video, the target function adjustment coefficient corresponding to the target video is determined; based on the basic probability density function corresponding to the playback duration and the target function adjustment coefficient, the target playback duration probability density function corresponding to the target video is determined.
[0113] On the basis of the above technical solutions, the basic probability density function includes: a first segment function, a second segment function, a third segment function and a fourth segment function, wherein the first segment function is a probability distribution curve function whose playback time is less than a first playback time threshold, the second segment function is a linear function whose playback time is greater than or equal to the first playback time threshold and less than a second playback time threshold, the third segment function is a first constant function whose playback time is greater than or equal to the second playback time threshold and less than the total video duration; the fourth segment function is a second constant function whose playback time is equal to the total video duration;
[0114] The function adjustment coefficients include: a first adjustment coefficient corresponding to the first segment function, a second adjustment coefficient corresponding to the second segment function, a third adjustment coefficient corresponding to the third segment function, and a fourth adjustment coefficient corresponding to the fourth segment function.
[0115] Based on the above technical solutions, the playback duration estimation module 530 includes:
[0116] A first probability determination unit, configured to determine a first probability that the playback duration is less than or equal to the current playback duration based on the target playback duration probability density function and the current playback duration;
[0117] A playback duration expectation determination unit, configured to determine the playback duration expectation based on the target playback duration probability density function, the current playback duration, and the target video total duration;
[0118] A target estimated playback duration determination unit is used to determine a target estimated playback duration corresponding to the target video based on the first probability and the playback duration expectation.
[0119] On the basis of the above technical solutions, the target estimated playback time determination unit is specifically used to:
[0120] Based on the first probability, determine a second probability that the playback duration is greater than the current playback duration; and determine the ratio of the expected playback duration to the second probability as the target estimated playback duration corresponding to the target video.
[0121] Based on the above technical solutions, the video download control module 540 includes:
[0122] An information acquisition unit, used to acquire a target video bit rate and a current download network speed corresponding to the target video;
[0123] The target cache duration threshold determination unit is used to determine the target cache duration threshold corresponding to the target video based on the target estimated playback duration, the target video bit rate and the current download network speed.
[0124] On the basis of the above technical solutions, the target cache duration threshold determination unit is specifically used to:
[0125] Determine a ratio result between a current download network speed and the target video bit rate; and determine a target cache duration threshold corresponding to the target video based on the ratio result and the target estimated playback duration.
[0126] Based on the above technical solutions, the video download control module 540 is specifically used for:
[0127] If the current cache duration of the target video is less than the target cache duration threshold, the to-be-downloaded segments in the target video are downloaded and the downloaded segment data are cached; if the current cache duration of the target video is greater than or equal to the target cache duration threshold, the downloading of the to-be-downloaded segments in the target video is stopped.
[0128] The video download control device provided in the embodiments of the present disclosure can execute the video download control method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects for executing the video download control method.
[0129] It is worth noting that the various units and modules included in the above-mentioned device 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 protection scope of the embodiments of the present disclosure.
[0130] Figure 6 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Figure 6 , which shows an electronic device (eg, Figure 6 The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 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.
[0131] like Figure 6 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An edit / output (I / O) interface 505 is also connected to the bus 504.
[0132] Typically, the following devices may be connected to the I / O interface 505: an input device 506 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 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 6The electronic device 500 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.
[0133] 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 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0134] 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.
[0135] The electronic device provided in the embodiment of the present disclosure and the video download control method provided in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0136] The embodiment of the present disclosure provides a computer storage medium on which a computer program is stored. When the program is executed by a processor, the video download control method provided by the above embodiment is implemented.
[0137] 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.
[0138] 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.
[0139] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.
[0140] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains the current playback time and the total duration of the target video; determines the target playback time probability density function corresponding to the target video; determines the target estimated playback time corresponding to the target video based on the current playback time, the total duration of the target video and the target playback time probability density function; determines the target cache time threshold corresponding to the target video based on the target estimated playback time, and controls the download of the target video based on the target cache time threshold.
[0141] 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).
[0142] 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.
[0143] 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, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0144] 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.
[0145] 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.
[0146] According to one or more embodiments of the present disclosure, [Example 1] provides a video download control method, including:
[0147] Get the current playback time and total duration of the target video;
[0148] Determine a target playback duration probability density function corresponding to the target video;
[0149] Determine a target estimated playback time corresponding to the target video based on the current playback time, the total playback time of the target video, and the target playback time probability density function;
[0150] Based on the target estimated playback duration, a target cache duration threshold corresponding to the target video is determined, and based on the target cache duration threshold, downloading of the target video is controlled.
[0151] According to one or more embodiments of the present disclosure, [Example 2] provides a video download control method, further comprising:
[0152] Optionally, determining a target playback duration probability density function corresponding to the target video includes:
[0153] Obtaining a playback duration probability density function corresponding to each video total duration interval, wherein the playback duration probability density function is determined by fitting based on the historical playback duration corresponding to the historical videos, and the total video duration of the historical videos is within the corresponding video total duration interval;
[0154] Based on the total duration of the target video and the playback duration probability density function corresponding to each total duration interval of the video, a target playback duration probability density function corresponding to the target video is determined.
[0155] According to one or more embodiments of the present disclosure, [Example 3] provides a video download control method, further comprising:
[0156] Optionally, obtaining the playback duration probability density function corresponding to each video total duration interval includes:
[0157] Obtain a basic probability density function corresponding to the playback duration and a function adjustment coefficient corresponding to each video total duration interval, wherein the function adjustment coefficient is determined based on the playback duration probability density function corresponding to each video total duration interval and the basic probability density function.
[0158] According to one or more embodiments of the present disclosure, [Example 4] provides a video download control method, further comprising:
[0159] Optionally, determining a target playback duration probability density function corresponding to the target video based on the total duration of the target video and the playback duration probability density function corresponding to each total duration interval of the video includes:
[0160] Determine the target function adjustment coefficient corresponding to the target video based on the total duration of the target video and the function adjustment coefficient corresponding to the total duration of each video;
[0161] Based on the basic probability density function corresponding to the playback duration and the target function adjustment coefficient, a target playback duration probability density function corresponding to the target video is determined.
[0162] According to one or more embodiments of the present disclosure, [Example 5] provides a video download control method, further comprising:
[0163] Optionally, the basic probability density function includes: a first segment function, a second segment function, a third segment function and a fourth segment function, wherein the first segment function is a probability distribution curve function whose playback time is less than a first playback time threshold, the second segment function is a linear function whose playback time is greater than or equal to the first playback time threshold and less than a second playback time threshold, the third segment function is a first constant function whose playback time is greater than or equal to the second playback time threshold and less than the total duration of the video; and the fourth segment function is a second constant function whose playback time is equal to the total duration of the video;
[0164] The function adjustment coefficients include: a first adjustment coefficient corresponding to the first segment function, a second adjustment coefficient corresponding to the second segment function, a third adjustment coefficient corresponding to the third segment function, and a fourth adjustment coefficient corresponding to the fourth segment function.
[0165] According to one or more embodiments of the present disclosure, [Example 6] provides a video download control method, further comprising:
[0166] Optionally, determining a target estimated playback time corresponding to the target video based on the current playback time, the total playback time of the target video, and the target playback time probability density function includes:
[0167] Based on the target playback duration probability density function and the current playback duration, determining a first probability that the playback duration is less than or equal to the current playback duration;
[0168] Determine the expected playback duration based on the target playback duration probability density function, the current playback duration and the total duration of the target video;
[0169] Based on the first probability and the expected playback duration, a target estimated playback duration corresponding to the target video is determined.
[0170] According to one or more embodiments of the present disclosure, [Example 7] provides a video download control method, further comprising:
[0171] Optionally, determining a target estimated playback duration corresponding to the target video based on the first probability and the expected playback duration includes:
[0172] Based on the first probability, determine a second probability that the playback duration is greater than the current playback duration;
[0173] The ratio of the expected playback duration to the second probability is determined as the target estimated playback duration corresponding to the target video.
[0174] According to one or more embodiments of the present disclosure, [Example 8] provides a video download control method, further comprising:
[0175] Optionally, determining a target cache duration threshold corresponding to the target video based on the target estimated playback duration includes:
[0176] Obtain the target video bit rate and current download network speed corresponding to the target video;
[0177] Based on the target estimated playback duration, the target video bit rate and the current download network speed, a target cache duration threshold corresponding to the target video is determined.
[0178] According to one or more embodiments of the present disclosure, [Example 9] provides a video download control method, further comprising:
[0179] Optionally, determining a target cache duration threshold corresponding to the target video based on the target estimated playback duration, the target video bit rate, and the current download network speed includes:
[0180] Determine the ratio between the current download network speed and the target video bit rate;
[0181] Based on the ratio result and the target estimated playback duration, a target cache duration threshold corresponding to the target video is determined.
[0182] According to one or more embodiments of the present disclosure, [Example 10] provides a video download control method, further comprising:
[0183] Optionally, the downloading control of the target video based on the target cache duration threshold includes:
[0184] If the current cache duration of the target video is less than the target cache duration threshold, download the to-be-downloaded segments in the target video and cache the downloaded segment data;
[0185] If the current cache duration of the target video is greater than or equal to the target cache duration threshold, downloading of the to-be-downloaded segments in the target video is stopped.
[0186] According to one or more embodiments of the present disclosure, [Example 11] provides a video download control device, including:
[0187] The duration acquisition module is used to obtain the current playback duration of the target video and the total duration of the target video;
[0188] A probability density function determination module, used to determine a target playback duration probability density function corresponding to the target video;
[0189] A playback duration estimation module, used to determine a target estimated playback duration corresponding to the target video based on the current playback duration, the total duration of the target video and the target playback duration probability density function;
[0190] The video download control module is used to determine a target cache duration threshold corresponding to the target video based on the target estimated playback duration, and to control the download of the target video based on the target cache duration threshold.
[0191] 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.
[0192] 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.
[0193] 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 download control method, characterized in that: include: Get the current playback time and total duration of the target video; Obtaining a playback duration probability density function corresponding to each video total duration interval, wherein the playback duration probability density function is determined by fitting based on the historical playback duration corresponding to the historical videos, and the total video duration of the historical videos is within the corresponding video total duration interval; Determine a target playback duration probability density function corresponding to the target video based on the total duration of the target video and the playback duration probability density function corresponding to each video total duration interval; Based on the target playback duration probability density function and the current playback duration, determining a first probability that the playback duration is less than or equal to the current playback duration; Determine the expected playback duration based on the target playback duration probability density function, the current playback duration and the total duration of the target video; Determine a target estimated playback time corresponding to the target video based on the first probability and the expected playback time; Based on the target estimated playback duration, a target cache duration threshold corresponding to the target video is determined, and based on the target cache duration threshold, downloading of the target video is controlled.
2. The video download control method according to claim 1, characterized in that: The step of obtaining the playback duration probability density function corresponding to each video total duration interval includes: Obtain a basic probability density function corresponding to the playback duration and a function adjustment coefficient corresponding to each video total duration interval, wherein the function adjustment coefficient is determined based on the playback duration probability density function corresponding to each video total duration interval and the basic probability density function.
3. The video download control method according to claim 2, characterized in that: The determining of a target playback duration probability density function corresponding to the target video based on the total duration of the target video and the playback duration probability density function corresponding to each video total duration interval includes: Determine the target function adjustment coefficient corresponding to the target video based on the total duration of the target video and the function adjustment coefficient corresponding to the total duration of each video; Based on the basic probability density function corresponding to the playback duration and the target function adjustment coefficient, a target playback duration probability density function corresponding to the target video is determined.
4. The video download control method according to claim 2, characterized in that: The basic probability density function includes: a first segment function, a second segment function, a third segment function and a fourth segment function, wherein the first segment function is a probability distribution curve function whose playback time is less than a first playback time threshold, the second segment function is a linear function whose playback time is greater than or equal to the first playback time threshold and less than a second playback time threshold, the third segment function is a first constant function whose playback time is greater than or equal to the second playback time threshold and less than the total duration of the video; and the fourth segment function is a second constant function whose playback time is equal to the total duration of the video; The function adjustment coefficients include: a first adjustment coefficient corresponding to the first segment function, a second adjustment coefficient corresponding to the second segment function, a third adjustment coefficient corresponding to the third segment function, and a fourth adjustment coefficient corresponding to the fourth segment function.
5. The video download control method according to claim 1, characterized in that: The step of determining a target estimated playback duration corresponding to the target video based on the first probability and the expected playback duration includes: Based on the first probability, determine a second probability that the playback duration is greater than the current playback duration; The ratio of the expected playback duration to the second probability is determined as the target estimated playback duration corresponding to the target video.
6. The video download control method according to claim 1, characterized in that: The determining, based on the target estimated playback duration, a target cache duration threshold corresponding to the target video includes: Obtain the target video bit rate and current download network speed corresponding to the target video; Based on the target estimated playback duration, the target video bit rate and the current download network speed, a target cache duration threshold corresponding to the target video is determined.
7. The video download control method according to claim 6, characterized in that: The determining, based on the target estimated playback duration, the target video bit rate, and the current download network speed, a target cache duration threshold corresponding to the target video includes: Determine the ratio between the current download network speed and the target video bit rate; Based on the ratio result and the target estimated playback duration, a target cache duration threshold corresponding to the target video is determined.
8. The video download control method according to any one of claims 1 to 7, characterized in that: The download control of the target video based on the target cache duration threshold includes: If the current cache duration of the target video is less than the target cache duration threshold, download the to-be-downloaded segments in the target video and cache the downloaded segment data; If the current cache duration of the target video is greater than or equal to the target cache duration threshold, downloading of the to-be-downloaded segments in the target video is stopped.
9. A video download control device, characterized in that: include: The duration acquisition module is used to obtain the current playback duration of the target video and the total duration of the target video; The probability density function determination module includes: A probability density function acquisition unit, used to acquire a playback time probability density function corresponding to each video total time interval, wherein the playback time probability density function is determined by fitting based on the historical playback time corresponding to the historical video, and the total video time of the historical video is in the corresponding video total time interval; A probability density function determination unit, configured to determine a target playback duration probability density function corresponding to the target video based on the total duration of the target video and the playback duration probability density function corresponding to each video total duration interval; Playing time estimation module, including: A first probability determination unit, configured to determine a first probability that the playback duration is less than or equal to the current playback duration based on the target playback duration probability density function and the current playback duration; A playback duration expectation determination unit, configured to determine the playback duration expectation based on the target playback duration probability density function, the current playback duration, and the target video total duration; a target estimated playback duration determining unit, configured to determine a target estimated playback duration corresponding to the target video based on the first probability and the playback duration expectation; The video download control module is used to determine a target cache duration threshold corresponding to the target video based on the target estimated playback duration, and to control the download of the target video based on the target cache duration threshold.
10. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device 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 download control method as described in any one of claims 1-8.
11. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the video download control method as described in any one of claims 1-8 when executed by a computer processor.
Citation Information
Patent Citations
Magnetic disk dynamic power supply management method based on embedded system
CN101344812A
Continuous video playing method and device
CN105872783A