CN113691859A - Video caching method, device, equipment and medium - Google Patents

Video caching method, device, equipment and medium Download PDF

Info

Publication number
CN113691859A
CN113691859A CN202111085965.1A CN202111085965A CN113691859A CN 113691859 A CN113691859 A CN 113691859A CN 202111085965 A CN202111085965 A CN 202111085965A CN 113691859 A CN113691859 A CN 113691859A
Authority
CN
China
Prior art keywords
video
time length
estimated
watching
determining
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
CN202111085965.1A
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.)
Bigo Technology Pte Ltd
Original Assignee
Bigo Technology Pte 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 Bigo Technology Pte Ltd filed Critical Bigo Technology Pte Ltd
Priority to CN202111085965.1A priority Critical patent/CN113691859A/en
Publication of CN113691859A publication Critical patent/CN113691859A/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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4331Caching operations, e.g. of an advertisement for later insertion during playback
    • 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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • 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

Landscapes

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

Abstract

The invention discloses a video caching method, a video caching device, video caching equipment and a video caching medium. Because the online average watching time length is obtained after the playing request for playing the first video is received, the estimated watching time length of the target user for watching the first video is determined according to the online average watching time length, the downloading of the first video is guided according to the estimated watching time length, after the first video with the estimated watching time length is determined to be downloaded, the downloading of the first video is suspended, the second video is cached, the second video can be downloaded without downloading the whole first video, the condition that the target user does not continue to watch the first video after consuming a large amount of bandwidth for downloading the whole first video is avoided, the bandwidth is reasonably utilized to download the second video, the cached second video is played to the target user in time when the target user watches the second video, and the number of videos which can be played within 1 second after the user selects is increased, the second yield of the video is improved, and the user experience is improved.

Description

Video caching method, device, equipment and medium
Technical Field
The present invention relates to the field of network video, and in particular, to a video caching method, apparatus, device, and medium.
Background
With the development of network video technology, in order to improve the second rate of videos, avoid the video from being blocked in the playing process and improve user experience, more and more video playing software adopts a relatively aggressive caching strategy to cache videos, that is, for videos which are watched by a user at present, all contents of the videos are downloaded firstly no matter whether the user watches all contents of the videos, and after the downloading of all contents of the videos is completed, the caching of other videos which the user may watch is started until all videos which may be watched by the user are completely downloaded.
Due to the fact that the situation that the user does not watch all the downloaded video content may exist, the intelligent device wastes a large amount of bandwidth for downloading the video content which is not watched by the user, namely, downloading invalid video content, wastes a large amount of bandwidth resources, greatly reduces the occupation ratio of the number of the videos which can be cached in all the issued videos, and simultaneously reduces the rate of displaying the switched videos to the user in the process of switching the videos by a subsequent user, the number of the videos which can be played within 1 second after the user selects is greatly reduced, and the second-rate of the videos is reduced.
Disclosure of Invention
The embodiment of the invention provides a video caching method, a video caching device, video caching equipment and a video caching medium, which are used for solving the problems that a large amount of invalid video contents are cached, bandwidth resources are wasted, and the second rate of video is low.
The embodiment of the invention provides a video caching method, which comprises the following steps:
if a playing request for playing a first video is received, acquiring the online average watching duration;
determining the estimated watching time length of the target user for watching the first video according to the on-line average watching time length;
and if the first video with the estimated watching time length is determined to be downloaded, pausing the downloading of the first video and starting caching a second video.
An embodiment of the present invention provides a video caching apparatus, where the apparatus includes:
a receiving unit, configured to receive a play request for playing a first video;
an acquisition unit for acquiring an on-line average viewing duration;
the processing unit is used for determining the estimated watching time length of the target user for watching the first video according to the on-line average watching time length; and if the first video with the estimated watching time length is determined to be downloaded, pausing the downloading of the first video and starting caching a second video.
An embodiment of the present invention provides an electronic device, where the electronic device at least includes a processor and a memory, and the processor is configured to implement the steps of the video caching method according to any one of the above when executing a computer program stored in the memory.
An embodiment of the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of any one of the video caching methods described above.
Because the online average watching time length is obtained after the playing request for playing the first video is received, the estimated watching time length of the target user for watching the first video is determined according to the online average watching time length, the downloading time length of the first video is guided according to the estimated watching time length, the downloading of the first video is suspended and the caching of the second video is started after the first video with the estimated watching time length is determined to be downloaded, the second video can be downloaded without downloading the whole first video, the condition that the target user does not continuously watch the first video after a large amount of bandwidth is consumed for downloading the whole first video is avoided, the bandwidth is reasonably utilized to download the second video, the cached second video can be timely played to the target user when the target user watches the second video, and the number of videos which can be played within 1 second selected by the user is increased, the second rate of the video is improved, and the user experience is also improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a video caching process according to an embodiment of the present invention;
fig. 2 is a schematic view of a specific video caching process according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a video caching apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the attached drawings, and it should be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Thus, the present invention may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
In this document, it is to be understood that any number of elements in the figures are provided by way of illustration and not limitation, and any nomenclature is used for differentiation only and not in any limiting sense.
For convenience of understanding, some concepts involved in the embodiments of the present invention are explained below:
second out/second rate: the ratio of the number of videos to be played to all videos can be started within 1 second after the user selects (clicking the screen selection or sliding the videos up and down).
Blocking: the phenomenon that the video picture does not change for more than 200 milliseconds due to any reason when a user watches the video is shown.
The blockage rate: the ratio of the number of videos with the karton phenomenon in all videos is shown.
Caching: means that the video data on the line is temporarily stored locally through the network.
Pre-pull/pre-download: the video content is cached in advance before the user watches the video content, so that the video playing speed is increased, and the blocking strategy is reduced.
The pre-drawing rate is as follows: the number of the buffered videos of the partial video content before the broadcasting is occupied in all the videos.
Example 1:
fig. 1 is a schematic diagram of a video caching process according to an embodiment of the present invention, where the process includes:
s101: and if a playing request for playing the first video is received, acquiring the online average watching time length.
The video caching method provided by the embodiment of the invention is applied to electronic equipment, and the electronic equipment can be intelligent equipment such as a mobile terminal and the like, and can also be a server.
In a possible implementation manner, after receiving a play request for playing a certain video, the electronic device determines the video as a first video, and then caches the first video by using the video caching method provided by the embodiment of the present invention.
The electronic device performing video caching may receive the play request sent by other devices, such as a remote controller, a mobile phone, and the like, or may be collected by the electronic device.
For example, when a user needs to play a first video, a play request for playing the first video may be input through the smart device. After receiving the play request, the intelligent device can send the play request to the electronic device for video caching.
The electronic device for video caching may be the same as or different from the intelligent device.
It should be noted that there are many ways for a user to input a play request through the smart device, and the play request may be input through triggering operations (for example, voice, click, double click, etc.) for each video input displayed on the display screen of the smart device, or directly input through inputting voice information, or input through inputting text information of a video name through the display screen of the smart device. In the specific implementation process, the setting can be flexibly performed according to the actual requirement, and is not specifically limited herein.
After a playing request for playing the first video is obtained, the average online watching duration can be obtained. The online average watching time length is the average time length of watching the video by using the target software every time for all users using the target software playing the first video.
It should be noted that, when the target software is just shipped, the initialized online average viewing time period may be preset, for example, 10 seconds. And subsequently updating the online average watching duration according to the average duration of each user watching the video by using the target software each time.
S102: and determining the estimated watching time length of the target user for watching the first video according to the on-line average watching time length.
After the on-line average watching time length is obtained based on the above embodiment, corresponding processing may be performed according to the on-line average watching time length, so as to determine an estimated watching time length for the target user to watch the first video.
In a possible implementation manner, the online average watching time length may be directly determined as the estimated watching time length for the target user to watch the first video, or the online average watching time length may be processed by a preset algorithm, and the processed online average watching time length may be determined as the estimated watching time length for the target user to watch the first video.
In another possible implementation manner, the estimated viewing time for the target user to view the first video may be determined in combination with the viewing time of each video that the target user has viewed using the target software this time and the on-line average viewing time. Specifically, if the watching time length of each video watched by the target user using the target software at this time is determined to be stored, the estimated watching time length is determined according to the on-line average watching time length and each watching time length.
It should be noted that, each time the target user starts to use the target software to watch the video, since the target user does not use the target software to watch the video this time, it is determined that the watching time length of each video watched by the target user using the target software this time is not saved. It can be understood that, each time the target user starts to use the target software to watch the video, the watching time length is 0, and the watching time length is updated according to the time length of the target user watching each video by using the target software this time.
In a possible implementation manner, when the estimated viewing duration is determined according to the online average viewing duration and each viewing duration, the total number of videos viewed at this time and the total duration of each viewing duration may be obtained first. The sum of the average online viewing duration and the total duration is then determined. And determining the estimated watching time length according to the time length and the total amount.
For example, determining the estimated viewing duration from the on-line average viewing duration and each viewing duration may be determined by the following formula:
Figure BDA0003265754460000061
wherein, TimeEstIndicating the estimated viewing Time, TimeonlineThe average viewing time period on the line is shown,
Figure BDA0003265754460000062
and the watching duration of each video watched by the target user by using the target software at this time is shown, and n is the total number of the videos watched at this time.
S103: and if the first video with the estimated watching time length is determined to be downloaded, pausing the downloading of the first video and starting caching a second video.
After the estimated viewing duration is determined based on the above-described embodiment, the first video is downloaded according to the estimated viewing duration. In order to avoid consuming a large amount of bandwidth for downloading the video content which is not seen by the target user, after the first video with the estimated watching time length is determined to be downloaded, the downloading of the first video is suspended, and the caching of the second video is started.
Since the second video is cached during the process of playing the first video, there may be a pause in playing the first video. Therefore, in order to ensure the playing quality of the first video and improve the user experience, after the second video starts to be cached, the current bandwidth and the played time length of the first video are obtained. And then determining whether the playing of the first video is pause or not according to the bandwidth, the played time and the estimated watching time, so as to stop caching the second video in time when the playing of the first video possibly has pause, and ensure the playing instruction of the first video. And if the video cannot cause the jamming, continuing to cache the second video.
In a possible implementation manner, whether the playing of the first video is pause or not is determined according to the acquired bandwidth, the played time length and the estimated watching time length, so that when the playing of the first video may be pause, the first time length can be determined according to the played time length and the estimated watching time length. For example, the first time length is determined according to the time length difference between the estimated watching time length and the played time length. And then, according to the first time length and the bandwidth, corresponding processing is carried out to determine the estimated value of the existence of the video jam. For example, the estimated value of the first video presence stuck may be determined based on a product of the first duration and the bandwidth.
When the estimated value of the first video presence stuck is determined according to the product, the product can be directly determined as the estimated value of the first video presence stuck, or the product can be processed through a preset mathematical algorithm, and the processed product is determined as the estimated value of the first video presence stuck.
In one possible implementation, the estimated value for determining that the first video is stuck may be determined according to the obtained bandwidth, the played time length, and the estimated viewing time length by the following formula:
MayStuck=(Time_Est-process)*speed*0.8;
the MayStuck represents a predicted value of the existence of the first video, the Time _ Est represents the estimated watching Time, the process represents the played Time, and the speed represents the bandwidth.
In order to accurately determine whether there is a pause in the playing of the first video, in the embodiment of the present invention, a pause threshold is set, and the value of the pause threshold may be pre-configured or determined in real time. When the estimated value of the presence of the first video is obtained based on the above embodiment, it may be determined whether the estimated value is greater than the threshold value. If the estimated value is larger than the pause threshold value, determining that the playing of the first video is paused; if the estimated value is not larger than the pause threshold value, the playing of the first video is determined not to be pause, and the second video can be continuously cached.
In a possible implementation, if the stuck threshold is preconfigured, different values may be set according to different scenes, and if it is desired to ensure the playing quality of the first video as much as possible, the stuck threshold may be set lower; the stuck threshold may be set higher if it is desired to increase the number of buffered videos and thereby increase the video second rate.
In another possible embodiment, if the stuck threshold is determined in real time, the full duration of the first video and the full video size may be obtained first. And then, according to the complete time length, the estimated watching time length and the size of the complete video, determining the pause threshold value.
In a possible implementation manner, when the stuck threshold is determined according to the complete duration, the estimated watching duration and the size of the complete video, the duration difference between the complete duration and the estimated watching duration can be obtained, and the product of the duration difference and the size of the complete video can be obtained. And then determining a stuck threshold according to the ratio of the product to the complete time length.
The ratio can be directly determined as the stuck threshold, or processed according to a preset mathematical algorithm, and the processed ratio is determined as the stuck threshold. In the specific implementation process, the flexible setting can be carried out according to the actual requirement. And is not particularly limited herein.
In one possible embodiment, the determination of the stuck threshold based on the full duration, the estimated viewing duration, and the full video size may be determined by the following equation:
Figure BDA0003265754460000081
wherein, TimeallIndicating a full duration, T indicating a stuck threshold, TimeEstIndicating the estimated viewing time and FileSize indicating the full video size.
In one possible implementation, when it is determined that the playing of the first video is paused based on the above-described embodiment, the buffering of the second video is stopped. And because the time for the target user to watch the video by using the target software is changed, the watching time length of each video watched by the target user at this time by using the target software is also changed, the estimated watching time length of the first video can be determined again, and the first video is continuously downloaded according to the re-determined estimated watching time length.
In a possible implementation manner, in the process of caching the second video, if it is determined that the playing of the first video is stuck, since the time for the target user to view the video using the target software changes, the view duration of each video that the target user has viewed using the target software at this time also changes, the estimated view duration of the first video may be re-determined, so as to continue downloading the first video according to the re-determined estimated view duration.
Because the online average watching time length is obtained after the playing request for playing the first video is received, the estimated watching time length of the target user for watching the first video is determined according to the online average watching time length, the downloading time length of the first video is guided according to the estimated watching time length, the downloading of the first video is suspended and the caching of the second video is started after the first video with the estimated watching time length is determined to be downloaded, the second video can be downloaded without downloading the whole first video, the condition that the target user does not continuously watch the first video after a large amount of bandwidth is consumed for downloading the whole first video is avoided, the bandwidth is reasonably utilized to download the second video, the cached second video can be timely played to the target user when the target user watches the second video, and the number of videos which can be played within 1 second selected by the user is increased, the second rate of the video is improved, and the user experience is also improved.
Real-time example 2:
the video caching method provided by the embodiment of the present invention is explained in detail below by a specific embodiment, and fig. 2 is a schematic diagram of a specific video caching process provided by the embodiment of the present invention, where the process includes:
s201: a play request to play the first video is received.
After the electronic device receives a playing request for playing a first video, the video downloading strategy provided by the embodiment of the invention is started, and the video is cached. In addition, the video caching method provided by the embodiment of the invention is applied to one playing period of the short video, namely, the short video is used as the first video for one short video selected by a user or one short video automatically selected by target software, and the video caching method provided by the embodiment of the invention is started for caching the video.
S202: the method comprises the steps of obtaining the average online watching time length and obtaining the watching time length of each video watched by a target user by using target software.
If the target user watches the video for the first time, the watching time length of the video watched by the target user by using the target software is 0.
S203: and determining the estimated watching time length of the target user for watching the first video by combining the watching time length of each video watched by the target user by using the target software at this time and the on-line average watching time length.
In particular, can be according to
Figure BDA0003265754460000091
Determining an estimated watching Time of a target user watching a first video, wherein the Time isEstIndicating the estimated viewing Time, TimeonlineThe average viewing time period on the line is shown,
Figure BDA0003265754460000092
and the watching duration of each video watched by the target user by using the target software at this time is shown, and n is the total number of the videos watched at this time.
Time in the above equationonlineThe average watching time length on the line is indicated and is sent to the electronic equipment by the server, the value is a reference value, and the later period is corrected along with the time length of watching the video by the user, so that the average watching time length of watching the video by each user using the target software on the day before the current time can be adopted, or the historical watching time length of watching the video by each user using the target software on the day before the current time can be adopted. TimeuserThe method comprises the steps that the watching time length of each video watched by a target user by using target software at this time is acquired after the user finishes playing each video by using the target software at this time, if the target user starts the target software, the number of the videos watched by the target user by using the target software at this time is 0, and the watching time length at this time is also 0.
S204: and judging whether the first video with the estimated watching time length is downloaded, if so, performing the step S205, and if not, continuing to cache the first video.
S205: and suspending downloading of the first video and starting a caching task of the second video.
S206: after the second video starts to be cached, the current bandwidth and the played time length of the first video are obtained, whether the playing of the first video is blocked or not is determined according to the obtained bandwidth, the played time length and the estimated watching time length, whether switching is performed or not is determined, if the judgment result is yes, S207 is performed, and if the judgment result is no, caching of the second video is continued.
When determining whether the second video is cached and whether the playing of the first video is pause or not, mainly determining that the first video has a pause prediction value, and judging whether the prediction value is smaller than a preset pause threshold value or not, namely judging through the following formula: (Time _ Est-process) speed 0.8 ≤ T;
wherein, T represents the pause threshold, Time _ Est represents the estimated watching Time length, process represents the played Time length, and speed represents the bandwidth.
S207: the buffering of the second video is stopped and returns to S202.
After the video caching method provided by the embodiment of the invention is adopted for video caching, the short video pre-pulling proportion can be improved from about 82% to about 84%, the second output rate is increased by one percent, the pause rate is basically kept consistent, and the pre-pulling amount is reduced from 55% to about 54%, so that the bandwidth is saved, the second output is improved, the playing speed is accelerated, and the watching experience of a user is improved.
Example 3:
an embodiment of the present invention provides a video caching apparatus, and fig. 3 is a schematic structural diagram of a video caching apparatus provided in an embodiment of the present invention, where the apparatus includes:
a receiving unit 31 configured to receive a play request for playing a first video;
an obtaining unit 32 configured to obtain an average online viewing time;
the processing unit 33 is configured to determine, according to the on-line average watching duration, an estimated watching duration for the target user to watch the first video; and if the first video with the estimated watching time length is determined to be downloaded, pausing the downloading of the first video and starting caching a second video.
In some possible embodiments, the processing unit 33 is specifically configured to determine, if it is determined that the viewing duration of each video that has been viewed by the target user using the target software this time is stored, the estimated viewing duration according to the on-line average viewing duration and each viewing duration.
In some possible embodiments, the processing unit 33 is specifically configured to obtain a total number of each video that has been watched and a total duration of each watching duration; determining a sum of the on-line average viewing duration and the total duration; and determining the estimated watching time length according to the time length and the total number.
In some possible embodiments, the obtaining unit 32 is further configured to obtain, after the beginning of caching the second video, a current bandwidth and a played time length of the first video;
the processing unit 33 is further configured to determine whether there is a pause in playing the first video according to the bandwidth, the played time length, and the estimated watching time length.
In some possible embodiments, the processing unit 33 is specifically configured to determine a first duration according to the played duration and the estimated viewing duration; determining a predictive value of the existence of the video in the video according to the first time length and the bandwidth; if the estimated value is larger than the pause threshold value, determining that the playing of the first video is paused; and if the estimated value is not larger than the pause threshold value, determining that the playing of the first video is not pause.
In some possible embodiments, the processing unit 33 is specifically configured to determine the stuck threshold by:
acquiring the complete duration and the size of the complete video of the first video;
and determining the pause threshold according to the complete time length, the estimated watching time length and the size of the complete video.
In some possible embodiments, the processing unit 33 is specifically configured to obtain a duration difference between the full duration and the estimated viewing duration, and a product of the duration difference and the full video size; and determining the stuck threshold according to the ratio of the product to the complete duration.
In some possible embodiments, the processing unit 33 is further configured to stop buffering the second video if it is determined that the playing of the first video is stuck; and re-determining the estimated watching time length of the first video, and continuously downloading the first video according to the re-determined estimated watching time length.
Because the online average watching time length is obtained after the playing request for playing the first video is received, the estimated watching time length of the target user for watching the first video is determined according to the online average watching time length, the downloading time length of the first video is guided according to the estimated watching time length, the downloading of the first video is suspended and the caching of the second video is started after the first video with the estimated watching time length is determined to be downloaded, the second video can be downloaded without downloading the whole first video, the condition that the target user does not continuously watch the first video after a large amount of bandwidth is consumed for downloading the whole first video is avoided, the bandwidth is reasonably utilized to download the second video, the cached second video can be timely played to the target user when the target user watches the second video, and the number of videos which can be played within 1 second selected by the user is increased, the second rate of the video is improved, and the user experience is also improved.
Example 4:
as shown in fig. 4, which is a schematic structural diagram of an electronic device according to an embodiment of the present invention, on the basis of the foregoing embodiments, an embodiment of the present invention further provides an electronic device, as shown in fig. 4, including: the system comprises a processor 41, a communication interface 42, a memory 43 and a communication bus 44, wherein the processor 41, the communication interface 42 and the memory 43 complete mutual communication through the communication bus 44;
the memory 43 has stored therein a computer program which, when executed by the processor 41, causes the processor 41 to perform the steps of:
if a playing request for playing a first video is received, acquiring the online average watching duration;
determining the estimated watching time length of the target user for watching the first video according to the on-line average watching time length;
and if the first video with the estimated watching time length is determined to be downloaded, pausing the downloading of the first video and starting caching a second video.
Because the principle of the electronic device for solving the problem is similar to the video caching method, the implementation of the electronic device may refer to the implementation of the method, and repeated details are not repeated.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus. The communication interface 42 is used for communication between the above-described electronic apparatus and other apparatuses. The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
Because the online average watching time length is obtained after the playing request for playing the first video is received, the estimated watching time length of the target user for watching the first video is determined according to the online average watching time length, the downloading time length of the first video is guided according to the estimated watching time length, the downloading of the first video is suspended and the caching of the second video is started after the first video with the estimated watching time length is determined to be downloaded, the second video can be downloaded without downloading the whole first video, the condition that the target user does not continuously watch the first video after a large amount of bandwidth is consumed for downloading the whole first video is avoided, the bandwidth is reasonably utilized to download the second video, the cached second video can be timely played to the target user when the target user watches the second video, and the number of videos which can be played within 1 second selected by the user is increased, the second rate of the video is improved, and the user experience is also improved.
Example 5:
on the basis of the foregoing embodiments, the present invention further provides a computer-readable storage medium, in which a computer program executable by a processor is stored, and when the program is run on the processor, the processor is caused to execute the following steps:
if a playing request for playing a first video is received, acquiring the online average watching duration;
determining the estimated watching time length of the target user for watching the first video according to the on-line average watching time length;
and if the first video with the estimated watching time length is determined to be downloaded, pausing the downloading of the first video and starting caching a second video.
The principle of solving the problem by the computer-readable medium provided by the embodiment of the present invention is the same as the principle of solving the problem by the video caching method, and specific contents can be referred to the above method embodiments.
Because the online average watching time length is obtained after the playing request for playing the first video is received, the estimated watching time length of the target user for watching the first video is determined according to the online average watching time length, the downloading time length of the first video is guided according to the estimated watching time length, the downloading of the first video is suspended and the caching of the second video is started after the first video with the estimated watching time length is determined to be downloaded, the second video can be downloaded without downloading the whole first video, the condition that the target user does not continuously watch the first video after a large amount of bandwidth is consumed for downloading the whole first video is avoided, the bandwidth is reasonably utilized to download the second video, the cached second video can be timely played to the target user when the target user watches the second video, and the number of videos which can be played within 1 second selected by the user is increased, the second rate of the video is improved, and the user experience is also improved.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method for video caching, the method comprising:
if a playing request for playing a first video is received, acquiring the online average watching duration;
determining the estimated watching time length of the target user for watching the first video according to the on-line average watching time length;
and if the first video with the estimated watching time length is determined to be downloaded, pausing the downloading of the first video and starting caching a second video.
2. The method of claim 1, wherein determining an estimated viewing duration for a target user to view the first video based on the average online viewing duration comprises:
and if the watching time length of each video watched by the target user by using the target software at this time is determined to be stored, determining the estimated watching time length according to the on-line average watching time length and each watching time length.
3. The method of claim 2, wherein said determining the estimated viewing time period based on the average viewing time period on the line and the each viewing time period comprises:
acquiring the total number of the watched videos and the total duration of each watching duration;
determining a sum of the on-line average viewing duration and the total duration;
and determining the estimated watching time length according to the time length and the total number.
4. The method of claim 1, wherein after the beginning of buffering the second video, the method further comprises:
acquiring the current bandwidth and the played time length of the first video;
and determining whether the playing of the first video is stuck or not according to the bandwidth, the played time and the estimated watching time.
5. The method of claim 4, wherein said determining whether playback of the first video is stuck based on the bandwidth, the played duration, and the estimated viewing duration comprises:
determining a first time length according to the played time length and the estimated watching time length;
determining a predictive value of the existence of the video in the video according to the first time length and the bandwidth;
if the estimated value is larger than the pause threshold value, determining that the playing of the first video is paused;
and if the estimated value is not larger than the pause threshold value, determining that the playing of the first video is not pause.
6. The method of claim 5, wherein the stuck threshold is determined by:
acquiring the complete duration and the size of the complete video of the first video;
and determining the pause threshold according to the complete time length, the estimated watching time length and the size of the complete video.
7. The method of claim 4, further comprising:
if the fact that the playing of the first video is blocked is determined, stopping caching the second video;
and re-determining the estimated watching time length of the first video, and continuously downloading the first video according to the re-determined estimated watching time length.
8. A video buffering apparatus, the apparatus comprising:
a receiving unit, configured to receive a play request for playing a first video;
an acquisition unit for acquiring an on-line average viewing duration;
the processing unit is used for determining the estimated watching time length of the target user for watching the first video according to the on-line average watching time length; and if the first video with the estimated watching time length is determined to be downloaded, pausing the downloading of the first video and starting caching a second video.
9. An electronic device, characterized in that the electronic device comprises at least a processor and a memory, the processor being adapted to implement the steps of the video caching method as claimed in any one of claims 1 to 7 when executing a computer program stored in the memory.
10. A computer-readable storage medium, characterized in that it stores a computer program which, when being executed by a processor, carries out the steps of the video caching method according to any one of claims 1 to 7.
CN202111085965.1A 2021-09-16 2021-09-16 Video caching method, device, equipment and medium Pending CN113691859A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111085965.1A CN113691859A (en) 2021-09-16 2021-09-16 Video caching method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111085965.1A CN113691859A (en) 2021-09-16 2021-09-16 Video caching method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN113691859A true CN113691859A (en) 2021-11-23

Family

ID=78586503

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111085965.1A Pending CN113691859A (en) 2021-09-16 2021-09-16 Video caching method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN113691859A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339402A (en) * 2021-12-31 2022-04-12 北京字节跳动网络技术有限公司 Video playing completion rate prediction method, device, medium and electronic equipment
CN114900732A (en) * 2022-04-25 2022-08-12 北京奇艺世纪科技有限公司 Video caching method and device, electronic equipment and storage medium
CN114979768A (en) * 2022-05-23 2022-08-30 北京字节跳动网络技术有限公司 Video caching method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009130287A1 (en) * 2008-04-23 2009-10-29 Itv Solutions Gmbh Client and server for a video on demand system
CN104581354A (en) * 2013-10-25 2015-04-29 腾讯科技(深圳)有限公司 Video buffering method and video buffering device
CN106131657A (en) * 2016-06-29 2016-11-16 乐视控股(北京)有限公司 Video playing control method and device
CN107888981A (en) * 2017-11-16 2018-04-06 北京小米移动软件有限公司 Audio frequency and video preload method, apparatus, equipment and storage medium
CN111078585A (en) * 2019-11-29 2020-04-28 智器云南京信息科技有限公司 Memory cache management method, system, storage medium and electronic equipment
CN112135169A (en) * 2020-09-18 2020-12-25 脸萌有限公司 Media content loading method, device, equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009130287A1 (en) * 2008-04-23 2009-10-29 Itv Solutions Gmbh Client and server for a video on demand system
CN104581354A (en) * 2013-10-25 2015-04-29 腾讯科技(深圳)有限公司 Video buffering method and video buffering device
CN106131657A (en) * 2016-06-29 2016-11-16 乐视控股(北京)有限公司 Video playing control method and device
CN107888981A (en) * 2017-11-16 2018-04-06 北京小米移动软件有限公司 Audio frequency and video preload method, apparatus, equipment and storage medium
CN111078585A (en) * 2019-11-29 2020-04-28 智器云南京信息科技有限公司 Memory cache management method, system, storage medium and electronic equipment
CN112135169A (en) * 2020-09-18 2020-12-25 脸萌有限公司 Media content loading method, device, equipment and medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114339402A (en) * 2021-12-31 2022-04-12 北京字节跳动网络技术有限公司 Video playing completion rate prediction method, device, medium and electronic equipment
CN114900732A (en) * 2022-04-25 2022-08-12 北京奇艺世纪科技有限公司 Video caching method and device, electronic equipment and storage medium
CN114900732B (en) * 2022-04-25 2024-01-12 北京奇艺世纪科技有限公司 Video caching method and device, electronic equipment and storage medium
CN114979768A (en) * 2022-05-23 2022-08-30 北京字节跳动网络技术有限公司 Video caching method, device, equipment and storage medium
WO2023226757A1 (en) * 2022-05-23 2023-11-30 北京字节跳动网络技术有限公司 Video caching method and apparatus, device and storage medium

Similar Documents

Publication Publication Date Title
CN113691859A (en) Video caching method, device, equipment and medium
CN110611829B (en) Video preloading method and device, electronic equipment and storage medium
CN111565334B (en) Live broadcast playback method, device, terminal, server and storage medium
CN106131657A (en) Video playing control method and device
CN107423128B (en) Information processing method and system
CN104080006B (en) A kind of video process apparatus and method
US11889135B2 (en) Video stream playing control method and apparatus, and storage medium
CN107734394B (en) Method and device for displaying animation information
CN106131689A (en) Method for downloading video and device
CN113810773B (en) Video downloading method and device, electronic equipment and storage medium
CN113254834B (en) Page content loading method and device, electronic equipment and readable storage medium
CN114040245A (en) Video playing method and device, computer storage medium and electronic equipment
CN111510747B (en) Video definition determination method, system, computer device and storage medium
US10165245B2 (en) Pre-fetching video content
CN114584826B (en) Video dynamic downloading method and device, electronic equipment and storage medium
CN113727172B (en) Video cache playing method and device, electronic equipment and storage medium
CN113395549B (en) Play resource downloading method, device, equipment and storage medium
CN108156514B (en) Media file playing method and device and storage medium
CN113163236B (en) Data transmission method, device, equipment and storage medium based on frequency control
CN114640890B (en) Video data dynamic loading method and device, electronic equipment and storage medium
CN114567807B (en) Video processing method and device, electronic equipment and computer storage medium
CN117135411A (en) Video playing method and device, electronic equipment and storage medium
CN115037964B (en) Video combining method and device based on barrage, computer equipment and storage medium
CN115297092B (en) Media data caching method and device, electronic equipment and storage medium
CN115905138A (en) Processing method and device of cache data and electronic equipment

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