CN112423125A - Video loading method and device - Google Patents

Video loading method and device Download PDF

Info

Publication number
CN112423125A
CN112423125A CN202011309580.4A CN202011309580A CN112423125A CN 112423125 A CN112423125 A CN 112423125A CN 202011309580 A CN202011309580 A CN 202011309580A CN 112423125 A CN112423125 A CN 112423125A
Authority
CN
China
Prior art keywords
time point
video
target
historical
bandwidth
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011309580.4A
Other languages
Chinese (zh)
Inventor
唐君行
谭兆歆
王盛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN202011309580.4A priority Critical patent/CN112423125A/en
Publication of CN112423125A publication Critical patent/CN112423125A/en
Priority to US17/532,661 priority patent/US11949928B2/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/7867Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title and artist information, manually generated time, location and usage information, user ratings

Abstract

The application provides a video loading method and a video loading device, wherein the video loading method comprises the following steps: receiving a playing instruction, wherein the playing instruction carries a target video identifier; acquiring the receiving time point of the playing instruction and historical all-day bandwidth use information; determining a target preloading strategy corresponding to the receiving time point according to the receiving time point, the historical all-day bandwidth use information and a preset video preloading strategy; and loading the target video corresponding to the target video identification according to the target preloading strategy. By the method, the bandwidth utilization rate of the current time point can be better mastered macroscopically, and then the corresponding preloading strategy is determined, so that the video playing quality can be ensured, and the bandwidth cost can be effectively reduced.

Description

Video loading method and device
Technical Field
The application relates to the technical field of internet, in particular to a video loading method. The application also relates to a video loading device, a computing device and a computer readable storage medium.
Background
With the rapid development of internet technology, users watch network videos through terminals more and more popular, and when users watch network videos through a streaming media player in a terminal, the streaming media player usually loads a part of videos in advance, so that users can watch videos smoothly.
In the existing video loading process, optimization of the preloading length on quality is generally considered, a longer preloading video length brings better playing quality, but the longer preloading video length also brings higher bandwidth cost, and sometimes after the network video is completely loaded, a user does not completely see the video, so that waste of the bandwidth cost is also brought.
Therefore, a better solution to the above problems is needed.
Disclosure of Invention
In view of this, the present application provides a video loading method. The application also relates to a video loading device, a computing device and a computer readable storage medium, which are used for solving the problems of bandwidth cost increase and waste caused by the improvement of the playing quality of the network video in the video loading process in the prior art.
According to a first aspect of embodiments of the present application, there is provided a video loading method, including:
receiving a playing instruction, wherein the playing instruction carries a target video identifier;
acquiring the receiving time point of the playing instruction and historical all-day bandwidth use information;
determining a target preloading strategy corresponding to the receiving time point according to the receiving time point, the historical all-day bandwidth use information and a preset video preloading strategy;
and loading the target video corresponding to the target video identification according to the target preloading strategy.
According to a second aspect of the embodiments of the present application, there is provided a video loading apparatus, including:
the device comprises a receiving module, a playing module and a processing module, wherein the receiving module is configured to receive a playing instruction, and the playing instruction carries a target video identifier;
the acquisition module is configured to acquire the receiving time point of the playing instruction and historical all-day bandwidth use information;
a determining module configured to determine a target preloading strategy corresponding to the receiving time point according to the receiving time point, the historical all-day bandwidth usage information and a preset video preloading strategy;
and the loading module is configured to load the target video corresponding to the target video identification according to the target preloading strategy.
According to a third aspect of embodiments herein, there is provided a computing device comprising:
a memory and a processor;
the memory is to store computer-executable instructions, and the processor is to execute the computer-executable instructions to:
receiving a playing instruction, wherein the playing instruction carries a target video identifier;
acquiring the receiving time point of the playing instruction and historical all-day bandwidth use information;
determining a target preloading strategy corresponding to the receiving time point according to the receiving time point, the historical all-day bandwidth use information and a preset video preloading strategy;
and loading the target video corresponding to the target video identification according to the target preloading strategy.
According to a fourth aspect of embodiments herein, there is provided a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of any of the video loading methods.
According to the video loading method, a playing instruction is received, wherein the playing instruction carries a target video identifier; acquiring the receiving time point of the playing instruction and historical all-day bandwidth use information; determining a target preloading strategy corresponding to the receiving time point according to the receiving time point, the historical all-day bandwidth use information and a preset video preloading strategy; the target video corresponding to the target video identification is loaded according to the target preloading strategy, through the video loading method provided by the application, historical bandwidth use information is compared according to the video playing time point, the preloading strategy corresponding to the current video playing time point is determined, through statistics and utilization of the historical bandwidth use information, the bandwidth utilization rate of the current playing time point can be better mastered macroscopically, and then the corresponding preloading strategy is determined, so that the video playing quality can be ensured, the bandwidth cost can be effectively reduced, and the bandwidth resource waste is avoided.
Drawings
Fig. 1 is a flowchart of a video loading method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of historical all-day bandwidth usage information provided by an embodiment of the present application;
FIG. 3 is a flowchart illustrating a video loading method applied to a video website according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a video loading apparatus according to an embodiment of the present application;
fig. 5 is a block diagram of a computing device according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, without departing from the scope of one or more embodiments of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
First, the noun terms to which one or more embodiments of the present application relate are explained.
The stream media player: by loading the network resource stream and then decoding the played component.
Flow rate: for describing the volume of data, the unit is B (bits).
Bandwidth: the unit for describing the speed of the data stream may be B/S (bits per second), KB/S (kilobytes per second), M/S (megabytes per second).
Bandwidth cost: the streaming media service usually generates a large amount of flow, the flow charging generally has two modes, the charging according to the flow and the charging according to the maximum bandwidth, and when the service volume is large, the bandwidth charging mode is usually adopted.
Preloading: in a streaming media playing scene, network resources are often loaded in advance to ensure playing quality, so that the playing quality can be optimized, but bandwidth cost is increased at the same time.
In the present application, a video loading method is provided, and the present application relates to a video loading apparatus, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments one by one.
Fig. 1 shows a flowchart of a video loading method according to an embodiment of the present application, which specifically includes the following steps:
step 102: and receiving a playing instruction, wherein the playing instruction carries a target video identifier.
The playing instruction is a playing instruction of the target video, the playing instruction carries a target video identifier, the target video can be determined and played according to the target video identifier, the target video identifier can be a target video title, can also be a unique code which is correspondingly stored in the target video, and the like.
In practical application, a user selects a video resource on a network in a video resource library through browsing or searching and the like, after finding out video content that the user wants to watch, a play command is sent to a video server by clicking a play button corresponding to the video, a target video identifier corresponding to a target video is carried in the command, and the server can play the target video in a streaming media player in a terminal used by the user.
In a specific embodiment provided by the present application, for example, a play instruction sent when a user watches a target video a through a streaming media player is received, where the play instruction carries a target video identifier a.
Step 104: and acquiring the receiving time point of the playing instruction and historical all-day bandwidth use information.
And the receiving time point of the playing instruction is the time point when the user clicks to play and watches the target video, and if the receiving user sends the playing instruction, the receiving user sends the playing instruction in the following steps: 08 minutes, the receiving time point is 8: 08, if the receiving user sends a playing instruction, 17: 09 minutes, the receiving time point is 17: and 09 points.
The historical all-day bandwidth usage information is a macroscopic global bandwidth trend in one day, referring to fig. 2, fig. 2 shows a schematic diagram of the historical all-day bandwidth usage information provided by an embodiment of the present application, and as shown in fig. 2, in the historical all-day bandwidth usage information, a bandwidth usage valley is reached at about 3 am, a first peak is reached between 9 and 15 am, and a second peak is reached between 18 and 22 am.
Specifically, the historical all-day bandwidth utilization information is obtained by the following steps:
counting the bandwidth use information of each time period of each day in historical preset days;
and determining historical all-day bandwidth use information according to the bandwidth use information of each time period of each day in historical preset days.
In practical application, the preset days can be 10 days, 20 days, 1 month, 3 months and the like by counting the bandwidth use information of each time period of each day in the preset days in past history, and the specific set numerical value is subject to practical application.
After the bandwidth use information of each time period of each day is counted, the historical all-day bandwidth use information can be obtained by performing statistical analysis on the bandwidth use information of each time period, and is obtained according to the statistics of the bandwidth use information of preset days in the past history.
In a specific embodiment provided by the present application, following the above example, the receiving time point of the play instruction is obtained as 21: 23 points, historical all-day bandwidth usage information is shown in fig. 2.
Step 106: and determining a target preloading strategy corresponding to the receiving time point according to the receiving time point, the historical all-day bandwidth use information and a preset video preloading strategy.
The preset video preloading strategy is a reference for determining the target preloading strategy according to the receiving time point and the historical all-day bandwidth use information, if the bandwidth use amount of the time point is found to be higher according to the receiving time point and the historical all-day bandwidth use information, users are concentrated, in order to guarantee the watching experience of most users, the time length of each target video preloading can be limited to a certain extent, if the bandwidth use amount of the time point is found to be lower according to the receiving time point and the historical all-day bandwidth use information, and the users are fewer, the time length of the target video preloading is not limited.
Specifically, determining a target preloading strategy corresponding to the receiving time point according to the receiving time point, the historical all-day bandwidth usage information and a preset video preloading strategy includes the following steps S1062 to S1066:
s1062, determining historical time point bandwidth utilization information corresponding to the receiving time point according to the receiving time point and the historical all-day bandwidth utilization information.
The historical time point broadband usage information is usage information determined at a certain time point in the historical all-day bandwidth usage information, and a specific time point is determined by a receiving time point, for example, the receiving time point is 8: 00, then determine 8 in the historical all-day bandwidth usage information: 00, and for example, the receiving time point is 21: 00, then determine 21 in the historical all-day bandwidth usage information: 00 bandwidth usage information at this point in time.
In an embodiment provided by the present application, following the above example, according to the receiving time point 21: 23 points and historical all-day bandwidth usage information as shown in FIG. 2 determines 21: the bandwidth use information of the historical time point corresponding to 23 points is 92M/S.
S1064, determining the bandwidth utilization rate corresponding to the receiving time point according to the historical time point bandwidth utilization information and the historical all-day bandwidth utilization information.
In the bandwidth charging method of practical application, a 95-peak charging method is usually adopted, that is, charging is performed according to ninety-five percent of the bandwidth peak value operated every day, so that the important factor influencing the bandwidth cost is the peak value of the bandwidth usage, and the valley of the bandwidth usage does not influence the bandwidth cost.
Based on this, after determining the historical time point bandwidth utilization information, the bandwidth utilization rate corresponding to the time point can be determined according to the historical all-day bandwidth utilization information, and the bandwidth utilization rate refers to the proportion of the historical time point bandwidth utilization information corresponding to the receiving time point in the total bandwidth amount. If the bandwidth usage corresponding to the receiving time point is relatively close to the peak value, in order to not further increase the bandwidth cost, a corresponding mode of shortening the preloading length can be adopted, and the usage rate of the bandwidth is reduced.
Specifically, determining the bandwidth utilization rate corresponding to the receiving time point according to the historical time point bandwidth utilization information and the historical all-day bandwidth utilization information includes:
determining a bandwidth peak value according to the historical all-day bandwidth use information;
and determining the bandwidth utilization rate corresponding to the receiving time point according to the historical time point bandwidth utilization information and the bandwidth peak value.
In practical application, according to the historical all-day bandwidth utilization information, a bandwidth peak value of bandwidth utilization in one day, namely a highest bandwidth point (i.e. peak value) of bandwidth utilization in one day can be determined, and according to the historical time point bandwidth utilization information and the bandwidth peak value, the bandwidth utilization rate at the moment of receiving an actual point can be determined.
In one embodiment provided in the present application, following the above example, the receiving time point 21: the bandwidth utilization information at the historical time point corresponding to the 23-point score is 92M/S, the highest peak of the all-day bandwidth utilization information can be determined to be 100M/S according to the historical all-day bandwidth utilization information, and therefore it can be determined that at the receiving time point 21: a bandwidth utilization of 92% corresponds to 23 minutes.
S1066, determining a target preloading strategy corresponding to the receiving time point according to the bandwidth utilization rate and a preset video preloading strategy.
Determining a target preloading strategy corresponding to the receiving time point according to the bandwidth utilization rate and a preset video preloading strategy, wherein the specific mode of the preset video preloading strategy can be set according to actual conditions, such as different preloading durations corresponding to different bandwidth utilization rates; or if the bandwidth utilization rate exceeds the preset threshold, the preloading duration is not limited, and the like.
Specifically, determining a target preloading strategy corresponding to the receiving time point according to the bandwidth utilization rate and a preset video preloading strategy includes:
determining a target preloading strategy corresponding to the receiving time point as a first preloading strategy under the condition that the bandwidth utilization rate is greater than or equal to a preset threshold value;
and under the condition that the bandwidth utilization rate is smaller than the preset threshold value, determining that the target preloading strategy corresponding to the receiving time point is a second preloading strategy.
Here, taking a preset threshold as an example, when the bandwidth utilization is greater than or equal to the preset threshold, it indicates that there are more people using the bandwidth at this time, and the bandwidth usage is close to the peak value, it is determined that the target preload policy is the first preload policy, and the first preload policy is a policy for limiting the preload duration.
When the bandwidth utilization rate is smaller than the preset threshold, it indicates that there are fewer people using the bandwidth at present, and the bandwidth usage is far short of the bandwidth peak value, and it may be determined that the target preloading policy corresponding to the receiving time point at this time is the second preloading policy, and the second preloading policy is a policy that the preloading duration is not limited, that is, the target video is completely preloaded.
In a specific embodiment provided by the present application, the following takes the above example, taking the preset threshold as 70% as an example, at the receiving time point 21: the 23 point corresponds to a bandwidth utilization of 92%, when the first preload strategy is determined to limit the preload duration to 5 minutes.
In another embodiment provided herein, still taking the preset threshold as 70% as an example, in the morning of 6: the bandwidth utilization rate at 00 is 40%, and at this time, the target preloading strategy is determined to be the second loading strategy, and the preloading duration does not need to be limited.
In practical application, determining the target preload policy corresponding to the receiving time point as a second preload policy includes:
determining the playing time length corresponding to the target video according to the target video identifier;
and under the condition that the playing time length is less than the preset time length, determining the target preloading strategy corresponding to the receiving time point as a second preloading strategy.
In application, the size and the playing time of a target video are different, some videos are tens of seconds, some videos are minutes, some videos are tens of minutes or tens of minutes, some movies may even have several hours, a user may not finish watching a video with a long time at one time, for example, a movie with a time of two hours, the user may only watch 50 minutes at one time, and if the movie is completely preloaded, the waste of bandwidth cost is also caused.
In a specific embodiment provided by the present application, following the above example, the receiving time point is 6: 00, in the morning 6: the bandwidth utilization rate at 00 is 40%, it is determined that the playing time corresponding to the target video is 23 minutes, the system preset time is 50 minutes, and at this time, the playing time is less than the preset time, and then the target preloading strategy can be determined to be a second preloading strategy.
Optionally, the method further includes:
and under the condition that the playing time length is greater than or equal to the preset time length, determining that the target preloading strategy corresponding to the receiving time point is a third preloading strategy.
If the playing time corresponding to the target video is longer than or equal to the preset time, the user may not be able to view all the videos at one time, and if the target video is completely loaded, the resource waste is caused, then it is determined that the target preload policy is a third preload policy, which is a preload policy between the first preload policy and the second preload policy, in particular although the preload duration of the target video is also limited, however, the limited time may be longer than the limited preload duration of the first preload policy, for example, the first preload policy is to limit the preload duration to 5 minutes, the second preload policy is not to limit the preload duration, and the third preload policy may be to limit the preload duration to 20 minutes, where the specific durations of the first preload duration and the third preload duration are subject to actual application.
In another specific embodiment provided by the present application, following the above example, the receiving time point is 9 a.m.: 00, in the morning 9: the bandwidth utilization rate at 00 is 60%, the playing time corresponding to the target video is determined to be 123 minutes according to the target video identifier a, the system preset time is 50 minutes, and at this time, the playing time is greater than the preset time, so that the target preloading strategy can be determined to be a third preloading strategy.
Step 108: and loading the target video corresponding to the target video identification according to the target preloading strategy.
After the target preloading strategy is determined, the target video corresponding to the target video identification can be preloaded according to the target preloading strategy.
In practical applications, the method further comprises:
monitoring the playing time point of the target video;
determining a playing preloading strategy corresponding to the playing time point according to the playing time point, the historical all-day bandwidth use information and a preset video preloading strategy;
and loading the target video according to the playing preloading strategy.
In practical application, the video playing is a continuous time, the playing time point of a target video can be monitored in real time, a corresponding playing preloading strategy is determined in a preset video loading strategy according to the playing time point and historical all-day bandwidth utilization information, for example, when a user finds that the bandwidth utilization rate corresponding to the playing time point is smaller than a preset threshold value through monitoring in the process of loading the target video by using a first preloading strategy, the playing preloading strategy can be converted into a second preloading strategy in real time, and the target video is loaded according to the second preloading strategy, so that better viewing experience is provided for the user.
In another embodiment provided herein, the method comprises the steps of, at 22: starting to play the target video A at 30 minutes, loading the target video A according to a first preloading strategy, limiting the preloading duration to be 5 minutes, and determining that the video A is in a range of 23 ℃ by monitoring the playing time in real time: when 00, the bandwidth utilization rate is lower than the preset threshold, and at this time, the playing preloading strategy can be converted into a second preloading strategy, namely unlimited preloading duration, until the target video A is preloaded.
According to the video loading method, a playing instruction is received, wherein the playing instruction carries a target video identifier; acquiring the receiving time point of the playing instruction and historical all-day bandwidth use information; determining a target preloading strategy corresponding to the receiving time point according to the receiving time point, the historical all-day bandwidth use information and a preset video preloading strategy; the target video corresponding to the target video identification is loaded according to the target preloading strategy, through the video loading method provided by the application, historical bandwidth use information is compared according to the video playing time point, the preloading strategy corresponding to the current video playing time point is determined, through statistics and utilization of the historical bandwidth use information, the bandwidth utilization rate of the current playing time point can be better mastered macroscopically, and then the corresponding preloading strategy is determined, so that the video playing quality can be ensured, the bandwidth cost can be effectively reduced, and the bandwidth resource waste is avoided.
Secondly, the bandwidth utilization rate corresponding to the playing time point is monitored in real time in the playing process, a target preloading strategy can be converted in real time, and the watching experience of a user is improved.
The following description further describes the video loading method with reference to fig. 3, by taking an application of the video loading method provided by the present application in a certain video website as an example. Fig. 3 shows a processing flow chart of a video loading method applied to a certain video website according to an embodiment of the present application, which specifically includes the following steps:
step 302: and receiving a playing instruction, wherein the playing instruction carries a target video identifier.
In the embodiment provided by the application, a play instruction clicked by a user on a certain video website is received, and the play instruction carries a target video identifier M.
Step 304: and acquiring the receiving time point of the playing instruction and historical all-day bandwidth use information.
In the embodiment provided by the present application, the receiving time point for obtaining the play instruction is 22: and 19, acquiring historical all-day bandwidth utilization information.
Step 306: and determining historical time point bandwidth use information corresponding to the receiving time point according to the receiving time point and the historical all-day bandwidth use information.
In the embodiments provided herein, according to the reception time point 22: 19 determine the reception time point 22 in the historical all-day bandwidth usage information: the bandwidth utilization information of the historical time point corresponding to the 19 is 78M/S.
Step 308: and determining the bandwidth utilization rate corresponding to the receiving time point according to the historical time point bandwidth utilization information and the historical all-day bandwidth utilization information.
In the embodiment provided by the present application, the bandwidth peak value is determined to be 100M/S according to the historical all-day bandwidth usage information, and then the receiving time point 22 is determined: 19 corresponds to a bandwidth utilization of 78%.
Step 310: and determining a target preloading strategy corresponding to the receiving time point according to the bandwidth utilization rate and a preset video preloading strategy.
In the embodiment provided by the present application, the preset threshold is 70%, and at the receiving time point 22: and when the bandwidth utilization rate corresponding to the target video bandwidth is 78% and is greater than the preset threshold value, determining that the target preloading strategy is the first preloading strategy, namely limiting the preloading time of the target video to 3 minutes.
Step 312: and loading the target video corresponding to the target video identification according to the target preloading strategy.
In the embodiment provided by the application, the target video M corresponding to the target video identifier M is loaded according to the first preloading strategy, that is, when the target video M is played, the video content 3 minutes after the target video M is preloaded, so as to improve the viewing experience of the user.
Step 314: and monitoring the playing time point of the target video.
In the embodiment provided by the application, the playing time point of the target video is monitored in real time.
Step 316: and determining a playing preloading strategy corresponding to the playing time point according to the playing time point, the historical all-day bandwidth use information and a preset video preloading strategy.
In the embodiment provided by the present application, when the target video M is played to 22: 30 hours, play time point 22: the bandwidth utilization information of the historical time point corresponding to the playing time point 30 is 67M/S, and then the playing time point 22 is determined: and if the bandwidth utilization rate corresponding to the playing time point 30 is 67% and is less than the preset threshold value 70%, determining that the playing preloading strategy corresponding to the playing time point is a second preloading strategy, that is, not limiting the preloading duration.
Step 318: and loading the target video according to the playing preloading strategy.
In the examples provided herein, at 22: and 30, starting a second preloading strategy to load the target video M, namely not limiting the preloading duration of the target video M, and further improving the watching experience of a user.
According to the video loading method, a playing instruction is received, wherein the playing instruction carries a target video identifier; acquiring the receiving time point of the playing instruction and historical all-day bandwidth use information; determining a target preloading strategy corresponding to the receiving time point according to the receiving time point, the historical all-day bandwidth use information and a preset video preloading strategy; the target video corresponding to the target video identification is loaded according to the target preloading strategy, through the video loading method provided by the application, historical bandwidth use information is compared according to the video playing time point, the preloading strategy corresponding to the current video playing time point is determined, through statistics and utilization of the historical bandwidth use information, the bandwidth utilization rate of the current playing time point can be better mastered macroscopically, and then the corresponding preloading strategy is determined, so that the video playing quality can be ensured, the bandwidth cost can be effectively reduced, and the bandwidth resource waste is avoided.
Corresponding to the above method embodiment, the present application further provides an embodiment of a video loading apparatus, and fig. 4 shows a schematic structural diagram of a video loading apparatus provided in an embodiment of the present application. As shown in fig. 4, the apparatus includes:
a receiving module 402, configured to receive a play instruction, where the play instruction carries a target video identifier;
an obtaining module 404 configured to obtain a receiving time point of the play instruction and historical all-day bandwidth usage information;
a determining module 406, configured to determine a target preloading policy corresponding to the receiving time point according to the receiving time point, the historical all-day bandwidth usage information, and a preset video preloading policy;
a loading module 408 configured to load a target video corresponding to the target video identifier according to the target preloading policy.
Optionally, the obtaining module 404 is further configured to:
counting the bandwidth use information of each time period of each day in historical preset days;
and determining historical all-day bandwidth use information according to the bandwidth use information of each time period of each day in historical preset days.
Optionally, the determining module 406 is further configured to:
determining historical time point bandwidth use information corresponding to the receiving time point according to the receiving time point and the historical all-day bandwidth use information;
determining the bandwidth utilization rate corresponding to the receiving time point according to the historical time point bandwidth utilization information and the historical all-day bandwidth utilization information;
and determining a target preloading strategy corresponding to the receiving time point according to the bandwidth utilization rate and a preset video preloading strategy.
Optionally, the determining module 406 is further configured to:
determining a bandwidth peak value according to the historical all-day bandwidth use information;
and determining the bandwidth utilization rate corresponding to the receiving time point according to the historical time point bandwidth utilization information and the bandwidth peak value.
Optionally, the determining module 406 is further configured to:
determining a target preloading strategy corresponding to the receiving time point as a first preloading strategy under the condition that the bandwidth utilization rate is greater than or equal to a preset threshold value;
and under the condition that the bandwidth utilization rate is smaller than the preset threshold value, determining that the target preloading strategy corresponding to the receiving time point is a second preloading strategy.
Optionally, the determining module 406 is further configured to:
determining the playing time length corresponding to the target video according to the target video identifier;
and under the condition that the playing time length is less than the preset time length, determining the target preloading strategy corresponding to the receiving time point as a second preloading strategy.
Optionally, the determining module 406 is further configured to:
and under the condition that the playing time length is greater than or equal to the preset time length, determining that the target preloading strategy corresponding to the receiving time point is a third preloading strategy.
Optionally, the apparatus further comprises:
a monitoring module configured to monitor a play time point of the target video;
the determining module is further configured to determine a playing preloading strategy corresponding to the playing time point according to the playing time point, the historical all-day bandwidth utilization information and a preset video preloading strategy;
the loading module is further configured to load the target video according to the playing preloading strategy.
The video loading device receives a playing instruction, wherein the playing instruction carries a target video identifier; acquiring the receiving time point of the playing instruction and historical all-day bandwidth use information; determining a target preloading strategy corresponding to the receiving time point according to the receiving time point, the historical all-day bandwidth use information and a preset video preloading strategy; the target video corresponding to the target video identification is loaded according to the target preloading strategy, through the video loading device provided by the application, historical bandwidth use information is compared according to the video playing time point, the preloading strategy corresponding to the current video playing time point is determined, through statistics and utilization of the historical bandwidth use information, the bandwidth utilization rate of the current playing time point can be better mastered macroscopically, and then the corresponding preloading strategy is determined, so that the video playing quality can be ensured, the bandwidth cost can be effectively reduced, and the bandwidth resource waste is avoided.
Secondly, the bandwidth utilization rate corresponding to the playing time point is monitored in real time in the playing process, a target preloading strategy can be converted in real time, and the watching experience of a user is improved.
The above is a schematic scheme of a video loading apparatus of this embodiment. It should be noted that the technical solution of the video loading apparatus and the technical solution of the video loading method belong to the same concept, and details that are not described in detail in the technical solution of the video loading apparatus can be referred to the description of the technical solution of the video loading method.
Fig. 5 illustrates a block diagram of a computing device 500 provided according to an embodiment of the present application. The components of the computing device 500 include, but are not limited to, a memory 510 and a processor 520. Processor 520 is coupled to memory 510 via bus 530, and database 550 is used to store data.
Computing device 500 also includes access device 540, access device 540 enabling computing device 500 to communicate via one or more networks 560. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. The access device 540 may include one or more of any type of network interface, e.g., a Network Interface Card (NIC), wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the application, the above-described components of computing device 500 and other components not shown in FIG. 5 may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 5 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 500 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smartphone), wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 500 may also be a mobile or stationary server.
Wherein processor 520 is configured to execute the following computer-executable instructions:
receiving a playing instruction, wherein the playing instruction carries a target video identifier;
acquiring the receiving time point of the playing instruction and historical all-day bandwidth use information;
determining a target preloading strategy corresponding to the receiving time point according to the receiving time point, the historical all-day bandwidth use information and a preset video preloading strategy;
and loading the target video corresponding to the target video identification according to the target preloading strategy.
The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the video loading method belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the video loading method.
An embodiment of the present application further provides a computer-readable storage medium storing computer instructions that, when executed by a processor, are configured to:
receiving a playing instruction, wherein the playing instruction carries a target video identifier;
acquiring the receiving time point of the playing instruction and historical all-day bandwidth use information;
determining a target preloading strategy corresponding to the receiving time point according to the receiving time point, the historical all-day bandwidth use information and a preset video preloading strategy;
and loading the target video corresponding to the target video identification according to the target preloading strategy.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the video loading method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the video loading method.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

Claims (11)

1. A method for video loading, comprising:
receiving a playing instruction, wherein the playing instruction carries a target video identifier;
acquiring the receiving time point of the playing instruction and historical all-day bandwidth use information;
determining a target preloading strategy corresponding to the receiving time point according to the receiving time point, the historical all-day bandwidth use information and a preset video preloading strategy;
and loading the target video corresponding to the target video identification according to the target preloading strategy.
2. The video loading method of claim 1, wherein obtaining historical all-day bandwidth usage information comprises:
counting the bandwidth use information of each time period of each day in historical preset days;
and determining historical all-day bandwidth use information according to the bandwidth use information of each time period of each day in historical preset days.
3. The video loading method of claim 1, wherein determining the target preloading strategy corresponding to the receiving time point according to the receiving time point, the historical all-day bandwidth usage information and a preset video preloading strategy comprises:
determining historical time point bandwidth use information corresponding to the receiving time point according to the receiving time point and the historical all-day bandwidth use information;
determining the bandwidth utilization rate corresponding to the receiving time point according to the historical time point bandwidth utilization information and the historical all-day bandwidth utilization information;
and determining a target preloading strategy corresponding to the receiving time point according to the bandwidth utilization rate and a preset video preloading strategy.
4. The video loading method of claim 3, wherein determining the bandwidth utilization corresponding to the receiving time point according to the historical time point bandwidth usage information and the historical all-day bandwidth usage information comprises:
determining a bandwidth peak value according to the historical all-day bandwidth use information;
and determining the bandwidth utilization rate corresponding to the receiving time point according to the historical time point bandwidth utilization information and the bandwidth peak value.
5. The video loading method according to claim 3, wherein determining the target preloading policy corresponding to the receiving time point according to the bandwidth utilization and a preset video preloading policy comprises:
determining a target preloading strategy corresponding to the receiving time point as a first preloading strategy under the condition that the bandwidth utilization rate is greater than or equal to a preset threshold value;
and under the condition that the bandwidth utilization rate is smaller than the preset threshold value, determining that the target preloading strategy corresponding to the receiving time point is a second preloading strategy.
6. The video loading method of claim 5, wherein determining the target preload policy corresponding to the receive time point as a second preload policy comprises:
determining the playing time length corresponding to the target video according to the target video identifier;
and under the condition that the playing time length is less than the preset time length, determining the target preloading strategy corresponding to the receiving time point as a second preloading strategy.
7. The video loading method of claim 6, wherein the method further comprises:
and under the condition that the playing time length is greater than or equal to the preset time length, determining that the target preloading strategy corresponding to the receiving time point is a third preloading strategy.
8. The video loading method of any one of claims 1-7, wherein the method further comprises:
monitoring the playing time point of the target video;
determining a playing preloading strategy corresponding to the playing time point according to the playing time point, the historical all-day bandwidth use information and a preset video preloading strategy;
and loading the target video according to the playing preloading strategy.
9. A video loading apparatus, comprising:
the device comprises a receiving module, a playing module and a processing module, wherein the receiving module is configured to receive a playing instruction, and the playing instruction carries a target video identifier;
the acquisition module is configured to acquire the receiving time point of the playing instruction and historical all-day bandwidth use information;
a determining module configured to determine a target preloading strategy corresponding to the receiving time point according to the receiving time point, the historical all-day bandwidth usage information and a preset video preloading strategy;
and the loading module is configured to load the target video corresponding to the target video identification according to the target preloading strategy.
10. A computing device, comprising:
a memory and a processor;
the memory is configured to store computer-executable instructions, and the processor is configured to execute the computer-executable instructions to implement the method of:
receiving a playing instruction, wherein the playing instruction carries a target video identifier;
acquiring the receiving time point of the playing instruction and historical all-day bandwidth use information;
determining a target preloading strategy corresponding to the receiving time point according to the receiving time point, the historical all-day bandwidth use information and a preset video preloading strategy;
and loading the target video corresponding to the target video identification according to the target preloading strategy.
11. A computer readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the video loading method of any one of claims 1 to 8.
CN202011309580.4A 2020-11-20 2020-11-20 Video loading method and device Pending CN112423125A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011309580.4A CN112423125A (en) 2020-11-20 2020-11-20 Video loading method and device
US17/532,661 US11949928B2 (en) 2020-11-20 2021-11-22 Video loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011309580.4A CN112423125A (en) 2020-11-20 2020-11-20 Video loading method and device

Publications (1)

Publication Number Publication Date
CN112423125A true CN112423125A (en) 2021-02-26

Family

ID=74773852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011309580.4A Pending CN112423125A (en) 2020-11-20 2020-11-20 Video loading method and device

Country Status (1)

Country Link
CN (1) CN112423125A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113891170A (en) * 2021-11-23 2022-01-04 维沃移动通信有限公司 Downloading method, downloading device, electronic equipment and storage medium
CN114051270A (en) * 2021-11-19 2022-02-15 展讯通信(上海)有限公司 Network connection method and device, computer readable storage medium and terminal equipment
CN115225974A (en) * 2022-07-21 2022-10-21 中国平安人寿保险股份有限公司 Video processing method and device, electronic equipment and storage medium
CN115348460A (en) * 2021-05-13 2022-11-15 北京字节跳动网络技术有限公司 Video preloading method, device, equipment and storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030093530A1 (en) * 2001-10-26 2003-05-15 Majid Syed Arbitrator system and method for national and local content distribution
US20120144444A1 (en) * 2010-12-06 2012-06-07 Hunt Neil D Variable Bit Video Streams for Adaptive Streaming
CN103546540A (en) * 2013-09-26 2014-01-29 传线网络科技(上海)有限公司 Method and system for realizing control of cache data on CDN (content delivery network)
CN105657523A (en) * 2016-01-28 2016-06-08 腾讯科技(深圳)有限公司 Video preloading method and device
CN106210777A (en) * 2015-05-08 2016-12-07 北京大学 Video quality control method
CN106937163A (en) * 2017-03-21 2017-07-07 微鲸科技有限公司 Multimedia preloads method and apparatus
CN106973302A (en) * 2016-01-14 2017-07-21 腾讯科技(深圳)有限公司 A kind of method of foradownloaded video data, apparatus and system
CN109040855A (en) * 2018-09-03 2018-12-18 重庆邮电大学 A kind of wireless DASH streaming media bit rate smooth adaptive transmission method
CN110213627A (en) * 2019-04-23 2019-09-06 武汉理工大学 Flow medium buffer distributor and its working method based on multiple cell user mobility
CN110536179A (en) * 2019-06-28 2019-12-03 三星电子(中国)研发中心 A kind of content distribution system and method
CN110545479A (en) * 2018-05-29 2019-12-06 北京字节跳动网络技术有限公司 Loading control method and device for media playing and storage medium
CN110611829A (en) * 2019-09-11 2019-12-24 北京达佳互联信息技术有限公司 Video preloading method and device, electronic equipment and storage medium
CN110661862A (en) * 2019-09-20 2020-01-07 网宿科技股份有限公司 Method for preheating resource file and central management system
CN111432230A (en) * 2020-03-30 2020-07-17 杭州趣维科技有限公司 Mobile terminal video preloading method

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030093530A1 (en) * 2001-10-26 2003-05-15 Majid Syed Arbitrator system and method for national and local content distribution
US20120144444A1 (en) * 2010-12-06 2012-06-07 Hunt Neil D Variable Bit Video Streams for Adaptive Streaming
CN103546540A (en) * 2013-09-26 2014-01-29 传线网络科技(上海)有限公司 Method and system for realizing control of cache data on CDN (content delivery network)
CN106210777A (en) * 2015-05-08 2016-12-07 北京大学 Video quality control method
CN106973302A (en) * 2016-01-14 2017-07-21 腾讯科技(深圳)有限公司 A kind of method of foradownloaded video data, apparatus and system
CN105657523A (en) * 2016-01-28 2016-06-08 腾讯科技(深圳)有限公司 Video preloading method and device
CN106937163A (en) * 2017-03-21 2017-07-07 微鲸科技有限公司 Multimedia preloads method and apparatus
CN110545479A (en) * 2018-05-29 2019-12-06 北京字节跳动网络技术有限公司 Loading control method and device for media playing and storage medium
CN109040855A (en) * 2018-09-03 2018-12-18 重庆邮电大学 A kind of wireless DASH streaming media bit rate smooth adaptive transmission method
CN110213627A (en) * 2019-04-23 2019-09-06 武汉理工大学 Flow medium buffer distributor and its working method based on multiple cell user mobility
CN110536179A (en) * 2019-06-28 2019-12-03 三星电子(中国)研发中心 A kind of content distribution system and method
CN110611829A (en) * 2019-09-11 2019-12-24 北京达佳互联信息技术有限公司 Video preloading method and device, electronic equipment and storage medium
CN110661862A (en) * 2019-09-20 2020-01-07 网宿科技股份有限公司 Method for preheating resource file and central management system
CN111432230A (en) * 2020-03-30 2020-07-17 杭州趣维科技有限公司 Mobile terminal video preloading method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115348460A (en) * 2021-05-13 2022-11-15 北京字节跳动网络技术有限公司 Video preloading method, device, equipment and storage medium
CN114051270A (en) * 2021-11-19 2022-02-15 展讯通信(上海)有限公司 Network connection method and device, computer readable storage medium and terminal equipment
CN113891170A (en) * 2021-11-23 2022-01-04 维沃移动通信有限公司 Downloading method, downloading device, electronic equipment and storage medium
CN113891170B (en) * 2021-11-23 2024-05-03 维沃移动通信有限公司 Downloading method, downloading device, electronic equipment and storage medium
CN115225974A (en) * 2022-07-21 2022-10-21 中国平安人寿保险股份有限公司 Video processing method and device, electronic equipment and storage medium
CN115225974B (en) * 2022-07-21 2024-04-05 中国平安人寿保险股份有限公司 Video processing method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112423125A (en) Video loading method and device
CN112423123B (en) Video loading method and device
CN113068052B (en) Method for determining brushing amount of live broadcast room, live broadcast method and data processing method
CN112423127A (en) Video loading method and device
CN107247733B (en) Video clip watching popularity analysis method and system
CN113676754B (en) Live video transcoding method and device
CN109936637B (en) Message push frequency control method, device, server and medium
WO2023185175A1 (en) Video processing method and apparatus
CN114466216B (en) Live broadcast room display method, server side and live broadcast client side
CN110502702B (en) User behavior prediction method and device
CN113891114B (en) Transcoding task scheduling method and device
CN113891175B (en) Live broadcast push flow method, device and system
CN114157897B (en) Virtual live broadcast control method and device
CN113055692A (en) Data processing method and device
WO2023077813A1 (en) Method and apparatus for determining fake traffic in live broadcast room
CN112752113A (en) Method and device for determining abnormal factors of live broadcast server
CN113766282A (en) Live video processing method and device
CN114070852A (en) Live broadcast delay optimization method and device
WO2023045430A1 (en) Two dimensional code-based data processing method, apparatus, and system
CN114866790B (en) Live stream scheduling method and device
CN114679598B (en) Live broadcast pushing method and device
CN113949894B (en) Live broadcast related duration recording method and device
US11178413B1 (en) Dynamically transitioning a digital video file between encoding states
CN114945097A (en) Video stream processing method and device
CN114786055A (en) Preloading method, preloading device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210226

RJ01 Rejection of invention patent application after publication