WO2011012027A1 - 一种录像恢复的方法及系统 - Google Patents

一种录像恢复的方法及系统 Download PDF

Info

Publication number
WO2011012027A1
WO2011012027A1 PCT/CN2010/073937 CN2010073937W WO2011012027A1 WO 2011012027 A1 WO2011012027 A1 WO 2011012027A1 CN 2010073937 W CN2010073937 W CN 2010073937W WO 2011012027 A1 WO2011012027 A1 WO 2011012027A1
Authority
WO
WIPO (PCT)
Prior art keywords
recording
task
recording task
module
scanning
Prior art date
Application number
PCT/CN2010/073937
Other languages
English (en)
French (fr)
Inventor
吴天京
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to EP10803860.5A priority Critical patent/EP2445204B1/en
Priority to AU2010278498A priority patent/AU2010278498B2/en
Priority to BR112012001782A priority patent/BR112012001782A2/pt
Publication of WO2011012027A1 publication Critical patent/WO2011012027A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/36Monitoring, i.e. supervising the progress of recording or reproducing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Definitions

  • the invention belongs to the technical field of video surveillance, and relates to a method and system for recovering video interruption during video monitoring.
  • the video surveillance service mainly provides users with real-time video viewing, cloud mirror control operations, video storage management, and alarm linkage notification services. Users can monitor the monitoring points 24 hours a day, 7 days a week.
  • the general video surveillance video can only realize the basic video playback, the development of the recording task and the completion of the recording task, but the processing and recovery of the abnormality such as the interruption of the recording task and the processing interruption of the recording task. There are omissions, and this will inevitably result in the loss of video files, which will have a more serious impact on customers.
  • the technical problem to be solved by the present invention is to provide a method and system for recovering video interruption during video monitoring, thereby avoiding the loss of the original recording task due to power failure, shutdown, upgrade, and the like.
  • the present invention provides a video recovery method, including:
  • the video surveillance system After the video surveillance system is started, all the recording tasks in the recording task table are scanned. If the interrupted recording task is in the recording state, a new recording task is created, and the newly created recording task is sent to the streaming server. The scheduled start time of the newly created recording task is the current time. The end time is the planned end time of the unexpired interrupt recording task in the recording state;
  • the streaming media server controls the corresponding recording device to start recording.
  • the above method may further include:
  • the video monitoring system deletes the expired recording task in the state to be recorded during the scanning of the recording task table.
  • the above methods also include:
  • the video monitoring system also sends an abnormal query request process to the streaming media server to query the completion status of the recording task for the interrupt recording task that is not expired.
  • the method further includes: in the process of scanning the recording task table, the video monitoring system directly sends an abnormal query request flow to the streaming media server for the recording task that is out of the recording state.
  • the video monitoring system is provided with a first threshold
  • the steps for creating a new recording task for the interrupted recording task that is not expired in the recording state include:
  • a new recording task is created for a recording task that is not expired, is in the recording state, and the difference between the planned end time and the current time is less than the first threshold.
  • the above methods also include:
  • the recording plan in the recording schedule is started, and the recording schedule whose planning start time is earlier than the current time and has not expired is sent to the recording task table. in.
  • the method further includes: providing a second threshold in the video monitoring system;
  • the planned start time is later than the current time and the difference between the planned start time and the current time is less than or equal to the second
  • a wide-ranging recording plan is sent to the recording task list.
  • the method further includes: providing a third threshold in the video monitoring system;
  • the step of delivering the recording plan whose planned start time is earlier than the current time and has not expired to the recording task table includes: the unexpired time, the planned end time, and the current time when the planned start time is earlier than the current time
  • the recording plan whose difference is greater than or equal to the third threshold is delivered to the recording task table.
  • the unexpired recording task is a recording task whose scheduled end time is later than the current time.
  • the unexpired recording plan is a recording plan whose planning end time is later than the current time.
  • the present invention also provides a system for recording recovery, the system includes a storage module, a scanning module, a recording task creation module, and a task delivery module, wherein
  • the storage module is configured to: save a recording task table
  • the scanning module is configured to: after the video monitoring system is started, scan all the recording tasks in the recording task table saved in the storage module, and determine that a recording task is not expired and is in the recording state. And interrupting the recording task, sending a creation command to the recording task creation module, where the creation command carries a planned end time of the recording task;
  • the recording task creation module is configured to: after receiving the creation command, create a new recording task according to the planned end time and the current system time carried in the creation command, and then send the newly created recording task to The task is issued by the module;
  • the task sending module is configured to: send the newly created recording task to the streaming media server.
  • the scanning module is further configured to: delete the expired recording task in the state to be recorded during the scanning of the recording task table.
  • the storage module is further configured to: save a first threshold
  • the scanning module is configured to: after scanning to a recording task that is not expired, is in a recording state, and the difference between the planned end time and the current time is less than the first threshold, creating a module to the recording task Send a create command.
  • the above system also includes a recording plan scheduling module;
  • the storage module is further configured to: save a recording schedule table;
  • the scanning module is further configured to: after completing scanning of all the recording tasks in the recording task table, start scanning the recording plan in the recording schedule, such as scanning the start time of a recording schedule early Sending a scheduling command to the recording plan scheduling module at the current time and not expiring;
  • the recording schedule scheduling module is configured to: after receiving the scheduling command, deliver the recording plan to the recording task table.
  • the system has a second threshold
  • the scanning module is further configured to: when scanning to a certain recording plan that has not expired, the planned starting time is later than the current time, and the difference between the planned starting time and the current time is less than or equal to the second threshold, The recording plan scheduling module sends a scheduling command.
  • a third threshold is provided in the system.
  • the scanning module is configured to: when the planned start time of scanning to a recording plan is earlier than the current time, is not expired, and the difference between the planned end time and the current time is greater than or equal to the third threshold, The recording schedule scheduling module sends a scheduling command.
  • the present invention Compared with the general surveillance video recording method, the present invention has the following advantages:
  • FIG. 1 is a schematic structural diagram of a network in an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for recovering video interruption in a video monitoring process according to an embodiment of the present invention
  • FIG. 3 is a structural diagram of a video monitoring system according to an embodiment of the present invention.
  • a camera is connected to a network through a front-end (Peripheral Unit, PU).
  • the PU can be a mobile device or a fixed device.
  • the client (Client Unit, CU) can be connected through a mobile network or a fixed network.
  • RGM Register Manager System
  • the recording schedule is set by the user, where the scheduled start time and the planned end time of each recording plan set by the user are saved; the recording task table is dynamically updated according to the recording plan in the recording schedule. The information such as the scheduled start time, the planned end time, and the current recording status of each recording task is saved.
  • the recording monitoring system deletes the recording task in the recording task table.
  • the basic idea of the method of the present invention is: after the video monitoring system is started, scanning each recording task in the recording task table, and for a recording task that is not expired in the recording state, creating a new recording task, and The newly created recording task is sent to the streaming media server, where the planned start time of the newly created recording task is the current time, and the scheduled ending time is the planned end time of the unexpired recording task in the recording state; After the server receives the recording task, it controls the corresponding recording device to start recording.
  • the unexpired recording task is a recording task whose planning end time is later than the current time.
  • the video monitoring system may also delete the expired recording task in the state to be recorded.
  • the video monitoring system sends an abnormal query request process to the streaming server to query the completion of the recording task, and the video recording system is in the recording state.
  • the recording task directly initiates an exception query request process to the streaming server.
  • a first threshold can be set in the video surveillance system. For a recording task that is not expired, the recording task is: for the unexpired, recording state. And the difference between the planned end time and the current time is less than The first wide-ranging video task, a new video task.
  • the video monitoring system Since the video monitoring system also stores a recording schedule, after completing the scanning of each recording task in the recording task table, scanning of each recording plan in the recording schedule is started, and the planning start time is early.
  • the recording plan that has not expired at the current time is sent to the recording task list.
  • the unexpired recording plan is a recording plan whose planning end time is later than the current time.
  • the video monitoring system has a second threshold; during the scanning of each recording plan in the recording schedule, the scheduled start time is later than the current time and the planned start time.
  • the recording plan with the difference between the current time and the second threshold is sent to the recording task table.
  • the video monitoring system is provided with a third threshold; the recording plan with the scheduled start time earlier than the current time and not expired is sent to the recording task table, which means: the planned start time is earlier than the current time.
  • the method for recovering the video interruption during the video monitoring process includes the following steps: Step 1: Each time the monitoring system starts, the recording state detection program is triggered, and a recording task is selected from the recording task table for scanning;
  • Step 2 Determine the current state according to the status information of the video recording task, and perform step 3 if the status is to be recorded; otherwise, perform step 5;
  • Step 3 Determine whether the recording task has expired (ie, determine whether the scheduled end time of the recording task is earlier than the current time), and if so, delete the recording task; otherwise, perform step 4;
  • Step 4 Determine whether the recording task table has been traversed. If it has been traversed, perform step 6; otherwise, scan the next recording task, and perform step 2;
  • Step 5 When the current recording task is in the recording state, it indicates that the task is a task that is forced to be interrupted, and needs to be restored at this time.
  • the recovery process includes: first determining whether the recording task has expired, if not expired, and the difference between the scheduled end time of the recording task and the current time is greater than or equal to A set first threshold (such as 1 minute), a new recording task is created in the recording task table, the scheduled start time of the new recording task is the current time, and the planned ending time is the forced interruption of the article.
  • the planned end time of the recording task is sent to the streaming server, and the abnormal query request process is initiated to the streaming server to query the completion of the forced interruption of the recording task, and then step 4 is performed. If the recording task has expired, or the recording task has not expired but the difference between the scheduled end time and the current time is less than a set first threshold, the exception query request process is directly sent to the streaming server, and then Perform step four;
  • Step 6 Select a recording plan from the recording schedule to scan
  • Step 7 Determine whether the planned start time of the recording plan is later than the current time, and if yes, perform step eight, otherwise perform step ten;
  • Step 8 determining whether the difference between the planned start time and the current time of the recording plan is greater than a set second threshold, and if yes, performing step IX; otherwise, the recording plan is sent to the recording task table;
  • Step IX Determine whether the recording schedule has been traversed, and if it has been traversed, end; otherwise, scan the next recording plan, and perform step 7;
  • Step 10 Determine whether the recording plan has expired (ie, determine whether the scheduled end time of the recording plan is earlier than the current time), and if yes, perform step IX; otherwise, determine the planned end time and current time of the recording plan. Whether the difference is greater than or equal to a set third threshold, if yes, the recording plan is sent to the recording task table, and step 9 is performed; otherwise, step 9 is performed.
  • the exception query request process in the foregoing step 5 specifically includes the following steps:
  • the recording module in the RGM sends an abnormal query request message to the streaming server according to the interface in the design scheme.
  • the streaming server checks the current recording status of the recording task, and presses the set reporting interface. Reporting the current recording information of the recording task to the RGM recording module; after receiving the reported message, the RGM performs a series of operations such as deleting the recording task, writing the in-memory database, and writing the file synchronization in the recording task table according to the content of the message. .
  • the present invention also provides a system for recovering video interruption during video monitoring, as shown in FIG. 3, including: a storage module 31, a scanning module 32, a recording task creation module 33, and a task delivery Module 34;
  • the storage module 31 is configured to save a recording task table
  • the scanning module 32 is configured to scan each recording task in the recording task table saved in the storage module 31 after the video monitoring system is started, and determine that one of the recording tasks is an unexpired recording task in the recording state. And sending a creation command to the recording task creation module 33, where the scheduled end time of the recording task is carried; the scanning module 32 is further configured to delete the expired recording task in the recording state during the scanning of the recording task table. .
  • the recording task creation module 33 is configured to: after receiving the creation command, create a new recording task according to the planned end time and the current system time carried therein, and then send the newly created recording task to the task issuing module 34;
  • the task issuing module 34 delivers the newly created recording task to the streaming server.
  • the storage module 31 stores a first threshold value.
  • the scanning module 32 is configured to send a creation command to the recording task creation module 33 after scanning to the unrecorded recording task in the recording state.
  • the scanning module 32 is configured to scan the After the recording task that has not expired, is in the recording state, and the difference between the planned end time and the current time is less than the first threshold, the creation command is sent to the recording task creation module 33.
  • the above system may further include: a recording schedule scheduling module; and a storage schedule table is also stored in the storage module 31;
  • the scanning module 32 is configured to start scanning each recording plan in the recording schedule after completing the scanning of each recording task in the recording task table, such as scanning to a recording schedule starting time earlier than the current time and If not expired, it is also used to send a scheduling command to the recording plan scheduling module.
  • the recording scheduling module is configured to deliver the recording plan to the recording task table after receiving the scheduling command.
  • the video monitoring system may also be provided with a second threshold; the scanning module 32 is further configured to scan a video recording plan that has not expired, the scheduled start time is later than the current time, and the difference between the planned start time and the current time is less than or equal to When the second threshold is reached, a scheduling command is sent to the recording schedule scheduling module.
  • the video monitoring system may also be provided with a third threshold; the scanning module 32 is configured to send a schedule to the recording schedule scheduling module when the start time of scanning to a recording schedule is earlier than the current time and has not expired.
  • the command means that the scanning module 32 is configured to schedule the recording schedule when the scan start time of the recording to a recording schedule is earlier than the current time, is not expired, and the difference between the planned end time and the current time is greater than or equal to the third threshold.
  • the module sends a scheduling command.
  • the implementation model of the present invention is not only applicable to the service state recovery judgment processing method of the video surveillance service video interruption, and the method can also be applied to other fields that need to perform software service state recovery by simple deformation.
  • the invention increases the connection processing of the recording service in the case of power failure, restart, upgrade, etc., and ensures the integrity and continuity of the video file from the software; promptly and actively queries the abnormal video file to avoid the loss of the video file due to the above situation. .
  • the continuity of the service is ensured, the stability of the system is protected, and the abnormal processing capability of the platform is improved.

Landscapes

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

Description

一种录像恢复的方法及系统
技术领域
本发明属于视频监控技术领域, 涉及一种视频监控过程中录像中断恢复 的方法及系统。
背景技术
近年来, 随着网络技术的不断发展, 视频监控业务得到了广泛重视。 这 种基于宽带网络或移动网络的图像远程传输、 管理的新增值业务被越来越多 的用户所接受。视频监控业务主要为用户提供视频实时观看、 云镜控制操作、 录像存储管理以及告警联动通知等服务, 用户可以随时随地的对监控点进行 全天候的监控。
随着业务的不断完善和用户的增加, 系统的稳定性和连续性也变得越来 越重要, 录像作为监控系统的核心功能之一, 更需要加强功能的完善性和稳 定性。 但是在系统升级、 掉电重启、 宕机等各种正常和非正常的中断情况下, 自动恢复到之前状态的需求也就变得越来越迫切。
一般的视频监控录像只能实现基本的录像播放、 录像任务的制定下发和 录像任务的完成处理等功能, 但对正在录像的任务被中断、 录像任务下发处 理中断等异常情况的处理和恢复存在遗漏点, 而这必然会造成录像文件的丟 失, 从而对客户造成更为严重的影响。
发明内容
本发明要解决的技术问题是提供一种视频监控过程中录像中断恢复的方 法及系统, 以避免了由于掉电、 停机、 升级等情况出现时原录像任务丟失的 情况。
为解决上述问题, 本发明提供了一种录像恢复的方法, 包括:
视频监控系统启动后, 对录像任务表中的所有录像任务进行扫描, 对于 未过期的处于正在录像状态的中断录像任务, 则新建一条录像任务, 并将该 条新建的录像任务下发给流媒体服务器, 其中, 该条新建的录像任务的计划 开始时间为当前时间, 计划结束时间为所述未过期的处于正在录像状态的中 断录像任务的计划结束时间; 以及
所述流媒体服务器收到所述录像任务后, 控制相应录像设备开始录像。 上述方法还可包括:
所述视频监控系统在对所述录像任务表进行扫描过程中, 将已过期的处 于待录像状态的录像任务删除。
上述方法还包括:
对于未过期的处于正在录像状态的中断录像任务, 所述视频监控系统还 向所述流媒体服务器发起异常查询请求流程, 以查询该条录像任务的完成情 况。
该方法还包括:所述视频监控系统在对所述录像任务表进行扫描过程中, 对于已过期的处于正在录像状态的录像任务, 则直接向所述流媒体服务器发 起异常查询请求流程。
所述视频监控系统中设有一第一阔值;
所述对于未过期的处于正在录像状态的中断录像任务, 新建一条录像任 务的步骤包括:
对于未过期的、 处于正在录像状态的、 且计划结束时间与当前时间的差 值小于所述第一阔值的录像任务, 新建一条录像任务。
上述方法还包括:
完成对所述录像任务表中的所有录像任务的扫描后, 开始对录像计划表 中的录像计划进行扫描, 将计划开始时间早于当前时间且未过期的录像计划 下发到所述录像任务表中。
该方法还包括: 所述视频监控系统中设有一第二阔值;
在对所述录像计划表中的所有录像计划进行扫描的过程中, 将计划开始 时间晚于当前时间且所述计划开始时间与当前时间的差值小于等于所述第二 阔值的录像计划下发到所述录像任务表中。
该方法还包括: 所述视频监控系统中设有一第三阔值;
所述将计划开始时间早于当前时间且未过期的录像计划下发到所述录像 任务表中的步骤包括: 将计划开始时间早于当前时间的、 未过期的、 且计划 结束时间与当前时间的差值大于等于所述第三阔值的录像计划下发到所述录 像任务表中。
所述未过期的录像任务为计划结束时间晚于当前时间的录像任务。
所述未过期的录像计划为计划结束时间晚于当前时间的录像计划。
本发明还提供了一种录像恢复的系统, 该系统包括存储模块、扫描模块、 录像任务创建模块和任务下发模块, 其中,
所述存储模块设置为: 保存录像任务表;
所述扫描模块设置为: 在所述视频监控系统启动后对所述存储模块中保 存的录像任务表中的所有录像任务进行扫描, 如判断出某条录像任务为未过 期的处于正在录像状态的中断录像任务, 则向所述录像任务创建模块发送创 建命令, 所述创建命令中携带该条录像任务的计划结束时间;
所述录像任务创建模块设置为: 在接收到所述创建命令后, 根据所述创 建命令中携带的计划结束时间和当前系统时间创建一条新的录像任务, 然后 将该新创建的录像任务发送给任务下发模块;
所述任务下发模块设置为:将该新创建的录像任务下发给流媒体服务器。 所述扫描模块还设置为: 在对所述录像任务表进行扫描过程中, 将已过 期的处于待录像状态的录像任务删除。
所述存储模块还设置为: 保存有一第一阔值;
所述扫描模块是设置为: 在扫描到未过期的、 处于正在录像状态的、 且 计划结束时间与当前时间的差值小于所述第一阔值的录像任务后, 向所述录 像任务创建模块发送创建命令。
上述系统还包括录像计划调度模块; 所述存储模块还设置为: 保存有录像计划表;
所述扫描模块还设置为: 在完成对所述录像任务表中的所有录像任务的 扫描后, 开始对所述录像计划表中的录像计划进行扫描, 如扫描到某条录像 计划的开始时间早于当前时间且未过期, 则向所述录像计划调度模块发送调 度命令;
所述录像计划调度模块设置为: 在接收到所述调度命令后, 将该条录像 计划下发到所述录像任务表中。
所述系统中设有一第二阔值;
所述扫描模块还设置为: 在扫描到某条录像计划未过期、 计划开始时间 晚于当前时间的、 且所述计划开始时间与当前时间的差值小于等于所述第二 阔值时, 向所述录像计划调度模块发送调度命令。
所述系统中设有一第三阔值;
所述扫描模块是设置为: 在扫描到某条录像计划的计划开始时间早于当 前时间、 未过期、 且计划结束时间与当前时间的差值大于等于所述第三阔值 时, 向所述录像计划调度模块发送调度命令。
与一般的监控录像方法相比, 本发明具有以下优势:
增加对掉电、 重启、 升级等情况正在录像业务的连接处理, 从软件上保 证录像文件的完整和连续性; 及时主动进行异常录像文件的查询, 避免因上 述情况而导致录像文件的丟失。 通过对录像任务中断恢复处理, 保证了业务 的连续性, 保护了系统的稳定, 提高了平台的异常处理能力。 附图概述
图 1为本发明实施例中网络结构示意图;
图 2为本发明实施例中视频监控过程中录像中断恢复的方法流程图; 图 3为本发明实施例中视频监控系统的结构图。 本发明的较佳实施方式
下面将结合附图及实施例对本发明的技术方案进行更详细的说明。
图 1显示本发明的网络结构示意图, 摄像头通过前端 (Peripheral Unit, PU )与网络相连, PU可以是移动设备也可以为固定设备,客户端( Client Unit , CU ) 可以通过移动网络或固定网络连接公网的注册管理子系统 (Register Manager System, RGM ) , 来观看视频或录像。
现有的录像监控系统中均保存有两个表: 录像计划表和录像任务表。 录 像计划表是由用户设定的, 其中保存有用户设定的各条录像计划的计划开始 时间及计划结束时间等; 录像任务表是录像监控系统根据录像计划表中的录 像计划动态更新的, 其中保存有各条录像任务的计划开始时间、 计划结束时 间及当前录像状态等信息, 当一条录像任务结束后, 录像监控系统会在录像 任务表中将该条录像任务删除。
本发明所述方法的基本构思是: 视频监控系统启动后, 对录像任务表中 的每一条录像任务进行扫描, 对于未过期的处于正在录像状态的录像任务, 则新建一条录像任务, 并将该条新建的录像任务下发给流媒体服务器, 其中, 该条新建的录像任务的计划开始时间为当前时间, 计划结束时间为该未过期 的处于正在录像状态的录像任务的计划结束时间; 流媒体服务器收到录像任 务后, 控制相应录像设备开始录像。 其中, 未过期的录像任务为计划结束时 间晚于当前时间的录像任务。
此外, 视频监控系统在对录像任务表进行扫描过程中, 还可以将已过期 的处于待录像状态的录像任务删除。
对于未过期的处于正在录像状态的录像任务, 视频监控系统除新建录像 任务外, 还向流媒体服务器发起异常查询请求流程, 查询该条录像任务的完 成情况; 对于已过期的处于正在录像状态的录像任务, 则直接向流媒体服务 器发起异常查询请求流程。
为了保证不浪费录像资源, 可以在视频监控系统中设置一第一阔值; 则 对于未过期的处于正在录像状态的录像任务, 新建一条录像任务是指: 对于 未过期的、 处于正在录像状态的、 且计划结束时间与当前时间的差值小于所 述第一阔值的录像任务, 新建一条录像任务。
由于视频监控系统中还保存有录像计划表, 因此在完成对所述录像任务 表中的每一条录像任务的扫描后, 开始对录像计划表中的每一条录像计划进 行扫描, 将计划开始时间早于当前时间且未过期的录像计划下发到录像任务 表中。 其中, 未过期的录像计划为计划结束时间晚于当前时间的录像计划。
同样地, 为了保证不浪费录像资源, 视频监控系统中设有一第二阔值; 在对录像计划表中的每一条录像计划进行扫描的过程中, 将计划开始时 间晚于当前时间且计划开始时间与当前时间的差值小于等于第二阔值的录像 计划下发到录像任务表中。
此外, 视频监控系统中设有一第三阔值; 则上述将计划开始时间早于当 前时间且未过期的录像计划下发到所述录像任务表中是指: 将计划开始时间 早于当前时间的、 未过期的、 且计划结束时间与当前时间的差值大于等于第 三阔值的录像计划下发到录像任务表中。
下面用本发明的一个应用实例进一步加以说明。
如图 2所示, 视频监控过程中录像中断恢复的方法包括以下步骤: 步骤一、 监控系统每次启动时, 触发录像状态检测程序, 从录像任务表 中选择一条录像任务进行扫描;
步骤二、 根据该条录像任务的状态信息判断其当前状态, 如为待录像状 态则执行步骤三; 否则执行步骤五;
步骤三、 判断该条录像任务是否已经过期 (即判断该条录像任务的计划 结束时间是否早于当前时间) , 如果是则删除该条录像任务; 否则, 执行步 骤四;
步骤四、 判断是否已遍历录像任务表, 如果已遍历, 则执行步骤六; 否 则, 扫描下一条录像任务, 执行步骤二, ;
步骤五、 当前录像任务处于正在录像状态, 则表明该条任务是被迫中断 的任务, 此时需要恢复。 恢复的过程包括: 首先判断该条录像任务是否已过 期, 如果没过期且该条录像任务的计划结束时间与当前时间的差值大于等于 一设定的第一阔值(如 1分钟) , 则在该录像任务表中新建一条录像任务, 该条新的录像任务的计划开始时间为当前时间, 计划结束时间为该条被迫中 断的录像任务的计划结束时间, 然后将该条新建的录像任务下发给流媒体服 务器, 并向流媒体服务器发起异常查询请求流程, 查询该条被迫中断的录像 任务的完成情况, 再执行步骤四; 如果该条录像任务已过期, 或该条录像任 务没有过期但其计划结束时间与当前时间的差值小于一设定的第一阔值, 则 直接向流媒体服务器发起异常查询请求流程, 然后执行步骤四;
步骤六、 从录像计划表中选择一条录像计划进行扫描;
步骤七、 判断该条录像计划的计划开始时间是否晚于当前时间, 如是则 执行步骤八, 否则执行步骤十;
步骤八、 判断该条录像计划的计划开始时间与当前时间的差值是否大于 一设定的第二阔值, 如是则执行步骤九; 否则, 将该条录像计划下发到录像 任务表中;
步骤九、 判断是否已遍历录像计划表, 如果已遍历, 则结束; 否则, 扫 描下一条录像计划, 执行步骤七;
步骤十、 判断该条录像计划是否已过期 (即判断该条录像计划的计划结 束时间是否早于当前时间) , 如是, 则执行步骤九; 否则, 判断该条录像计 划的计划结束时间与当前时间的差值是否大于等于一设定的第三阔值,如是, 则将该条录像计划下发到录像任务表中, 并执行步骤九; 否则, 执行步骤九。
其中, 上述步骤五中的异常查询请求流程具体包括以下步骤:
RGM 中的录像模块会依据设计方案中的接口向流媒体服务器发起异常 查询请求消息, 流媒体服务器接到该查询请求消息后, 检查该录像任务目前 的录像情况, 并按设定的上报接口, 向 RGM录像模块上报该录像任务目前 录像的信息; RGM收到该上报的消息后, 根据该消息的内容, 做在录像任务 表中删除该录像任务、 写内存数据库、 写文件同步等一系列操作。
此外, 本发明还提供了一种视频监控过程中录像中断恢复的系统, 如图 3所示, 包括: 存储模块 31、 扫描模块 32、 录像任务创建模块 33、 任务下发 模块 34;
存储模块 31用于保存录像任务表;
扫描模块 32用于在视频监控系统启动后对存储模块 31中保存的录像任 务表中的每一条录像任务进行扫描, 如判断出其中某条录像任务为未过期的 处于正在录像状态的录像任务, 则向录像任务创建模块 33发送创建命令, 其 中携带该条录像任务的计划结束时间;扫描模块 32还可用于在对录像任务表 进行扫描过程中, 将已过期的处于待录像状态的录像任务删除。
录像任务创建模块 33用于在接收到创建命令后,根据其中携带的计划结 束时间和当前系统时间创建一条新的录像任务, 然后将该新创建的录像任务 发送给任务下发模块 34;
任务下发模块 34将该新创建的录像任务下发给流媒体服务器。
存储模块 31中保存有一第一阔值; 扫描模块 32用于在扫描到未过期的 处于正在录像状态的录像任务后向录像任务创建模块 33发送创建命令是指: 扫描模块 32用于在扫描到未过期的、 处于正在录像状态的、 且计划结束时间 与当前时间的差值小于第一阔值的录像任务后,向录像任务创建模块 33发送 创建命令。 上述系统中还可包括: 录像计划调度模块; 存储模块 31 中还保存有录 像计划表;
扫描模块 32用于在完成对录像任务表中的每一条录像任务的扫描后,开 始对录像计划表中的每一条录像计划进行扫描, 如扫描到某条录像计划的开 始时间早于当前时间且未过期,则还用于向录像计划调度模块发送调度命令; 录像计划调度模块用于在接收到调度命令后, 将该条录像计划下发到录 像任务表中。
视频监控系统中还可设有一第二阔值;扫描模块 32还用于在扫描到某条 录像计划未过期、 计划开始时间晚于当前时间的、 且计划开始时间与当前时 间的差值小于等于第二阔值时, 向录像计划调度模块发送调度命令。
视频监控系统中还可设有一第三阔值;扫描模块 32用于在扫描到某条录 像计划的开始时间早于当前时间且未过期时, 向录像计划调度模块发送调度 命令是指:扫描模块 32用于在扫描到某条录像计划的计划开始时间早于当前 时间、 未过期、 且计划结束时间与当前时间的差值大于等于第三阔值时, 向 录像计划调度模块发送调度命令。
本发明的实现模型不仅仅适用于视频监控业务录像中断的业务状态恢复 判断处理方法, 通过简单变形, 该方法也可以应用到其它需要进行软件业务 状态恢复的领域。
当然, 本发明还可有其他多种实施例, 在不背离本发明精神及其实质的 但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。
工业实用性
本发明增加对掉电、 重启、 升级等情况正在录像业务的连接处理, 从软 件上保证录像文件的完整和连续性; 及时主动进行异常录像文件的查询, 避 免因上述情况而导致录像文件的丟失。 通过对录像任务中断恢复处理, 保证 了业务的连续性, 保护了系统的稳定, 提高了平台的异常处理能力。

Claims

权 利 要 求 书
1、 一种录像恢复的方法, 该方法包括:
视频监控系统启动后, 对录像任务表中的所有录像任务进行扫描, 对于 未过期的处于正在录像状态的中断录像任务, 则新建一条录像任务, 并将该 条新建的录像任务下发给流媒体服务器, 其中, 该条新建的录像任务的计划 开始时间为当前时间, 计划结束时间为所述未过期的处于正在录像状态的中 断录像任务的计划结束时间; 以及
所述流媒体服务器收到所述录像任务后, 控制相应录像设备开始录像。
2、 如权利要求 1所述的方法, 该方法还包括:
所述视频监控系统在对所述录像任务表进行扫描过程中, 将已过期的处 于待录像状态的录像任务删除。
3、 如权利要求 1所述的方法, 该方法还包括:
所述对于未过期的处于正在录像状态的中断录像任务, 所述视频监控系 统还向所述流媒体服务器发起异常查询请求流程, 以查询该条录像任务的完 成情况。
4、 如权利要求 1所述的方法, 该方法还包括:
所述视频监控系统在对所述录像任务表进行扫描过程中, 对于已过期的 处于正在录像状态的录像任务, 则直接向所述流媒体服务器发起异常查询请 求流程。
5、 如权利要求 1所述的方法, 其中,
所述视频监控系统中设有一第一阔值;
所述对于未过期的处于正在录像状态的中断录像任务, 新建一条录像任 务的步骤包括:
对于未过期的、 处于正在录像状态的、 且计划结束时间与当前时间的差 值小于所述第一阔值的录像任务, 新建一条录像任务。
6、 如权利要求 1所述的方法, 该方法还包括: 完成对所述录像任务表中的所有录像任务的扫描后, 开始对录像计划表 中的录像计划进行扫描, 将计划开始时间早于当前时间且未过期的录像计划 下发到所述录像任务表中。
7、 如权利要求 6所述的方法, 该方法还包括:
所述视频监控系统中设有一第二阔值;
在对所述录像计划表中的录像计划进行扫描的过程中, 将计划开始时间 晚于当前时间且所述计划开始时间与当前时间的差值小于等于所述第二阔值 的录像计划下发到所述录像任务表中。
8、 如权利要求 6所述的方法, 该方法还包括:
所述视频监控系统中设有一第三阔值;
所述将计划开始时间早于当前时间且未过期的录像计划下发到所述录像 任务表中的步骤包括: 将计划开始时间早于当前时间的、 未过期的、 且计划 结束时间与当前时间的差值大于等于所述第三阔值的录像计划下发到所述录 像任务表中。
9、 如权利要求 1、 3或 5所述的方法, 其中,
所述未过期的录像任务为计划结束时间晚于当前时间的录像任务。
10、 如权利要求 6~8中任意一项所述的方法, 其中,
所述未过期的录像计划为计划结束时间晚于当前时间的录像计划。
11、 一种录像恢复的系统, 该系统包括存储模块、 扫描模块、 录像任务 创建模块和任务下发模块, 其中,
所述存储模块设置为: 保存录像任务表;
所述扫描模块设置为: 在所述视频监控系统启动后对所述存储模块中保 存的录像任务表中的所有录像任务进行扫描, 如判断出某条录像任务为未过 期的处于正在录像状态的中断录像任务, 则向所述录像任务创建模块发送创 建命令, 所述创建命令中携带该条录像任务的计划结束时间;
所述录像任务创建模块设置为: 在接收到所述创建命令后, 根据所述创 建命令中携带的计划结束时间和当前系统时间创建一条新的录像任务, 然后 将该新创建的录像任务发送给任务下发模块;
所述任务下发模块设置为:将该新创建的录像任务下发给流媒体服务器。
12、 如权利要求 11所述的系统, 其中,
所述扫描模块还设置为: 在对所述录像任务表进行扫描过程中, 将已过 期的处于待录像状态的录像任务删除。
13、 如权利要求 11所述的系统, 其中,
所述存储模块还设置为: 保存有一第一阔值;
所述扫描模块是设置为: 在扫描到未过期的、 处于正在录像状态的、 且 计划结束时间与当前时间的差值小于所述第一阔值的录像任务后, 向所述录 像任务创建模块发送创建命令。
14、 如权利要求 11所述的系统, 所述系统还包括录像计划调度模块; 所述存储模块还设置为: 保存有录像计划表;
所述扫描模块还设置为: 在完成对所述录像任务表中的所有录像任务的 扫描后, 开始对所述录像计划表中的录像计划进行扫描, 如扫描到某条录像 计划的开始时间早于当前时间且未过期, 则向所述录像计划调度模块发送调 度命令;
所述录像计划调度模块设置为: 在接收到所述调度命令后, 将该条录像 计划下发到所述录像任务表中。
15、 如权利要求 14所述的系统, 其中,
所述系统中设有一第二阔值;
所述扫描模块还设置为: 在扫描到某条录像计划未过期、 计划开始时间 晚于当前时间的、 且所述计划开始时间与当前时间的差值小于等于所述第二 阔值时, 向所述录像计划调度模块发送调度命令。
16、 如权利要求 14所述的系统, 其中,
所述系统中设有一第三阔值;
所述扫描模块是设置为: 在扫描到某条录像计划的计划开始时间早于当 前时间、 未过期、 且计划结束时间与当前时间的差值大于等于所述第三阔值 时, 向所述录像计划调度模块发送调度命令。
PCT/CN2010/073937 2009-07-27 2010-06-13 一种录像恢复的方法及系统 WO2011012027A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP10803860.5A EP2445204B1 (en) 2009-07-27 2010-06-13 Method and system for video-recording recovery
AU2010278498A AU2010278498B2 (en) 2009-07-27 2010-06-13 Method and system for video-recording recovery
BR112012001782A BR112012001782A2 (pt) 2009-07-27 2010-06-13 "método e sistema para a recuperação de gravação de vídeo".

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910150198.0 2009-07-27
CN2009101501980A CN101610402B (zh) 2009-07-27 2009-07-27 一种视频监控过程中录像中断恢复的方法及系统

Publications (1)

Publication Number Publication Date
WO2011012027A1 true WO2011012027A1 (zh) 2011-02-03

Family

ID=41483946

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/073937 WO2011012027A1 (zh) 2009-07-27 2010-06-13 一种录像恢复的方法及系统

Country Status (5)

Country Link
EP (1) EP2445204B1 (zh)
CN (1) CN101610402B (zh)
AU (1) AU2010278498B2 (zh)
BR (1) BR112012001782A2 (zh)
WO (1) WO2011012027A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610402B (zh) * 2009-07-27 2011-12-07 中兴通讯股份有限公司 一种视频监控过程中录像中断恢复的方法及系统
CN101854253B (zh) * 2010-05-07 2012-08-29 无锡中星微电子有限公司 一种自动恢复监控和存储的方法及其监控系统
CN101867728B (zh) * 2010-06-01 2014-04-09 中兴通讯股份有限公司 视频监控中录像任务的叠加处理方法及装置
CN102780924A (zh) * 2012-07-13 2012-11-14 中兴通讯股份有限公司 录像上载控制方法及装置
CN109274912B (zh) * 2018-09-28 2021-05-28 阿里巴巴(中国)有限公司 视频录制方法、装置、介质和计算设备
CN111400004B (zh) * 2020-03-12 2023-10-31 Oppo广东移动通信有限公司 视频扫描中断处理方法及装置、存储介质和电子设备

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005311563A (ja) * 2004-04-20 2005-11-04 Victor Co Of Japan Ltd 監視方法
CN1798302A (zh) * 2004-12-23 2006-07-05 普立尔科技股份有限公司 数字影音资料的储存方法
JP2007259429A (ja) * 2006-02-24 2007-10-04 Victor Co Of Japan Ltd 映像記録制御システム
CN101127894A (zh) * 2007-09-24 2008-02-20 中兴通讯股份有限公司 一种保障视频监控录像连续性的方法
CN101198037A (zh) * 2008-01-03 2008-06-11 中兴通讯股份有限公司 一种管理监控录像的方法
CN101330596A (zh) * 2007-06-19 2008-12-24 中兴通讯股份有限公司 视频监控系统和方法
CN101610402A (zh) * 2009-07-27 2009-12-23 中兴通讯股份有限公司 一种视频监控过程中录像中断恢复的方法及系统

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AUPQ217399A0 (en) * 1999-08-12 1999-09-02 Honeywell Limited Realtime digital video server
US7298960B1 (en) * 2002-05-10 2007-11-20 Microsoft Corporation Playback diagnostics
JP4103521B2 (ja) * 2002-09-26 2008-06-18 船井電機株式会社 録画装置、録画再生装置および録画方法
US20050160308A1 (en) * 2004-01-09 2005-07-21 General Instrument Corporation Failure recovery for digital video recorders
PL369057A1 (pl) * 2004-07-12 2006-01-23 Advanced Digital Broadcast Ltd. Urządzenie do odbioru sygnału i sposób obsługi zaniku sygnału podczas nagrywania sygnału analogowego lub cyfrowego
CN100525440C (zh) * 2006-09-13 2009-08-05 谭政 一种用于视频监控系统热备份的方法
CN101483762B (zh) * 2008-12-31 2011-07-13 中兴通讯股份有限公司 一种平台录像方法、系统

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005311563A (ja) * 2004-04-20 2005-11-04 Victor Co Of Japan Ltd 監視方法
CN1798302A (zh) * 2004-12-23 2006-07-05 普立尔科技股份有限公司 数字影音资料的储存方法
JP2007259429A (ja) * 2006-02-24 2007-10-04 Victor Co Of Japan Ltd 映像記録制御システム
CN101330596A (zh) * 2007-06-19 2008-12-24 中兴通讯股份有限公司 视频监控系统和方法
CN101127894A (zh) * 2007-09-24 2008-02-20 中兴通讯股份有限公司 一种保障视频监控录像连续性的方法
CN101198037A (zh) * 2008-01-03 2008-06-11 中兴通讯股份有限公司 一种管理监控录像的方法
CN101610402A (zh) * 2009-07-27 2009-12-23 中兴通讯股份有限公司 一种视频监控过程中录像中断恢复的方法及系统

Also Published As

Publication number Publication date
AU2010278498A1 (en) 2012-02-09
EP2445204A4 (en) 2013-03-27
EP2445204B1 (en) 2018-03-21
CN101610402B (zh) 2011-12-07
EP2445204A1 (en) 2012-04-25
BR112012001782A2 (pt) 2016-04-12
AU2010278498B2 (en) 2013-10-10
CN101610402A (zh) 2009-12-23

Similar Documents

Publication Publication Date Title
WO2011012027A1 (zh) 一种录像恢复的方法及系统
US7389348B2 (en) System for alerting a monitoring device when call processing failures of a switch exceed a threshold level
US6807265B2 (en) System, method and apparatus for court-ordered surveillance of call records
CN1905455B (zh) 基于互联网和流媒体技术的开放式多媒体传输系统
CN103124342B (zh) 对视频会议终端的状态进行监控的方法及多点控制单元
US20020119771A1 (en) System, method and apparatus for capturing and processing call processing failures occurring at a digital wireless switch
CN101742254B (zh) 视频监控系统信息的备份方法和中心平台服务器
JPH08286989A (ja) ネットワーク管理システム
US7099660B2 (en) System, method and apparatus for a network-organized repository of data
WO2013078689A1 (zh) 一种云消息服务中实现消息传递的方法和装置
WO2012012924A1 (zh) 一种网络存储中保证数据完整性的方法
WO2019024910A1 (zh) 存储资源回收方法、装置及系统
US20050081095A1 (en) Method of setting backup of home location register
CN106815342A (zh) 一种分布式文件系统用户配额系统及方法
CN100536566C (zh) 一种保障视频监控录像连续性的方法
WO2024103594A1 (zh) 容器容灾方法、系统、装置、设备及计算机可读存储介质
CN101854253B (zh) 一种自动恢复监控和存储的方法及其监控系统
WO2011160582A1 (zh) 一种同步数据清理的方法和系统
US6975705B2 (en) System, method and apparatus for capturing and processing call processing failures occurring at a telephone switch control processor
CN107257496A (zh) 一种直播的控制方法、装置及移动终端
CN101588342A (zh) 一种实现录制业务的方法、装置及系统
CN101867728A (zh) 视频监控中录像任务的叠加处理方法及装置
CA2682951C (en) Message mechanism for workflow interfacing
WO2011150696A1 (zh) 一种移动多媒体广播互动业务管理方法及系统
JP2007141007A (ja) システム運用監視での障害時のサポートシステム化

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 10803860

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2010278498

Country of ref document: AU

Ref document number: 2010803860

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2010278498

Country of ref document: AU

Date of ref document: 20100613

Kind code of ref document: A

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112012001782

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 112012001782

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20120126