CN101227597A - Method and system for preventing video recording from overlapping in Global E-eye system - Google Patents

Method and system for preventing video recording from overlapping in Global E-eye system Download PDF

Info

Publication number
CN101227597A
CN101227597A CNA2008100071800A CN200810007180A CN101227597A CN 101227597 A CN101227597 A CN 101227597A CN A2008100071800 A CNA2008100071800 A CN A2008100071800A CN 200810007180 A CN200810007180 A CN 200810007180A CN 101227597 A CN101227597 A CN 101227597A
Authority
CN
China
Prior art keywords
record task
task
new original
target record
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2008100071800A
Other languages
Chinese (zh)
Other versions
CN100574425C (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2008100071800A priority Critical patent/CN100574425C/en
Publication of CN101227597A publication Critical patent/CN101227597A/en
Application granted granted Critical
Publication of CN100574425C publication Critical patent/CN100574425C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Television Signal Processing For Recording (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

The invention discloses a method of preventing video overlapping in the global eye system, which is pre-provided with a source-video task list, a target video task list and a corresponding relation list, the method comprises the following steps: a content distribution network compares a new original video task received from a monitoring center with an old target video task stored in the target task list, when the existence of an old target video task is overlapped or part-overlapped with a new original video task in the video recording time is confirmed, the new original video task is separated into at least one target video task and then is inserted into the target video task list and the corresponding relation list; scanning the to-be-distribute target video task in the target video task list at predetermined time, and distributing the to-be-distribute target video task to a streaming media server in advance; the streaming media server starts to order according to the videos which gets from the content distribution network, obtains a code current from the terminal of the monitoring, and stores the code current on a magnetic matrix of the streaming media server. The invention successfully avoids detect of repeat-recording in a streaming media server.

Description

Prevent the overlapping method and system of recording a video in a kind of global eye
Technical field
The present invention relates to communication technical field, relate in particular to the video monitoring service field.
Background technology
Global eye is a kind of collection monitoring camera, integrates multiple technologies such as the Internet, multimedia, communication, and the brand-new technology of multiple interactive services is provided to units such as the police, banks.
Because global eyes has made full use of resource and technology such as video monitoring, the Internet, multimedia, make the user obtain interactive video monitor service truly, it will substitute existing video monitoring technology gradually, become the development trend of video monitoring industry, have huge market prospects.
In the global eye, video recording mainly is divided into three kinds of video recordings: regularly video recording, manually video recording, alarm video recording.Regularly video recording is to set the random time section as required to record a video, and has arrived the time started of setting, and the global eye video recording will automatic video recording; Arrived the concluding time of setting, global eye will stop video recording automatically.Manually video recording is to set record task by the global eyes monitor client, allows global eye begin video recording immediately, and video time is the time of manual record setting.Alarm video recording is a global eye when having monitored abnormal conditions (anomalous event can be set according to the global eyes client), records a video immediately.
In these three kinds of video recordings, may there be the overlapping situation of video time, when recording a video as regularly recording a video, run into alarm event and cause the alarm video recording suddenly, what alarm was at this moment recorded a video just records a video overlapping with timing, also may run into regularly video recording and manually video recording when in like manner, alarming video recording.Like this, streaming media server will repeat the content together of using videotape to record, and causes the magnetic battle array space of streaming media server and the waste of code stream transmission bandwidth, has shortened the useful life of streaming media server.For this problem, effective solution is not arranged as yet in the prior art.
Summary of the invention
In view of above-mentioned analysis, the present invention aims to provide and prevents the overlapping method and system of recording a video in a kind of global eye, in order to solve the overlapping problem of video time that exists in the prior art.
The objective of the invention is to be achieved through the following technical solutions:
The invention provides and prevent the overlapping method of recording a video in a kind of global eye, set in advance active record task list, target record task list and mapping table, described method comprises:
Steps A: the new original record task that content delivery network will be received from Surveillance center compare with the old target record task of storing the goal task table: during overlapping fully old target record task, the corresponding relation of described new original record task with old target record task is inserted in the mapping table on video time when confirming to exist with new original record task; Perhaps, when confirm existing, described new original record task is split at least one target record task be inserted in target record task list and the mapping table with the new original record task old target record task overlapping on video time top;
Step B: target record task to be issued in the content delivery network timing scan target record task list, be handed down to streaming media server with target record task to be issued;
Step C: streaming media server obtains code stream from front monitoring front-end, and the code stream that obtains is saved on the magnetic battle array of streaming media server according to the target record task of receiving from content delivery network.
Further, described method also comprises:
Step D: after video time finished, the streaming media server result that will record a video reported content delivery network;
Step e: the video recording result that content delivery network reports according to streaming media server, the state of the target record task in the modifying target record task list, and according to the end-state of this new original record task in the status modifier source record task list of record task in the goal task table, the result that will record a video then reports Surveillance center.
Further, described steps A specifically comprises:
Steps A 1: Surveillance center is provided with new original record task, and the new original record task that will be provided with is handed down to content delivery network;
Steps A 2: new original record task that content delivery network will be received and described old target record task compare, retrieval also judges whether to exist and new original record task complete overlapping or partly overlapping old target record task on video time, if, execution in step A3 then, otherwise execution in step A4;
Steps A 3: the old target record task of all that will retrieve sorted from small to large with the time started, and each old target record task is carried out following operation, up to handling last old target record task:
The new original record task and the old target record task of storing in the goal task table are compared: on video time, during overlapping fully old target record task, the corresponding relation of described new original record task with old target record task is inserted in the mapping table when confirming to exist with new original record task; Perhaps, when confirm existing, described new original record task is split at least one target record task be inserted in target record task list and the mapping table with the new original record task old target record task overlapping on video time top;
Steps A 4: directly described new original record task is split at least one target record task and be inserted in source record task list, target record task list and the mapping table.
Further, the kind of described new original record task comprises: timing is recorded a video, is manually recorded a video and alarms video recording, and in the then described steps A 1, the step that described Surveillance center is provided with new original record task specifically comprises:
For regularly video recording, Surveillance center will the new original record task time started and the concluding time be provided with according to the value of service needed setting;
For manual video recording, Surveillance center sets the manually duration of video recording, and the time started of manually recording a video automatically is set to the current time, and the concluding time is the duration that the current time adds manual record setting;
For the alarm video recording, when camera was checked out alarm event generation and notice Surveillance center, according to the alarm duration that monitoring is provided with, the current time that alarm is recorded a video was set at the current alarm time, and the time started of concluding time for the alarm video recording adds the alarm duration.
Further, described steps A 3 specifically comprises:
All old target record task that retrieve were sorted from small to large with the time started, and to successively each old target record task being carried out following operation, up to handling last old target record task:
Steps A 31: the magnitude relationship of judging new original record task time started and current old target record task time started: if judge that the new original record task time started is less than the current old target record task time started, execution in step A32 then, otherwise execution in step A33;
Steps A 32: the difference of more current old target record task time started and new original record task time started and the magnitude relationship of record task scheduled duration, and insert a fresh target record task in target record task list and mapping table according to the magnitude relationship of relatively coming out, reset the time started and the concluding time of the original record task of this fresh target simultaneously;
Steps A 33: the corresponding relation that directly inserts a new ancestral task and current old goal task is to mapping table, and resets the time started and the concluding time of this new original record task, repeated execution of steps A31 then;
After relevant old goal tasks and new original record task are handled with all, if the time started of current new original record task less than the concluding time of current new record task,, otherwise should new original record task split end then by execution in step A4.
Further, described steps A 32 specifically comprises:
The difference of more current old target record task time started and new original record task time started and the magnitude relationship of record task scheduled duration:
If the difference of current old target record task time started and new original record task time started is less than the record task scheduled duration, then insert a target record task to the target record task list, time started is the time started of new task, concluding time is the time started of old target record task, the corresponding relation that inserts new original record task and old target record task simultaneously records mapping table, then repeated execution of steps A31;
If the difference of current old target record task time started and new original record task time started is more than or equal to the record task scheduled duration, then insert a target record task to the target record task list: the time started is for being the time started of new record task, concluding time be time started of new original record task and the maximum duration of record task and, corresponding relation with new original record task and old target record task is inserted into mapping table simultaneously, continues to handle next old target record task then.
Further, described steps A 4 specifically comprises:
Steps A 41: if whether judge the new original record task time started less than the new original record task concluding time, if less than, execution in step A42 then; Otherwise execution in step A43;
Steps A 42: judge maximum duration of the difference of new original record task concluding time and new original record task time started and record task and record task elasticity duration and magnitude relationship, and according to the magnitude relationship that judges, insert a target record task in target record task list and mapping table, and reset the time started and the concluding time of this new original record task;
Steps A 43: should new original record task be inserted in the record task list of source.
Further, described steps A 42 specifically comprises:
Whether the difference of judging new original record task concluding time and new original record task time started is less than the record task scheduled duration, if less than, then insert a record task in target record task list and mapping table, time started is the time started of new original video recording, and the concluding time is the concluding time of new original video recording; Otherwise insert a record task in target record task list and mapping table, the time started is the time started of new original video recording, the concluding time be concluding time of new original record task and the maximum duration of record task and, and repeat steps A 41.
Further, described scheduled duration comprises: the maximum duration of record task, perhaps, the maximum duration of record task and elasticity duration with.
The present invention also provides and has prevented the overlapping system of recording a video in a kind of global eye, comprise: Surveillance center, content delivery network, streaming media server and front monitoring front-end, wherein, in the described content delivery network active record task list, target record task list and mapping table are set;
Described Surveillance center is used to be provided with new original record task, and the new original record task that will be provided with is handed down to content delivery network;
Described content delivery network, being used for the new original record task that will receive from Surveillance center and the old target record task of storing at the goal task table compare: during overlapping fully old target record task, the corresponding relation of described new original record task with old target record task is inserted in the mapping table on video time when confirming to exist with new original record task; Perhaps, when confirm existing, described new original record task is split at least one target record task be inserted in target record task list and the mapping table with the new original record task old target record task overlapping on video time top; And content delivery network is target record task to be issued in the timing scan target record task list also, and target record task to be issued is handed down to streaming media server;
Described front monitoring front-end is used for video shooting and the result that will record a video carries out encoding process, and the code stream after will handling then is transferred to streaming media server;
Described streaming media server is used for the target record task that basis is received from content delivery network, obtains code stream from front monitoring front-end, and the code stream that obtains is preserved on the magnetic battle array of refluence media server.
Further, after video time finished, described streaming media server also was used for the video recording result is reported content delivery network; Described content delivery network also is used for the video recording result that reports according to streaming media server, the state of the target record task in the modifying target record task list, and according to the end-state of this new original record task in the status modifier source record task list of record task in the goal task table, the result that will record a video then reports Surveillance center.
Beneficial effect of the present invention is as follows: guarantee that effectively streaming media server do not record the video recording of repetition; Both improved the performance of streaming media server, and also saved Streaming Media magnetic battle array space to greatest extent, prolonged Streaming Media magnetic position useful life.
Other features and advantages of the present invention will be set forth in the following description, and becoming apparent from specification of part perhaps understood by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the specification of being write, claims and accompanying drawing.
Description of drawings
Fig. 1 is the schematic flow sheet of the described method of the embodiment of the invention;
Fig. 2 is in the embodiment of the invention, the schematic flow sheet that new original record task is split;
Fig. 3 is in the embodiment of the invention, the storage schematic diagram of the database table after the new original record task of example one splits;
Fig. 4 is in the embodiment of the invention, the storage schematic diagram of the database table after the new original record task of example two splits;
Fig. 5 is the structural representation of the described system of the embodiment of the invention.
Embodiment
Specifically describe preferential embodiment of the present invention below in conjunction with accompanying drawing, wherein, accompanying drawing constitutes the application's part, and is used from explaination principle of the present invention with embodiments of the invention one.
1 be described in detail at first, in conjunction with the accompanying drawings to 4 pairs of described methods of the embodiment of the invention of accompanying drawing.
At first, CDN pre-sets 3 database tables in its database, be respectively: source record task list, target record task list and mapping table.Wherein, the source record task list is used for storing the target record task that Surveillance center has issued; After being used for depositing and splitting, the target record task list prepares to be handed down to the target record task of streaming media server; Mapping table be used for preserving the target record task that issued and split after the corresponding relation of target record task.
As shown in Figure 1, Fig. 1 is the schematic flow sheet of the described method of the embodiment of the invention, specifically can comprise the steps:
Step 101: Surveillance center is provided with new original record task, i.e. the record task that does not split;
Step 102: the new original record task that Surveillance center will be provided with is handed down to CDN (content delivery network);
When step 103:CDN receives the new original record task of Surveillance center, described new original record task is split into one or more target record task to be inserted in target record task list and the mapping table, target record task to be issued in the timing scan target record task list then, in advance (as 5 seconds) issue the video recording initiation command and give streaming media server;
Step 104: streaming media server obtains code stream from front monitoring front-end immediately, and the code stream that obtains is write on the magnetic battle array of streaming media server after receiving and beginning the video recording order;
Step 105: video time finishes, and streaming media server stops to obtain code stream from front monitoring front-end, and the code stream that will obtain saves as the video file of professional required form;
Step 106: the streaming media server result that will record a video reports CDN;
The video recording result that step 107:CDN reports according to streaming media server, the state of the target record task in the modifying target record task list, and according to end-state that should new original record task in the status modifier source record task list of record task in the goal task table (state of this new original video recording in the record task list of source be not for issuing treatment state, after at least one corresponding with this new ancestral task in goal task table target record task all distributes down, the status modifier of this new original record task in the record task list of source disposes for issuing), the result that will record a video then reports Surveillance center.
Because in the global eye, video recording mainly is divided into three kinds of video recordings: regularly video recording, manually video recording, alarm video recording, so in the step 101, when Surveillance center is provided with new original record task, at 3 kinds of video recordings, do following processing respectively: for regularly video recording, Surveillance center sets time started of record task and concluding time according to service needed value is deposited in the database; For manual video recording, Surveillance center sets the manually duration of video recording, and the time started that global eye is manually recorded a video automatically is set to the current time, and the concluding time is the duration that the current time adds manual record setting; For the alarm video recording, camera is checked out when alarm event takes place, and notifies Surveillance center immediately, and global eye is according to the alarm duration of monitoring according to setting, the current time of alarm video recording is set at the current alarm time, and the time started of concluding time for the alarm video recording adds the alarm duration.
To in the step 103, the process that new original record task splits is described in further detail below.
CDN is when being split as the target record task with record task, and definition the greatly enhancing most an of record task is used for guaranteeing that the target record task is unlikely to excessive, cause the record task failure after, whole video file destroys.The embodiment of the invention can also define an elastic length, after being used for guaranteeing that record task splits by maximum, if the remaining record task time very short (less than elastic length), then should not generate a video file to this section record task separately (because may produce more very little video file like this, inconvenience is safeguarded), directly it is appended on the previous record task.
As shown in Figure 2, Fig. 2 is in the described method of the embodiment of the invention, step 1 03, and promptly the schematic flow sheet that new original record task is split specifically can comprise the steps:
Step 201:CDN receives the new original record task that Surveillance center issues;
Step 202: it is the new original record task time started that issues that variable P is set;
Step 203: check the target record task of having stored in the target record task list, the new original record task time-interleaving or the partly overlapping target record task that whether exist Yu issue, if exist, then execution in step 204, otherwise change step 215; In order to narrate conveniently, below the target record task of having stored in the target record task list is become old target record task;
Step 204:, carry out time started rank order from small to large to the overlapping or partly overlapping old target record task of all life periods of finding out;
Step 205: judge whether to have traveled through the old target record task that all are found out,,, otherwise forward step 211 to then to current old target record task execution in step 206 if do not traveled through;
Step 206: judge P whether less than time started of current old target record task, if execution in step 207 then, otherwise when promptly P was more than or equal to the beginning of current old target record task, then execution in step 210;
Step 207: the time started of more current old target record task and the difference of P whether less than the maximum duration of record task and record task elasticity duration with, promptly, the elasticity duration of the maximum duration+record task of the time started-P of current old target record task<record task, if, then execution in step 208, otherwise execution in step 209; In the preferred plan of the embodiment of the invention is the condition that adopts the maximum duration of record task and record task elasticity duration and conduct and P compare, but it will be recognized by those skilled in the art that the maximum duration conduct of independent employing record task also is fine with the condition that P compares;
Step 208: insert a target record task to the target record task list, time started is P, concluding time is the time started of old target record task, and P is changed to the old target record task concluding time, the corresponding relation that inserts new original record task and old target record task simultaneously records mapping table, and execution in step 205;
Step 209: insert a target record task to the target record task list: the time started is P, concluding time is the maximum duration that P adds record task, and P is changed to the maximum duration that P adds record task, corresponding relation with new original record task and old target record task is inserted into mapping table simultaneously, and changes step 206;
Step 210: insert a target record task in mapping table, and P is changed to the old target record task concluding time, and turn to step 205;
Whether step 211:P less than the new original record task concluding time, if, execution in step 212, otherwise, if promptly P equals the new original record task concluding time, then directly forward step 215 to;
Step 212: the difference of judging new original record task concluding time and P whether less than the maximum duration of record task and record task elasticity duration with, promptly, the elasticity duration of the maximum duration+record task of fresh target record task concluding time-P<record task, if, then execution in step 213, otherwise execution in step 214;
Step 213: insert a target record task to target record task list and record task mapping table, time started is P, concluding time is the new original record task concluding time, and P is changed to the new original record task concluding time, and execution in step 215 then;
Step 214: insert a target record task to target record task list and record task mapping table, the time started is P, and the concluding time is the maximum duration that P adds record task; P is changed to the maximum duration that P adds record task, and forwards step 211 to;
Step 215: new original record task is inserted into the source record task list.
For the ease of understanding the flow process that splits for new ancestral task, contrast accompanying drawing 2 is explained to this flow process in more detail by two examples below.
Example one, database were empty originally, promptly without any record task (source record task list, target record task list, mapping table all are empty).The elasticity duration of the maximum duration of video recording is set to 1 hour (can set according to actual conditions), video recording is 0.5 hour (can set according to actual conditions).
1. Surveillance center issues record task and gives CDN, and the time started is the 5:00 point, and the concluding time is 7:45.(201)
2. variable P=5:00 is set.(202)
3. judge and whether have the old target record task overlapping in the object table with the new original record task time period (P-7:45).Owing to without any record task,, will carry out 211 flow processs in the target record task list so do not deposit overlapping old target record task.(203)
Because P (=5:00)<7:45, so will carry out 212 flow processs.(211)
5. because new original record task concluding time 7:45-P (5:00)=2.75 hour, and the elasticity duration of the 1 hour+record task of maximum duration of record task 0.5 hour=1.5 hours.2.75 greater than 1.5 hours, so will carry out 214 flow processs.(212)
6. (time started is P (5:00), and the concluding time is the maximum duration (1 hour)=6:00) of P+ record task to the target record task list to insert a record d_R1; (s_R1 is d_R1) to mapping table to insert a record; Reset 1 hour=6:00 of the maximum duration of P=P (5:00)+record task.This moment, original new record task became (6:00-7:45); Change 212.(214)
7. because concluding time 7:45-P (6:00)=1.75 hour of new original record task, and the elasticity duration of the 1 hour+record task of maximum duration of record task 0.5 hour=1.5 hours.1.75 greater than 1.5 hours, so will carry out 214 flow processs.(212)
8. (time started is P (6:00), and the concluding time is the maximum duration (1 hour)=7:00) of P+ record task to the target record task list to insert a record d_R2; (s_R1 is d_R2) to mapping table to insert a record; Reset 1 hour=7:00 of the maximum duration of P=P (6:00)+record task.This stylish original record task becomes (7:00-7:45); Change 212.(214)
9. because new original record task concluding time 7:45-P (7:00)=0.75 hour, and the elasticity duration of the 1 hour+record task of maximum duration of record task 0.5 hour=1.5 hours.0.75 less than 1.5 hours, so will carry out 213 flow processs.(212)
10. (time started is P (7:00), and the concluding time is the concluding time (7:45) of new original record task to the target record task list to insert a record d_R3; (s_R1 is d_R3) to mapping table to insert a record; Reset the concluding time=7:45 of the new original record task of P=.Change 215.(213)
11, insert a record s_R1 in the record task list of source, flow process finishes.(215)
The new original record task of example one is through after the above-mentioned fractured operation, and the record in its source record task list, target record task list and the mapping table as shown in Figure 3.
Example two,
1. on the basis of example 1, Surveillance center issues new original record task again and gives CDN, and the time started is 6:20, and the concluding time is the 8:10 branch.(201)
2. variable P=6:20 (202) is set
3. judge whether exist in the object table and (P-8:10) overlapping record task of new original record task time period,, will carry out 204 flow processs owing to exist in the target record task list.(203)
4. find out overlapping old target record task d_R2, d_R3.By time started rank order from small to large, the ordering back is d_R2, d_R3 with the target record task found out.(204)
5. check the target record task after whether having traveled through all sorts, owing to also do not begin traversal, so will carry out 206 flow processs.(205)
6. check that P (6:20) whether less than the time started (6:00) of d_R2, because P is not less than the time started of d_R2, will carry out 210.(206)
7. (s_R2 d_R2), is changed to P the concluding time (being P=7:00) of old target record task to mapping table to insert a task.This stylish original record task becomes (7:00-8:10); Change 205.(210)
8. check the target record task after whether having traveled through all sorts, owing to also do not travel through d_R3, so will carry out 206 flow processs.(205)
9. check that P (7:00) whether less than the time started (7:00) of d_R3, because P is not less than the time started of d_R3, will carry out 210.(206)
10. (s_R2 d_R3), is changed to P the concluding time (being P=7:45) of old goal task to mapping table to insert a target record task.This stylish original record task becomes (7:45-8:10); Change 205.(210)
11. check the target record task after whether having traveled through all sorts, owing to travel through, so will carry out 211 flow processs.(205)
12. because P (=7:45)<and 8:10, so will carry out 212 flow processs.(211)
13. because concluding time 8:10-P (7:45)=5/12 hour of new original record task, and the elasticity duration of the 1 hour+record task of maximum duration of record task 0.5 hour=1.5 hours.5/12 less than 1.5 hours, so will carry out 213 flow processs.(212)
14. (time started is P (7:45), and the concluding time is the concluding time (8:10) of new record task to the target record task list to insert a record d_R4; (s_R2 is d_R4) to mapping table to insert a record; Reset the concluding time=8:10 of the new original record task of P=.Change 215.(213)
15, insert a record s_R2 in the record task list of source, flow process finishes.(215)
After the new original record task of example two was advanced above-mentioned intact fractured operation, the record of its source record task list, target record task list and mapping table as shown in Figure 4.
5 pairs of described systems of the embodiment of the invention are described in detail below in conjunction with accompanying drawing.
As shown in Figure 5, Fig. 5 is the structural representation of the described system of the embodiment of the invention, can comprise: Surveillance center, content delivery network, streaming media server and front monitoring front-end wherein, are provided with active record task list, target record task list and mapping table in the described content delivery network;
The source record task list is used for storing the target record task that Surveillance center has issued; After being used for depositing and splitting, the target record task list prepares to be handed down to the target record task of streaming media server; Mapping table be used for preserving the target record task that issued and split after the corresponding relation of target record task.
Described Surveillance center is used to be provided with new original record task, and the new original record task that will be provided with is handed down to content delivery network;
Because in the global eye, video recording mainly is divided into three kinds of video recordings: regularly video recording, manually video recording, alarm video recording, when so Surveillance center is provided with new original record task, at 3 kinds of video recordings, do following processing respectively: for regularly video recording, Surveillance center sets time started of record task and concluding time according to service needed value is deposited in the database; For manual video recording, Surveillance center sets the manually duration of video recording, and the time started that global eye is manually recorded a video automatically is set to the current time, and the concluding time is the duration that the current time adds manual record setting; For the alarm video recording, camera is checked out when alarm event takes place, and notifies Surveillance center immediately, and global eye is according to the alarm duration of monitoring according to setting, the current time of alarm video recording is set at the current alarm time, and the time started of concluding time for the alarm video recording adds the alarm duration.
Described content delivery network, be used for and compare from Surveillance center new original record task of receiving and the old target record task of storing at the goal task table, during overlapping fully old target record task, the corresponding relation of described new original record task with old target record task is inserted in the mapping table on video time when confirm existing with new original record task; Perhaps, when confirm existing, described new original record task is split at least one target record task be inserted in target record task list and the mapping table with the new original record task old target record task overlapping on video time top;
Described front monitoring front-end is used for video shooting and the result that will record a video carries out encoding process, and the code stream after will handling then is transferred to streaming media server;
Described streaming media server is used for the video recording initiation command that basis is received from content delivery network, obtains code stream from front monitoring front-end, and the code stream that obtains is saved on the magnetic battle array of streaming media server.
After video time finished, the described streaming media server result that will record a video reported content delivery network; Content delivery network also is used for the video recording result that reports according to streaming media server, the end-state of the target record task in the modifying target record task list, and the result that will record a video reports Surveillance center.
For the concrete processing procedure of a plurality of modules in the described system of the embodiment of the invention,, just repeat no more owing in said method, elaborate herein.
In sum, the embodiment of the invention provides and has prevented the overlapping method and system of recording a video in a kind of global eye, corresponding relation by older target record task and new ancestral task, and new original record task is split as one or more target record task, then the target record task is handed down to streaming media server, has removed and recorded overlapping record task.Guaranteed to greatest extent like this, on the one hand to carry out the global eyes video recording according to functional requirement; Guaranteed that on the other hand streaming media server can not record the video recording of repetition, improved the efficient of streaming media server, saved the magnetic battle array space and the useful life of streaming media server.
The above; only for the preferable embodiment of the present invention, but protection scope of the present invention is not limited thereto, and anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claims.

Claims (11)

1. prevent the overlapping method of recording a video in a global eye, it is characterized in that set in advance active record task list, target record task list and mapping table, described method comprises:
Steps A: the new original record task that content delivery network will be received from Surveillance center compare with the old target record task of storing the goal task table: during overlapping fully old target record task, the corresponding relation of described new original record task with old target record task is inserted in the mapping table on video time when confirming to exist with new original record task; Perhaps, when confirm existing, described new original record task is split at least one target record task be inserted in target record task list and the mapping table with the new original record task old target record task overlapping on video time top;
Step B: target record task to be issued in the content delivery network timing scan target record task list, be handed down to streaming media server with target record task to be issued;
Step C: streaming media server obtains code stream from front monitoring front-end, and the code stream that obtains is saved on the magnetic battle array of streaming media server according to the target record task of receiving from content delivery network.
2. method according to claim 1 is characterized in that, described method also comprises:
Step D: after video time finished, the streaming media server result that will record a video reported content delivery network;
Step e: the video recording result that content delivery network reports according to streaming media server, the state of the target record task in the modifying target record task list, and according to the end-state of this new original record task in the status modifier source record task list of record task in the goal task table, the result that will record a video then reports Surveillance center.
3. method according to claim 1 and 2 is characterized in that, described steps A specifically comprises:
Steps A 1: Surveillance center is provided with new original record task, and the new original record task that will be provided with is handed down to content delivery network;
Steps A 2: new original record task that content delivery network will be received and described old target record task compare, retrieval also judges whether to exist and new original record task complete overlapping or partly overlapping old target record task on video time, if, execution in step A3 then, otherwise execution in step A4;
Steps A 3: the old target record task of all that will retrieve sorted from small to large with the time started, and each old target record task is carried out following operation, up to handling last old target record task:
The new original record task and the old target record task of storing in the goal task table are compared: on video time, during overlapping fully old target record task, the corresponding relation of described new original record task with old target record task is inserted in the mapping table when confirming to exist with new original record task; Perhaps, when confirm existing, described new original record task is split at least one target record task be inserted in target record task list and the mapping table with the new original record task old target record task overlapping on video time top;
Steps A 4: directly described new original record task is split at least one target record task and be inserted in source record task list, target record task list and the mapping table.
4. method according to claim 3 is characterized in that, the kind of described new original record task comprises: timing is recorded a video, is manually recorded a video and alarms video recording, and in the then described steps A 1, the step that described Surveillance center is provided with new original record task specifically comprises:
For regularly video recording, Surveillance center will the new original record task time started and the concluding time be provided with according to the value of service needed setting;
For manual video recording, Surveillance center sets the manually duration of video recording, and the time started of manually recording a video automatically is set to the current time, and the concluding time is the duration that the current time adds manual record setting;
For the alarm video recording, when camera was checked out alarm event generation and notice Surveillance center, according to the alarm duration that monitoring is provided with, the current time that alarm is recorded a video was set at the current alarm time, and the time started of concluding time for the alarm video recording adds the alarm duration.
5. method according to claim 3 is characterized in that, described steps A 3 specifically comprises:
All old target record task that retrieve were sorted from small to large with the time started, and to successively each old target record task being carried out following operation, up to handling last old target record task:
Steps A 31: the magnitude relationship of judging new original record task time started and current old target record task time started: if judge that the new original record task time started is less than the current old target record task time started, execution in step A32 then, otherwise execution in step A33;
Steps A 32: the difference of more current old target record task time started and new original record task time started and the magnitude relationship of record task scheduled duration, and insert a fresh target record task in target record task list and mapping table according to the magnitude relationship of relatively coming out, reset the time started and the concluding time of the original record task of this fresh target simultaneously;
Steps A 33: the corresponding relation that directly inserts a new ancestral task and current old goal task is to mapping table, and resets the time started and the concluding time of this new original record task, repeated execution of steps A31 then;
After relevant old goal tasks and new original record task are handled with all, if the time started of current new original record task less than the concluding time of current new record task,, otherwise should new original record task split end then by execution in step A4.
6. method according to claim 5 is characterized in that, described steps A 32 specifically comprises:
The difference of more current old target record task time started and new original record task time started and the magnitude relationship of record task scheduled duration:
If the difference of current old target record task time started and new original record task time started is less than the record task scheduled duration, then insert a target record task to the target record task list, time started is the time started of new task, concluding time is the time started of old target record task, the corresponding relation that inserts new original record task and old target record task simultaneously records mapping table, then repeated execution of steps A31;
If the difference of current old target record task time started and new original record task time started is more than or equal to the record task scheduled duration, then insert a target record task to the target record task list: the time started is for being the time started of new record task, concluding time be time started of new original record task and the maximum duration of record task and, corresponding relation with new original record task and old target record task is inserted into mapping table simultaneously, continues to handle next old target record task then.
7. method according to claim 3 is characterized in that, described steps A 4 specifically comprises:
Steps A 41: if whether judge the new original record task time started less than the new original record task concluding time, if less than, execution in step A42 then; Otherwise execution in step A43;
Steps A 42: judge maximum duration of the difference of new original record task concluding time and new original record task time started and record task and record task elasticity duration and magnitude relationship, and according to the magnitude relationship that judges, insert a target record task in target record task list and mapping table, and reset the time started and the concluding time of this new original record task;
Steps A 43: should new original record task be inserted in the record task list of source.
8. method according to claim 7 is characterized in that, described steps A 42 specifically comprises:
Whether the difference of judging new original record task concluding time and new original record task time started is less than the record task scheduled duration, if less than, then insert a record task in target record task list and mapping table, time started is the time started of new original video recording, and the concluding time is the concluding time of new original video recording; Otherwise insert a record task in target record task list and mapping table, the time started is the time started of new original video recording, the concluding time be concluding time of new original record task and the maximum duration of record task and, and repeat steps A 41.
9. according to claim 5,6 or 8 any described methods, it is characterized in that described scheduled duration comprises: the maximum duration of record task, perhaps, the maximum duration of record task and elasticity duration with.
10. prevent the overlapping system of recording a video in a global eye, it is characterized in that, comprise: Surveillance center, content delivery network, streaming media server and front monitoring front-end wherein, are provided with active record task list, target record task list and mapping table in the described content delivery network;
Described Surveillance center is used to be provided with new original record task, and the new original record task that will be provided with is handed down to content delivery network;
Described content delivery network, being used for the new original record task that will receive from Surveillance center and the old target record task of storing at the goal task table compare: during overlapping fully old target record task, the corresponding relation of described new original record task with old target record task is inserted in the mapping table on video time when confirming to exist with new original record task; Perhaps, when confirm existing, described new original record task is split at least one target record task be inserted in target record task list and the mapping table with the new original record task old target record task overlapping on video time top; And content delivery network is target record task to be issued in the timing scan target record task list also, and target record task to be issued is handed down to streaming media server;
Described front monitoring front-end is used for video shooting and the result that will record a video carries out encoding process, and the code stream after will handling then is transferred to streaming media server;
Described streaming media server is used for the target record task that basis is received from content delivery network, obtains code stream from front monitoring front-end, and the code stream that obtains is preserved on the magnetic battle array of refluence media server.
11. system according to claim 10 is characterized in that, after video time finished, described streaming media server also was used for the video recording result is reported content delivery network; Described content delivery network also is used for the video recording result that reports according to streaming media server, the state of the target record task in the modifying target record task list, and according to the end-state of this new original record task in the status modifier source record task list of record task in the goal task table, the result that will record a video then reports Surveillance center.
CNB2008100071800A 2008-02-03 2008-02-03 Prevent the overlapping method and system of recording a video in a kind of global eye Expired - Fee Related CN100574425C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2008100071800A CN100574425C (en) 2008-02-03 2008-02-03 Prevent the overlapping method and system of recording a video in a kind of global eye

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2008100071800A CN100574425C (en) 2008-02-03 2008-02-03 Prevent the overlapping method and system of recording a video in a kind of global eye

Publications (2)

Publication Number Publication Date
CN101227597A true CN101227597A (en) 2008-07-23
CN100574425C CN100574425C (en) 2009-12-23

Family

ID=39859320

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2008100071800A Expired - Fee Related CN100574425C (en) 2008-02-03 2008-02-03 Prevent the overlapping method and system of recording a video in a kind of global eye

Country Status (1)

Country Link
CN (1) CN100574425C (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867728A (en) * 2010-06-01 2010-10-20 中兴通讯股份有限公司 Superposition processing method and device of video recording tasks in video monitoring
CN102780924A (en) * 2012-07-13 2012-11-14 中兴通讯股份有限公司 Video uploading control method and device
CN101350031B (en) * 2008-08-21 2014-04-30 深圳市同洲电子股份有限公司 Method for storing data and system therefor
CN106251888A (en) * 2016-07-29 2016-12-21 南京云恩通讯科技有限公司 A kind of method temporally managing recording
CN107483829A (en) * 2013-01-30 2017-12-15 奥林巴斯株式会社 Camera device, operation device, object confirmation method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350031B (en) * 2008-08-21 2014-04-30 深圳市同洲电子股份有限公司 Method for storing data and system therefor
CN101867728A (en) * 2010-06-01 2010-10-20 中兴通讯股份有限公司 Superposition processing method and device of video recording tasks in video monitoring
CN101867728B (en) * 2010-06-01 2014-04-09 中兴通讯股份有限公司 Superposition processing method and device of video recording tasks in video monitoring
CN102780924A (en) * 2012-07-13 2012-11-14 中兴通讯股份有限公司 Video uploading control method and device
CN107483829A (en) * 2013-01-30 2017-12-15 奥林巴斯株式会社 Camera device, operation device, object confirmation method
CN106251888A (en) * 2016-07-29 2016-12-21 南京云恩通讯科技有限公司 A kind of method temporally managing recording

Also Published As

Publication number Publication date
CN100574425C (en) 2009-12-23

Similar Documents

Publication Publication Date Title
CN100574425C (en) Prevent the overlapping method and system of recording a video in a kind of global eye
CN101656861B (en) Method and multimedia system for recording programs
DE69534861T2 (en) Network video provider system
CN101068341B (en) Stream media dispatching system and medium file scheduling method thereof
CN104967861A (en) CDN video buffer system and method
KR19990008171A (en) Data management and distribution system for electronic guide of television program and method thereof
CN101729691B (en) Agent screen recording system and realizing method thereof, agent screen recording quality detection system and implementation method thereof
CN101141627A (en) Storage system and method of stream media file
CN106656593A (en) Streaming media live broadcast recording redundant hot-standby method and system
CN101753936B (en) Configuration method of storage space and video server for video monitoring system
CN102395047A (en) Method and equipment for deleting multi-media contents in content publishing network nodes
CN103095806A (en) Load balancing management system of large-power-network real-time database system
CN103067696A (en) Stream media caching method, device, controller and system facing video monitoring
CN102413302A (en) Video-recording backup processing method and device in video monitoring and backup equipment
CN102056014B (en) Stream media recording method and system
CN109963100A (en) A kind of caching amended record method and device shared based on multicast
CN100571380C (en) The scatter storage technique and this system that are used for distributed network TV system
CN107864406B (en) Time shift video broadcasting method, device and system
CN101742254A (en) Backup method for video monitoring system information and central platform server
CN110602545A (en) Distributed recording execution method for network live broadcast
CN108495151A (en) A kind of m3u8 format videos live broadcast system and method
CN101783802A (en) Distributed streaming media release system and method thereof
DE19628005B4 (en) System and method for providing data to a laser beam recorder
CN113038169B (en) Video stream pushing method and system
CN104735483A (en) Continued broadcast method and system for DVB live program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091223

Termination date: 20180203