CN109951662A - Video recording backup method and system - Google Patents
Video recording backup method and system Download PDFInfo
- Publication number
- CN109951662A CN109951662A CN201711384349.XA CN201711384349A CN109951662A CN 109951662 A CN109951662 A CN 109951662A CN 201711384349 A CN201711384349 A CN 201711384349A CN 109951662 A CN109951662 A CN 109951662A
- Authority
- CN
- China
- Prior art keywords
- backup
- server
- agent terminal
- terminal
- tasks
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
The embodiment of the invention provides a kind of video recording backup method and systems.Wherein, video recording backup method applied to the backup agent terminal in video recording standby system includes: the target backup tasks for determining and needing to be implemented from least one backup tasks that the server is sent, wherein the live stream that each backup tasks correspond to the acquisition to an image collection terminal backs up.According to the target backup tasks, backup directory is created in the memory space of the backup agent terminal.According to the target backup tasks, sends and request to target image acquisition terminal corresponding with the target backup tasks, to obtain the corresponding live stream.The live stream received is stored under the corresponding backup directory, to obtain video file.Using this programme, backup rate is not limited by server bandwidth, and backup is high-efficient, and backup procedure is not take up the system resource of server.
Description
Technical field
The present invention relates to technical field of memory, in particular to a kind of video recording backup method and system.
Background technique
Surveillance video is the most important data of field of video monitoring.A kind of preservation side of the video recording backup as video recording
Formula has extensive usage scenario, such as Test Centre needs video recording in the test period backuping to flash disk and seal up for safekeeping.Usually
Examination meeting last from days, during which central platform server should store video recording, again backup video recording, and bandwidth and performance are easy into
For bottleneck.Meanwhile once the space of central store takes, it may cause important video recording and be capped and lose (full covering), or
Stop video recording (full to stop).
In the related art, it proposes by central platform client in the way of the video recording downloading of high speed from central platform
Server obtains video recording and is backed up.Although the loss of important video recording can be avoided to a certain extent or stop recording, due in
Bandwidth is limited between heart Platform Server and client, and when mass data is needed while being backed up, efficiency is still low.Meanwhile
Multichannel central platform client is downloaded video file simultaneously from central platform server and is backed up, and central platform service can be occupied
The a large amount of system resource of device impacts entire storage and back-up job, and is unfavorable for the centralization inquiry of backup video recording.
Summary of the invention
The purpose of the present invention is to provide a kind of video recording backup method and systems, to solve backup efficiency acceptor center platform
The limitation of the bandwidth and system resource of server, backup procedure occupy that central platform server system resource is excessive and Backup Data
Search the problems such as inconvenient.
To achieve the goals above, technical solution used in the embodiment of the present invention is as follows:
In a first aspect, the embodiment of the invention provides a kind of video recording backup method, applied to standby in video recording standby system
Part proxy terminal, the video recording standby system further includes server and multiple image collection terminals, the server, backup agent
Terminal and image collection terminal communicate to connect between each other, which comprises at least one sent from the server is standby
The target backup tasks needed to be implemented are determined in part task, wherein each backup tasks correspond to an image collection
The live stream of the acquisition of terminal is backed up;According to the target backup tasks, in the memory space of the backup agent terminal
Middle creation backup directory;According to the target backup tasks, acquired eventually to target image corresponding with the target backup tasks
End sends request, to obtain the corresponding live stream;By the live stream received under the corresponding backup directory
It is stored, to obtain video file.
Second aspect, the embodiment of the invention provides a kind of video recording backup methods, applied to the clothes in video recording standby system
Business device, the video recording standby system further includes backup agent terminal and multiple image collection terminals, the server, backup agent
Terminal and image collection terminal communicate to connect between each other, which comprises will be from right according to pre-set storage plan
The image collection terminal answered obtains corresponding live stream and is stored, to obtain corresponding video file;According to each
The load condition data of backup agent terminal the last time feedback, will be in back-up plan corresponding with the storage plan
Multiple backup tasks are distributed to the backup agent terminal, so that the backup agent terminal is appointed according to the backup received
Business obtains the record that the corresponding live stream is stored as backup from the corresponding image collection terminal with the server sync
As file.
The third aspect, the embodiment of the invention provides a kind of video recording standby system, the video recording standby system includes backup
Proxy terminal, server and multiple image collection terminals, the server, backup agent terminal and image collection terminal mutually it
Between communicate to connect, the step of video recording standby system is to realize above-mentioned video recording backup method.
Difference with the prior art is that a kind of video recording backup method provided in an embodiment of the present invention is applied to record a video standby
Backup agent terminal in part system.Method is by determining that the target needed to be implemented backs up at least one received backup tasks
Task creates backup directory in the memory space of the backup agent terminal, then according to the target backup tasks, Xiang Yusuo
It states the corresponding target image acquisition terminal of target backup tasks and sends the corresponding live stream of request, and will receive
The live stream is stored to obtain the video file for backup under the corresponding backup directory, facilitates video file
It searches.The video file of backup from server without obtaining entirely, and therefore, backup rate is not limited by server bandwidth, backup
High-efficient, backup procedure is not take up the system resource of server.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows a kind of structural scheme of mechanism of standby system of recording a video provided in an embodiment of the present invention.
Fig. 2 is the structural schematic diagram of server shown in Fig. 1.
Fig. 3 is the structural schematic diagram of backup agent terminal shown in Fig. 1.
Fig. 4 shows a kind of one of the step flow chart of backup method of recording a video provided in an embodiment of the present invention.
Fig. 5 shows the two of the step flow chart of a kind of backup method of recording a video provided in an embodiment of the present invention.
Fig. 6 shows the step flow chart of another video recording backup method provided in an embodiment of the present invention.
Icon: 100- server;200- backup agent terminal;300- image collection terminal;400- video recording standby system;
500- client;111- first memory;112- first processor;113- communication unit;211- second memory;212- storage
Controller;213- second processor;214- Peripheral Interface;201- mobile memory medium.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below
Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention
In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Surveillance video is the most important data of field of video monitoring.In order to effectively be saved to video file,
It not only needs to store video file, also to be backed up.It is proposed in the related technology using central platform server 100
From acquisition equipment obtain video file stored, then by central platform client 500 by high speed video recording downloading in a manner of from
Central platform server 100 obtains video file and is backed up.But due between central platform server 100 and client 500
Bandwidth is limited, the inefficiency when mass data is needed while being backed up.Even if using multichannel central platform client 500 therefrom
Heart Platform Server 100 is downloaded video file and is backed up, and a large amount of system of central platform server 100 money can be still occupied
Source impacts entire storage and back-up job.In order to improve backup efficiency, especially needed in a large amount of video files same
In the case that Shi Jinhang is backed up, the influence of backup efficiency not acceptor center Platform Server 100 is ensured, the embodiment of the invention provides
A kind of video recording backup method and system.
Referring to FIG. 1, a kind of video recording standby system 400 provided in an embodiment of the present invention.The video recording standby system 400 wraps
Include backup agent terminal 200, server 100 and multiple image collection terminals 300.Above-mentioned server 100, backup agent terminal
200 and image collection terminal 300 between each other communicate to connect.Specifically, above-mentioned server 100 is whole with each backup agent respectively
End 200, the communication connection of each image collection terminal 300.Backup agent terminal 200 also respectively with each image collection terminal
300 communication connections.Preferably, part proxy terminal, server 100 and multiple image collection terminals 300 are respectively positioned on same local area network
It is interior.
Above-mentioned image collection terminal 300 may be, but not limited to, be camera, hard disk video recorder, video camera IPC and other
The equipment that can carry out image collection.
Referring to FIG. 2, a kind of server 100 provided in an embodiment of the present invention.Above-mentioned server 100 includes first memory
111, first processor 112 and communication unit 113.
The first memory 111, first processor 112 and each element of communication unit 113 between each other directly or
Ground connection is electrically connected, to realize the transmission or interaction of data.For example, these elements can pass through one or more communication between each other
Bus or signal wire, which are realized, to be electrically connected.First memory 111 is used to be solidificated in the operating system (Operating of server 100
System, OS) in software function module.The first processor 112 is used to execute to store in the first memory 111
Executable module, to realize the video recording backup method provided in the present embodiment.
Wherein, the first memory 111 may be, but not limited to, random access memory (Random Access
Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable
Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only
Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only
Memory, EEPROM) etc..Wherein, first memory 111 is for storing program or video file data.
The communication unit 113 be used to establish by the network server 100 and other communication terminals (for example,
Image collection terminal 300 and backup agent terminal 200) between communication connection, and for passing through the network sending and receiving data.?
In the present embodiment, server 100 also carries out data exchange with corresponding client 500 by communication unit 113.
Above-mentioned client 500 is corresponding with server 100, and user can match server 100 by client 500
It sets.It is alternatively possible to the storage plan of configuration server 100, above-mentioned storage plan may include to each image collection end
At the appointed time collected live stream carries out storage and obtains video in section at end 300.It optionally, can be in terms of configuration backup
It draws.Back-up plan is corresponding with storage plan, for example, storage plan is to acquire in one day to all image collection terminals 300
Live stream stored, then the fact that back-up plan can be that specified image collection terminal 300 acquires in one day flows into
Row backup or the live stream acquired within the intraday specified backup period to specified image collection terminal 300 store.
Specifically, back-up plan may include multiple backup tasks, and backup tasks can be corresponding image collection terminal 300 in correspondence
The backup period in acquire live stream backed up.The above-mentioned backup period can be defaulted as whole day, can also be according to selected
Time started and end time determine.Optionally, each image collection terminal 300 can also be configured in storage or backup procedure
In corresponding priority, lost to avoid important video file.Optionally, history back-up plan can also be configured, history is standby
Part plan includes multiple history backup tasks, receives the backup agent terminal 200 of history backup tasks, for standby according to history
Part task obtains the stored corresponding video file of server 100 from server 100.It optionally, can be with configuration backup generation
Manage the multiple that terminal 200 obtains video file from server 100.In embodiments of the present invention, 1 speed, 2 speeds, 4 can be supported
Speed, 8 speeds, 16 speeds.
It is desktop computer, tablet computer, PC that above-mentioned backup agent terminal 200, which may be, but not limited to,
(personal computer, PC), laptop.Referring to FIG. 3, the backup agent terminal 200 includes second memory
211, storage control 212, second processor 213 and Peripheral Interface 214.
The second memory 211, storage control 212, second processor 213 and each element of Peripheral Interface 214 are mutual
Between be directly or indirectly electrically connected, to realize the transmission or interaction of data.For example, these elements can pass through one between each other
Item or a plurality of communication bus or signal wire, which are realized, to be electrically connected.The second memory 211 is the local of backup agent terminal 200
Memory space can be used for storing the video file backed up.The second memory 211 is also used to store executable function
Energy module, so that the second processor 213 is for executing the executable module stored in the second memory 211, with reality
Existing video recording backup method provided in an embodiment of the present invention.
Various input/output devices are couple the second processor 213 and described second by the Peripheral Interface 214
Memory 211.In some embodiments, Peripheral Interface 214, second processor 213 and storage control 212 can be single
It is realized in chip.In some other example, they can be realized by independent chip respectively.Meanwhile movable storage medium
201 can access above-mentioned backup agent terminal 200 by Peripheral Interface 214, and the mobile storage as backup agent terminal 200 is empty
Between.Above-mentioned movable storage medium 201 can be flash disk, mobile hard disk etc..
First embodiment
Referring to FIG. 4, Fig. 4 shows the video recording backup method of present pre-ferred embodiments offer.The method can be applied
Backup agent terminal 200 in video recording standby system 400 shown in fig. 1.The described method includes:
Step S101 determines that the target backup needed to be implemented is appointed from least one backup tasks that server 100 is sent
Business.
It should be noted that further including the steps that registrar 100 before step S101.Registrar 100
Mode may is that
(1) when a backup agent terminal 200 is accessed for the first time in the video recording corresponding network of standby system 400 and is launched into
When backup agent working condition, agreement sending device probe messages are detected by multicast, with the response of waiting for server 100 and are connect
Receive the response message for carrying 100 address of server that server 100 generates.After backup agent terminal 200 receives response message
Registration request is fed back further according to 100 address of server.Optionally, above-mentioned registration request includes the backup agent terminal
200 current load condition data, above-mentioned load condition data include: current CPU, current CPU usage, memory, current
Whether memory usage inserts the resource informations such as flash disk and flash disk amount of capacity.If server 100 determines registration request effectively
It is configured to 200 feedback port of backup agent terminal, and carries out a time synchronization with backup agent terminal 200.Complete above-mentioned mistake
After journey, above-mentioned backup agent terminal 200 is by 100 address of server and port configuration in case using next time.
(2) when a backup agent terminal 200 is non-first enter video recording the corresponding network of standby system 400 in and start into
When entering backup agent working condition, 100 address of server and port saved according to the last time, which is configured to server 100, requests note
Volume iterates through the step of multicast detection agreement searches server 100 if registration is unsuccessful.
Meanwhile after backup agent terminal 200 succeeds in registration, it is also necessary to according to preset second time interval and service
Device 100 carries out keep-alive.Specifically, the mode for carrying out keep-alive, which can be, to be fed back currently according to the second time interval to server 100
Load condition data and with server 100 carry out a time synchronization.
In embodiments of the present invention, server 100 can be by the corresponding backup tasks of the back-up plan of pre-configuration to having succeeded
It registers and is distributed also in the backup agent terminal 200 of keepalive state.It is alternatively possible to according to each backup agent terminal
The current load condition data of 200 the last feedbacks carry out backup tasks point to each corresponding backup agent terminal 200
Match.Therefore, each backup agent terminal 200 will receive at least one backup tasks.Backup agent terminal 200 can be from receiving
Backup tasks in determine need at once execute target backup tasks.If only receiving a backup tasks, the backup tasks
For target backup tasks;If receiving multiple backup tasks, the target backup specified number is determined from received backup tasks
Task is performed simultaneously.Above-mentioned specify number can then determine according to the available connection resource quantity of itself.Specifically, each described
The live stream that backup tasks correspond to the acquisition to an image collection terminal 300 backs up, and backup tasks are also corresponding
To back up time interval.It, can be in conjunction with the priority of corresponding image collection terminal 300 and standby when determining target backup tasks
Part time interval determines target backup tasks from the backup tasks received.To ensure the image collection with higher priority
The corresponding backup tasks of terminal 300 can be performed in BACKUP TIME section.
Step S102 creates backup directory in the memory space of backup agent terminal 200 according to target backup tasks.
In embodiments of the present invention, the memory space of above-mentioned backup agent terminal 200 includes mobile memory space and local
Memory space.Mobile memory space has priority more higher than local storage space.Therefore, it when creating backup directory, first examines
Whether survey has mobile memory space to access the backup agent terminal 200.Institute is accessed when having detected the presence of mobile memory space
When stating backup agent terminal 200, there is the backup directory of priority in the mobile memory space creation.When being not detected
There are when the mobile memory space, the backup directory without priority is created in the local storage space.It needs
Illustrate, if target backup tasks have built up backup directory during executing in local storage space, but detects later
To when mobile memory space access, still the corresponding backup of target backup tasks being carrying out can be created in mobile memory space
Catalogue.The name of the backup directory of foundation may include the correlation of the corresponding target image acquisition terminal 300 of target backup tasks
Information, with the lookup or playback after facilitating to the video file of target image acquisition terminal 300.Relevant information, which can be, to be known
Not Chu the image collection terminal 300 information, for example, the hardware sequence of 300 title of image collection terminal and image collection terminal 300
Row number.
Step S103 is acquired according to the target backup tasks to target image corresponding with the target backup tasks
Terminal 300 sends request, to obtain the corresponding live stream.
In embodiments of the present invention, rising for backup can be determined according to the corresponding BACKUP TIME section of target backup tasks
Begin the time.And it is sent in the predetermined time to target image acquisition terminal 300 before the initial time of backup and obtains live stream
Request.It is obtained for example, can be sent in the 10s before the initial time of backup to corresponding target image acquisition terminal 300
The request of live stream.With guarantee it is punctual from target image acquisition terminal 300 get target image acquisition terminal 300 acquire
To the live stream since the initial time of backup.
Step S104 stores the live stream received, under the corresponding backup directory to be recorded
As file.
In embodiments of the present invention, before live stream being stored, detection is appointed with target backup in memory space
It is engaged in the corresponding backup directory with the presence or absence of the backup directory with priority.When in the presence of the backup with priority
When catalogue, the live stream is stored under the backup directory of priority, obtains the video file.Due to each video recording text
Part size is limited, and in the present embodiment, each video file size is no more than 64MB.Therefore, corresponding BACKUP TIME section is compared
The wide corresponding live stream of target backup tasks is stored as multiple video files, each video recording text according to collected time sequencing
Part is with the name of its beginning and ending time.And phase at the beginning of the end time of adjacent previous video file and the video file
Together.If detect the backup directory with priority in target backup tasks implementation procedure, the view of backup will have been completed
Frequency file is transferred to the backup directory with priority, and wait stored video file storage after, will also its
Be moved to the backup directory with priority, and by go back later to live stream continue under the backup directory with priority
It is stored as next video file.It is surplus to it when if it is being stored in mobile memory space in carrying out storing process
It is reminded when (for example, remaining space is less than 5%) to user when complementary space deficiency, stops backup when capacity is full, and prompt
Mobile memory space (for example, flash disk) flash disk of user has been expired.It is standby if it is being carried out at local storage space (such as local disk)
When part, the backup that the 30% of second memory 211 be used for video file can be cached into (cache size is configurable).When for depositing
Prompt user's remaining space is insufficient when the local storage space of deposit part file expires (remaining space is less than 5%) fastly, when completely full
When stop backup, and user's space is prompted to expire.
During backup tasks are performed, backup agent terminal 200 is sending the same of current load condition data
When, it can also be according to preset second time interval by the executive condition data of the current backup tasks of the backup agent terminal 200
Feed back to server 100.Executive condition data are to be sent to the execution state of the backup tasks of backup agent terminal 200.It holds
Market condition data may include target backup tasks implementation progress and also the information for waiting other backup tasks to be performed,
Quantity etc..So that the server 100 backup agent according to the load condition data and executive condition data point reuse is whole
The pending backup tasks such as on end 200.For example, current loading condition data are shown that the slow backup agent of backup rate is whole
On end 200 etc. backup tasks to be performed cancel, and be adjusted to current loading condition data to show backup rate high, and wait
In the few backup agent terminal 200 of backup tasks to be performed.
In order to guarantee the complete of video that each target backup tasks finally saves, as shown in figure 5, the method
Further include:
Step S105 obtains video file described in each of described backup directory according to preset first time interval
Beginning and ending time.
In the present embodiment, it at the beginning of can successively obtaining the video being stored in backup directory and terminates
Moment.
Step S106 judges the video recording in the backup directory according to the beginning and ending time of video file described in each
Whether file lacks.
In the present embodiment, the initial time from corresponding BACKUP TIME section is judged according to the beginning and ending time of video file
Start whether to be continuous.Specifically, it can be when being arranged video file according to the sequencing of beginning and ending time, detection
It is whether identical as the end time of an adjacent upper video at the beginning of each video, when occurring different,
Then judge that video file lacks.And at the beginning of the video and an adjacent upper video between time
Section is missing time section.
Step S107, when the video file in the backup directory lacks, according to corresponding missing time
Section is to the corresponding target image acquisition terminal 300 of backup directory described in 100 request of server in the missing
Between video file in section.
In embodiments of the present invention, according to the corresponding image collection terminal 300 of backup directory and missing time section, to clothes
Business device 100 requests corresponding playback stream, and stores in the backup directory.Preferentially, when the multiple backup directories of appearance exist
When missing, need according to the corresponding priority of image collection terminal 300 and corresponding backup multiple to 100 request of server
Corresponding playback stream, to guarantee the integrality of video file in each backup directory.Ensure the accuracy backed up.Due to standby in real time
Part process be not necessarily at any time to 100 request data of server, therefore, backup efficiency by not by the bandwidth of server 100 and
The influence of load.It less will increase the burden of server 100.Especially when mass data needs to back up, advantage is just more
Obviously.
In the present embodiment, server 100 can also be according to the newest load condition data of backup agent terminal 200 and execution
Situation data, to each 200 allocation history backup tasks of backup agent terminal.History backup tasks, that is, backup agent terminal 200
The BACKUP TIME section of the task has been already expired at the time of being connected to the task.It need to only be issued at this time in response to the server 100
History backup tasks are backed up from the corresponding history video file of 100 request of server.Above-mentioned history video recording text
Part is generated by the server 100 according to the live stream obtained from corresponding image collection terminal 300.
In the present embodiment, when receiving server 100 and issuing video recording inquiry request, backup agent terminal 200 can root
Corresponding backup directory is found according to the relevant information of image collection terminal 300 corresponding in inquiry request, parses and is recorded under the catalogue
As filename, the video file of the corresponding designated time period of inquiry request is found out, and gives its filename to service with tabular form
Device 100.
In the present embodiment, when receive server 100 issue playing back videos request, backup agent terminal 200 read pair
Code stream is issued server 100 by the video file answered.And after a video file finishes, backup agent can be broadcast automatically
Next video file in catalogue is put, is reached until the video recording end time that user stops broadcasting or user query.
Second embodiment
Fig. 6 is please referred to, Fig. 6 shows video recording backup method provided in an embodiment of the present invention.Applied to video recording shown in fig. 1
Server 100 in standby system 400.It the described method comprises the following steps:
Step S201 is generated in response to the equipment probe messages that the backup agent terminal 200 is sent and is carried server
The response message of 100 addresses feeds back to the corresponding backup agent terminal 200, so as to 200 basis of backup agent terminal
Registration request is fed back in 100 address of server, and the registration request includes the current load shape of the backup agent terminal 200
State data.
Step S202, after the registration request for receiving and storing the backup agent terminal 200, according to preset
Two time intervals receive and store the current load condition data that the backup agent terminal 200 is fed back, and it is same to carry out the time
Step.
Step S203 will be obtained from the corresponding image collection terminal 300 according to pre-set storage plan and be corresponded to
Live stream stored, to obtain corresponding video file.
Step S204 will be with according to the load condition data of the last feedback of backup agent terminal 200 described in each
Multiple backup tasks in the corresponding back-up plan of the storage plan are distributed to the backup agent terminal 200, so that described
Backup agent terminal 200 is synchronous with the server 100 to adopt from the corresponding image according to the backup tasks received
Collection terminal 300 obtains the video file that the corresponding live stream is stored as backup.
In embodiments of the present invention, server 100 receives the backup agent end according further to preset second time interval
The executive condition data of 200 feedback of end.In conjunction with the received current load condition data and the corresponding executive condition
The pending backup tasks such as in backup agent terminal 200 described in data point reuse.Executive condition data are to be sent to backup generation
Manage the execution state of the backup tasks of terminal 200.Above-mentioned executive condition data may include the implementation progress of target backup tasks
And also in information, the quantity etc. for waiting other backup tasks to be performed.The server 100 is according to the load condition data
And the pending backup tasks such as in backup agent terminal 200 described in executive condition data point reuse.
Specifically, server 100 detects etc. pending from the load condition data and executive condition data received
When backup tasks, determines which backup tasks will be done and start to be backed up (for example, apart from its corresponding BACKUP TIME section
Initial time is less than 30s) or current time to be more than the BACKUP TIME section of the backup tasks when, by the backup tasks with negative
It carries balanced mode and is handed down to other registered backup agent terminals 200.Specifically, the strategy of load balancing is as follows: by use
The priority of the image collection terminal 300 of family configuration;It has accessed mobile memory space and the movement memory space remaining space is big
It is preferential;Big preferential of CPU frequency, memory;Low preferential of CPU, memory usage;The current backup of backup agent terminal 200
Number of tasks is few preferential.For example, current loading condition data are shown the waiting in the slow backup agent terminal 200 of backup rate
The backup tasks that are performed are cancelled, and are adjusted to current loading condition data to show backup rate high, and wait to be performed standby
In the few backup agent terminal 200 of part task.
In embodiments of the present invention, history backup tasks can also be sent as backup agent terminal 200.It specifically, can be with
The corresponding history video file of history backup tasks is first divided into multiple durations according to the number of available backup agent terminal 200
Identical history video clip.The period in the history video file that each backup agent terminal 200 is backed up is calculated again.When
So, minimum 5 minutes of video film duration avoid video recording fragment.History video file backup is carried out in backup agent terminal 200
In the process, the case where server 100 can also be according to the completion task of each backup agent, dynamic adjust the record for not completing backup
Photo duration.Backup agent terminal 200 also successively backs up history video recording according to priority from high to low.
In embodiments of the present invention, user can inquire any one image collection to server 100 by client 500
Video file of the terminal 300 in scheduled date and period.Specifically, server 100 is first to storing inquiring in local disk
Video file in inquire, then return if it exists video recording list to client 500, otherwise to backup agent terminal 200 send use
In inquiring inquiry request of the image collection terminal 300 in scheduled date and period corresponding video file, and will be from backup
The video recording list that proxy terminal 200 obtains returns to client 500.When one video file of specified broadcasting of client 500, if clothes
The local video recording of business device 100, then server 100 is directly read video recording and is sent to client 500 in the form of code stream, otherwise to backup
Proxy terminal 200 requests the playback stream of the video file, and forwards it to client 500.To facilitate user to check and play back.
It should be noted that server 100, can be according to a series of excellent when dispatching backup tasks in the above-described embodiments
First grade, while completing backup tasks as early as possible, reduction server 100 is important as far as possible records a video a possibility that capped.Specifically
Priority is as follows: the first priority is the priority of the image collection terminal 300 of user configuration, priority be divided into it is high, middle it is high,
In, in it is low, low, only when high priority task backup after the completion of just handle sub-priority task.Second priority: backup
The load condition data of proxy terminal 200.Specific to the remaining space of the mobile memory space of X=, X is bigger, and priority is higher;Y
=0.7*CPU utilization rate+0.3* memory usage, Y is smaller, and priority is higher;Z=backup tasks volume residual, Z is smaller, excellent
First grade is higher.
In conclusion the embodiment of the invention provides a kind of video recording backup method and systems.Wherein, it is applied to video recording backup
The method of backup agent terminal in system includes: to determine to need to hold from least one backup tasks that the server is sent
Capable target backup tasks, wherein each backup tasks correspond to the live stream of the acquisition to an image collection terminal
It is backed up;According to the target backup tasks, backup directory is created in the memory space of the backup agent terminal;Foundation
The target backup tasks send to target image acquisition terminal corresponding with the target backup tasks and request, with acquisition pair
The live stream answered;The live stream received is stored under the corresponding backup directory, to be recorded a video
File.In the above process, backup rate is not limited by server bandwidth, and backup is high-efficient, and backup procedure is not take up server
System resource.It is beneficial to solve the problems, such as that video recording backup can not be rapidly completed because of server bandwidth and performance limitation.It is beneficial to
It solves the problems, such as to lack during quick backup video file because some exceptions cause backup to be recorded a video.It is beneficial to solve backup video recording
The problem of file Integrated query and playback.It is beneficial to adjust the scheduling of backup tasks according to the resource dynamic of backup agent.It is beneficial
In the capped risk of the important video recording in the center of reduction.It is beneficial to the high speed fragment downloading high priority image collection of more backup agents
The video file of terminal in the server.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through
Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing
Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product,
Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code
Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held
Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement
The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes
It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart
The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement
It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
Claims (10)
1. a kind of video recording backup method, which is characterized in that applied to the backup agent terminal in video recording standby system, the video recording
Standby system further includes server and multiple image collection terminals, the server, backup agent terminal and image collection terminal
Communication connection between each other, which comprises
The target backup tasks needed to be implemented are determined from least one backup tasks that the server is sent, wherein each institute
The live stream that backup tasks are stated corresponding to the acquisition to an image collection terminal backs up;
According to the target backup tasks, backup directory is created in the memory space of the backup agent terminal;
According to the target backup tasks, sends and requests to target image acquisition terminal corresponding with the target backup tasks,
To obtain the corresponding live stream;
The live stream received is stored under the corresponding backup directory, to obtain video file.
2. the method as described in claim 1, which is characterized in that the method also includes:
The beginning and ending time of video file described in each of described backup directory is obtained according to preset first time interval;
Judge whether the video file in the backup directory occurs according to the beginning and ending time of video file described in each
Missing;
When the video file in the backup directory lacks, according to corresponding missing time section to the service
Video file of the corresponding target image acquisition terminal of backup directory described in device request in the missing time section.
3. the method as described in claim 1, which is characterized in that the memory space includes mobile memory space and is locally stored
Space, according to the target backup tasks, the step of creation backup directory, is wrapped in the memory space of the backup agent terminal
It includes:
Detect whether that mobile memory space accesses the backup agent terminal;
When having detected the presence of the mobile memory space access backup agent terminal, in the mobile memory space creation tool
There is the backup directory of priority;
When being not detected there are when the mobile memory space, create in the local storage space without described in priority
Backup directory.
4. method as claimed in claim 3, which is characterized in that the live stream that will be received is corresponding described standby
The step of being stored under part catalogue include:
It detects in the corresponding backup directory with the presence or absence of the backup directory with priority;
When there is the backup directory with priority, the live stream being stored under the backup directory of priority and is obtained
To the video file.
5. the method as described in claim 1, which is characterized in that the method also includes:
According to scheduled second time interval, by the current load condition data of the backup agent terminal and it is received it is described extremely
Few corresponding executive condition data of a backup tasks are sent to the server, so that the server is according to the load shape
The pending backup tasks such as in backup agent terminal described in state data and executive condition data point reuse.
6. the method as described in claim 1, which is characterized in that the method also includes:
In response to the history backup tasks that the server issues, from the corresponding history video file of the server request
It is backed up, the history video file is by the server according to the live stream obtained from corresponding image collection terminal
It generates.
7. a kind of video recording backup method, which is characterized in that applied to the server in video recording standby system, video recording backup system
System further includes backup agent terminal and multiple image collection terminals, the server, backup agent terminal and image collection terminal
Communication connection between each other, which comprises
Corresponding live stream will be obtained from the corresponding image collection terminal according to pre-set storage plan to store,
To obtain corresponding video file;
It, will be corresponding with the storage plan according to the load condition data of the feedback of backup agent terminal the last time described in each
Back-up plan in multiple backup tasks be distributed to the backup agent terminal so that the backup agent terminal is according to reception
The backup tasks arrived obtain the corresponding live stream from the corresponding image collection terminal with the server sync
It is stored as the video file of backup.
8. the method for claim 7, which is characterized in that the method also includes:
In response to the equipment probe messages that the backup agent terminal is sent, the response message feedback for carrying server address is generated
The extremely corresponding backup agent terminal, so that the backup agent terminal feeds back registration request according to the server address,
The registration request includes the current load condition data of the backup agent terminal;
After the registration request for receiving and storing the backup agent terminal, received simultaneously according to preset second time interval
Store the current load condition data of the backup agent terminal feedback.
9. method according to claim 8, which is characterized in that the method also includes:
The executive condition data of the backup agent terminal feedback are received according to preset second time interval;
The backup agent in conjunction with described in the received current load condition data and the corresponding executive condition data point reuse
The pending backup tasks such as in terminal.
10. a kind of video recording standby system, which is characterized in that the video recording standby system include backup agent terminal, server and
Multiple image collection terminals, the server, backup agent terminal and image collection terminal communicate to connect between each other, the record
The step of as standby system to realize video recording backup method as described in any one of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711384349.XA CN109951662B (en) | 2017-12-20 | 2017-12-20 | Video backup method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711384349.XA CN109951662B (en) | 2017-12-20 | 2017-12-20 | Video backup method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109951662A true CN109951662A (en) | 2019-06-28 |
CN109951662B CN109951662B (en) | 2022-06-14 |
Family
ID=67004832
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711384349.XA Active CN109951662B (en) | 2017-12-20 | 2017-12-20 | Video backup method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109951662B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110597659A (en) * | 2019-08-28 | 2019-12-20 | 华为技术有限公司 | Backup processing method and server |
CN110691240A (en) * | 2019-11-05 | 2020-01-14 | 深圳万物安全科技有限公司 | Mobile detection missing recording detection method and device |
CN111654671A (en) * | 2020-05-29 | 2020-09-11 | 杭州海康威视系统技术有限公司 | Video data storage method, device, equipment and storage medium |
CN111831483A (en) * | 2020-07-20 | 2020-10-27 | 北京百度网讯科技有限公司 | Backup management method, system, electronic device, and medium |
CN113742130A (en) * | 2020-05-29 | 2021-12-03 | 伊姆西Ip控股有限责任公司 | Method, electronic device and computer program product for backup |
CN114996203A (en) * | 2022-05-19 | 2022-09-02 | 中诚华隆计算机技术有限公司 | SOC chip, capsule endoscope robot and capsule endoscope system |
Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0420425A2 (en) * | 1989-09-25 | 1991-04-03 | International Business Machines Corporation | A data processing system and method for updating a database therein |
US20040033059A1 (en) * | 2002-08-17 | 2004-02-19 | Kim Chul-Min | Image recording/reproducing apparatus having enhanced ability to recover motion picture data in the event of recording error |
US20040236826A1 (en) * | 2003-05-19 | 2004-11-25 | Michael Harville | Combination case for service location management of media services |
US20080151094A1 (en) * | 2006-12-22 | 2008-06-26 | Nikon Corporation | Digital camera |
CN101483762A (en) * | 2008-12-31 | 2009-07-15 | 中兴通讯股份有限公司 | Platform video recording method, system and customer terminal |
CN101742254A (en) * | 2008-11-25 | 2010-06-16 | 北京中星微电子有限公司 | Backup method for video monitoring system information and central platform server |
CN101873457A (en) * | 2009-09-02 | 2010-10-27 | 杭州海康威视数字技术股份有限公司 | DVR (Digital Video Recorder) as well as data backup method and system thereof |
US20110292222A1 (en) * | 2010-05-28 | 2011-12-01 | Eu3C Company, Limited | Photo-video player with automatic image file size reduction |
CN102298547A (en) * | 2011-09-20 | 2011-12-28 | 杭州华三通信技术有限公司 | Data backup method and device |
CN103024326A (en) * | 2011-09-22 | 2013-04-03 | 中兴通讯股份有限公司 | Video backup method and system based on security and protection home gateway |
CN104168453A (en) * | 2014-08-01 | 2014-11-26 | 东莞市星谷信息科技有限公司 | Method for implementing video monitoring stream media application system |
CN104765574A (en) * | 2015-04-23 | 2015-07-08 | 成都博元时代软件有限公司 | Data cloud storage method |
US20160037119A1 (en) * | 2014-07-30 | 2016-02-04 | Idis Co., Ltd. | Video recording apparatus, and video recording method when temporary network failure occurs |
CN105430423A (en) * | 2015-11-12 | 2016-03-23 | 小米科技有限责任公司 | Video backup method, device and system |
CN106303341A (en) * | 2016-10-13 | 2017-01-04 | 杭州恒生数字设备科技有限公司 | A kind of coaxial high-definition network switch |
CN106998436A (en) * | 2017-03-24 | 2017-08-01 | 浙江宇视科技有限公司 | Video recording backup method and device |
-
2017
- 2017-12-20 CN CN201711384349.XA patent/CN109951662B/en active Active
Patent Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0420425A2 (en) * | 1989-09-25 | 1991-04-03 | International Business Machines Corporation | A data processing system and method for updating a database therein |
US20040033059A1 (en) * | 2002-08-17 | 2004-02-19 | Kim Chul-Min | Image recording/reproducing apparatus having enhanced ability to recover motion picture data in the event of recording error |
US20040236826A1 (en) * | 2003-05-19 | 2004-11-25 | Michael Harville | Combination case for service location management of media services |
US20080151094A1 (en) * | 2006-12-22 | 2008-06-26 | Nikon Corporation | Digital camera |
CN101742254A (en) * | 2008-11-25 | 2010-06-16 | 北京中星微电子有限公司 | Backup method for video monitoring system information and central platform server |
CN101483762A (en) * | 2008-12-31 | 2009-07-15 | 中兴通讯股份有限公司 | Platform video recording method, system and customer terminal |
CN101873457A (en) * | 2009-09-02 | 2010-10-27 | 杭州海康威视数字技术股份有限公司 | DVR (Digital Video Recorder) as well as data backup method and system thereof |
US20110292222A1 (en) * | 2010-05-28 | 2011-12-01 | Eu3C Company, Limited | Photo-video player with automatic image file size reduction |
CN102298547A (en) * | 2011-09-20 | 2011-12-28 | 杭州华三通信技术有限公司 | Data backup method and device |
CN103024326A (en) * | 2011-09-22 | 2013-04-03 | 中兴通讯股份有限公司 | Video backup method and system based on security and protection home gateway |
US20160037119A1 (en) * | 2014-07-30 | 2016-02-04 | Idis Co., Ltd. | Video recording apparatus, and video recording method when temporary network failure occurs |
CN104168453A (en) * | 2014-08-01 | 2014-11-26 | 东莞市星谷信息科技有限公司 | Method for implementing video monitoring stream media application system |
CN104765574A (en) * | 2015-04-23 | 2015-07-08 | 成都博元时代软件有限公司 | Data cloud storage method |
CN105430423A (en) * | 2015-11-12 | 2016-03-23 | 小米科技有限责任公司 | Video backup method, device and system |
CN106303341A (en) * | 2016-10-13 | 2017-01-04 | 杭州恒生数字设备科技有限公司 | A kind of coaxial high-definition network switch |
CN106998436A (en) * | 2017-03-24 | 2017-08-01 | 浙江宇视科技有限公司 | Video recording backup method and device |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110597659A (en) * | 2019-08-28 | 2019-12-20 | 华为技术有限公司 | Backup processing method and server |
US11971786B2 (en) | 2019-08-28 | 2024-04-30 | Huawei Technologies Co., Ltd. | Backup processing method and server |
CN110691240A (en) * | 2019-11-05 | 2020-01-14 | 深圳万物安全科技有限公司 | Mobile detection missing recording detection method and device |
CN110691240B (en) * | 2019-11-05 | 2021-04-16 | 深圳万物安全科技有限公司 | Mobile detection missing recording detection method and device |
CN111654671A (en) * | 2020-05-29 | 2020-09-11 | 杭州海康威视系统技术有限公司 | Video data storage method, device, equipment and storage medium |
CN111654671B (en) * | 2020-05-29 | 2021-11-23 | 杭州海康威视系统技术有限公司 | Video data storage method, device, equipment and storage medium |
CN113742130A (en) * | 2020-05-29 | 2021-12-03 | 伊姆西Ip控股有限责任公司 | Method, electronic device and computer program product for backup |
US11853167B2 (en) | 2020-05-29 | 2023-12-26 | EMC IP Holding Company LLC | Method, electronic device and computer program product for backup |
CN111831483A (en) * | 2020-07-20 | 2020-10-27 | 北京百度网讯科技有限公司 | Backup management method, system, electronic device, and medium |
CN114996203A (en) * | 2022-05-19 | 2022-09-02 | 中诚华隆计算机技术有限公司 | SOC chip, capsule endoscope robot and capsule endoscope system |
Also Published As
Publication number | Publication date |
---|---|
CN109951662B (en) | 2022-06-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109951662A (en) | Video recording backup method and system | |
CN107943951B (en) | Method and system for retrieving block chain service information | |
CN100411341C (en) | Parallel downloading method and terminal | |
US10409694B2 (en) | Data conversion method and backup server | |
CN106933550B (en) | Global information obtaining, processing and updating method, device and system | |
CN103139157B (en) | A kind of based on the network communication method of socket, Apparatus and system | |
CN101227343B (en) | Method and device for testing TCPv6 and UDPv6 | |
CN106933548B (en) | Global information obtaining, processing and updating method, device and system | |
CN104899049B (en) | File deletion method and device | |
CN105548749B (en) | A kind of communication terminal test method, apparatus Internet-based and system | |
CN105615832A (en) | Medical image data acquisition method and device | |
CN103595782A (en) | Distributed storage system and method for downloading files thereof | |
CN103067479A (en) | Network disk synchronized method and system based on file coldness and hotness | |
CN106155925A (en) | A kind of method and device obtaining data | |
CN108347459A (en) | A kind of high in the clouds data quick storage method and device | |
CN104298757B (en) | A kind of method and system of compatible multi version mobile client and database | |
CN108234141B (en) | Directional traffic processing method and server | |
CN102222112A (en) | Resource management device and resource management method | |
CN113114503B (en) | Deployment method and device based on application delivery network requirements | |
CN102340544B (en) | Method and device for downloading upgrade file packet | |
CN106203179A (en) | A kind of completeness check system and method to file | |
CN107577822A (en) | A kind of method of data synchronization, data synchronization unit and mobile terminal | |
CN110347656B (en) | Method and device for managing requests in file storage system | |
US20170279895A1 (en) | Information processing system and information processing method | |
CN105426125B (en) | A kind of date storage method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |