CN108206933B - Video data acquisition method and device based on video cloud storage system - Google Patents

Video data acquisition method and device based on video cloud storage system Download PDF

Info

Publication number
CN108206933B
CN108206933B CN201611170205.XA CN201611170205A CN108206933B CN 108206933 B CN108206933 B CN 108206933B CN 201611170205 A CN201611170205 A CN 201611170205A CN 108206933 B CN108206933 B CN 108206933B
Authority
CN
China
Prior art keywords
information
task
video data
information group
group
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611170205.XA
Other languages
Chinese (zh)
Other versions
CN108206933A (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the invention provides a video data acquisition method and device based on a video cloud storage system. The method comprises the following steps: when the state of the self is converted from a power-off state to a power-on state, determining whether a task information group exists in a task database; if so, respectively sending corresponding information query requests to the video cloud storage system aiming at each task information group; obtaining response information aiming at each information inquiry request; acquiring an index information table corresponding to each task information group based on each acquired response information; sending a video data acquisition request to a storage server with identification information in each index entry aiming at each index entry in each index information table; and acquiring the video data sent by the storage server corresponding to each video data acquisition request. The scheme avoids the re-issuing of the video data acquisition instruction by the user, and shortens the time spent on acquiring the video data after the terminal is powered on again.

Description

Video data acquisition method and device based on video cloud storage system
Technical Field
The invention relates to the technical field of video monitoring, in particular to a video data acquisition method and device based on a video cloud storage system.
Background
In the technical field of video monitoring, a video cloud storage system is widely applied. In many cases, a user needs to acquire a large amount of video data from a video cloud storage system through a terminal, for example, all video data acquired by 3 monitoring devices in the last 1 month are acquired simultaneously, and at this time, the user needs to issue a video data acquisition instruction for the video data to the terminal. In the process that the terminal acquires the video data from the video cloud storage system, once the terminal is abnormally closed for some reasons, after the terminal is powered on again, the user needs to issue a video data acquisition instruction for the video data to the terminal again, and then the terminal can acquire the video data from the video cloud storage system from the beginning.
It is easy to understand that the re-issuing of the video data acquisition instruction will bring a very bad use experience to the user. In addition, when the terminal acquires the video data from the video cloud storage system from the beginning, the acquisition operation of the video data takes a very long time, which also brings a very bad use experience to the user. Therefore, it is a problem to be solved by those skilled in the art how to avoid the re-issuing of the video data obtaining instruction by the user and how to shorten the time required for obtaining the video data after the terminal is powered on again.
Disclosure of Invention
The embodiment of the invention aims to provide a video data acquisition method and device based on a video cloud storage system, so as to avoid the re-issuing of a video data acquisition instruction by a user and effectively shorten the time spent on acquiring video data after a terminal is powered on again.
The embodiment of the invention provides a video data acquisition method based on a video cloud storage system, which is applied to a terminal, wherein the video cloud storage system comprises a storage server group, the storage server group comprises at least one storage server, and the method comprises the following steps:
when the power failure state of the terminal is converted into the power-on state, determining whether any task information group exists in a task database of the terminal, wherein each task information group comprises a monitoring equipment identifier, a starting time point, an ending time point and a latest acquisition time point, and the task information group in the task database is used for representing a data acquisition task which is not completed by the terminal before the power failure of the terminal last time;
if so, aiming at each task information group in the task database, respectively sending corresponding information query requests to the video cloud storage system, wherein the information query request corresponding to any task information group comprises: monitoring equipment identification, latest acquisition time point and ending time point in the task information group;
obtaining response information aiming at each information inquiry request;
based on each obtained response message, obtaining an index information table corresponding to each task information group, wherein a plurality of index entries are stored in the index information table corresponding to any information group, and each index entry comprises: monitoring equipment identification, sub-time periods and identification information of one storage server in which video data collected by monitoring equipment with the monitoring equipment identification in the sub-time periods are located in the task information group, wherein the time period between the latest acquisition time point and the ending time point in the task information group is formed by the sub-time periods in all index entries in the index information table, and the sub-time periods in all index entries in the index information table are different from each other;
sending a video data acquisition request to a storage server with identification information in each index entry aiming at each index entry in each index information table, wherein the video data acquisition request comprises a monitoring equipment identification and a sub-time period in the index entry;
and acquiring the video data sent by the storage server corresponding to each video data acquisition request.
The embodiment of the invention provides a video data acquisition device based on a video cloud storage system, which is applied to a terminal, wherein the video cloud storage system comprises a storage server group, the storage server group comprises at least one storage server, and the device comprises:
the first determining module is used for determining whether any task information group exists in a task database of the first determining module when the first determining module is converted from a power-down state to a power-on state, wherein each task information group comprises a monitoring device identifier, a starting time point, an ending time point and a latest acquisition time point, and the task information group in the task database is used for representing a data acquisition task which is not completed by the terminal before the last power-down;
a first sending module, configured to, when a determination result of the first determining module is yes, send, to each task information group in the task database, a corresponding information query request to the video cloud storage system, where an information query request corresponding to any task information group includes: monitoring equipment identification, latest acquisition time point and ending time point in the task information group;
the first obtaining module is used for obtaining response information aiming at each information inquiry request;
a second obtaining module, configured to obtain, based on each obtained response message, an index information table corresponding to each task information group, where a plurality of index entries are stored in the index information table corresponding to any information group, and each index entry includes: monitoring equipment identification, sub-time periods and identification information of one storage server in which video data collected by monitoring equipment with the monitoring equipment identification in the sub-time periods are located in the task information group, wherein the time period between the latest acquisition time point and the ending time point in the task information group is formed by the sub-time periods in all index entries in the index information table, and the sub-time periods in all index entries in the index information table are different from each other;
a second sending module, configured to send, for each index entry in each index information table, a video data acquisition request to a storage server having identification information in the index entry, where the video data acquisition request includes a monitoring device identifier and a sub-period in the index entry;
and the third obtaining module is used for obtaining the video data sent by the storage server corresponding to each video data obtaining request.
In the scheme, when the terminal is converted from the power-off state to the power-on state, a user does not need to repeatedly send a video data acquisition instruction, and under the condition that the task information group exists in the task database of the terminal, the terminal can directly determine the unfinished data acquisition tasks before the power-off of the terminal is carried out for the last time according to the task information group existing in the task database and continuously execute the unfinished data acquisition tasks, so that better use experience can be brought to the user. In addition, each task information group comprises the latest acquisition time point, and the terminal does not acquire the video data from the beginning but acquires the video data from the latest acquisition time point, so that the terminal does not need to acquire the video data acquired by the terminal before the last power failure, the time required by the terminal for acquiring the video data can be effectively shortened, and better use experience can be brought to a user.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a video data acquisition method based on a video cloud storage system according to an embodiment of the present invention;
fig. 2 is a block diagram of a video data acquisition apparatus based on a video cloud storage system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the problems in the prior art, embodiments of the present invention provide a video data acquisition method and apparatus based on a video cloud storage system.
First, a video data acquisition method based on a video cloud storage system according to an embodiment of the present invention is described below.
It can be understood that the cloud storage system is a large-scale and distributed storage system, which is mainly applied to a scene requiring large-scale and long-period data storage, and which may have functions of big data analysis and the like. The video cloud storage system is one of cloud storage systems, and is mainly used for storing video data, analyzing videos and other scenes.
It should be noted that the video data acquisition method is applied to a terminal. Specifically, the terminal may be a fixed terminal, or a mobile terminal such as a mobile phone or a tablet computer, which is all feasible. The video cloud storage system comprises a storage server group, and the storage server group comprises at least one storage server.
Referring to fig. 1, a flowchart of a video acquisition method based on a video cloud storage system according to an embodiment of the present invention is shown. As shown in fig. 1, the method comprises the steps of:
s101, when the power failure state of the terminal is converted into the power-on state, determining whether any task information group exists in a task database of the terminal, wherein each task information group comprises a monitoring device identifier, a starting time point, an ending time point and a latest acquisition time point, and the task information group in the task database is used for representing a data acquisition task which is not completed by the terminal before the last power failure; if so, go to S102.
It is readily understood that a monitoring device identification corresponds to a unique monitoring device. Specifically, the monitoring device identifier may be an ID number of an encoder in the monitoring device, and of course, the monitoring device identifier may also be effectively represented in other forms, and may be specifically determined according to actual conditions, which is not described herein any more.
When the power-off state is converted into the power-on state, the terminal can immediately check whether any task information group exists in the task database of the terminal. If the data is checked, the terminal finds that any task information group does not exist in the task database, which indicates that the terminal does not receive any data acquisition task before the last power failure, or the terminal successfully completes all the received data acquisition tasks, so that the terminal cannot execute the subsequent steps. If the data acquisition task is not completed successfully, the terminal determines that the task information group is not completed successfully, and the task information group is not completed successfully.
Specifically, it is assumed that the terminal finds that two task information groups exist in the task database after being checked:
the fact that the monitoring devices included in one task information group (in the following description, the task information group is referred to as a task information group a1) are identified as ID1, the starting time point is 2016, 12 and 9 days 9:00, the ending time point is 2016, 12 and 9 days 9:00, and the latest acquisition time point is 2016, 12 and 9 days 9:30, indicates that the terminal has successfully acquired the video data acquired by the monitoring device with the encoder having the ID1 between 2016, 12 and 9 days 9:00, 9 and 30, 9 and 9 days 9:30, but the terminal has not acquired the video data acquired by the monitoring device between 2016, 12 and 9 days 9:30, and 9 days 10: 00.
The monitoring device identifier included in another task information group (in the following description, the task information group is referred to as task information group a2) is ID2, the starting time point is 2016, 12, 10, 11:00, the ending time point is 2016, 12, 10, 00, and the latest acquisition time point is 2016, 12, 10, 11:30, which indicates that the terminal has successfully acquired the video data acquired by the monitoring device having the encoder with the ID2 between 2016, 12, 10, 11:00, 10, 30, but the terminal has not acquired the video data acquired by the monitoring device between 2016, 12, 10, 11:30, 10, 12, 10, 00.
Next, the terminal may newly create two data acquisition tasks, wherein one data acquisition task corresponds to task information group a1, so as to acquire video data acquired by the monitoring device having an encoder with an ID number of ID1 in 2016, 12/9/30/9/10/00/12/9/2016; another data acquisition task corresponds to task information group a2 to acquire video data acquired by a monitoring device having an encoder with an ID number of 2 between 11:30 at 10 d 12/10/2016 and 12:00 at 10 d 12/10/2016.
It should be noted that, for the data acquisition task corresponding to the task information group a1, in the subsequent operation, the terminal may invoke a first thread group to execute the data acquisition task, where the first thread group may include a plurality of threads; for the data acquisition task corresponding to the task information group a2, in the subsequent process, the terminal may invoke a second thread group to execute the data acquisition task, where the second thread group may also include multiple threads. In this way, the data acquisition task for the task information group a1 and the data acquisition task for the task information group a2 can be executed concurrently by using different thread groups, so as to improve the efficiency of acquiring video data by the terminal.
For convenience of description, the following embodiments are described by taking a case where only the task information group a1 and the task information group a2 are included in the task database as an example.
S102, aiming at each task information group in the task database, respectively sending corresponding information query requests to the video cloud storage system, wherein the information query request corresponding to any task information group comprises: the monitoring device identification, the latest acquisition time point and the ending time point in the task information group.
Specifically, assuming that the information query request corresponding to the task information group a1 is B1, and the information query request corresponding to the task information group a2 is B2, then the monitoring device identifier included in the information query request B1 is ID1, the latest acquisition time point is 2016, 12, 9, 30, and the end time point is 2016, 12, 9, 10, 00; the monitoring device identifier included in the information inquiry request B2 is ID2, the latest acquisition time point is 2016, 12, month, 10, day 11:30, and the end time point is 2016, 12, month, 10, day 12: 00.
And S103, obtaining response information aiming at each information inquiry request.
It can be understood that, after the video cloud storage system obtains the information query request, the video cloud storage system may check, according to the information query request B1, the distribution of video data in each monitoring server, which is collected by the monitoring device having the encoder with the ID number of 1 in 2016, 9: 30/9/10: 00/12/2016, and generate response information corresponding to the information query request B1. Similarly, the video cloud storage system may also check, according to the information query request B2, distribution information of video data collected by the monitoring device having an encoder with an ID number of 2 in the period from 11:30 at 10/2016 to 12:00 at 12/10/2016 in each storage server, and generate response information corresponding to the information query request B2. Thereafter, the video cloud storage system may send both the response information corresponding to the information query request B1 and the response information corresponding to the information query request B2 to the terminal, so that the terminal performs the subsequent S104 according to the response information.
S104, based on each obtained response message, obtaining an index message table corresponding to each task message group, wherein a plurality of index entries are stored in the index message table corresponding to any message group, and each index entry comprises: the monitoring device identifier in the task information group, the sub-time period, and the identifier information of one of the storage servers where the video data collected by the monitoring device having the monitoring device identifier in the sub-time period are located, and the time period between the latest acquisition time point and the ending time point in the task information group is formed by the sub-time period in each index entry in the index information table, and the sub-time periods in each index entry in the index information table are different from each other.
The index entries in the index information table may be arranged in a set order. Specifically, each index entry may be arranged according to the sequence of the sub-time periods included in the index entry.
Specifically, it is assumed that the index information table corresponding to the task information group a1 obtained by the terminal is shown in table 1 below:
sub-period of time Monitoring device identification Storage server identification information
9/30-9/40/12/2016 ID1 X1
9/40-9/50/12/2016 ID1 X2
9/10: 50 to 2016/12/9/10/00 ID1 X3
TABLE 1
As is apparent from table 1, the storage server having the identification information X1 stores video data collected by a monitoring device having an encoder with an ID number of ID1 during 2016, 12, 9:30 to 9: 40; the storage server with the identification information X2 stores video data collected by a monitoring device with an encoder with an ID number of 1 during 2016, 12 months, 9 days 9:40 to 9: 50; the storage server having the identification information X3 stores video data captured by a monitoring device of an encoder having an ID number of 1 between 9:50 and 10:00 of 12 months and 9 days in 2016.
It is assumed that the index information table corresponding to the task information group a2 obtained by the terminal is shown in table 2 below:
Figure BDA0001183261910000071
Figure BDA0001183261910000081
TABLE 2
It should be noted that the meanings of the items in table 2 refer to the descriptions in table 1, and are not described herein again.
And S105, aiming at each index entry in each index information table, sending a video data acquisition request to a storage server with identification information in the index entry, wherein the video data acquisition request comprises the monitoring equipment identification and the sub-time period in the index entry.
It is easily understood that, after obtaining table 1, the terminal sends corresponding video data acquisition requests to the storage servers having the identification information X1, X2, and X3, respectively. The video data acquisition request sent by the terminal to the storage server with the identification information X1 comprises ID1 and 2016, 12 months, 9 days, 9:30 to 9: 40; the video data acquisition request sent by the terminal to the storage server with the identification information X2 comprises ID1 and 2016, 12 and 9/40 to 9/50; the video data acquisition request transmitted by the terminal to the storage server having the identification information X3 includes ID1 and 2016, 12 months, 9 days, 9:50 to 10: 00.
Thus, after the storage server with the identification information X1 receives the video data acquisition request, the storage server sends video data which are stored by the storage server and collected by the monitoring equipment with the encoder with the ID number of 1 in 2016, 12 months, 9 days 9:30 to 9:40 to the terminal; when a storage server with identification information X2 receives a video data acquisition request, the storage server sends video data which are stored by the storage server and collected by monitoring equipment with an encoder with an ID number of 1 in 2016, 12 months, 9 days, 9:40 to 9:50 to a terminal; when the storage server with the identification information X3 receives the video data acquisition request, the storage server sends video data which are stored by the storage server and collected by the monitoring equipment with the encoder with the ID number of 1 in 2016, 12 months, 9 days, 50 days to 10:00 days to the terminal.
Similarly, after obtaining table 2, the terminal may also send a corresponding video data acquisition request to each storage server according to the three index entries in table 2, and the specific process may refer to the description of table 1, which is not described herein again.
And S106, acquiring the video data sent by the storage server corresponding to each video data acquisition request.
It is easy to understand that, after the terminal sends the corresponding video data acquisition requests to the storage servers according to table 1 and table 2, the storage server corresponding to each video data acquisition request (i.e. the storage server receiving the video data acquisition request) replies the corresponding video data to the terminal. Finally, the terminal will successfully acquire the video data acquired by the monitoring device with the encoder with the ID number of 1 between 9:30 at 9: 9 at 12/9 at 2016 and 10:00 at 12/9 at 2016, and the video data acquired by the monitoring device with the encoder with the ID number of 2 between 11:30 at 10: 10 at 12/10 at 2016 and 12:00 at 10/10 at 12/10 at 2016, i.e. the terminal has successfully completed its data acquisition task that was not completed before the last power down.
In the scheme, when the terminal is converted from the power-off state to the power-on state, a user does not need to repeatedly send a video data acquisition instruction, and under the condition that the task information group exists in the task database of the terminal, the terminal can directly determine the unfinished data acquisition tasks before the power-off of the terminal is carried out for the last time according to the task information group existing in the task database and continuously execute the unfinished data acquisition tasks, so that better use experience can be brought to the user. In addition, each task information group comprises the latest acquisition time point, and the terminal does not acquire the video data from the beginning but acquires the video data from the latest acquisition time point, so that the terminal does not need to acquire the video data acquired by the terminal before the last power failure, the time required by the terminal for acquiring the video data can be effectively shortened, and better use experience can be brought to a user.
Optionally, before determining whether any task information group exists in the task database of the self when the self is converted from the power-off state to the power-on state, the method may further include:
and before the last power failure, obtaining a video data acquisition instruction aiming at least one information group, wherein each information group comprises a monitoring equipment identifier and a preset acquisition time period.
It is easily understood that when the terminal obtains the video data acquisition instruction for at least one information group, this indicates that the user wants to obtain the video data corresponding to the information group. Wherein, the video data corresponding to any information group is: and the monitoring equipment with the monitoring equipment identification in the information group acquires the video data within the preset acquisition time period in the information group.
Specifically, it is assumed that the terminal has obtained video data acquisition instructions for the information group Z1 and the information group Z2. The monitoring equipment identifier included in the information group Z1 is ID1, and the preset acquisition time period is 2016, 12, 9, 8:00 and 2016, 12, 9, 10: 00; the monitoring device included in information group Z2 is identified as ID2 and the predetermined time period is between 9:00 at 10 months of 2016 and 12:00 at 10 days of 2016 and 12 months of 2016.
Determining a corresponding number of task information groups for each information group based on a preset acquisition time period in each information group, wherein the task information group determined for any information group comprises: the monitoring equipment identification, the starting time point, the ending time point and the latest acquisition time point in the information group, wherein the preset acquisition time period in the information group is formed by time periods corresponding to a corresponding number of task information groups determined aiming at the information group, and the time period corresponding to each task information group is as follows: a time period between a start time point and an end time point in the set of task information.
It is readily apparent that the predetermined acquisition period in information group Z1 is shorter than the predetermined acquisition period in information group Z2, at which point the terminal may determine two task information groups, a1 and A3 respectively, for information group Z1 and three task information groups, a2, a4 and a6 respectively, for information group Z2. The task information group a3 includes: monitoring device identification ID1, start time point 2016, 12 months, 9 days 8:00, and end time point 2016, 12 months, 9 days 9: 00; task information group a1 includes: monitoring device identification ID1, start point in time 2016, 12 months, 9 days 9:00, and end point in time 2016, 12 months, 9 days 10: 00. Similarly, task information group a4 includes: monitoring device identification ID2, start time point 2016, 12 months, 10 days 9:00, and end time point 2016, 12 months, 10 days 10: 00; the task information group A6 includes a monitoring device identifier ID2, a starting time point 2016 of 10: 10/12/10/12/2016, and an ending time point 2016 of 11: 00/12/10/12; task information group A2 includes a monitoring device identification ID2, a start time point 2016 of 12 months and 10 days 11:00, and an end time point 2016 of 12 months and 10 days 12: 00. It is easily understood that for any task information group, the initial latest acquisition time point is the same as the starting time point in the task information group.
And storing each determined task information group into a task database.
It is easily understood that, after the terminal stores the determined task information groups in the task database, the contents stored in the task database are as shown in table 3 below:
Figure BDA0001183261910000101
Figure BDA0001183261910000111
TABLE 3
After the table 3 is obtained, the terminal uses each task information table as a data acquisition task and acquires video data corresponding to the data acquisition task, and the terminal can continuously update the latest acquisition time point in the process of executing the data acquisition task. For example, for task information group a1, the corresponding video data is: video data collected by a monitoring device having an encoder with an ID number of ID1 from 8:00 on 9 th day 12/2016 to 9:00 on 9 th day 9/2016 on 12/2016. Assuming that the terminal has acquired video data acquired by the monitoring device of the encoder having ID number ID1 between 8:00 and 8:05 on 9 th 12 th 2016, the terminal can update the latest acquisition time point in the first row of data in table 3 to 8: 05.
In this embodiment, the terminal divides at least one task group into several small task information groups, so that the terminal can concurrently execute the data acquisition tasks corresponding to the task information groups through the multiple thread groups, thereby improving the efficiency of acquiring video data by the terminal.
Optionally, the cloud storage system may further include a management server; wherein the content of the first and second substances,
respectively sending corresponding information query requests to the video cloud storage system, which may include:
respectively sending corresponding information query requests to a management server;
obtaining response information for each information query request, which may include;
and obtaining response information which is replied by the management server and aims at each information inquiry request.
After the management server receives each information query request sent by the terminal, the terminal can send a corresponding information query request to each storage server.
It should be noted that the number of the management servers in the video cloud storage system may be one, two, or more than two. Generally speaking, it is more appropriate that the number of the management servers in the video cloud storage system is set to two, so that when one management server fails, the other management server can normally work to ensure the normal operation of the whole video cloud storage system, and in addition, the cost of the whole video cloud storage system is relatively low.
In this embodiment, after the management server obtains the information query request B1, the management server may send an information query request C1 to each storage server, where the information query request C1 includes the monitoring device identifier ID1, 9:30 of the latest acquisition time point of 2016 12 months and 9 days, and 10:00 of the latest acquisition time point of 2016 months and 9 days. Similarly, when the management server obtains the information query request B2, the management server may send an information query request C2 to each storage server, respectively, where the information query request includes the monitoring device ID2, the latest acquisition time point 2016 is 12/10/11: 30, and the ending time point 2016 is 12/10/00.
For any storage server, after obtaining the information query request C1, it checks whether or not any piece of video data collected by the monitoring device having the encoder with ID1 in 2016, 9: 30/9/10: 00/12/2016, and if any, informs the management server of the information. Similarly, when any storage server obtains the information query request C2, it checks whether or not any piece of video data collected by the monitoring device having the encoder with ID2 stored therein is in 2016, 12/10/11: 30/2016 to 12/10/11: 30/2016, and if any, the storage server informs the management server of the information.
When the management server obtains the information for C1 returned by each storage server, it summarizes the information to obtain table 4, where table 4 shows the distribution of video data collected by the encoder with ID number 1 in each storage server from 9: 30/9/2016/12/2016 in 2016.
Sub-period of time Monitoring device identification Storage server identification information
9/40-9/50/12/2016 ID1 X2
9/10: 50 to 2016/12/9/10/00 ID1 X3
9/10: 50 to 2016/12/9/10/00 ID1 X3
9/30-9/40/12/2016 ID1 X1
TABLE 4
Similarly, after the management server obtains the information for C2 returned by each storage server, it summarizes the information to obtain table 5, where table 5 illustrates the distribution of video data collected by a monitoring device with an encoder having an ID2 in each storage server from 2016 12/10/11: 30 to 2016 12/10/11: 30.
Figure BDA0001183261910000131
TABLE 5
There is a certain difference in the contents of the response information obtained by the terminal according to the difference in the operations performed by the management server after obtaining tables 4 and 5.
In an implementation manner of the embodiment of the present invention, the management server may use a method in the prior art to sort and deduplicate table 4, so as to obtain table 1, and reply the table 1 to the terminal by carrying it in a response message. Similarly, the management server may adopt a method in the prior art to sort and deduplicate table 5, thereby obtaining table 2, and reply to the terminal by carrying table 2 in a response message. It is easy to see that, in this embodiment, the response information for any information query request includes: index information table corresponding to task information group corresponding to the information inquiry request;
accordingly, based on each of the obtained response information, an index information table corresponding to each task information group is obtained, including:
an index information table corresponding to each task information group is extracted from each of the obtained response information.
Because the response information directly comprises the index information table, the terminal can directly extract the index information table from the response information and execute subsequent operation according to the index information table, so that the terminal can conveniently and quickly obtain the required video data.
In another implementation manner of the embodiment of the present invention, the management server may directly reply to the terminal by carrying the table 4 in a response message, and reply to the terminal by carrying the table 5 in another response message. It is easy to see that, in this embodiment, the response information for any information query request includes: the information query requests comprise distribution condition information of first target video data in each storage server, wherein the first target video data corresponding to any information query request is as follows: the monitoring equipment with the monitoring equipment identification in the information query request acquires video data in a time period between the latest acquisition time point and the ending time point in the information query request;
accordingly, based on each of the obtained response information, an index information table corresponding to each task information group is obtained, including:
based on the distribution information in each of the obtained response information, an index information table corresponding to each task information group is generated.
After the terminal obtains the response information carrying the table 4, the terminal may sort and deduplicate the table 4 by using a method in the prior art, thereby generating the table 1. Similarly, when the terminal obtains the response information carrying table 5, the terminal may use a method in the prior art to sort and deduplicate table 5, thereby generating table 2. Then, the terminal can perform the subsequent data acquisition operation according to table 1 and table 2.
It is easy to see that, in this embodiment, the terminal can also obtain the index information table more easily and perform the subsequent operations according to the index information table.
Optionally, respectively sending corresponding information query requests to the video cloud storage system may include:
and respectively sending corresponding information query requests to the storage servers.
In this embodiment, after obtaining the information query request B1, any storage server checks whether or not any piece of video data collected by the monitoring device having the encoder with the ID number of 1 in 2016 within 9: 30/9/10: 00/12/2016 in 2016 is stored therein, and if any, the storage server notifies the information to the terminal. Similarly, when any storage server obtains the information query request B2, it checks whether or not it has stored any piece of video data collected by the monitoring device having the encoder with ID2 between 10: 30/12/2016 to 11: 30/10/2016, and if any, the storage server informs the terminal of the information.
Obtaining response information for each information query request may include:
acquiring response information which is replied by the storage server receiving the information query request and aims at each information query request, wherein the response information which is replied by any storage server and aims at any information query request comprises: the distribution condition information of the second target video data corresponding to the information query request in the storage server, wherein the second target video data corresponding to any information query request is as follows: and the monitoring equipment with the monitoring equipment identification in the information inquiry request acquires the video data in the time period between the latest acquisition time point and the ending time point in the information inquiry request.
Accordingly, based on each of the obtained response information, an index information table corresponding to each task information group is obtained, including:
based on the distribution information in each of the obtained response information, an index information table corresponding to each task information group is generated.
After the terminal obtains the response information for B1 returned by each storage server, it summarizes the information to obtain table 4 above, and then the terminal may sort and deduplicate table 4 by using a method in the prior art to generate table 1. Similarly, when the terminal obtains the response information for B2 returned by each storage server, it aggregates the information to obtain table 5 above, and then the terminal may sort and deduplicate table 5 by using a method in the prior art to generate table 2. Finally, the terminal obtains each index information table, and the terminal can execute subsequent data acquisition operation according to the index information tables.
Optionally, the video cloud storage system may further include a management server; wherein the content of the first and second substances,
before sending the corresponding information query request to each storage server respectively for each task information group in the task database, the method may further include:
and sending a corresponding information query request to the management server aiming at each task information group in the task database.
Correspondingly, for each task information group in the task database, sending a corresponding information query request to each storage server respectively may include:
after each information query request is sent to the management server, if response information which is replied by the management server and is aimed at any information query request is not received within a preset time period, corresponding information query requests are respectively sent to each storage server aiming at each task information group in the task database.
The preset time period may be 1 minute, 2 minutes or 5 minutes, and certainly, the value of the preset time period is not limited to this, and may be determined specifically according to an actual situation, which is not limited in this embodiment.
It is easy to understand that, in the case that the management server is in a normal operating state, after receiving each information query request, the management server may send a corresponding information query request to each storage server, obtain information replied by each storage server, and obtain tables 4 and 5 according to the obtained information. Then, the management server can respectively obtain table 1 and table 2 according to table 4 and table 5, and reply to the terminal by respectively carrying table 1 and table 2 in a response message; or, the management server may directly reply to the terminal with the table 4 and the table 5 being carried in a response message, so that the terminal can generate the table 1 and the table 2 according to the obtained response message, so as to perform subsequent data acquisition operations. However, if the terminal does not receive the response information for any information query request returned by the management server within the preset time period after sending each information query request to the management server, this indicates that the management server has a fault, and the management server cannot respond to the information query request from the terminal. In order to ensure that the terminal can successfully obtain the video data, the terminal can directly send an information query request to each storage server. In this way, the terminal can finally generate the table 1 and the table 2 according to the response information directly replied by each storage server, and execute the subsequent data acquisition operation according to the table 1 and the table 2.
It can be seen that, in this embodiment, even in the case that the storage server fails, the terminal may successfully acquire the required video data from the video cloud storage system.
Optionally, sending, to each task information group in the task database, a corresponding information query request to each storage server respectively may include:
and aiming at each task information group in the task database, respectively sending a corresponding information query request to each storage server with identification information in a first identification information group, wherein the first identification information group is locally stored by the terminal, and the first identification information group comprises the identification information of each storage server in a normal working state in the storage server group.
It should be noted that the first identification information set locally stored by the terminal has various sources, and for clarity of layout, the following description is given by way of example.
It is easily understood that, when any one of the storage servers is in a failure state, even if the terminal sends an information query request to the storage server, the terminal cannot respond to the information query request, or the terminal cannot receive the information query request at all, that is, system resources consumed when the terminal sends the information query request to the storage server are wastefully wasted. In order to avoid this problem, the terminal may send the information query request only to the storage server in the storage server group in the normal operating state, so that each information query request may be received normally, and the storage server that receives the information query request may also respond to the information query request normally.
Optionally, the method further comprises:
and acquiring a second identification information group sent by the management server according to the set first time interval, wherein the second identification information group is obtained by the management server after detecting the state of each storage server in the storage server group according to the set second time interval, and the second identification information group is the identification information of each storage server which is detected by the management server and is in a normal working state in the storage server group.
The first time interval and the second time interval may be the same or different. Specifically, the first time interval may be 15 minutes, and values of the first time interval and the second time interval may be determined according to an actual situation, which is not limited in this embodiment.
In this embodiment, the management server may send heartbeat information to each storage server according to the set second time interval. If the management server receives the response message from a certain storage server within a certain time period, for example, 10 seconds after sending the heartbeat message, this indicates that the storage server replying the response message is currently in a normal working state; if the terminal does not receive the response message of a certain storage server within 10 seconds after continuously sending out the heartbeat messages for N times (for example, 3 times), the management server determines that the storage server is currently out of order. In this way, the management server can very easily determine the second identification information group, and then the management server can transmit the determined second identification information group to the terminal.
And updating the first identification information group according to the obtained second identification information group.
After the terminal obtains the second identification information group, the terminal can directly replace the existing first identification information group with the second identification information group, so that each piece of identification information in the first identification information group is always the identification information of the storage server in the current available state.
Optionally, the obtaining of the video data sent by the storage server corresponding to each video data obtaining request may include:
acquiring video data sent by a storage server corresponding to each video data acquisition request, and monitoring equipment identifiers and sub-time periods in the video data acquisition requests;
after obtaining the video data sent by the storage server corresponding to each video data obtaining request, and the monitoring device identifier and the sub-time period in the video data obtaining request, the method may further include:
searching a corresponding task information group in a task database according to the obtained monitoring equipment identifier and the obtained sub-time period, and updating the latest acquisition time point in the searched task information group to the end time of the obtained sub-time period;
and when the latest acquisition time point and the ending time point in any task information group in the task database are the same, deleting the task information group from the task database.
In this embodiment, when the terminal obtains video data sent by a storage server corresponding to a certain video data obtaining request, it also obtains the monitoring device identifier and the sub-period in the video data obtaining request. Specifically, assuming that the terminal obtains a certain video data and also obtains a monitoring device identification ID2, the sub-period 2016 is 12/9/8: 00-2016 is 12/9/8: 05, the terminal searches the task information set having an ID2 and including the period 2016 is 12/9/8: 00-2016 is 12/9/8/05 between the start time point and the end time point in table 3. It can be easily seen that the terminal finally finds the task information group A3, and then the terminal updates the latest acquisition time point in the task information group A3 from 8:00 at 12/9/2016 to 8:05 at 12/9/2016. In this way, the user can very easily know the data acquisition progress by looking at the latest acquisition time point in each task information group.
When the latest acquisition time point and the ending time point in any task information group in the task database are the same, which indicates that the data acquisition task corresponding to the task information group is successfully completed, the terminal can delete the task information group from the task database at the moment so as to prevent the task information group from continuously occupying the storage space of the task database.
In summary, in this embodiment, when the terminal is switched from the power-off state to the power-on state, the user does not need to repeatedly issue the video data acquisition instruction. In addition, the terminal does not need to acquire the video data acquired by the terminal before the last power failure, so that the time for acquiring the video data by the terminal can be effectively shortened.
The following describes a video data acquisition device based on a video cloud storage system according to an embodiment of the present invention.
It should be noted that the video data acquisition device based on the video cloud storage system provided by the embodiment of the present invention is applied to a terminal, and the video cloud storage system includes a storage server group, and the storage server group includes at least one storage server.
Referring to fig. 2, a block diagram of a video data acquisition apparatus based on a video cloud storage system according to an embodiment of the present invention is shown. As shown in fig. 2, the apparatus includes:
the first determining module 21 is configured to determine whether any task information group exists in a task database of the first determining module when the first determining module is switched from a power-off state to a power-on state, where each task information group includes a monitoring device identifier, a start time point, an end time point, and a latest acquisition time point, and the task information group in the task database is used to represent a data acquisition task that is not completed by a terminal before the last power-off;
a first sending module 22, configured to, when a determination result of the first determining module is yes, send corresponding information query requests to the video cloud storage system for each task information group in the task database, where an information query request corresponding to any task information group includes: monitoring equipment identification, latest acquisition time point and ending time point in the task information group;
a first obtaining module 23, configured to obtain response information for each information query request;
a second obtaining module 24, configured to obtain, based on each obtained response message, an index information table corresponding to each task information group, where a plurality of index entries are stored in the index information table corresponding to any information group, and each index entry includes: monitoring equipment identification, sub-time periods and identification information of one storage server in which video data collected by monitoring equipment with the monitoring equipment identification in the sub-time periods are located in the task information group, wherein the time period between the latest acquisition time point and the ending time point in the task information group is formed by the sub-time periods in all index entries in the index information table, and the sub-time periods in all index entries in the index information table are different from each other;
a second sending module 25, configured to send, for each index entry in each index information table, a video data acquisition request to a storage server having identification information in the index entry, where the video data acquisition request includes a monitoring device identifier and a sub-period in the index entry;
and a third obtaining module 26, configured to obtain video data sent by the storage server corresponding to each video data obtaining request.
In the scheme, when the terminal is converted from the power-off state to the power-on state, a user does not need to repeatedly send a video data acquisition instruction, and under the condition that the task information group exists in the task database of the terminal, the terminal can directly determine the unfinished data acquisition tasks before the power-off of the terminal is carried out for the last time according to the task information group existing in the task database and continuously execute the unfinished data acquisition tasks, so that better use experience can be brought to the user. In addition, each task information group comprises the latest acquisition time point, and the terminal does not acquire the video data from the beginning but acquires the video data from the latest acquisition time point, so that the terminal does not need to acquire the video data acquired by the terminal before the last power failure, the time required by the terminal for acquiring the video data can be effectively shortened, and better use experience can be brought to a user.
Optionally, the apparatus may further include:
the fourth obtaining module is used for obtaining a video data obtaining instruction aiming at least one information group before the task database of the fourth obtaining module is determined to have any task information group when the task database of the fourth obtaining module is converted from a power-off state to a power-on state and before the latest power-off state, wherein each information group comprises a monitoring equipment identifier and a preset collecting time period;
a second determining module, configured to determine, based on a predetermined acquisition time period in each information group, a corresponding number of task information groups for each information group, where a task information group determined for any information group includes: the monitoring equipment identification, the starting time point and the ending time point in the information group, the preset acquisition time period in the information group is formed by the time periods corresponding to the corresponding number of task information groups determined aiming at the information group, and the time period corresponding to each task information group is as follows: a time period between a start time point and an end time point in the set of task information;
and the storage module is used for storing each determined task information group into the task database.
Optionally, the cloud storage system further includes a management server; wherein the content of the first and second substances,
the first sending module is specifically configured to:
respectively sending corresponding information query requests to a management server;
a first obtaining module, specifically configured to;
and obtaining response information which is replied by the management server and aims at each information inquiry request.
Optionally, the response information for any information query request includes: index information table corresponding to task information group corresponding to the information inquiry request;
correspondingly, the second obtaining module is specifically configured to:
an index information table corresponding to each task information group is extracted from each of the obtained response information.
Optionally, the response information for any information query request includes: the information query requests comprise distribution condition information of first target video data in each storage server, wherein the first target video data corresponding to any information query request is as follows: the monitoring equipment with the monitoring equipment identification in the information query request acquires video data in a time period between the latest acquisition time point and the ending time point in the information query request;
correspondingly, the second obtaining module is specifically configured to:
based on the distribution information in each of the obtained response information, an index information table corresponding to each task information group is generated.
Optionally, the first sending module is specifically configured to:
respectively sending corresponding information query requests to each storage server;
a first obtaining module specifically configured to:
acquiring response information which is replied by the storage server receiving the information query request and aims at each information query request, wherein the response information which is replied by any storage server and aims at any information query request comprises: the distribution condition information of the second target video data corresponding to the information query request in the storage server, wherein the second target video data corresponding to any information query request is as follows: the monitoring equipment with the monitoring equipment identification in the information query request acquires video data in a time period between the latest acquisition time point and the ending time point in the information query request;
correspondingly, the second obtaining module is specifically configured to:
based on the distribution information in each of the obtained response information, an index information table corresponding to each task information group is generated.
Optionally, the video cloud storage system further comprises a management server; wherein the content of the first and second substances,
the device also includes:
the third sending module is used for sending corresponding information query requests to the management server aiming at each task information group in the task database before sending the corresponding information query requests to each storage server aiming at each task information group in the task database;
correspondingly, the first sending module is specifically configured to:
after each information query request is sent to the management server, if response information which is replied by the management server and is aimed at any information query request is not received within a preset time period, corresponding information query requests are respectively sent to each storage server aiming at each task information group in the task database.
Optionally, the first sending module is specifically configured to:
and aiming at each task information group in the task database, respectively sending a corresponding information query request to each storage server with identification information in a first identification information group, wherein the first identification information group is locally stored by the terminal, and the first identification information group comprises the identification information of each storage server in a normal working state in the storage server group.
Optionally, the apparatus may further include:
a fifth obtaining module, configured to obtain, according to a set first time interval, a second identification information group sent by the management server, where the second identification information group is obtained after the management server detects states of the storage servers in the storage server group according to the set second time interval, and the second identification information group is identification information of each storage server in a normal operating state in the storage server group, which is detected by the management server;
and the updating module is used for updating the first identification information group according to the obtained second identification information group.
Optionally, the third obtaining module is specifically configured to:
acquiring video data sent by a storage server corresponding to each video data acquisition request, and monitoring equipment identifiers and sub-time periods in the video data acquisition requests;
the device also includes:
the processing module is used for searching a corresponding task information group in the task database according to the obtained monitoring equipment identification and sub-time period after the video data sent by the storage server corresponding to each video data acquisition request, the monitoring equipment identification and the sub-time period in the video data acquisition request are obtained, and updating the latest acquisition time point in the searched task information group to the end time of the obtained sub-time period;
and the deleting module is used for deleting the task information group from the task database when the latest acquisition time point and the ending time point in any task information group in the task database are the same.
In summary, in this embodiment, when the terminal is switched from the power-off state to the power-on state, the user does not need to repeatedly issue the video data acquisition instruction. In addition, the terminal does not need to acquire the video data acquired by the terminal before the last power failure, so that the time for acquiring the video data by the terminal can be effectively shortened.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (18)

1. A video data acquisition method based on a video cloud storage system is applied to a terminal, the video cloud storage system comprises a storage server group, the storage server group comprises at least one storage server, and the method comprises the following steps:
before the last power failure, obtaining a video data acquisition instruction aiming at least one information group, wherein each information group comprises a monitoring equipment identifier and a preset acquisition time period;
determining a corresponding number of task information groups for each information group based on a preset acquisition time period in each information group, wherein the task information group determined for any information group comprises: the monitoring equipment identification, the starting time point, the ending time point and the latest acquisition time point in the information group, wherein the preset acquisition time period in the information group is formed by time periods corresponding to a corresponding number of task information groups determined aiming at the information group, and the time period corresponding to each task information group is as follows: a time period between a start time point and an end time point in the set of task information;
storing each determined task information group into the task database;
when the power failure state of the terminal is converted into the power-on state, determining whether any task information group exists in a task database of the terminal, wherein each task information group comprises a monitoring equipment identifier, a starting time point, an ending time point and a latest acquisition time point, and the task information group in the task database is used for representing a data acquisition task which is not completed by the terminal before the power failure of the terminal last time;
if so, aiming at each task information group in the task database, respectively sending corresponding information query requests to the video cloud storage system, wherein the information query request corresponding to any task information group comprises: monitoring equipment identification, latest acquisition time point and ending time point in the task information group;
obtaining response information aiming at each information inquiry request;
based on each obtained response message, obtaining an index information table corresponding to each task information group, wherein a plurality of index entries are stored in the index information table corresponding to any information group, and each index entry comprises: monitoring equipment identification, sub-time periods and identification information of one storage server in which video data collected by monitoring equipment with the monitoring equipment identification in the sub-time periods are located in the task information group, wherein the time period between the latest acquisition time point and the ending time point in the task information group is formed by the sub-time periods in all index entries in the index information table, and the sub-time periods in all index entries in the index information table are different from each other;
sending a video data acquisition request to a storage server with identification information in each index entry aiming at each index entry in each index information table, wherein the video data acquisition request comprises a monitoring equipment identification and a sub-time period in the index entry;
and acquiring the video data sent by the storage server corresponding to each video data acquisition request.
2. The method of claim 1, further comprising a management server in the cloud storage system; wherein the content of the first and second substances,
the sending of the corresponding information query requests to the video cloud storage system respectively includes:
respectively sending corresponding information query requests to the management server;
the obtaining of response information for each information query request includes;
and obtaining response information which is replied by the management server and aims at each information inquiry request.
3. The method of claim 2,
the response information aiming at any information inquiry request comprises the following steps: index information table corresponding to task information group corresponding to the information inquiry request;
accordingly, the obtaining of the index information table corresponding to each task information group based on each obtained response information includes:
an index information table corresponding to each task information group is extracted from each of the obtained response information.
4. The method of claim 2,
the response information aiming at any information inquiry request comprises the following steps: the information query requests comprise distribution condition information of first target video data in each storage server, wherein the first target video data corresponding to any information query request is as follows: the monitoring equipment with the monitoring equipment identification in the information query request acquires video data in a time period between the latest acquisition time point and the ending time point in the information query request;
accordingly, the obtaining of the index information table corresponding to each task information group based on each obtained response information includes:
based on the distribution information in each of the obtained response information, an index information table corresponding to each task information group is generated.
5. The method of claim 1,
the sending of the corresponding information query requests to the video cloud storage system respectively includes:
respectively sending corresponding information query requests to the storage servers;
the obtaining of the response information for each information query request includes:
obtaining response information which is replied by the storage server receiving the information query request and aims at each information query request, wherein the response information which is replied by any storage server and aims at any information query request comprises: the distribution condition information of the second target video data corresponding to the information query request in the storage server, wherein the second target video data corresponding to any information query request is as follows: the monitoring equipment with the monitoring equipment identification in the information query request acquires video data in a time period between the latest acquisition time point and the ending time point in the information query request;
accordingly, the obtaining of the index information table corresponding to each task information group based on each obtained response information includes:
based on the distribution information in each of the obtained response information, an index information table corresponding to each task information group is generated.
6. The method of claim 5, wherein the video cloud storage system further comprises a management server; wherein the content of the first and second substances,
before the sending, to each task information group in the task database, a corresponding information query request to each storage server, the method further includes:
aiming at each task information group in the task database, sending a corresponding information query request to the management server;
correspondingly, the sending, to each task information group in the task database, a corresponding information query request to each storage server includes:
after each information query request is sent to the management server, if response information which is replied by the management server and is aimed at any information query request is not received within a preset time period, corresponding information query requests are respectively sent to each storage server aiming at each task information group in the task database.
7. The method according to claim 6, wherein the sending, for each task information group in the task database, a corresponding information query request to each storage server respectively comprises:
and aiming at each task information group in the task database, respectively sending a corresponding information query request to each storage server with identification information in a first identification information group, wherein the first identification information group is locally stored by the terminal, and the first identification information group comprises the identification information of each storage server in a normal working state in the storage server group.
8. The method of claim 7, further comprising:
acquiring a second identification information group sent by the management server according to a set first time interval, wherein the second identification information group is obtained after the management server detects the state of each storage server in the storage server group according to a set second time interval, and the second identification information group is the identification information of each storage server in a normal working state in the storage server group, which is detected by the management server;
and updating the first identification information group according to the obtained second identification information group.
9. The method according to any one of claims 1 to 8, wherein the obtaining video data sent by the storage server corresponding to each video data acquisition request comprises:
acquiring video data sent by a storage server corresponding to each video data acquisition request, and monitoring equipment identifiers and sub-time periods in the video data acquisition requests;
after obtaining the video data sent by the storage server corresponding to each video data obtaining request, and the monitoring device identifier and the sub-time period in the video data obtaining request, the method further includes:
searching a corresponding task information group in the task database according to the obtained monitoring equipment identifier and the obtained sub-time period, and updating the latest acquisition time point in the searched task information group to the end time of the obtained sub-time period;
and when the latest acquisition time point and the ending time point in any task information group in the task database are the same, deleting the task information group from the task database.
10. The utility model provides a video data acquisition device based on video cloud storage system, its characterized in that is applied to the terminal, video cloud storage system includes the storage server group, the storage server group includes at least one storage server, the device includes:
the fourth obtaining module is used for obtaining a video data obtaining instruction aiming at least one information group before the last power failure, wherein each information group comprises a monitoring equipment identifier and a preset collecting time period;
a second determining module, configured to determine, based on a predetermined acquisition time period in each information group, a corresponding number of task information groups for each information group, where a task information group determined for any information group includes: the monitoring equipment identification, the starting time point, the ending time point and the latest acquisition time point in the information group, wherein the preset acquisition time period in the information group is formed by time periods corresponding to a corresponding number of task information groups determined aiming at the information group, and the time period corresponding to each task information group is as follows: a time period between a start time point and an end time point in the set of task information;
the storage module is used for storing each determined task information group into the task database;
the first determining module is used for determining whether any task information group exists in a task database of the first determining module when the first determining module is converted from a power-down state to a power-on state, wherein each task information group comprises a monitoring device identifier, a starting time point, an ending time point and a latest acquisition time point, and the task information group in the task database is used for representing a data acquisition task which is not completed by the terminal before the last power-down;
a first sending module, configured to, when a determination result of the first determining module is yes, send, to each task information group in the task database, a corresponding information query request to the video cloud storage system, where an information query request corresponding to any task information group includes: monitoring equipment identification, latest acquisition time point and ending time point in the task information group;
the first obtaining module is used for obtaining response information aiming at each information inquiry request;
a second obtaining module, configured to obtain, based on each obtained response message, an index information table corresponding to each task information group, where a plurality of index entries are stored in the index information table corresponding to any information group, and each index entry includes: monitoring equipment identification, sub-time periods and identification information of one storage server in which video data collected by monitoring equipment with the monitoring equipment identification in the sub-time periods are located in the task information group, wherein the time period between the latest acquisition time point and the ending time point in the task information group is formed by the sub-time periods in all index entries in the index information table, and the sub-time periods in all index entries in the index information table are different from each other;
a second sending module, configured to send, for each index entry in each index information table, a video data acquisition request to a storage server having identification information in the index entry, where the video data acquisition request includes a monitoring device identifier and a sub-period in the index entry;
and the third obtaining module is used for obtaining the video data sent by the storage server corresponding to each video data obtaining request.
11. The apparatus according to claim 10, wherein the cloud storage system further comprises a management server; wherein the content of the first and second substances,
the first sending module is specifically configured to:
respectively sending corresponding information query requests to the management server;
the first obtaining module is specifically configured to;
and obtaining response information which is replied by the management server and aims at each information inquiry request.
12. The apparatus of claim 11,
the response information aiming at any information inquiry request comprises the following steps: index information table corresponding to task information group corresponding to the information inquiry request;
correspondingly, the second obtaining module is specifically configured to:
an index information table corresponding to each task information group is extracted from each of the obtained response information.
13. The apparatus of claim 11,
the response information aiming at any information inquiry request comprises the following steps: the information query requests comprise distribution condition information of first target video data in each storage server, wherein the first target video data corresponding to any information query request is as follows: the monitoring equipment with the monitoring equipment identification in the information query request acquires video data in a time period between the latest acquisition time point and the ending time point in the information query request;
correspondingly, the second obtaining module is specifically configured to:
based on the distribution information in each of the obtained response information, an index information table corresponding to each task information group is generated.
14. The apparatus of claim 10,
the first sending module is specifically configured to:
respectively sending corresponding information query requests to the storage servers;
the first obtaining module is specifically configured to:
obtaining response information which is replied by the storage server receiving the information query request and aims at each information query request, wherein the response information which is replied by any storage server and aims at any information query request comprises: the distribution condition information of the second target video data corresponding to the information query request in the storage server, wherein the second target video data corresponding to any information query request is as follows: the monitoring equipment with the monitoring equipment identification in the information query request acquires video data in a time period between the latest acquisition time point and the ending time point in the information query request;
correspondingly, the second obtaining module is specifically configured to:
based on the distribution information in each of the obtained response information, an index information table corresponding to each task information group is generated.
15. The apparatus of claim 14, wherein the video cloud storage system further comprises a management server; wherein the content of the first and second substances,
the device further comprises:
a third sending module, configured to send, to each task information group in the task database, a corresponding information query request to the management server before sending, to each storage server, a corresponding information query request respectively for each task information group in the task database;
correspondingly, the first sending module is specifically configured to:
after each information query request is sent to the management server, if response information which is replied by the management server and is aimed at any information query request is not received within a preset time period, corresponding information query requests are respectively sent to each storage server aiming at each task information group in the task database.
16. The apparatus of claim 15, wherein the first sending module is specifically configured to:
and aiming at each task information group in the task database, respectively sending a corresponding information query request to each storage server with identification information in a first identification information group, wherein the first identification information group is locally stored by the terminal, and the first identification information group comprises the identification information of each storage server in a normal working state in the storage server group.
17. The apparatus of claim 16, further comprising:
a fifth obtaining module, configured to obtain a second identifier information group sent by the management server according to a set first time interval, where the second identifier information group is obtained by the management server detecting states of storage servers in the storage server group according to a set second time interval, and the second identifier information group is identifier information of each storage server in a normal operating state in the storage server group, which is detected by the management server;
and the updating module is used for updating the first identification information group according to the obtained second identification information group.
18. The apparatus according to any one of claims 10 to 17, wherein the third obtaining module is specifically configured to:
acquiring video data sent by a storage server corresponding to each video data acquisition request, and monitoring equipment identifiers and sub-time periods in the video data acquisition requests;
the device further comprises:
the processing module is used for searching a corresponding task information group in the task database according to the obtained monitoring equipment identification and sub-time period after the video data sent by the storage server corresponding to each video data acquisition request, the monitoring equipment identification and the sub-time period in the video data acquisition request are obtained, and updating the latest acquisition time point in the searched task information group to the end time of the obtained sub-time period;
and the deleting module is used for deleting the task information group from the task database when the latest acquisition time point and the ending time point in any task information group in the task database are the same.
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 CN108206933A (en) 2018-06-26
CN108206933B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111125436B (en) * 2018-10-31 2023-08-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在视频监控信息的云存储中的应用;王帮元;《兰州文理学院学报(自然科学版)》;20160910;第30卷(第05期);60-64 *
基于云存储视频处理框架的研究与实现;王法;《计算机技术与发展》;20160505;第26卷(第05期);1-6 *

Also Published As

Publication number Publication date
CN108206933A (en) 2018-06-26

Similar Documents

Publication Publication Date Title
CN106959963B (en) Data query method, device and system
CN107943841B (en) Streaming data processing method, system and computer readable storage medium
AU2016382908B2 (en) Short link processing method, device and server
CN108121511B (en) Data processing method, device and equipment in distributed edge storage system
CN109299157B (en) Data export method and device for distributed big single table
CN107770229B (en) Cloud file sharing method and system and cloud server
CN111291079A (en) Data query method and device
JP2015514247A5 (en)
CN110968478B (en) Log acquisition method, server and computer storage medium
CN111818117A (en) Data updating method and device, storage medium and electronic equipment
CN109947729B (en) Real-time data analysis method and device
CN103488511A (en) Method and device for inquiring file opening mode
CN105426544B (en) Method and device for monitoring database state
CN108206933B (en) Video data acquisition method and device based on video cloud storage system
CN111159131A (en) Performance optimization method, device, equipment and computer readable storage medium
US20140108367A1 (en) Client apparatus and database server for resumable transaction and method thereof
US9092338B1 (en) Multi-level caching event lookup
CN110188081B (en) Log data storage method and device based on cassandra database and computer equipment
CN110765125B (en) Method and device for storing data
CN110955460A (en) Service process starting method and device, electronic equipment and storage medium
CN115914387A (en) Resource sharing and data query method, device and server
CN103150365A (en) Method and equipment for performing fuzzy search by using background system of bank
CN107563942B (en) Logistics data batch processing method, logistics processing system and processing device
CN115495463A (en) Data processing method and device, intelligent equipment and storage medium
CN111339170A (en) Data processing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant