CN103152620B - The method and system of the different Online Videos of dynamic load - Google Patents
The method and system of the different Online Videos of dynamic load Download PDFInfo
- Publication number
- CN103152620B CN103152620B CN201310061069.0A CN201310061069A CN103152620B CN 103152620 B CN103152620 B CN 103152620B CN 201310061069 A CN201310061069 A CN 201310061069A CN 103152620 B CN103152620 B CN 103152620B
- Authority
- CN
- China
- Prior art keywords
- video
- fragment
- auxiliary
- auxiliary fragment
- dynamic load
- 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.)
- Active
Links
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The method and system that the invention provides the different Online Videos of a kind of dynamic load, the method comprises: storage belongs to the video main body file ID of same video file and the corresponding relation of video profile; Wherein, video profile comprises the auxiliary fragment memory address of video and the auxiliary fragment ID of video; In the time that needs load the auxiliary fragment of video, resolve video profile, obtain the auxiliary fragment ID of video; Then search buffer memory, judge that in buffer memory, whether storing the video corresponding with the auxiliary fragment ID of video assists fragment, if not, further resolve video profile, obtain the auxiliary fragment memory address of video, then obtain the auxiliary fragment of video according to the auxiliary fragment memory address of video, and auxiliary video fragment is deposited in buffer memory. To each video file in video album, do not need to re-cover the video head, video run-out or the video ads that load identical content, simplify video loading procedure, improve video loading efficiency.
Description
Technical field
The invention belongs to video playback control technology field, be specifically related to the different Online Videos of a kind of dynamic loadMethod and system.
Background technology
Video can be divided into local video and the large class of Online Video two; Wherein, local video refers to be adapted at this localityThe local image video of playing, Online Video refers to be adapted at the online network flow-medium image of playing in network to be lookedFrequently. Along with network developing rapidly and universal, Online Video is just being widely used in video request program, network is drilledShow, long-distance education, network video advertisement etc. Internet Information Service field.
Online Video quantity is huge, and, for belonging to multiple video files that a serial attribute is relevant,Usually have and need to be made as video album, for unified style, each that belongs to same video album lookedFrequency file has identical video head and video run-out, is only video content difference.
In prior art, for each video file of same video album, load one of them videoAfter file, in the time loading another video file, need to re-cover and load the video head of this video file and lookFrequently run-out, has the low problem of complex operation, loading efficiency of video loading procedure, thereby has improved videoLoad time.
Summary of the invention
For the defect of prior art existence, the invention provides the method for the different Online Videos of a kind of dynamic loadAnd system, to each video file in video album, do not need to re-cover load identical content video head,Video run-out or video ads, thus simplify video loading procedure, improve video loading efficiency, finalImprove video-see person's viewing experience.
The technical solution used in the present invention is as follows:
The method that the invention provides the different Online Videos of a kind of dynamic load, comprises the following steps:
S1, Online Video comprises video main body file and the auxiliary fragment of video; Storage belongs to same video fileVideo main body file ID and the corresponding relation of video profile; Wherein, described video profile comprisesThe auxiliary fragment memory address of video and the auxiliary fragment ID of video;
S2, before video main body file described in dynamic load, or, in video main body described in dynamic loadAmong the process of file, or, after video main body file described in dynamic load, described in needs loadingWhen the auxiliary fragment of video, resolve described video profile, obtain the auxiliary fragment ID of video; Then search slowDeposit, judge that in described buffer memory, whether storing the video corresponding with the auxiliary fragment ID of described video assists fragment,If judged result is no, carry out S3; If judged result is yes, carry out S4;
S3, further resolves described video profile, obtains the auxiliary fragment memory address of described video, soObtain the auxiliary fragment of described video according to the auxiliary fragment memory address of described video afterwards, and described video is auxiliaryFragment deposits in buffer memory; Then carry out S4;
S4 reads described video auxiliary fragment, then video supplementary plate described in dynamic load from described buffer memorySection.
Preferably, the auxiliary fragment of described video comprises the one in video head, video run-out and video adsOr several.
Preferably, video head described in dynamic load before video main body file described in dynamic load; MovingState loads after described video main body file video run-out described in dynamic load; Video master described in dynamic loadVideo ads described in dynamic load among the process of body file.
Preferably, in S3, after depositing auxiliary described video fragment in buffer memory, also comprise:
When the auxiliary fragment of described video, in described buffer memory, free time reaches predefined time span continuouslyTime, from described buffer memory, delete the auxiliary fragment of described video.
The present invention also provides the system of the different Online Videos of a kind of dynamic load, comprising:
Memory module, Online Video comprises video main body file and the auxiliary fragment of video; Described memory module is usedBelong to the video main body file ID of same video file and the corresponding relation of video profile in storage; Wherein,Described video profile comprises the auxiliary fragment memory address of video and the auxiliary fragment ID of video;
The first parsing module, before video main body file described in dynamic load, or, in dynamic load instituteState among the process of video main body file, or, after video main body file described in dynamic load, work as needWhile loading the auxiliary fragment of described video, described the first parsing module is used for resolving described video profile,Obtain the auxiliary fragment ID of video;
Search module, for searching buffer memory, judge in described buffer memory and whether store with described first and resolve mouldPiece is resolved the auxiliary fragment of video that the auxiliary fragment ID of the described video obtaining is corresponding;
The second parsing module, for when described in search module and do not find and described video at described buffer memoryWhen the auxiliary fragment of video corresponding to auxiliary fragment ID, further resolve described video profile, described in acquisitionVideo is assisted fragment memory address;
Acquisition module, for resolving the auxiliary fragments store of the described video obtaining according to described the second parsing moduleAddress, obtains the auxiliary fragment of described video;
Deposit module in, deposit buffer memory in for the auxiliary fragment of described video that described acquisition module is got;
Read module, for when described in search module and find and the auxiliary fragment of described video at described buffer memoryWhen the video that ID is corresponding is assisted fragment, or, when the described module that deposits in deposits described video in described buffer memoryWhen auxiliary fragment, read the auxiliary fragment of described video from described buffer memory, then described in dynamic load, video is auxiliaryHelp fragment.
Beneficial effect of the present invention is as follows:
The method and system of the different Online Videos of dynamic load provided by the invention, to each in video albumVideo file, is first loaded into the video head of identical content, video run-out or video ads in buffer memory,, only need to from buffer memory, directly adjust need to call these video head, video run-out or video ads time when follow-upWith, and do not need again to reload video head, video run-out or video ads, that is: do not need to re-coverLoad video head, video run-out or the video ads of identical content, thereby simplified video loading procedure,Improve video loading efficiency, finally improved video-see person's viewing experience.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the method for the different Online Videos of dynamic load provided by the invention;
Fig. 2 is the structural representation of the system of the different Online Videos of dynamic load provided by the invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, the present invention is described in detail:
As shown in Figure 1, the invention provides the method for the different Online Videos of a kind of dynamic load, comprise the following steps:
S1, Online Video comprises video main body file and the auxiliary fragment of video; Storage belongs to same video fileVideo main body file ID and the corresponding relation of video profile; Wherein, described video profile comprisesThe auxiliary fragment memory address of video and the auxiliary fragment ID of video. Wherein, the auxiliary fragment of video comprise video head,One or more in video run-out and video ads.
S2, before video main body file described in dynamic load, or, in video main body described in dynamic loadAmong the process of file, or, after video main body file described in dynamic load, described in needs loadingWhen the auxiliary fragment of video, resolve described video profile, obtain the auxiliary fragment ID of video; Then search slowDeposit, judge that in described buffer memory, whether storing the video corresponding with the auxiliary fragment ID of described video assists fragment,If judged result is no, carry out S3; If judged result is yes, carry out S4.
Concrete, video head described in dynamic load before video main body file described in dynamic load; MovingState loads after described video main body file video run-out described in dynamic load; Video master described in dynamic loadVideo ads described in dynamic load among the process of body file.
In practical application, especially for each video file that belongs to same video album, its common toolHaving identical video head, video run-out and video ads, is only video content difference. Therefore, for avoidingRe-cover video head, video run-out and video ads are loaded, in the present invention, load video firstWhen head, video run-out or video ads, be loaded in buffer memory, follow-up when calling same videoWhen head, video run-out or video ads, only need from buffer memory, directly call, and need to from hard disk, not weighNew loading, thus the video load time shortened.
In addition, in this step, after depositing auxiliary described video fragment in buffer memory, also comprise:
When the auxiliary fragment of described video, in described buffer memory, free time reaches predefined time span continuouslyTime, from described buffer memory, delete the auxiliary fragment of described video. By this kind of mode, can ensure to deposit in buffer memoryThe auxiliary fragment of the video being often called to that storage is active; For the auxiliary segment of not invoked video for a long time,From buffer memory, delete in time, thus the utilization rate of raising buffer memory.
S3, further resolves described video profile, obtains the auxiliary fragment memory address of described video, soObtain the auxiliary fragment of described video according to the auxiliary fragment memory address of described video afterwards, and described video is auxiliaryFragment deposits in buffer memory; Then carry out S4;
S4 reads described video auxiliary fragment, then video supplementary plate described in dynamic load from described buffer memorySection.
As shown in Figure 2, the present invention also provides the system of the different Online Videos of a kind of dynamic load, comprising:
Memory module, Online Video comprises video main body file and the auxiliary fragment of video; Described memory module is usedBelong to the video main body file ID of same video file and the corresponding relation of video profile in storage; Wherein,Described video profile comprises the auxiliary fragment memory address of video and the auxiliary fragment ID of video;
The first parsing module, before video main body file described in dynamic load, or, in dynamic load instituteState among the process of video main body file, or, after video main body file described in dynamic load, work as needWhile loading the auxiliary fragment of described video, described the first parsing module is used for resolving described video profile,Obtain the auxiliary fragment ID of video;
Search module, for searching buffer memory, judge in described buffer memory and whether store with described first and resolve mouldPiece is resolved the auxiliary fragment of video that the auxiliary fragment ID of the described video obtaining is corresponding;
The second parsing module, for when described in search module and do not find and described video at described buffer memoryWhen the auxiliary fragment of video corresponding to auxiliary fragment ID, further resolve described video profile, described in acquisitionVideo is assisted fragment memory address;
Acquisition module, for resolving the auxiliary fragments store of the described video obtaining according to described the second parsing moduleAddress, obtains the auxiliary fragment of described video;
Deposit module in, deposit buffer memory in for the auxiliary fragment of described video that described acquisition module is got;
Read module, for when described in search module and find and the auxiliary fragment of described video at described buffer memoryWhen the video that ID is corresponding is assisted fragment, or, when the described module that deposits in deposits described video in described buffer memoryWhen auxiliary fragment, read the auxiliary fragment of described video from described buffer memory, then described in dynamic load, video is auxiliaryHelp fragment.
The method and system of the different Online Videos of dynamic load provided by the invention, to each in video albumVideo file, is first loaded into the video head of identical content, video run-out or video ads in buffer memory,, only need to from buffer memory, directly adjust need to call these video head, video run-out or video ads time when follow-upWith, and do not need again to reload video head, video run-out or video ads, that is: do not need to re-coverLoad video head, video run-out or the video ads of identical content, thereby simplified video loading procedure,Improve video loading efficiency, finally improved video-see person's viewing experience.
The above is only the preferred embodiment of the present invention, it should be pointed out that common for the artTechnical staff, under the premise without departing from the principles of the invention, can also make some improvements and modifications,These improvements and modifications also should be looked protection scope of the present invention.
Claims (2)
1. a method for the different Online Videos of dynamic load, is characterized in that, comprises the following steps:
S1, Online Video comprises video main body file and the auxiliary fragment of video; Storage belongs to same video albumIn the video main body ID of each video file and the corresponding relation of video profile; Wherein, described video is joinedPut file and comprise the auxiliary fragment memory address of video and the auxiliary fragment ID of video;
S2, before video main body file described in dynamic load, or, in video main body described in dynamic loadAmong the process of file, or, after video main body file described in dynamic load, described in needs loadingWhen the auxiliary fragment of video, resolve described video profile, obtain the auxiliary fragment ID of video; Then search slowDeposit, judge that in described buffer memory, whether storing the video corresponding with the auxiliary fragment ID of described video assists fragment,If judged result is no, carry out S3; If judged result is yes, carry out S4;
S3, further resolves described video profile, obtains the auxiliary fragment memory address of described video, soObtain the auxiliary fragment of described video according to the auxiliary fragment memory address of described video afterwards, and described video is auxiliaryFragment deposits in buffer memory; Then carry out S4;
S4 reads described video auxiliary fragment, then video supplementary plate described in dynamic load from described buffer memorySection;
Wherein, the auxiliary fragment of described video comprise a kind of in video head, video run-out and video ads orSeveral;
Video head described in dynamic load before video main body file described in dynamic load; In dynamic load instituteState after video main body file video run-out described in dynamic load; At video main body file described in dynamic loadVideo ads described in dynamic load among process;
Wherein, after depositing auxiliary described video fragment in buffer memory, also comprise:
When the auxiliary fragment of described video, in described buffer memory, free time reaches predefined time span continuouslyTime, from described buffer memory, delete the auxiliary fragment of described video.
2. a system for the different Online Videos of dynamic load, is characterized in that, comprising:
Memory module, Online Video comprises video main body file and the auxiliary fragment of video; Described memory module is usedBelong to the video main body ID of each video file in same video album and the correspondence of video profile in storageRelation; Wherein, described video profile comprises the auxiliary fragment memory address of video and the auxiliary fragment ID of video;Wherein, the auxiliary fragment of described video comprises one or more in video head, video run-out and video ads;
The first parsing module, before video main body file described in dynamic load, or, in dynamic load instituteState among the process of video main body file, or, after video main body file described in dynamic load, work as needWhile loading the auxiliary fragment of described video, described the first parsing module is used for resolving described video profile,Obtain the auxiliary fragment ID of video;
Search module, for searching buffer memory, judge in described buffer memory and whether store with described first and resolve mouldPiece is resolved the auxiliary fragment of video that the auxiliary fragment ID of the described video obtaining is corresponding;
The second parsing module, for when described in search module and do not find and described video at described buffer memoryWhen the auxiliary fragment of video corresponding to auxiliary fragment ID, further resolve described video profile, described in acquisitionVideo is assisted fragment memory address;
Acquisition module, for resolving the auxiliary fragments store of the described video obtaining according to described the second parsing moduleAddress, obtains the auxiliary fragment of described video;
Deposit module in, deposit buffer memory in for the auxiliary fragment of described video that described acquisition module is got;
Read module, for when described in search module and find and the auxiliary fragment of described video at described buffer memoryWhen the video that ID is corresponding is assisted fragment, or, when the described module that deposits in deposits described video in described buffer memoryWhen auxiliary fragment, read the auxiliary fragment of described video from described buffer memory, then described in dynamic load, video is auxiliaryHelp fragment;
Removing module, for when the auxiliary fragment of described video, at described buffer memory, free time reaches in advance continuouslySet time span time, from described buffer memory, delete the auxiliary fragment of described video.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310061069.0A CN103152620B (en) | 2013-02-27 | 2013-02-27 | The method and system of the different Online Videos of dynamic load |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310061069.0A CN103152620B (en) | 2013-02-27 | 2013-02-27 | The method and system of the different Online Videos of dynamic load |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103152620A CN103152620A (en) | 2013-06-12 |
CN103152620B true CN103152620B (en) | 2016-05-11 |
Family
ID=48550449
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310061069.0A Active CN103152620B (en) | 2013-02-27 | 2013-02-27 | The method and system of the different Online Videos of dynamic load |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103152620B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103699309B (en) * | 2013-11-28 | 2017-08-15 | 小米科技有限责任公司 | A kind of method for recording of synchronization video, device and mobile terminal |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1489333A (en) * | 2002-10-10 | 2004-04-14 | 华为技术有限公司 | Method for updating content in content-transmitting network |
CN1874490A (en) * | 2006-06-30 | 2006-12-06 | 华中科技大学 | Disk buffering method in use for video on demand system of peer-to-peer network |
CN102547447A (en) * | 2010-12-14 | 2012-07-04 | 腾讯科技(深圳)有限公司 | Method, device and system for downloading video files |
CN102857795A (en) * | 2012-08-29 | 2013-01-02 | 四三九九网络股份有限公司 | Method for adding dynamic cinema advertisement to video player |
CN102855909A (en) * | 2012-08-29 | 2013-01-02 | 四三九九网络股份有限公司 | Batch dynamic loading method for video titles |
-
2013
- 2013-02-27 CN CN201310061069.0A patent/CN103152620B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1489333A (en) * | 2002-10-10 | 2004-04-14 | 华为技术有限公司 | Method for updating content in content-transmitting network |
CN1874490A (en) * | 2006-06-30 | 2006-12-06 | 华中科技大学 | Disk buffering method in use for video on demand system of peer-to-peer network |
CN102547447A (en) * | 2010-12-14 | 2012-07-04 | 腾讯科技(深圳)有限公司 | Method, device and system for downloading video files |
CN102857795A (en) * | 2012-08-29 | 2013-01-02 | 四三九九网络股份有限公司 | Method for adding dynamic cinema advertisement to video player |
CN102855909A (en) * | 2012-08-29 | 2013-01-02 | 四三九九网络股份有限公司 | Batch dynamic loading method for video titles |
Also Published As
Publication number | Publication date |
---|---|
CN103152620A (en) | 2013-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105718455B (en) | A kind of data query method and device | |
EP2863310B1 (en) | Data processing method and apparatus, and shared storage device | |
CN103116627A (en) | Database access method with high concurrency service-oriented architecture (SOA) technology and system | |
US9542397B1 (en) | File block addressing for backups | |
KR20170123336A (en) | File manipulation method and apparatus | |
CN103034722B (en) | A kind of Internet video comment polyplant and method | |
US9110820B1 (en) | Hybrid data storage system in an HPC exascale environment | |
CN103440290A (en) | Big data loading system and method | |
CN110674154A (en) | Spark-based method for inserting, updating and deleting data in Hive | |
CN103984745A (en) | Distributed video vertical searching method and system | |
CN104199684B (en) | The implementation method and device of browser cold start-up | |
CN103150402A (en) | Index-code-based virtual file system, establishment method and access method | |
CN102223410A (en) | Searching method of intelligent information terminal and terminal | |
CN103279474A (en) | Video file index method and system | |
CN103744875B (en) | Data quick migration method and system based on file system | |
CN104572505A (en) | System and method for ensuring eventual consistency of mass data caches | |
CN106302659A (en) | A kind of based on cloud storage system promotes access data quick storage method | |
CN102467525A (en) | Document associating method and system | |
CN103455335A (en) | Multilevel classification Web implementation method | |
CN107145499A (en) | The method and apparatus filed for ahead daily record | |
CN113806300A (en) | Data storage method, system, device, equipment and storage medium | |
CN106919696B (en) | SEO site construction method and SEO request response method | |
CN106250501B (en) | Report processing method and reporting system | |
JPWO2014010038A1 (en) | Information processing system | |
CN105677579A (en) | Data access method and system in cache system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |