CN117939230A - Video storage method, video playing method, device and equipment - Google Patents
Video storage method, video playing method, device and equipment Download PDFInfo
- Publication number
- CN117939230A CN117939230A CN202410132261.2A CN202410132261A CN117939230A CN 117939230 A CN117939230 A CN 117939230A CN 202410132261 A CN202410132261 A CN 202410132261A CN 117939230 A CN117939230 A CN 117939230A
- Authority
- CN
- China
- Prior art keywords
- video
- data
- request
- target
- campus network
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 230000000875 corresponding effect Effects 0.000 claims abstract description 62
- 238000013499 data model Methods 0.000 claims abstract description 32
- 230000002596 correlated effect Effects 0.000 claims abstract description 8
- 238000012544 monitoring process Methods 0.000 claims abstract description 7
- 230000004044 response Effects 0.000 claims description 15
- 239000003999 initiator Substances 0.000 claims description 9
- 230000001276 controlling effect Effects 0.000 claims description 8
- 238000013136 deep learning model Methods 0.000 claims description 5
- 238000001514 detection method Methods 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 abstract description 2
- 238000004590 computer program Methods 0.000 description 8
- 230000000903 blocking effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000012549 training Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/433—Content storage operation, e.g. storage operation in response to a pause request, caching operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/231—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/251—Learning process for intelligent management, e.g. learning user preferences for recommending movies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
- H04N21/466—Learning process for intelligent management, e.g. learning user preferences for recommending movies
- H04N21/4667—Processing of monitored end-user data, e.g. trend analysis based on the log file of viewer selections
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The present application relates to the field of network technologies, and in particular, to a video storage method, a video playing device, and a device. The method comprises the following steps: acquiring all video requests within a preset time; estimating the number of target requests corresponding to each video based on all video request distribution and a historical data model in preset time; for each video data, determining a corresponding target duration based on the target request quantity; wherein the target request number is positively correlated with the target duration; the target request quantity is the request quantity within the preset time length in the future; storing partial data in the video data to a local storage space of the campus network; the partial data are data required by video data corresponding to video for playing the target duration; monitoring video requests in the campus network in real time; if the local storage space of the campus network stores partial data corresponding to the video request, responding to the video request based on the partial data stored in the local storage space.
Description
Technical Field
The present application relates to the field of network technologies, and in particular, to a video storage method, a video playing device, and a device.
Background
With the establishment of each campus network and the gradual advance of online teaching, the ordinary universities are more and more closely connected. Campus networks within certain universities may be used to access instructional videos stored within other educational networks, including other universities or educational institutions.
In practical applications, however, if multiple personal terminals in a campus network access a video in his education network in a centralized manner at the same time, network blocking may be caused.
Disclosure of Invention
In view of this, embodiments of the present application are directed to providing a video storage method, a video playing method, a device and an apparatus.
The first aspect of the present application provides a video storage method, applied to a campus network, comprising:
acquiring all video requests within a preset time; the video request is used for acquiring video data in other education networks;
Estimating the number of target requests corresponding to each video based on all video request distribution and a historical data model in preset time;
For each video data, determining a corresponding target duration based on the target request quantity; wherein the target request quantity is positively correlated with the target duration; the target request quantity is the request quantity within the preset time length in the future;
for each video data, storing part of the video data into a local storage space of a campus network; the partial data are data required by the video data corresponding to the video for playing the target duration;
monitoring video requests in the campus network in real time;
And if the local storage space of the campus network stores the partial data corresponding to the monitored video request, responding to the monitored video request based on the partial data stored in the local storage space.
In some embodiments, responding to the video request based on the portion of the data stored in the local storage space;
Controlling the video request initiator to cache data which is not stored in a local storage space of a campus network in the video data;
And controlling the video request initiator to play the cached data after finishing playing the data returned by the local storage space in response to the video request.
In some embodiments, obtaining a margin of the local storage space to the campus network;
and adjusting data stored in a local storage space of the campus network based on the allowance.
In some embodiments, obtaining a margin of the local storage space to the campus network;
And based on the allowance, adjusting the corresponding relation between the target request quantity and the target duration.
In some embodiments, adjusting the correspondence of the target number of requests to the target duration based on the margin includes:
and on the premise that the positive correlation between the target request quantity and the target time length is met, if the margin is larger than a first preset value, increasing the target time length corresponding to the target request quantity.
If the allowance is smaller than a second preset value, reducing target duration corresponding to the target request quantity; wherein the second preset value is smaller than the first preset value.
In some embodiments, estimating the number of target requests corresponding to each video based on the total video request distribution and the historical data model within a preset time includes:
inputting all the video requests into a preset historical data model in a distributed manner to obtain target request quantity corresponding to each video output by the historical data model;
the historical data model is a deep learning model.
The second aspect of the present application provides a video playing method, applied to a personal terminal subordinate to a campus network, comprising:
Sending a video request;
Acquiring part of data returned by the campus network, wherein the campus network is used for executing the video storage method;
playing part of data returned by the campus network, and simultaneously caching data which are not stored in a local storage space of the campus network in video data requested by a video request;
and playing the cached data after the playing of the data returned by the local storage space in response to the video request is completed.
A third aspect of the present application provides a video storage device for use in a campus network, comprising:
the acquisition module is used for acquiring all video requests within a preset time; the video request is used for acquiring video data in other education networks;
the estimating module is used for estimating the target request quantity corresponding to each video based on all video request distribution and the historical data model in the preset time;
the determining module is used for determining corresponding target duration based on the target request quantity aiming at each video data; wherein the target request quantity is positively correlated with the target duration; the target request quantity is the request quantity within the preset time length in the future;
The storage module is used for storing partial data in the video data to a local storage space of the campus network according to each video data; the partial data are data required by the video data corresponding to the video for playing the target duration;
The detection module is used for monitoring video requests in the campus network in real time;
and the response module is used for responding to the monitored video request based on the partial data stored in the local storage space if the local storage space of the campus network stores the partial data corresponding to the monitored video request.
A fourth aspect of the present application provides a video playing device applied to a personal terminal belonging to a campus network, including:
The sending module is used for sending the video request;
The data acquisition module is used for acquiring partial data returned by the campus network, wherein the campus network is used for executing the video storage method;
the playing module is used for playing part of data returned by the campus network, and simultaneously caching data which are not stored in a local storage space of the campus network in video data requested by the video request; and playing the cached data after the playing of the data returned by the local storage space in response to the video request is completed.
A fifth aspect of the present application provides an electronic device, comprising:
A processor and a memory for storing a program executable by the processor;
the processor is configured to implement the video storage method or the video playing method by running the program in the memory.
A sixth aspect of the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, causes the processor to perform a video storage method as described above, or a video playback method as described above.
The video storage method provided by the application comprises the steps of firstly, acquiring all video requests within preset time; the video request is used for acquiring video data in other education networks; estimating the number of target requests corresponding to each video based on all video request distribution and a historical data model in preset time; for each video data, determining a corresponding target duration based on the target request quantity; wherein the target request quantity is positively correlated with the target duration; the target request quantity is the request quantity within the preset time length in the future; for each video data, storing part of the video data into a local storage space of a campus network; the partial data are data required by the video data corresponding to the video for playing the target duration; monitoring video requests in the campus network in real time; and if the local storage space of the campus network stores the partial data corresponding to the monitored video request, responding to the monitored video request based on the partial data stored in the local storage space. Therefore, in the scheme provided by the application, the target request quantity of each video can be estimated based on the historical data model and the videos in a near period of time, if the same video can be requested in a large quantity in a future period of time, part of the data is stored locally, and when the video is requested, the part of the data stored locally is directly returned to respond to the request, so that the situation that network congestion is easily caused when data are requested to other educational networks for many times is avoided, and network blocking is avoided.
Drawings
The above and other objects, features and advantages of the present application will become more apparent by describing embodiments of the present application in more detail with reference to the attached drawings. The accompanying drawings are included to provide a further understanding of embodiments of the application and are incorporated in and constitute a part of this specification, illustrate the application and together with the embodiments of the application, and not constitute a limitation to the application. In the drawings, like reference numerals generally refer to like parts or steps.
Fig. 1 is a flowchart of a video storage method according to an embodiment of the present application.
Fig. 2 is a flowchart of a video playing method according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a video storage device according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a video playing device according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Summary of the application
With the establishment of each campus network and the gradual advance of online teaching, the ordinary universities are more and more closely connected. Campus networks within certain universities may be used to access instructional videos stored within other educational networks, including other universities or educational institutions.
However, in practical application, if multiple personal terminals in a certain campus network access a certain video in his education network in a centralized manner at the same time, the video may be requested and downloaded multiple times according to the original logic, and a large number of repeated downloads of the video may occupy a large number of networks, which may cause network blocking.
In order to solve the above problems, the present application provides a scheme, in which the number of downloading requests of each video in a future period is estimated first, if the number of downloading requests exceeds a certain frequency, a part of the video is preferentially downloaded to a local storage space according to the principle that the more the number of downloading requests is, the more the content is downloaded in advance, so that when each local personal terminal needs to access the video, part of the data can be directly read from the local storage space, and only the data which is not stored in the local storage space is downloaded in other educational networks, so that the amount of data which needs to be downloaded can be reduced to avoid network jamming as much as possible.
Having described the basic principles of the present application, various non-limiting embodiments of the present application will now be described in detail with reference to the accompanying drawings.
Exemplary method
Fig. 1 is a flowchart of a video storage method according to an embodiment of the present application. As shown in fig. 1, the method includes the following.
Step S110, acquiring all video requests within a preset time; the video request is used for acquiring video data in other education networks;
it should be noted that the acquiring mode is to monitor various flows in the campus network in real time so as to acquire all video requests within a preset time. The preset time can be adjusted based on practical situations, for example, the preset time can be two days, three days, or one week or two weeks.
Step S120, estimating the number of target requests corresponding to each video based on all video request distribution and a historical data model in preset time;
It should be noted that, the historical data model is constructed based on the situation of the previous year video request, and is trained based on the historical data of part of the previous year, and the deep learning model is obtained. In some embodiments, the historical data model may estimate the number of video requests for some videos in a future period of time based only on the video request distribution in a period of time before the target time; in some embodiments, the historical data model may predict the number of video requests for some videos in a future period of time based on the date information of the target time and the video request distribution in a period of time before the target time.
It should be noted that, according to the actual situation of the university, adding the date information to the history learning model can improve the accuracy of the prediction. For example, when students in a university learn a certain course, videos related to the course are often downloaded and watched in a large quantity at high frequency, and after a period of time, when students in the university learn the next course, the number of video requests related to the previous course is greatly reduced, and generally, the setting of the course in the university is often related to date, and based on the setting, the date is included in the input data of the historical data model, so that the historical data model can be assisted to better estimate the requested number of each video in a future period of time.
Step S130, determining a corresponding target duration based on the target request quantity for each video data; wherein the target request quantity is positively correlated with the target duration; the target request quantity is the request quantity within the preset time length in the future;
In practical application, the videos with the request quantity lower than a certain preset value can be considered as the target duration to be 0 without storing; for videos with the request quantity higher than a certain preset value, storing the whole video, namely considering the target duration as the video duration.
In general, the video length of the teaching video is often about one hour, and taking a plurality of videos with the length of one hour as an example, the number of access requests of the video a is 1 ten thousand; the target duration corresponding to the video a can be 30 minutes of video; b is 2 ten thousand, and the target duration corresponding to the video ratio can be 40 minutes.
Step S140, for each video data, storing partial data in the video data to a local storage space of a campus network; the partial data are data required by the video data corresponding to the video for playing the target duration;
in the scheme provided by the application, partial data of the video are stored in the local storage space, and when the personal terminal in the campus network accesses the video, the video can be directly read from the local storage space, so that network blocking caused by a large amount of occupied communication flow between the campus network and other education networks is avoided.
Step S150, monitoring video requests in the campus network in real time;
Step S160, if the local storage space of the campus network stores the partial data corresponding to the monitored video request, responding to the monitored video request based on the partial data stored in the local storage space.
In order to timely capture video requests sent by personal clients in a campus network, the video requests in the campus network can be monitored in real time, if the local storage space of the campus network stores partial data corresponding to the monitored video requests, the monitored video requests are responded based on the partial data stored in the local storage space, so that the personal terminals can be reduced to communicate with the education network by means of the campus network to download the video data, and further network blocking is avoided.
Further, in some embodiments, responding to the video request based on the partial data stored in the local storage space further comprises:
Controlling the video request initiator to cache data which is not stored in a local storage space of a campus network in the video data; and controlling the video request initiator to play the cached data after finishing playing the data returned by the local storage space in response to the video request.
The video request initiator is a personal terminal for initiating a video request in a campus network; in the scheme provided by the application, the video request is responded based on the partial data stored in the local storage space, and the scheme comprises the following steps:
And returning partial data corresponding to the requested video to the personal terminal initiating the video request, so that the personal terminal can play the partial data preferentially, and simultaneously control the personal terminal to buffer the data which are not stored in the local storage space in the campus network in the video data, and playing the buffered data after the personal terminal finishes playing the data returned by the local storage space in response to the video request. The personal terminal plays the locally stored data and the cached data in succession, so that the effect of playing the complete 'requested video' is achieved.
In some embodiments, further comprising: acquiring the allowance of the local storage space to the campus network;
and adjusting data stored in a local storage space of the campus network based on the allowance.
In practical applications, the local storage space capacity of the campus network is limited. If the local storage space of the campus network is occupied in a large amount, the allowance is too small, and the problems that the whole campus network is blocked or some functions of the campus network cannot be realized and the like can be caused. In order to avoid the situation, the scheme provided by the application can adjust the data stored in the local storage space of the campus network based on the allowance. Specifically, based on the allowance, the corresponding relation between the target request quantity and the target duration is adjusted.
In some embodiments, adjusting the correspondence of the target number of requests to the target duration based on the margin includes:
and on the premise that the positive correlation between the target request quantity and the target time length is met, if the margin is larger than a first preset value, increasing the target time length corresponding to the target request quantity.
If the allowance is smaller than a second preset value, reducing target duration corresponding to the target request quantity; wherein the second preset value is smaller than the first preset value.
For example: under the condition that the target request quantity of the same video is unchanged, if the allowance is larger than a first preset value, the corresponding target duration is 20 minutes; if the margin is not greater than the first preset value and is greater than the second preset value, the corresponding target margin can be 15 minutes; and if the allowance is smaller than a second preset value, the corresponding target duration is 10 minutes.
Of course, in practical application, the adjustment can be performed based on practical situations, for example, when the margin is smaller than a third preset value, the target duration corresponding to the video can be further reduced; and deleting partial data corresponding to the video with low request quantity when the allowance is smaller than the fourth preset value. In practical application, adjustment should be performed based on practical requirements, and stable operation of the whole campus network must be ensured.
Further, based on the distribution of all video requests and the historical data model in a preset time, estimating the number of target requests corresponding to each video includes:
Inputting all the video requests into a preset historical data model in a distributed manner to obtain target request quantity corresponding to each video output by the historical data model; the historical data model is a deep learning model.
The historical data model is a model which is obtained by training based on a past-year historical model and is used for estimating the corresponding targets of each video in a future period of time and requesting the number of the targets. The respective videos herein refer to videos requested by respective video requests in a distribution of video requests in which a part of data has been stored in a local storage space and all of the most recently input videos.
In practical application, for better estimation, the current date can also be used as one input of the historical data model.
Referring to fig. 2, the present application further provides a video playing method, which is applied to a personal terminal subordinate to a campus network, including:
Step S201, a video request is sent;
In the campus network, the personal terminal of the campus network needs to communicate with other education institutions based on the campus network, and the video request sent by the personal terminal is used for acquiring video data in other education networks;
Step S202, partial data returned by the campus network is obtained;
the campus network is used for executing the video storage method;
it should be noted that, the video playing method provided by the present application is matched with the video storing method provided by the present application, and the two methods need to be combined with each other to achieve the effect of avoiding network blocking as much as possible, and specific execution strategies of the campus network can refer to the content in the video storing method provided by the present application.
Step S203, playing the part of the data returned by the campus network, and simultaneously caching the data which is not stored in the local storage space of the campus network in the video data requested by the video request.
Step S204, playing the cached data after completing playing the data returned by the local storage space in response to the video request.
In the scheme provided by the application, the personal terminal can preferentially play the video data stored in the local storage space of the campus network, and buffer the data which is not stored in the local storage space of the campus network in the video data (when the video is played, the video is changed, so that the playing is not influenced, the video can be pre-buffered to realize the fluency of the whole video playing), and the buffered data is played after the personal terminal finishes playing the data returned by the local storage space in response to the video request. The personal terminal plays the locally stored data and the cached data in succession, so that the effect of smoothly playing the complete 'requested video' is realized.
Exemplary apparatus
The device embodiment of the application can be used for executing the method embodiment of the application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the method of the present application.
Fig. 3 is a block diagram of a video storage device according to an embodiment of the present application. As shown in fig. 3, the apparatus applied to a campus network includes:
The obtaining module 31 is configured to obtain all video requests within a preset time; the video request is used for acquiring video data in other education networks;
the estimating module 32 is configured to estimate, based on the overall video request distribution and the historical data model within a preset time, the number of target requests corresponding to each video;
A determining module 33, configured to determine, for each video data, a corresponding target duration based on the target request number; wherein the target request quantity is positively correlated with the target duration; the target request quantity is the request quantity within the preset time length in the future;
a storage module 34, configured to store, for each video data, a part of the video data into a local storage space of the campus network; the partial data are data required by the video data corresponding to the video for playing the target duration;
the detection module 35 is configured to monitor the video request in the campus network in real time;
and the response module 36 is configured to respond to the monitored video request based on the partial data stored in the local storage space if the local storage space of the campus network stores the partial data corresponding to the monitored video request.
In some embodiments, responding to the video request based on the portion of the data stored in the local storage space;
Controlling the video request initiator to cache data which is not stored in a local storage space of a campus network in the video data;
And controlling the video request initiator to play the cached data after finishing playing the data returned by the local storage space in response to the video request.
In some embodiments, obtaining a margin of the local storage space to the campus network;
and adjusting data stored in a local storage space of the campus network based on the allowance.
In some embodiments, obtaining a margin of the local storage space to the campus network;
And based on the allowance, adjusting the corresponding relation between the target request quantity and the target duration.
In some embodiments, adjusting the correspondence of the target number of requests to the target duration based on the margin includes:
and on the premise that the positive correlation between the target request quantity and the target time length is met, if the margin is larger than a first preset value, increasing the target time length corresponding to the target request quantity.
If the allowance is smaller than a second preset value, reducing target duration corresponding to the target request quantity; wherein the second preset value is smaller than the first preset value.
In some embodiments, estimating the number of target requests corresponding to each video based on the total video request distribution and the historical data model within a preset time includes:
inputting all the video requests into a preset historical data model in a distributed manner to obtain target request quantity corresponding to each video output by the historical data model;
the historical data model is a deep learning model.
Fig. 4 is a block diagram of a video playing device according to an embodiment of the present application. As shown in fig. 4, the apparatus is applied to a personal terminal belonging to a campus network, and includes:
a transmitting module 41 for transmitting a video request;
A data acquisition module 42, configured to acquire a part of data returned by the campus network, where the campus network is configured to perform a video storage method as described above;
The playing module 43 is configured to play a part of data returned by the campus network, and simultaneously cache data that is not stored in a local storage space of the campus network in the video data requested by the video request; and playing the cached data after the playing of the data returned by the local storage space in response to the video request is completed.
Next, an electronic device according to an embodiment of the present application is described with reference to fig. 5. Fig. 5 illustrates a block diagram of an electronic device according to an embodiment of the application.
As shown in fig. 5, the electronic device 500 includes one or more processors 510 and memory 520.
Processor 510 may be a Central Processing Unit (CPU) or other form of processing unit having data processing and/or instruction execution capabilities, and may control other components in electronic device 500 to perform desired functions.
Memory 520 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM) and/or cache memory (cache), and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like. One or more computer program instructions may be stored on the computer readable storage medium that can be executed by the processor 510 to implement the video storage method, video playback method, and/or other desired functions of the various embodiments of the present application described above. Various contents such as category correspondence may also be stored in the computer-readable storage medium.
In one example, the electronic device 500 may further include: an input device 530 and an output device 540, which are interconnected by a bus system and/or other forms of connection mechanisms (not shown).
In addition, the input device 530 may also include, for example, a keyboard, mouse, interface, etc. The output device 540 may output various information including analysis results and the like to the outside. The output device 540 may include, for example, a display, speakers, a printer, and a communication network and remote output devices connected thereto, etc.
Of course, only some of the components of the electronic device that are relevant to the present application are shown in fig. 5 for simplicity, components such as buses, input/output interfaces, etc. being omitted. In addition, the electronic device may include any other suitable components depending on the particular application.
Exemplary computer program product and computer readable storage Medium
In addition to the methods and apparatus described above, embodiments of the application may also be a computer program product comprising computer program instructions which, when executed by a processor, cause the processor to perform the steps in a video storage method, a video playback method according to various embodiments of the application described in the "exemplary methods" section of this specification.
The computer program product may write program code for performing operations of embodiments of the present application in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present application may also be a computer-readable storage medium, on which computer program instructions are stored, which, when being executed by a processor, cause the processor to perform the steps in a video storage method, a video playback method according to various embodiments of the present application described in the "exemplary method" section above in the present specification.
The computer readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit embodiments of the application to the form disclosed herein. Although a number of example aspects and embodiments have been discussed above, a person of ordinary skill in the art will recognize certain variations, modifications, alterations, additions, and subcombinations thereof.
Claims (10)
1. A video storage method, applied to a campus network, comprising:
acquiring all video requests within a preset time; the video request is used for acquiring video data in other education networks;
Estimating the number of target requests corresponding to each video based on all video request distribution and a historical data model in preset time;
For each video data, determining a corresponding target duration based on the target request quantity; wherein the target request quantity is positively correlated with the target duration; the target request quantity is the request quantity within the preset time length in the future;
for each video data, storing part of the video data into a local storage space of a campus network; the partial data are data required by the video data corresponding to the video for playing the target duration;
monitoring video requests in the campus network in real time;
And if the local storage space of the campus network stores the partial data corresponding to the monitored video request, responding to the monitored video request based on the partial data stored in the local storage space.
2. The video storage method of claim 1, wherein responding to the video request based on the partial data stored in the local storage space comprises:
Controlling data which is not stored in a local storage space of a campus network in video data of the video request initiator cache request;
And controlling the video request initiator to play the cached data after finishing playing the data returned by the local storage space in response to the video request.
3. The video storage method of claim 1, wherein the margin to the local storage space of the campus network is obtained;
and adjusting data stored in a local storage space of the campus network based on the allowance.
4. The video storage method of claim 1, wherein the margin to the local storage space of the campus network is obtained;
And based on the allowance, adjusting the corresponding relation between the target request quantity and the target duration.
5. The video storage method according to claim 4, wherein adjusting the correspondence of the target request number and the target time length based on the margin includes:
and on the premise that the positive correlation between the target request quantity and the target time length is met, if the margin is larger than a first preset value, increasing the target time length corresponding to the target request quantity.
If the allowance is smaller than a second preset value, reducing target duration corresponding to the target request quantity; wherein the second preset value is smaller than the first preset value.
6. The video storage method according to claim 1, wherein estimating the number of target requests corresponding to each video based on the total video request distribution and the historical data model within a preset time includes:
inputting all the video requests into a preset historical data model in a distributed manner to obtain target request quantity corresponding to each video output by the historical data model;
the historical data model is a deep learning model.
7. A video playing method, applied to a personal terminal belonging to a campus network, comprising:
Sending a video request;
acquiring part of data returned by the campus network, wherein the campus network is used for executing the video storage method according to any one of claims 1 to 6;
playing part of data returned by the campus network, and simultaneously caching data which are not stored in a local storage space of the campus network in video data requested by a video request;
and playing the cached data after the playing of the data returned by the local storage space in response to the video request is completed.
8. A video storage device for use in a campus network, comprising:
the acquisition module is used for acquiring all video requests within a preset time; the video request is used for acquiring video data in other education networks;
the estimating module is used for estimating the target request quantity corresponding to each video based on all video request distribution and the historical data model in the preset time;
the determining module is used for determining corresponding target duration based on the target request quantity aiming at each video data; wherein the target request quantity is positively correlated with the target duration; the target request quantity is the request quantity within the preset time length in the future;
The storage module is used for storing partial data in the video data to a local storage space of the campus network according to each video data; the partial data are data required by the video data corresponding to the video for playing the target duration;
The detection module is used for monitoring video requests in the campus network in real time;
and the response module is used for responding to the monitored video request based on the partial data stored in the local storage space if the local storage space of the campus network stores the partial data corresponding to the monitored video request.
9. A video playback device for use with a personal terminal belonging to a campus network, comprising:
The sending module is used for sending the video request;
the data acquisition module is used for acquiring partial data returned by the campus network, wherein the campus network is used for executing the video storage method according to any one of claims 1-6;
the playing module is used for playing part of data returned by the campus network, and simultaneously caching data which are not stored in a local storage space of the campus network in video data requested by the video request; and playing the cached data after the playing of the data returned by the local storage space in response to the video request is completed.
10. An electronic device, comprising:
A processor and a memory for storing a program executable by the processor;
the processor is configured to implement the video storage method according to any one of claims 1 to 6, or the video playback method according to any one of claims 7, by running a program in the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410132261.2A CN117939230A (en) | 2024-01-30 | 2024-01-30 | Video storage method, video playing method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410132261.2A CN117939230A (en) | 2024-01-30 | 2024-01-30 | Video storage method, video playing method, device and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117939230A true CN117939230A (en) | 2024-04-26 |
Family
ID=90757418
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410132261.2A Pending CN117939230A (en) | 2024-01-30 | 2024-01-30 | Video storage method, video playing method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117939230A (en) |
-
2024
- 2024-01-30 CN CN202410132261.2A patent/CN117939230A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110781321B (en) | Multimedia content recommendation method and device | |
US11977967B2 (en) | Memory augmented generative temporal models | |
WO2019242222A1 (en) | Method and device for use in generating information | |
CN106851343B (en) | Method and device for live video | |
US11275744B2 (en) | Disaggregating latent causes for computer system optimization | |
CN113641835B (en) | Multimedia resource recommendation method and device, electronic equipment and medium | |
CN112182281B (en) | Audio recommendation method, device and storage medium | |
US11271984B1 (en) | Reduced bandwidth consumption via generative adversarial networks | |
KR101044976B1 (en) | Method for judging a the student's performance | |
US8257091B2 (en) | Matching learning objects with a user profile using top-level concept complexity | |
CN115375808A (en) | Behavior control method and device for virtual live character | |
CN117939230A (en) | Video storage method, video playing method, device and equipment | |
CN109246082B (en) | Data transmission method and device, electronic equipment and storage medium | |
US20160379510A1 (en) | System and method for adjusting the difficulty of a computer-implemented quiz | |
CN116405740A (en) | Self-adaptive volume adjustment processing method and device based on intelligent terminal | |
US20220013030A1 (en) | Extended service-providing system and method for providing artificial intelligence prediction results for extended education contents through api access interface server | |
CN112269942B (en) | Method, device and system for recommending object and electronic equipment | |
US20040172630A1 (en) | Server, computer system, object management method, server control method computer program | |
JP6921925B2 (en) | Parameter adjustment methods, devices, servers, computer-readable storage media and computer programs | |
KR20190032100A (en) | Method and apparatus for providing advertisement image | |
Phong et al. | Joint preloading and bitrate adaptation for short video streaming | |
CN113761343A (en) | Information pushing method and device, terminal equipment and storage medium | |
CN114422826A (en) | Multimedia content playing control method, device, equipment and medium | |
KR20220042598A (en) | Personalized recommendation method and system based on future interaction prediction | |
CN114567807B (en) | Video processing method and device, electronic equipment and computer storage 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 |