CN108206933A - A kind of video data acquisition methods and device based on video cloud storage system - Google Patents

A kind of video data acquisition methods and device based on video cloud storage system Download PDF

Info

Publication number
CN108206933A
CN108206933A CN201611170205.XA CN201611170205A CN108206933A CN 108206933 A CN108206933 A CN 108206933A CN 201611170205 A CN201611170205 A CN 201611170205A CN 108206933 A CN108206933 A CN 108206933A
Authority
CN
China
Prior art keywords
information
group
bit stream
mission bit
video data
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.)
Granted
Application number
CN201611170205.XA
Other languages
Chinese (zh)
Other versions
CN108206933B (en
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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201611170205.XA priority Critical patent/CN108206933B/en
Publication of CN108206933A publication Critical patent/CN108206933A/en
Application granted granted Critical
Publication of CN108206933B publication Critical patent/CN108206933B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

An embodiment of the present invention provides a kind of video data acquisition methods and device based on video cloud storage system.This method includes:Itself by power-down state be converted to electricity condition when, determine in assignment database whether there is mission bit stream group;If it is, for each mission bit stream group, corresponding information inquiring request is sent to video cloud storage system respectively;Obtain the response message for each information inquiring request;Based on each response message obtained, index information table corresponding with each mission bit stream group is obtained;For each directory entry in each index information table, send video data to the storage server with the identification information in the directory entry and obtain request;It obtains each video data and obtains the video data that the corresponding storage server of request is sent.This programme avoids user and video data acquisition instruction is re-issued, and shortens terminal and obtain the time spent needed for video data after the power is turned on again.

Description

A kind of video data acquisition methods and device based on video cloud storage system
Technical field
The present invention relates to technical field of video monitoring, more particularly to a kind of video data based on video cloud storage system Acquisition methods and device.
Background technology
In technical field of video monitoring, being widely used for video cloud storage system is general.In many cases, Yong Huxu A large amount of video data is obtained from video cloud storage system by terminal, such as obtains 3 monitoring devices simultaneously nearest 1 month in all video datas for acquiring, at this moment, user needs to issue the video data for these video datas to terminal Acquisition instruction.During terminal obtains these video datas from video cloud storage system, once terminal is due to some originals Closed because abnormal, when terminal again after the power is turned on, user needs to issue the video counts for these video datas to terminal again According to acquisition instruction, later, terminal can obtain these video datas from video cloud storage system from the beginning.
It is easily understood that re-issuing for video data acquisition instruction will bring very bad use body to user It tests.In addition, when terminal obtains these video datas from video cloud storage system from the beginning, the acquisition behaviour of these video datas Make to need to take a very long time, can also bring very bad usage experience to user in this way.Therefore, how user is avoided Video data acquisition instruction is re-issued and how to shorten terminal and obtains what is spent needed for video data after the power is turned on again Time is a urgent problem to be solved to those skilled in the art.
Invention content
The embodiment of the present invention be designed to provide a kind of video data acquisition methods based on video cloud storage system and Device re-issues video data acquisition instruction to avoid user, and effectively acquisition regards shortening terminal after the power is turned on again Frequency according to required cost time.
An embodiment of the present invention provides a kind of video data acquisition methods based on video cloud storage system, applied to end End, the video cloud storage system include storage server group, and the storage server group includes at least one storage service Device, the method includes:
Itself by power-down state be converted to electricity condition when, determine in the assignment database of itself whether there is any It is engaged in information group, wherein, each mission bit stream group includes monitoring device mark, start time point, end time point and newest Time point is obtained, the mission bit stream group in the assignment database does not complete for characterizing the terminal before the last power down Data acquisition task;
If it is, for each mission bit stream group in the assignment database, sent out respectively to the video cloud storage system Corresponding information inquiring request is sent, wherein, the corresponding information inquiring request of any mission bit stream group includes:The mission bit stream group In monitoring device mark, newest acquisition time point and end time point;
Obtain the response message for each information inquiring request;
Based on each response message obtained, index information table corresponding with each mission bit stream group is obtained, wherein, it is and any The corresponding index information table memory of information group contains multiple directory entries, and each directory entry includes:In the mission bit stream group Monitoring device mark, sub- period and the monitoring device with monitoring device mark acquire within the sub- period The identification information of a storage server in storage server where video data, also, in the mission bit stream group most The new period obtained between time point and end time point is by the sub- time in each directory entry in the index information table What section was formed, the sub- period in each directory entry in the index information table is different;
For each directory entry in each index information table, to the storage clothes with the identification information in the directory entry Business device sends video data and obtains request, wherein, which, which obtains, asks to include the monitoring device in the directory entry Mark and sub- period;
It obtains each video data and obtains the video data that the corresponding storage server of request is sent.
An embodiment of the present invention provides a kind of video data acquisition device based on video cloud storage system, applied to end End, the video cloud storage system include storage server group, and the storage server group includes at least one storage service Device, described device include:
First determining module, for itself by power-down state be converted to electricity condition when, determine the task data of itself With the presence or absence of any mission bit stream group in library, wherein, each mission bit stream group include monitoring device mark, start time point, End time point and newest acquisition time point, the mission bit stream group in the assignment database exist for characterizing the terminal The data acquisition task not completed before the last power down;
First sending module, in the definitive result of first determining module in the case of being, for described Each mission bit stream group being engaged in database sends corresponding information inquiring request to the video cloud storage system respectively, wherein, The corresponding information inquiring request of any mission bit stream group includes:Monitoring device mark in the mission bit stream group, newest acquisition Time point and end time point;
First obtains module, for obtaining the response message for each information inquiring request;
Second obtains module, for based on each response message obtained, obtaining index corresponding with each mission bit stream group Information table, wherein, index information table memory corresponding with any information group contains multiple directory entries, is wrapped in each directory entry It includes:Monitoring device mark, sub- period in the mission bit stream group and the monitoring device with monitoring device mark are at this The identification information of a storage server in storage server where the video data acquired in the sub- period, also, should The period between newest acquisition time point and end time point in mission bit stream group is by each rope in the index information table Draw what the sub- period in entry was formed, the sub- period in each directory entry in the index information table is different;
Second sending module, for each directory entry being directed in each index information table, in the directory entry Identification information storage server send video data obtain request, wherein, the video data obtain request include the rope Draw monitoring device mark and the sub- period in entry;
Third obtains module, for obtaining the video that each video data obtains the corresponding storage server of request and sends Data.
In the present solution, when terminal by power-down state be converted to electricity condition when, user issue video data and obtain without repeating Instruction fetch, in the assignment database of itself there are mission bit stream group in the case of, terminal can be directly according to task data In library there is mission bit stream group, determine itself unfinished data acquisition task before the last time power down, and continue to execute These unfinished data acquisition tasks can bring preferable usage experience to user in this way.In addition, each mission bit stream group In include newest acquisition time point, terminal will not obtain video data from the beginning, but since newest acquisition time point Video data is obtained, in this way, the video data that terminal has been got before the last power down certainly without reacquisition, therefore The time that terminal obtains needed for video data can effectively be shortened, and can also bring better usage experience to user in this way.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow of the video data acquisition methods based on video cloud storage system provided in an embodiment of the present invention Figure;
Fig. 2 is a kind of structure of the video data acquisition device based on video cloud storage system provided in an embodiment of the present invention Block diagram.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment shall fall within the protection scope of the present invention.
It is of the existing technology in order to solve the problems, such as, an embodiment of the present invention provides a kind of based on video cloud storage system Video data acquisition methods and device.
A kind of video data acquisition side based on video cloud storage system provided first below the embodiment of the present invention Method illustrates.
It is understood that cloud storage system is a large-scale, distributed storage system, main application is in need The scene of extensive long period data storage is carried out, there can be big data analysis etc..Video cloud storage system is One kind in cloud storage system is mainly used for the scenes such as storage and the video analysis of video data.
It should be noted that the video data acquisition methods are applied to terminal.Specifically, which can be fixed whole The mobile terminals such as end or mobile phone, tablet computer, this is all feasible.The video cloud storage system includes storage server Group, the storage server group include at least one storage server.
Referring to Fig. 1, show that a kind of video based on video cloud storage system that the embodiment of the present invention is provided regards in figure The flow chart of frequency acquisition methods.As shown in Figure 1, this method comprises the following steps:
S101, itself by power-down state be converted to electricity condition when, determine to whether there is in the assignment database of itself Any mission bit stream group, wherein, each mission bit stream group includes monitoring device mark, start time point, end time point, with And newest acquisition time point, the mission bit stream group in assignment database are used to characterize what terminal was not completed before the last power down Data acquisition task;If it is, perform S102.
It is easily understood that a monitoring device mark corresponds to a unique monitoring device.Specifically, the monitoring Device identification can be the ID number of the encoder in the monitoring device, and certainly, monitoring device mark can also pass through other shapes Formula effectively characterizes the monitoring device, can specifically be determined according to actual conditions, this is no longer going to repeat them.
Be converted to by power-down state electricity condition when, terminal can go to check immediately in the assignment database of itself whether There are any mission bit stream groups.If by checking, terminal is found in assignment database and there is no any mission bit stream groups, this says It is bright before the last power down, terminal does not receive any data acquisition task, is received alternatively, terminal has been successfully completed All data acquisition tasks arrived, therefore follow-up step is not carried out in terminal.If by checking, terminal is found in assignment database There is mission bit stream groups, this illustrates that terminal has received data acquisition task, also, these data before the last power down Acquisition task is simultaneously not successfully completed, wherein, a mission bit stream group corresponds to a unfinished data acquisition task, because This, terminal will continue to perform follow-up step, to complete these complete unfinished data acquisition tasks before the last power down.
Specifically, it is assumed that terminal finds that there is two mission bit stream groups in assignment database by checking:
Wherein, it is wrapped in a mission bit stream group (the mission bit stream group is known as mission bit stream group A1 in the description below) The monitoring device included is identified as ID1, and start time point is 9 days 9 December in 2016:00, end time point is on December 9th, 2016 10:00, newest acquisition time point is 9 days 9 December in 2016:30, this illustrates that terminal before the last power down, has succeeded The monitoring device with the encoder that ID number is ID1 has been got 9 days 9 December in 2016:00 to 2016 on December 9,9:30 Between the video data that acquires, still, the monitoring device also had not been obtained 9 days 9 December in 2016 in terminal:In December, 30 to 2016 9 days 10:The video data acquired between 00.
It is included in another mission bit stream group (the mission bit stream group is known as mission bit stream group A2 in the description below) Monitoring device be identified as ID2, start time point is 10 days 11 December in 2016:00, end time point is December 10 in 2016 Day 12:00, newest acquisition time point is 10 days 11 December in 2016:30, this illustrates terminal before the last power down, The monitoring device with the encoder that ID number is ID2 has successfully been got 10 days 11 December in 2016:In December, 00 to 2016 10 days 11:The monitoring device also had not been obtained 10 days 11 December in 2016 in the video data acquired between 30, still, terminal:30 To 10 days 12 December in 2016:The video data acquired between 00.
Next, terminal can create two data acquisition tasks, wherein, a data acquisition task and mission bit stream group A1 is corresponded to, and to obtain, to have ID number be the monitoring device of the encoder of ID1 9 days 9 December in 2016:30 to 2016 years December 9 Day 10:The video data acquired between 00;Another data acquisition task is corresponding with mission bit stream group A2, using obtain with ID number as The monitoring device of the encoder of ID2 was 10 days 11 December in 2016:30 to 2016 on December 10,12:The video counts acquired between 00 According to.
It should be noted that for the corresponding data acquisition tasks of mission bit stream group A1, in subsequent operation, terminal can be with First thread group is adjusted to perform the data acquisition task, wherein, multiple threads can be included in first thread group;For task The corresponding data acquisition tasks of information group A2, in the follow-up process, terminal can adjust the second sets of threads to perform the data and obtain Task is taken, wherein, the second sets of threads can also include multiple threads.In this way, the data acquisition task for mission bit stream group A1 It can concurrently be performed using different sets of threads from the data acquisition task for mission bit stream group A2, regarded with improving terminal acquisition The efficiency of frequency evidence.
For the convenience of description, in following embodiments in assignment database only include mission bit stream group A1 and mission bit stream It is illustrated in case of group A2.
S102 for each mission bit stream group in assignment database, sends corresponding letter to video cloud storage system respectively Inquiry request is ceased, wherein, the corresponding information inquiring request of any mission bit stream group includes:Monitoring in the mission bit stream group is set Standby mark, newest acquisition time point and end time point.
Specifically, it is assumed that the corresponding information inquiring requests of mission bit stream group A1 be B1, the corresponding information of mission bit stream group A2 Inquiry request is B2, then, the monitoring device that information inquiring request B1 includes is identified as ID1, and newest acquisition time point is 9 days 9 December in 2016:30, end time point is 9 days 10 December in 2016:00;The monitoring that information inquiring request B2 includes is set Standby to be identified as ID2, newest acquisition time point is 10 days 11 December in 2016:30, end time point is 10 days 12 December in 2016: 00。
S103 obtains the response message for each information inquiring request.
It is understood that after video cloud storage system obtains above- mentioned information inquiry request, video cloud storage system root It can go to check the monitoring device with the encoder that ID number is ID1 9 days 9 December in 2016 according to information inquiring request B1:30 To 9 days 10 December in 2016:Distribution situation of the video data acquired between 00 in each monitoring server, and accordingly generate and believe Cease the corresponding response messages of inquiry request B1.Similarly, video cloud storage system can also be gone to look into according to information inquiring request B2 See the monitoring device with the encoder that ID number is ID2 10 days 11 December in 2016:30 to 2016 on December 10,12:Between 00 Distribution situation information of the video data of acquisition in each storage server, and accordingly generate corresponding with information inquiring request B2 Response message.Later, video cloud storage system response message corresponding with information inquiring request B1 and can will be looked into information It askes the corresponding response messages of request B2 and is sent to terminal, in order to which terminal performs subsequent S104 according to the response message.
S104 based on each response message obtained, obtains index information table corresponding with each mission bit stream group, wherein, Index information table memory corresponding with any information group contains multiple directory entries, and each directory entry includes:The task is believed Monitoring device mark, sub- period in breath group and the monitoring device with monitoring device mark are within the sub- period The identification information of a storage server in storage server where the video data of acquisition, also, the mission bit stream group In newest acquisition time point and end time point between period be by each directory entry in the index information table What the sub- period was formed, the sub- period in each directory entry in the index information table is different.
Wherein, each directory entry in index information table being ranked sequentially according to setting.Specifically, each directory entry It can be arranged according to the sequencing of the sub- period included by it.
Specifically, it is assumed that terminal obtains, the corresponding index information tables of mission bit stream group A1 are as shown in Table 1 below:
The sub- period Monitoring device identifies The identification information of storage server
9 days 9 December in 2016:30 to 9:40 ID1 X1
9 days 9 December in 2016:40 to 9:50 ID1 X2
9 days 9 December in 2016:50 to 10:00 ID1 X3
Table 1
By table 1 it can easily be seen that the storage server with identification information X1 is stored with the encoder that ID number is ID1 Monitoring device was 9 days 9 December in 2016:30 to 9:The video data acquired between 40;Storage server with identification information X2 The monitoring device with the encoder that ID number is ID1 is stored with 9 days 9 December in 2016:40 to 9:The video counts acquired between 50 According to;Storage server with identification information X3 is stored with the monitoring device for the encoder that ID number is ID1 on December 9th, 2016 9:50 to 10:The video data acquired between 00.
Assuming that the corresponding index information tables of mission bit stream group A2 that terminal obtains are as shown in Table 2 below:
Table 2
It should be noted that meaning every in table 2, with reference to the explanation to table 1, details are not described herein.
S105, for each directory entry in each index information table, to the identification information in the directory entry Storage server sends video data and obtains request, wherein, which, which obtains, asks to include the prison in the directory entry Control device identification and sub- period.
It is easily understood that after table 1 is obtained, terminal can take to the storage with identification information X1, X2 and X3 respectively Business device sends corresponding video data and obtains request.Wherein, terminal is regarded to what the storage server with identification information X1 was sent Frequency data acquisition request includes ID1 and 2016 on December 9,9:30 to 9:40;Terminal takes to the storage with identification information X2 The video data that business device is sent obtains request and includes ID1 and 2016 on December 9,9:40 to 9:50;Terminal is believed to mark The video data that the storage server of breath X3 is sent obtains request and includes ID1 and 2016 on December 9,9:50 to 10:00.
In this way, after the storage server with identification information X1 receives video data and obtains request, the storage service Device can be by itself storage, the monitoring device with the encoder that ID number is ID1 9 days 9 December in 2016:30 to 9:It is adopted between 40 The video data of collection is sent to terminal;After the storage server with identification information X2, which receives video data, obtains request, The storage server can be by itself storage, the monitoring device with the encoder that ID number is ID1 9 days 9 December in 2016:40 To 9:The video data acquired between 50 is sent to terminal;It is obtained when the storage server with identification information X3 receives video data After taking request, which can be by itself storage, the monitoring device with the encoder that ID number is ID1 at 2016 12 On the moon 99:50 to 10:The video data acquired between 00 is sent to terminal.
Similarly, after table 2 are obtained, terminal can also be sent out according to three directory entries in table 2 to each storage server Corresponding video data is sent to obtain request, detailed process is with reference to the explanation to table 1, and details are not described herein.
S106 obtains each video data and obtains the video data that the corresponding storage server of request is sent.
It is easily understood that it is obtained when terminal sends corresponding video data to each storage server respectively according to Tables 1 and 2 After taking request, each video data obtains the corresponding storage server of request and (receives the video data and obtain depositing for request Store up server) it can be to the corresponding video data of terminal replies.Finally, terminal can be obtained successfully with the encoder that ID number is ID1 Monitoring device 9 days 9 December in 2016:30 to 2016 on December 9,10:The video data that is acquired between 00 and with ID Number for ID2 encoder monitoring device 10 days 11 December in 2016:30 to 2016 on December 10,12:What is acquired between 00 regards Frequency evidence, i.e. terminal have successfully completed its data acquisition task not completed before the last power down.
In the present solution, when terminal by power-down state be converted to electricity condition when, user issue video data and obtain without repeating Instruction fetch, in the assignment database of itself there are mission bit stream group in the case of, terminal can be directly according to task data In library there is mission bit stream group, determine itself unfinished data acquisition task before the last time power down, and continue to execute These unfinished data acquisition tasks can bring preferable usage experience to user in this way.In addition, each mission bit stream group In include newest acquisition time point, terminal will not obtain video data from the beginning, but since newest acquisition time point Video data is obtained, in this way, the video data that terminal has been got before the last power down certainly without reacquisition, therefore The time that terminal obtains needed for video data can effectively be shortened, and can also bring better usage experience to user in this way.
Optionally, itself by power-down state be converted to electricity condition when, determine whether deposited in the assignment database of itself Before any mission bit stream group, this method can also include:
Before the last power down, the video data acquisition instruction at least one information group is obtained, wherein, Mei Gexin Breath group includes monitoring device mark and predetermined acquisition time section.
It is easily understood that when terminal obtains the video data acquisition instruction at least one information group, this says Bright user goes for the corresponding video data of information group.Wherein, the corresponding video data of any information group is:With this The video data that the monitoring device of monitoring device mark in information group acquires in the predetermined acquisition time section in the information group.
Specifically, it is assumed that terminal obtains the video data acquisition instruction for information group Z1 and information group Z2.Wherein, believe The monitoring device that breath group Z1 includes is identified as ID1, and predetermined acquisition time section is 9 days 8 December in 2016:In December, 00 to 2016 9 days 10:00;The monitoring device that information group Z2 includes is identified as ID2, and predetermined amount of time is 10 days 9 December in 2016:00 to 10 days 12 December in 2016:00.
Based on the predetermined acquisition time section in each information group, respective numbers mission bit stream group is determined for each information group, In, the mission bit stream group determined for any information group includes:Monitoring device mark, start time point in the information group, End time point and newest acquisition time point, the predetermined acquisition time section in the information group are determined by being directed to the information group What respective numbers mission bit stream group corresponding period was formed, each mission bit stream group corresponding period is:The task is believed The period between start time point and end time point in breath group.
It can easily be seen that the predetermined acquisition time section in information group Z1 is shorter than the predetermined acquisition time section in information group Z2, Two mission bit stream groups, respectively A1 and A3 are determined at this point, terminal can be information group Z1, and determine that three are appointed for information group Z2 Business information group, respectively A2, A4 and A6.Wherein, mission bit stream group A3 includes:Monitoring device mark ID1, start time point 9 days 8 December in 2016:00 and end time point 9 days 9 December in 2016:00;Mission bit stream group A1 includes:Monitoring device Identify ID1, start time point 9 days 9 December in 2016:00 and end time point 9 days 10 December in 2016:00.Similarly, Mission bit stream group A4 includes:Monitoring device mark ID2, start time point 10 days 9 December in 2016:00 and the end time Put 10 days 10 December in 2016:00;Mission bit stream group A6 includes monitoring device mark ID2, start time point in December, 2016 10 days 10:00 and end time point 10 days 11 December in 2016:00;Mission bit stream group A2 includes monitoring device mark ID2, start time point 10 days 11 December in 2016:00 and end time point 10 days 12 December in 2016:00.It is readily appreciated that , for any mission bit stream group, when initial newest acquisition time point is with the starting in the mission bit stream group Between put it is identical.
Identified each mission bit stream group is stored to assignment database.
It is easily understood that after terminal stores identified each mission bit stream group into assignment database, task The content stored in database is as shown in Table 3 below:
Table 3
After table 3 are obtained, terminal can be using each mission bit stream table as a data acquisition task, and goes to obtain the number According to the corresponding video data of the task of acquisition, during data acquisition task is performed, terminal can be constantly to newest acquisition Time point is updated.For example, for mission bit stream group A1, corresponding video data is:It is ID1 with ID number Encoder monitoring device 9 days 8 December in 2016:00 to 2016 on December 9,9:The video data of 00 acquisition.Assuming that eventually End has got the monitoring device for the encoder that ID number is ID1 9 days 8 December in 2016:00 to 8:What is acquired between 05 regards Newest acquisition time point in the first row data in table 3 can be updated to 8 by frequency evidence, terminal:05.
In the present embodiment, at least one task groups have been divided into several small mission bit stream groups by terminal, in this way, terminal can , concurrently to perform the corresponding data acquisition task of each mission bit stream group, and then to improve terminal by multiple sets of threads and obtain video The efficiency of data.
Optionally, management server can also be included in cloud storage system;Wherein,
Corresponding information inquiring request is sent to video cloud storage system respectively, can be included:
Respectively corresponding information inquiring request is sent to management server;
The response message for each information inquiring request is obtained, can be included;
Obtain response message that management server is replied, for each information inquiring request.
Wherein, after management server receives each information inquiring request of terminal transmission, terminal can take to each storage Business device sends corresponding information inquiring request.
It should be noted that the quantity of the management server in video cloud storage system can be one, two or two More than a.In general, the quantity of the management server in video cloud storage system be set as two be it is more suitable, this Sample, when a management server breaks down, another management server can work normally, to ensure that entire video cloud is deposited The normal operation of storage system, in addition, the cost of entire video cloud storage system is relatively low.
In the present embodiment, after management server obtains information inquiring request B1, management server can be respectively to respectively depositing It stores up server and sends information inquiring request C1, information inquiring request C1 includes monitoring device mark ID1, newest acquisition time Point is 9 days 9 December in 2016:30 and end time point be 9 days 10 December in 2016:00.Similarly, work as management server After obtaining information inquiring request B2, management server can send information inquiring request C2, the letter to each storage server respectively Breath inquiry request includes monitoring device mark ID2, newest acquisition 10 days 11 December of 2016 time point:30, end time point 10 days 12 December in 2016:00.
For any storage server, after it obtains information inquiring request C1, it can go to check that therein is It is no to be stored with the monitoring device with the encoder that ID number is ID1 9 days 9 December in 2016:30 to 2016 on December 9,10: The either segment video data acquired in 00, if any, the storage server will inform the information to management server. Similarly, it after any storage server obtains information inquiring request C2, can go to check whether therein is stored with ID number The monitoring device of encoder for ID2 was 10 days 11 December in 2016:30 to 2016 on December 10,11:Any acquired between 30 Section video data, if any, the storage server can inform the information to management server.
When management server obtain that each storage server replys for C1 information after, these information can be carried out Summarize, to obtain table 4, the encoder that table 4 illustrates that there is ID number to be ID1 was 9 days 9 December in 2016:30 to 2016 years December 9 Day 10:Distribution situation of the video data acquired in 00 in each storage server.
The sub- period Monitoring device identifies The identification information of storage server
9 days 9 December in 2016:40 to 9:50 ID1 X2
9 days 9 December in 2016:50 to 10:00 ID1 X3
9 days 9 December in 2016:50 to 10:00 ID1 X3
9 days 9 December in 2016:30 to 9:40 ID1 X1
Table 4
It similarly, can be to these letters after management server obtains the information for C2 that each storage server is replied Breath is summarized, and to obtain table 5, table 5 illustrates the monitoring device for the encoder that there is ID number to be ID2 on December 10th, 2016 11:30 to 2016 on December 10,11:Distribution situation of the video data acquired between 30 in each storage server.
Table 5
The difference of operation performed after table 4 and table 5 is obtained according to management server, in the response message that terminal obtains There is also certain difference for content.
In a kind of embodiment of the embodiment of the present invention, management server may be used method of the prior art and come pair Table 4 is ranked up and duplicate removal, and then obtains table 1, and table 1 is carried and replies to terminal in a response message.Similarly, it manages Method of the prior art may be used to be ranked up to table 5 and duplicate removal in server, and then obtains table 2, and table 2 is carried Terminal is replied in one response message.It can easily be seen that in this embodiment, for the response message of any information inquiry request Include:Index information table corresponding to mission bit stream group corresponding with the information inquiring request;
Correspondingly, based on each response message obtained, index information table corresponding with each mission bit stream group, packet are obtained It includes:
Index information table corresponding with each mission bit stream group is extracted from each response message obtained.
Due to directly including index information table in response message, therefore terminal can extract index letter directly from response message Table is ceased, and subsequent operation is performed according to the index information table, in this way, terminal more convenient can quickly obtain required regard Frequency evidence.
In the another embodiment of the embodiment of the present invention, management server can directly carry table 4 in a response Terminal is replied in information, and table 5 is carried and replies to terminal in another response message.It can easily be seen that this embodiment In, include for the response message of any information inquiry request:The corresponding first object video data of the information inquiring request Distribution situation information in each storage server, wherein, the corresponding first object video data of any information inquiry request is: Newest acquisition time of the monitoring device with the monitoring device mark in the information inquiring request in the information inquiring request The video data of period acquisition between point and end time point;
Correspondingly, based on each response message obtained, index information table corresponding with each mission bit stream group, packet are obtained It includes:
Based on the distribution situation information in each response message obtained, index letter corresponding with each mission bit stream group is generated Cease table.
After terminal obtains the response message of carrying table 4, terminal may be used method of the prior art in table 4 into Row sequence and duplicate removal, and then generate table 1.Similarly, after terminal obtains the response message of carrying table 5, terminal may be used Table 5 is ranked up method of the prior art and duplicate removal, and then generates table 2.Later, terminal can according to Tables 1 and 2, Perform subsequent data acquisition operations.
It can easily be seen that in this embodiment, terminal can also relatively easily obtain index information table, and according to index Information table performs subsequent operation.
Optionally, corresponding information inquiring request is sent to video cloud storage system respectively, can included:
Respectively corresponding information inquiring request is sent to each storage server.
In the present embodiment, after any storage server obtains information inquiring request B1, it can go to check that therein is It is no to be stored with the monitoring device with the encoder that ID number is ID1 9 days 9 December in 2016:30 to 2016 on December 9,10: The either segment video data acquired in 00, if any, the storage server will inform the information to terminal.It is similar Ground after any storage server obtains information inquiring request B2, can go to check the volume for itself whether being stored with that ID number is ID2 The monitoring device of code device was 10 days 11 December in 2016:30 to 2016 on December 10,11:The either segment video counts acquired between 30 According to, if any, the storage server can inform the information to terminal.
The response message for each information inquiring request is obtained, can be included:
Obtain response letter storage server reply, for each information inquiring request for receiving information inquiring request Breath, wherein, response message that any storage server is replied, for any information inquiry request includes:The information inquiry Distribution situation information of corresponding second target video data in the storage server is asked, wherein, any information inquiry please Corresponding second target video data is asked to be:Monitoring device with the monitoring device mark in the information inquiring request is in the letter Cease the video data of the period acquisition between newest acquisition time point and the end time point in inquiry request.
Correspondingly, based on each response message obtained, index information table corresponding with each mission bit stream group, packet are obtained It includes:
Based on the distribution situation information in each response message obtained, index letter corresponding with each mission bit stream group is generated Cease table.
When terminal obtain that each storage server replys for B1 response message after, these information can be converged Always, to obtain table 4 above, later, terminal may be used method of the prior art and table 4 is ranked up and duplicate removal, and then Generate table 1.Similarly, after terminal obtains the response message for being directed to B2 that each storage server is replied, these can be believed Breath is summarized, and to obtain table 5 above, later, terminal may be used method of the prior art and table 5 is ranked up and gone Weight, and then generate table 2.Finally, terminal has just obtained each index information table, and terminal can be performed according to these index information tables Subsequent data acquisition operations.
Optionally, video cloud storage system can also include management server;Wherein,
For each mission bit stream group in assignment database, sending corresponding information inquiry to each storage server respectively please Before asking, this method can also include:
For each mission bit stream group in assignment database, corresponding information inquiring request is sent to management server.
Correspondingly, for each mission bit stream group in assignment database, corresponding letter is sent to each storage server respectively Inquiry request is ceased, can be included:
After each information inquiring request is sent to management server, if not receiving management server in preset time period Response message reply, for any information inquiry request, for each mission bit stream group in assignment database, respectively to each Storage server sends corresponding information inquiring request.
Wherein, preset time period can be 1 minute, 2 minutes or 5 minutes, certainly, the value of preset time period not office It is limited to this, can be specifically determined according to actual conditions, the present embodiment does not do this any restriction.
It is easily understood that in the case where management server is in normal operating conditions, looked into when it receives each information After asking request, corresponding information inquiring request can be sent to each storage server, and obtain what each storage server was replied Information, and according to the information obtained, obtain table 4 and table 5.Later, management server can be respectively obtained according to table 4 and table 5 Tables 1 and 2, and Tables 1 and 2 is carried respectively and replies to terminal in a response message;Alternatively, management server can be direct Table 4 and table 5 are carried and reply to terminal in a response message, so that terminal can be raw according to the response message obtained Into Tables 1 and 2, in order to perform subsequent data acquisition operations.But if terminal is looked into each information of management server transmission After asking request, do not receive response that management server is replied, for any information inquiry request in preset time period and believe Breath, this indicates that failure occurs in management server, and management server cannot respond to the information inquiring request for coming from terminal.For Guarantee terminal can successfully obtain video data, and terminal directly can send information inquiring request to each storage server.This Sample, the response message that terminal can directly be replied according to each storage server ultimately generate Tables 1 and 2, and according to table 1 and table 2, perform subsequent data acquisition operations.
As can be seen that in the present embodiment, even if in the case where storage server breaks down, terminal can also be successfully Required video data is got from video cloud storage system.
Optionally, for each mission bit stream group in assignment database, corresponding letter is sent to each storage server respectively Inquiry request is ceased, can be included:
For each mission bit stream group in assignment database, respectively to the identification information in first flag information group Each storage server sends corresponding information inquiring request, wherein, first flag information group is terminal local storage, and first marks Know the identification information that information group includes each storage server in storage server group, in normal operating conditions.
Need what is illustrated, terminal local storage first flag information group source it is various, it is clear in order to be laid out, subsequently into Row citing is introduced.
It is easily understood that when any storage server is in malfunction, even if terminal is sent out to the storage server Information inquiring request is sent, which can not also respond the information inquiring request, alternatively, the terminal can not receive at all To the information inquiring request, that is to say, that the system resource that terminal consumes when sending information inquiring request to the storage server It wastes in vain.In order to avoid there is the problem, terminal can be only into storage server group, in normal operating conditions Storage server send information inquiring request, in this way, each information inquiring request can be normally received at, also, connect Can also normally the information inquiring request be responded by receiving the storage server of information inquiring request.
Optionally, this method further includes:
According to the first time interval of setting, the second identifier information group that management server is sent is obtained, wherein, the second mark It is second time interval of the management server according to setting to know information group, to the shape of each storage server in storage server group What state obtained after being detected, it is that management server detects in second identifier information group, is in just in storage server group The identification information of each storage server of normal working condition.
It should be noted that first time interval and the second time interval may be the same or different.Specifically, One time interval can be 15 minutes, and the value of first time interval and the second time interval can be according to actual conditions come really Fixed, the present embodiment does not do this any restriction.
In the present embodiment, management server can send the heart according to the second time interval of setting to each storage server Hop-information.Come if management server has received in the certain period of time after sending out heartbeat message, such as in 10 seconds From in the response message of a certain storage server, this illustrates that the storage server for replying the response message is currently at normal work State;If terminal does not receive a certain storage clothes in 10 seconds after continuously sending out n times (such as 3 times) heartbeat message The response message of business device, management server is it is determined that failure currently occurs in the storage server at this time.In this way, pass through the party Formula, management server can easily determine second identifier information group, next, management server can will determine The second identifier information group gone out is sent to terminal.
According to obtained second identifier information group, first flag information group is updated.
After terminal obtains second identifier information group, terminal can directly be replaced existing using the second identifier information group First flag information group, in this way, each identification information in first flag information group will be always to be currently at available mode The identification information of storage server.
Optionally, it obtains each video data and obtains the video data that the corresponding storage server of request is sent, it can be with Including:
It obtains each video data and obtains video data and the video counts that the corresponding storage server of request is sent According to the monitoring device mark obtained in asking and sub- period;
It obtains each video data and obtains video data and the video counts that the corresponding storage server of request is sent According to the monitoring device mark obtained in asking and after the sub- period, this method can also include:
According to the monitoring device mark obtained and sub- period, corresponding mission bit stream is searched in assignment database Group, and at the end of the newest acquisition time point in the mission bit stream group found is updated to the sub- period obtained It carves;
When the newest acquisition time point in any mission bit stream group in assignment database is identical with end time point, from The mission bit stream group is deleted in assignment database.
In the present embodiment, obtain what the corresponding storage server of request was sent with a certain video data when terminal is obtained During video data, it can also obtain the monitoring device that the video data is obtained in request and identify and the sub- period.Specifically, it is assumed that Terminal has also obtained monitoring device mark ID2, sub- December 9 2016 period while a certain video data is obtained 8:00 to 2016 on December 9,8:00 to 8:05, at this moment, terminal will be searched in table 3 with ID2, and start time point and 9 days 8 December in 2016 is included between end time point:00 to 2016 on December 9,8:The mission bit stream group of 05 this period.Hold Easily find out, that terminal is finally found is mission bit stream group A3, next, terminal can be by the newest acquisition in mission bit stream group A3 Time point was by 9 days 8 December in 2016:00 is updated to 9 days 8 December in 2016:05.In this way, user is by checking each mission bit stream Newest acquisition time point in group can easily know data acquisition progress.
When the newest acquisition time point in any mission bit stream group in assignment database is identical with end time point, this Illustrate that the corresponding data acquisition task of mission bit stream group is successfully completed, at this time terminal can by the mission bit stream group from It is deleted in assignment database, the memory space of assignment database is held over to avoid the mission bit stream group.
To sum up, the present embodiment, when terminal by power-down state be converted to electricity condition when, user without repeat issue video counts According to acquisition instruction.In addition, the video data that terminal has been got before the last power down certainly without reacquisition, therefore eventually The time that end obtains needed for video data can effectively be shortened.
Below to a kind of video data acquisition device based on video cloud storage system that the embodiment of the present invention is provided into Row explanation.
It should be noted that a kind of video data based on video cloud storage system that the embodiment of the present invention is provided obtains Device is applied to terminal, and video cloud storage system includes storage server group, and storage server group includes at least one deposit Store up server.
Referring to Fig. 2, a kind of video counts based on video cloud storage system that the embodiment of the present invention is provided are shown in figure According to the structure diagram of acquisition device.As shown in Fig. 2, the device includes:
First determining module 21, for itself by power-down state be converted to electricity condition when, determine the number of tasks of itself According in library whether there is any mission bit stream group, wherein, each mission bit stream group include monitoring device identify, initial time Point, end time point and newest acquisition time point, mission bit stream group in assignment database is for characterizing terminal nearest one The data acquisition task not completed before secondary power down;
First sending module 22, in the definitive result of the first determining module in the case of being, for task data Each mission bit stream group in library sends corresponding information inquiring request to video cloud storage system respectively, wherein, any task letter The corresponding information inquiring request of breath group includes:Monitoring device mark, newest acquisition time point and knot in the mission bit stream group Beam time point;
First obtains module 23, for obtaining the response message for each information inquiring request;
Second obtains module 24, for based on each response message obtained, obtaining rope corresponding with each mission bit stream group Draw information table, wherein, index information table memory corresponding with any information group contains multiple directory entries, in each directory entry Including:Monitoring device mark, sub- period in the mission bit stream group and the monitoring device with monitoring device mark exist The identification information of a storage server in storage server where the video data acquired in the sub- period, also, The period between newest acquisition time point and end time point in the mission bit stream group is by each in the index information table What the sub- period in directory entry was formed, the sub- period in each directory entry in the index information table is different;
Second sending module 25, for each directory entry being directed in each index information table, to the directory entry In identification information storage server send video data obtain request, wherein, the video data obtain request include this Monitoring device mark and sub- period in directory entry;
Third obtains module 26, is regarded for obtain that each video data obtains that the corresponding storage server of request sends Frequency evidence.
In the present solution, when terminal by power-down state be converted to electricity condition when, user issue video data and obtain without repeating Instruction fetch, in the assignment database of itself there are mission bit stream group in the case of, terminal can be directly according to task data In library there is mission bit stream group, determine itself unfinished data acquisition task before the last time power down, and continue to execute These unfinished data acquisition tasks can bring preferable usage experience to user in this way.In addition, each mission bit stream group In include newest acquisition time point, terminal will not obtain video data from the beginning, but since newest acquisition time point Video data is obtained, in this way, the video data that terminal has been got before the last power down certainly without reacquisition, therefore The time that terminal obtains needed for video data can effectively be shortened, and can also bring better usage experience to user in this way.
Optionally, which can also include:
4th obtain module, for itself by power-down state be converted to electricity condition when, determine the task data of itself With the presence or absence of before any mission bit stream group in library, before the last power down, the video at least one information group is obtained Data acquisition instructs, wherein, each information group includes monitoring device mark and predetermined acquisition time section;
Second determining module, for based on the predetermined acquisition time section in each information group, respective counts to be determined for each information group Amount mission bit stream group, wherein, the mission bit stream group determined for any information group includes:Monitoring device in the information group Mark, start time point and end time point, the predetermined acquisition time section in the information group are determined by being directed to the information group What respective numbers mission bit stream group corresponding period was formed, each mission bit stream group corresponding period is:The task is believed The period between start time point and end time point in breath group;
Memory module, for storing identified each mission bit stream group to assignment database.
Optionally, management server is further included in cloud storage system;Wherein,
First sending module, is specifically used for:
Respectively corresponding information inquiring request is sent to management server;
First obtains module, is specifically used for;
Obtain response message that management server is replied, for each information inquiring request.
Optionally, include for the response message of any information inquiry request:Corresponding with the information inquiring request Index information table corresponding to information group of being engaged in;
Correspondingly, second module is obtained, be specifically used for:
Index information table corresponding with each mission bit stream group is extracted from each response message obtained.
Optionally, include for the response message of any information inquiry request:The information inquiring request corresponding first Distribution situation information of the target video data in each storage server, wherein, corresponding first mesh of any information inquiry request Marking video data is:Monitoring device with the monitoring device mark in the information inquiring request is in the information inquiring request The newest video data of period acquisition obtained between time point and end time point;
Correspondingly, second module is obtained, be specifically used for:
Based on the distribution situation information in each response message obtained, index letter corresponding with each mission bit stream group is generated Cease table.
Optionally, the first sending module is specifically used for:
Respectively corresponding information inquiring request is sent to each storage server;
First obtains module, is specifically used for:
Obtain response letter storage server reply, for each information inquiring request for receiving information inquiring request Breath, wherein, response message that any storage server is replied, for any information inquiry request includes:The information inquiry Distribution situation information of corresponding second target video data in the storage server is asked, wherein, any information inquiry please Corresponding second target video data is asked to be:Monitoring device with the monitoring device mark in the information inquiring request is in the letter Cease the video data of the period acquisition between newest acquisition time point and the end time point in inquiry request;
Correspondingly, second module is obtained, be specifically used for:
Based on the distribution situation information in each response message obtained, index letter corresponding with each mission bit stream group is generated Cease table.
Optionally, video cloud storage system further includes management server;Wherein,
The device further includes:
Third sending module, for for each mission bit stream group in assignment database, respectively to each storage server Before sending corresponding information inquiring request, for each mission bit stream group in assignment database, to management server transmission pair The information inquiring request answered;
Correspondingly, the first sending module is specifically used for:
After each information inquiring request is sent to management server, if not receiving management server in preset time period Response message reply, for any information inquiry request, for each mission bit stream group in assignment database, respectively to each Storage server sends corresponding information inquiring request.
Optionally, the first sending module is specifically used for:
For each mission bit stream group in assignment database, respectively to the identification information in first flag information group Each storage server sends corresponding information inquiring request, wherein, first flag information group is terminal local storage, and first marks Know the identification information that information group includes each storage server in storage server group, in normal operating conditions.
Optionally, which can also include:
5th obtains module, for according to the first time interval of setting, obtaining the second identifier that management server is sent Information group, wherein, second identifier information group is second time interval of the management server according to setting, in storage server group Each storage server state be detected after obtain, it is being detected for management server in second identifier information group, deposit Store up the identification information of each storage server in normal operating conditions in server group;
Update module, for according to obtained second identifier information group, being updated to first flag information group.
Optionally, third obtains module, is specifically used for:
It obtains each video data and obtains video data and the video counts that the corresponding storage server of request is sent According to the monitoring device mark obtained in asking and sub- period;
The device further includes:
Processing module, for the video counts sent in the storage server obtained corresponding to each video data acquisition request According to and the video data obtain request in monitoring device mark and the sub- period after, according to the monitoring device mark obtained Knowledge and sub- period, corresponding mission bit stream group is searched in assignment database, and will be in the mission bit stream group that found Newest acquisition time point is updated to the finish time of sub- period obtained;
Removing module, for working as the newest acquisition time point in any mission bit stream group in assignment database at the end of Between when putting identical, the mission bit stream group is deleted from assignment database.
To sum up, the present embodiment, when terminal by power-down state be converted to electricity condition when, user without repeat issue video counts According to acquisition instruction.In addition, the video data that terminal has been got before the last power down certainly without reacquisition, therefore eventually The time that end obtains needed for video data can effectively be shortened.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any this practical relationship or sequence.Moreover, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that Also there are other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is described using relevant mode, identical similar portion between each embodiment Point just to refer each other, and the highlights of each of the examples are difference from other examples.Especially for system reality For applying example, since it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (20)

1. a kind of video data acquisition methods based on video cloud storage system, which is characterized in that applied to terminal, the video Cloud storage system includes storage server group, and the storage server group includes at least one storage server, the method Including:
Itself by power-down state be converted to electricity condition when, determine in the assignment database of itself with the presence or absence of any task believe Breath group, wherein, each mission bit stream group includes monitoring device mark, start time point, end time point and newest acquisition Time point, the mission bit stream group in the assignment database are used to characterize the number that the terminal is not completed before the last power down According to the task of acquisition;
If it is, for each mission bit stream group in the assignment database, respectively to video cloud storage system transmission pair The information inquiring request answered, wherein, the corresponding information inquiring request of any mission bit stream group includes:In the mission bit stream group Monitoring device mark, newest acquisition time point and end time point;
Obtain the response message for each information inquiring request;
Based on each response message obtained, index information table corresponding with each mission bit stream group is obtained, wherein, with any information The corresponding index information table memory of group contains multiple directory entries, and each directory entry includes:Prison in the mission bit stream group The video that control device identification, sub- period and the monitoring device with monitoring device mark acquire within the sub- period The identification information of a storage server in storage server where data, also, newest in the mission bit stream group obtains It is by the sub- period structure in each directory entry in the index information table to take the period between time point and end time point Into, the sub- period in each directory entry in the index information table is different;
For each directory entry in each index information table, to the storage server with the identification information in the directory entry It sends video data and obtains request, wherein, which obtains the monitoring device mark asked to include in the directory entry With the sub- period;
It obtains each video data and obtains the video data that the corresponding storage server of request is sent.
2. according to the method described in claim 1, it is characterized in that, described be converted to obtain electricity condition at itself by power-down state When, determine that the method further includes with the presence or absence of before any mission bit stream group in the assignment database of itself:
Before the last power down, the video data acquisition instruction at least one information group is obtained, wherein, each information group Include monitoring device mark and predetermined acquisition time section;
Based on the predetermined acquisition time section in each information group, respective numbers mission bit stream group is determined for each information group, wherein, needle The mission bit stream group that any information group determines is included:Monitoring device mark, start time point in the information group, at the end of Between point and newest acquisition time point, the predetermined acquisition time section in the information group is the respective counts determined by being directed to the information group The amount mission bit stream group corresponding period is formed, and each mission bit stream group corresponding period is:In the mission bit stream group Start time point and end time point between period;
Identified each mission bit stream group is stored to the assignment database.
3. according to the method described in claim 1, it is characterized in that, further include management server in the cloud storage system;Its In,
It is described to send corresponding information inquiring request to the video cloud storage system respectively, including:
Respectively corresponding information inquiring request is sent to the management server;
The response message obtained for each information inquiring request, including;
Obtain response message that the management server is replied, for each information inquiring request.
4. according to the method described in claim 3, it is characterized in that,
Include for the response message of any information inquiry request:Mission bit stream group institute corresponding with the information inquiring request is right The index information table answered;
Correspondingly, it is described based on each response message obtained, obtain index information table corresponding with each mission bit stream group, packet It includes:
Index information table corresponding with each mission bit stream group is extracted from each response message obtained.
5. according to the method described in claim 3, it is characterized in that,
Include for the response message of any information inquiry request:The corresponding first object video data of the information inquiring request Distribution situation information in each storage server, wherein, the corresponding first object video data of any information inquiry request is: Newest acquisition time of the monitoring device with the monitoring device mark in the information inquiring request in the information inquiring request The video data of period acquisition between point and end time point;
Correspondingly, it is described based on each response message obtained, obtain index information table corresponding with each mission bit stream group, packet It includes:
Based on the distribution situation information in each response message obtained, index information corresponding with each mission bit stream group is generated Table.
6. according to the method described in claim 1, it is characterized in that,
It is described to send corresponding information inquiring request to the video cloud storage system respectively, including:
Respectively corresponding information inquiring request is sent to each storage server;
The response message obtained for each information inquiring request, including:
Obtain response letter storage server reply, for each information inquiring request for receiving described information inquiry request Breath, wherein, response message that any storage server is replied, for any information inquiry request includes:The information inquiry Distribution situation information of corresponding second target video data in the storage server is asked, wherein, any information inquiry please Corresponding second target video data is asked to be:Monitoring device with the monitoring device mark in the information inquiring request is in the letter Cease the video data of the period acquisition between newest acquisition time point and the end time point in inquiry request;
Correspondingly, it is described based on each response message obtained, obtain index information table corresponding with each mission bit stream group, packet It includes:
Based on the distribution situation information in each response message obtained, index information corresponding with each mission bit stream group is generated Table.
7. according to the method described in claim 6, it is characterized in that, the video cloud storage system further includes management server; Wherein,
Each mission bit stream group in the assignment database sends corresponding letter to each storage server respectively Before ceasing inquiry request, the method further includes:
For each mission bit stream group in the assignment database, sending corresponding information inquiry to the management server please It asks;
Correspondingly, each mission bit stream group in the assignment database is sent respectively to each storage server Corresponding information inquiring request, including:
After each described information inquiry request is sent to the management server, if not receiving the pipe in preset time period Response message that server is replied, for any information inquiry request is managed, is believed for each task in the assignment database Breath group sends corresponding information inquiring request to each storage server respectively.
8. the method according to the description of claim 7 is characterized in that each mission bit stream in the assignment database Group sends corresponding information inquiring request to each storage server respectively, including:
For each mission bit stream group in the assignment database, respectively to the identification information in first flag information group Each storage server sends corresponding information inquiring request, wherein, the first flag information group is the terminal local storage , the first flag information group includes each storage service in the storage server group, in normal operating conditions The identification information of device.
9. according to the method described in claim 8, it is characterized in that, the method further includes:
According to the first time interval of setting, the second identifier information group that the management server is sent is obtained, wherein, described the Two identification information groups are second time interval of the management server according to setting, to respectively depositing in the storage server group The state of storage server obtains after being detected, in the second identifier information group be it is that the management server detects, The identification information of each storage server in normal operating conditions in the storage server group;
According to obtained second identifier information group, the first flag information group is updated.
10. according to the method described in any one of claim 1-9, which is characterized in that each video data of acquisition obtains please The video data that corresponding storage server is asked to send, including:
Obtain that each video data obtains video data that the corresponding storage server of request sends and the video data obtains Take monitoring device mark and the sub- period in request;
The video data and the video counts for obtaining the corresponding storage server of each video data acquisition request and sending According to the monitoring device mark obtained in asking and after the sub- period, the method further includes:
According to the monitoring device mark obtained and sub- period, corresponding mission bit stream is searched in the assignment database Group, and at the end of the newest acquisition time point in the mission bit stream group found is updated to the sub- period obtained It carves;
When the newest acquisition time point in any mission bit stream group in the assignment database is identical with end time point, from The mission bit stream group is deleted in the assignment database.
11. a kind of video data acquisition device based on video cloud storage system, which is characterized in that described to regard applied to terminal Frequency cloud storage system includes storage server group, and the storage server group includes at least one storage server, the dress Put including:
First determining module, for itself by power-down state be converted to electricity condition when, in the assignment database for determining itself With the presence or absence of any mission bit stream group, wherein, each mission bit stream group includes monitoring device mark, start time point, end Time point and newest acquisition time point, mission bit stream group in the assignment database is for characterizing the terminal nearest The data acquisition task not completed before power down;
First sending module, in the definitive result of first determining module in the case of being, for the number of tasks According to each mission bit stream group in library, corresponding information inquiring request is sent to the video cloud storage system respectively, wherein, it is any The corresponding information inquiring request of mission bit stream group includes:Monitoring device mark in the mission bit stream group, newest acquisition time Point and end time point;
First obtains module, for obtaining the response message for each information inquiring request;
Second obtains module, for based on each response message obtained, obtaining index information corresponding with each mission bit stream group Table, wherein, index information table memory corresponding with any information group contains multiple directory entries, and each directory entry includes: Monitoring device mark, sub- period in the mission bit stream group and the monitoring device with monitoring device mark are in the son The identification information of a storage server in storage server where the video data acquired in period, also, this The period between newest acquisition time point and end time point in information group of being engaged in is by each index in the index information table What the sub- period in entry was formed, the sub- period in each directory entry in the index information table is different;
Second sending module, for each directory entry being directed in each index information table, to the mark in the directory entry The storage server for knowing information sends video data acquisition request, wherein, which obtains request and includes the index slip Monitoring device mark and sub- period in mesh;
Third obtains module, for obtaining the video counts that each video data obtains the corresponding storage server of request and sends According to.
12. according to the devices described in claim 11, which is characterized in that described device further includes:
4th obtains module, for itself by power-down state be converted to electricity condition when, in the assignment database for determining itself Before any mission bit stream group, before the last power down, the video data at least one information group is obtained Acquisition instruction, wherein, each information group includes monitoring device mark and predetermined acquisition time section;
Second determining module, for based on the predetermined acquisition time section in each information group, respective numbers to be determined for each information group Mission bit stream group, wherein, the mission bit stream group determined for any information group includes:Monitoring device mark in the information group Knowledge, start time point, end time point and newest acquisition time point, the predetermined acquisition time section in the information group is by being directed to Respective numbers mission bit stream group that the information group the determines corresponding period is formed, each mission bit stream group corresponding time Duan Wei:The period between start time point and end time point in the mission bit stream group;
Memory module, for storing identified each mission bit stream group to the assignment database.
13. according to the devices described in claim 11, which is characterized in that further include management server in the cloud storage system; Wherein,
First sending module, is specifically used for:
Respectively corresponding information inquiring request is sent to the management server;
Described first obtains module, is specifically used for;
Obtain response message that the management server is replied, for each information inquiring request.
14. device according to claim 13, which is characterized in that
Include for the response message of any information inquiry request:Mission bit stream group institute corresponding with the information inquiring request is right The index information table answered;
Correspondingly, described second module is obtained, be specifically used for:
Index information table corresponding with each mission bit stream group is extracted from each response message obtained.
15. device according to claim 13, which is characterized in that
Include for the response message of any information inquiry request:The corresponding first object video data of the information inquiring request Distribution situation information in each storage server, wherein, the corresponding first object video data of any information inquiry request is: Newest acquisition time of the monitoring device with the monitoring device mark in the information inquiring request in the information inquiring request The video data of period acquisition between point and end time point;
Correspondingly, described second module is obtained, be specifically used for:
Based on the distribution situation information in each response message obtained, index information corresponding with each mission bit stream group is generated Table.
16. according to the devices described in claim 11, which is characterized in that
First sending module, is specifically used for:
Respectively corresponding information inquiring request is sent to each storage server;
Described first obtains module, is specifically used for:
Obtain response letter storage server reply, for each information inquiring request for receiving described information inquiry request Breath, wherein, response message that any storage server is replied, for any information inquiry request includes:The information inquiry Distribution situation information of corresponding second target video data in the storage server is asked, wherein, any information inquiry please Corresponding second target video data is asked to be:Monitoring device with the monitoring device mark in the information inquiring request is in the letter Cease the video data of the period acquisition between newest acquisition time point and the end time point in inquiry request;
Correspondingly, described second module is obtained, be specifically used for:
Based on the distribution situation information in each response message obtained, index information corresponding with each mission bit stream group is generated Table.
17. device according to claim 16, which is characterized in that the video cloud storage system further includes management service Device;Wherein,
The method further includes:
Third sending module, for for each mission bit stream group in the assignment database, being taken respectively to each storage It is engaged in before the corresponding information inquiring request of device transmission, for each mission bit stream group in the assignment database, to the management Server sends corresponding information inquiring request;
Correspondingly, first sending module, is specifically used for:
After each described information inquiry request is sent to the management server, if not receiving the pipe in preset time period Response message that server is replied, for any information inquiry request is managed, is believed for each task in the assignment database Breath group sends corresponding information inquiring request to each storage server respectively.
18. device according to claim 17, which is characterized in that first sending module is specifically used for:
For each mission bit stream group in the assignment database, respectively to the identification information in first flag information group Each storage server sends corresponding information inquiring request, wherein, the first flag information group is the terminal local storage , the first flag information group includes each storage service in the storage server group, in normal operating conditions The identification information of device.
19. device according to claim 18, which is characterized in that described device further includes:
5th obtains module, for according to the first time interval of setting, obtaining the second identifier that the management server is sent Information group, wherein, the second identifier information group is second time interval of the management server according to setting, is deposited to described What the state of each storage server in storage server group obtained after being detected, be the pipe in the second identifier information group The identification information of each storage server in normal operating conditions in storage server group that reason server detects, described;
Update module, for according to obtained second identifier information group, being updated to the first flag information group.
20. according to the device described in any one of claim 11-19, which is characterized in that the third obtains module, specific to use In:
Obtain that each video data obtains video data that the corresponding storage server of request sends and the video data obtains Take monitoring device mark and the sub- period in request;
Described device further includes:
Processing module, for obtaining the video data that corresponding storage server is asked to send in each video data of acquisition, And the video data obtain request in monitoring device mark and the sub- period after, according to obtained monitoring device mark and The sub- period searches corresponding mission bit stream group, and will be in the mission bit stream group that found in the assignment database Newest acquisition time point is updated to the finish time of sub- period obtained;
Removing module, for working as the newest acquisition time point in any mission bit stream group in the assignment database at the end of Between when putting identical, the mission bit stream group is deleted from the assignment database.
CN201611170205.XA 2016-12-16 2016-12-16 Video data acquisition method and device based on video cloud storage system Active CN108206933B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611170205.XA CN108206933B (en) 2016-12-16 2016-12-16 Video data acquisition method and device based on video cloud storage system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611170205.XA CN108206933B (en) 2016-12-16 2016-12-16 Video data acquisition method and device based on video cloud storage system

Publications (2)

Publication Number Publication Date
CN108206933A true CN108206933A (en) 2018-06-26
CN108206933B CN108206933B (en) 2020-05-15

Family

ID=62601650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611170205.XA Active CN108206933B (en) 2016-12-16 2016-12-16 Video data acquisition method and device based on video cloud storage system

Country Status (1)

Country Link
CN (1) CN108206933B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111125436A (en) * 2018-10-31 2020-05-08 杭州海康威视系统技术有限公司 Data management method, device and system

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141627A (en) * 2007-10-23 2008-03-12 深圳市迅雷网络技术有限公司 Storage system and method of stream media file
CN101198037A (en) * 2008-01-03 2008-06-11 中兴通讯股份有限公司 Method for managing monitor video
CN103152423A (en) * 2013-03-15 2013-06-12 安科智慧城市技术(中国)有限公司 Cloud storage system and data access method thereof
CN103686072A (en) * 2013-11-15 2014-03-26 北京视联动力国际信息技术有限公司 Video internet video monitoring method and system, protocol conversion server, and video internet server
CN103902701A (en) * 2014-03-31 2014-07-02 北京车商汇软件有限公司 Data storage system and data storage method
WO2014123169A1 (en) * 2013-02-06 2014-08-14 Square Enix Holdings Co., Ltd. Game system, game apparatus, a method of controlling the same, a program, and a storage medium
CN104427351A (en) * 2013-08-30 2015-03-18 北京计算机技术及应用研究所 Time-overlapped video stream rapid-positioning method and system for video monitoring
CN105025106A (en) * 2015-07-28 2015-11-04 焦点科技股份有限公司 Breakpoint resuming method based on segmentation and meta-information
US9184884B2 (en) * 2012-05-18 2015-11-10 Futurewei Technologies, Inc. System and method for cloud-based live media ingestion and transcoding
CN105100290A (en) * 2015-09-30 2015-11-25 北京恒华伟业科技股份有限公司 Data synchronization method and device
CN105335387A (en) * 2014-07-04 2016-02-17 杭州海康威视系统技术有限公司 Retrieval method for video cloud storage system
CN105808546A (en) * 2014-12-30 2016-07-27 中国电信股份有限公司 Video file index management platform, system and method
CN105930233A (en) * 2016-05-19 2016-09-07 北京春鸿企业管理咨询有限公司 Method and system for automatically backing up data of specified public cloud account
CN105991660A (en) * 2015-01-27 2016-10-05 杭州海康威视系统技术有限公司 System for sharing resources among multiple cloud storage systems

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141627A (en) * 2007-10-23 2008-03-12 深圳市迅雷网络技术有限公司 Storage system and method of stream media file
CN101198037A (en) * 2008-01-03 2008-06-11 中兴通讯股份有限公司 Method for managing monitor video
US9184884B2 (en) * 2012-05-18 2015-11-10 Futurewei Technologies, Inc. System and method for cloud-based live media ingestion and transcoding
WO2014123169A1 (en) * 2013-02-06 2014-08-14 Square Enix Holdings Co., Ltd. Game system, game apparatus, a method of controlling the same, a program, and a storage medium
CN103152423A (en) * 2013-03-15 2013-06-12 安科智慧城市技术(中国)有限公司 Cloud storage system and data access method thereof
CN104427351A (en) * 2013-08-30 2015-03-18 北京计算机技术及应用研究所 Time-overlapped video stream rapid-positioning method and system for video monitoring
CN103686072A (en) * 2013-11-15 2014-03-26 北京视联动力国际信息技术有限公司 Video internet video monitoring method and system, protocol conversion server, and video internet server
CN103902701A (en) * 2014-03-31 2014-07-02 北京车商汇软件有限公司 Data storage system and data storage method
CN105335387A (en) * 2014-07-04 2016-02-17 杭州海康威视系统技术有限公司 Retrieval method for video cloud storage system
CN105808546A (en) * 2014-12-30 2016-07-27 中国电信股份有限公司 Video file index management platform, system and method
CN105991660A (en) * 2015-01-27 2016-10-05 杭州海康威视系统技术有限公司 System for sharing resources among multiple cloud storage systems
CN105025106A (en) * 2015-07-28 2015-11-04 焦点科技股份有限公司 Breakpoint resuming method based on segmentation and meta-information
CN105100290A (en) * 2015-09-30 2015-11-25 北京恒华伟业科技股份有限公司 Data synchronization method and device
CN105930233A (en) * 2016-05-19 2016-09-07 北京春鸿企业管理咨询有限公司 Method and system for automatically backing up data of specified public cloud account

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王帮元: "MongoDB在视频监控信息的云存储中的应用", 《兰州文理学院学报(自然科学版)》 *
王法: "基于云存储视频处理框架的研究与实现", 《计算机技术与发展》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111125436A (en) * 2018-10-31 2020-05-08 杭州海康威视系统技术有限公司 Data management method, device and system
CN111125436B (en) * 2018-10-31 2023-08-08 杭州海康威视系统技术有限公司 Data management method, device and system

Also Published As

Publication number Publication date
CN108206933B (en) 2020-05-15

Similar Documents

Publication Publication Date Title
CN104486445B (en) Distributed extendable resource monitoring system based on cloud platform
US20190042659A1 (en) Data writing and reading and apparatus and cloud storage system
CN103139255B (en) The method of Resources allocation mark and identification section
CN107066570A (en) Data managing method and device
CN106357778A (en) Session information sharing method, device and system
CN102571850B (en) Transaction committing system, method and equipment
CN105615832A (en) Medical image data acquisition method and device
CN106302843B (en) A kind of IP address library update method and device
CN106936623A (en) The management method of distributed cache system and cache cluster
CN111142746B (en) System quota calculation method and device
CN104484167B (en) Task processing method and device
WO2019024910A1 (en) Storage resource recovery method, apparatus and system
CN109614403A (en) The data consistency verification method and device of cluster service node
CN108513145A (en) A kind of control method and device of even wheat live streaming
CN103701653B (en) The processing method of a kind of interface hot plug configuration data and network configuration server
CN104182283B (en) A kind of task synchronization method
CN104965793B (en) A kind of cloud storage data node device
CN111459631A (en) Automatic batch processing method and system for server
CN108206933A (en) A kind of video data acquisition methods and device based on video cloud storage system
CN108710687A (en) A kind of acquisition methods and device of service identification sequence
CN111404978B (en) Data storage method and cloud storage system
CN112202909A (en) Online upgrading method and system for computer storage system
CN107092556A (en) Method of testing, device and equipment
CN109039781B (en) Network equipment fault diagnosis method, execution node, server and system
CN107819729A (en) A kind of data request method and its system, access device, storage device

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
GR01 Patent grant
GR01 Patent grant