WO2010057377A1 - Headend equipment, video recording file backup method and control method, device and system - Google Patents

Headend equipment, video recording file backup method and control method, device and system Download PDF

Info

Publication number
WO2010057377A1
WO2010057377A1 PCT/CN2009/071732 CN2009071732W WO2010057377A1 WO 2010057377 A1 WO2010057377 A1 WO 2010057377A1 CN 2009071732 W CN2009071732 W CN 2009071732W WO 2010057377 A1 WO2010057377 A1 WO 2010057377A1
Authority
WO
WIPO (PCT)
Prior art keywords
backup
network
video
end device
storage device
Prior art date
Application number
PCT/CN2009/071732
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Publication of WO2010057377A1 publication Critical patent/WO2010057377A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/222Secondary servers, e.g. proxy server, cable television Head-end
    • H04N21/2221Secondary servers, e.g. proxy server, cable television Head-end being a cable television head-end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23116Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving data replication, e.g. over plural servers

Definitions

  • Front-end device video file backup method and control method, device and system thereof
  • the present invention relates to the field of electronic communications, and in particular, to a front-end device, a video file backup method, and a control method, device and system thereof.
  • the network video surveillance service is a value-added service based on broadband networks.
  • the service uses the network to network the front-end devices of distributed and independent video collection to achieve unified monitoring, unified storage, unified management, and resource sharing across regions and all areas.
  • the video files collected by the front-end devices are usually stored on their own memory cards according to the video policy developed by the user. After the video files stored on the current device reach a certain amount or the video reaches a certain time, the system will back up the video files in the front-end device to the platform storage device of the system for the user to query. After the platform storage device completes the backup of the video file, the front-end device overwrites the original video file with the new video file.
  • the recording strategy of the front-end device currently used can guarantee a video data on the front-end device.
  • the network connection between the current device and the system is interrupted.
  • the platform storage device of the system cannot back up the video files in the front-end device.
  • the user directly accesses the video files during the network interruption to the front-end device and manually backs up to the platform storage device of the system.
  • An embodiment of the present invention provides a front-end device, a video file backup method, and a control method, device, and system thereof
  • the system can avoid the frequent use of the storage space of the front-end device, and can automatically back up the video files during the network interruption from the front-end device to the platform storage device, which is convenient for users to operate.
  • the method for controlling backup of a video file includes:
  • the video backup task is delivered to the platform storage device according to the preset backup policy, so that the front-end device sends the video file temporarily stored during the network interruption to the platform storage device after the network is restored to normal. Make a backup.
  • the video file backup method provided by the embodiment of the present invention includes:
  • the front-end device provided by the embodiment of the present invention includes:
  • the network detection module is configured to detect whether the network is normal
  • a media stream transmission module configured to transmit, according to the recording strategy, the media stream obtained by the network storage device to the platform storage device after the network is normal;
  • a file storage module configured to temporarily store a video file generated according to a media stream during a network interruption during network interruption
  • the file transfer module is configured to provide a temporary storage file of the file storage module to the platform storage device for backup after the network is restored.
  • the video file backup system includes: a front end device, a platform storage device, and a central platform management server:
  • the front-end device is configured to: according to the recording policy, transmit the media stream obtained by the network storage device to the platform storage device after the network is normal; during the network interruption, the temporary storage is generated according to the media stream during the network interruption period. Recording a file, and generating index information according to the video file, and after the network is restored to normal, the video file is provided to the platform storage device for backup;
  • the central platform management server obtains the information of the cable in the front-end device, according to the information of the cable And establishing a corresponding video backup task, and delivering the video backup task to the platform storage device according to the backup policy;
  • the platform storage device After receiving the video backup task delivered by the central platform management server, the platform storage device sends a video backup request to the front-end device, and receives a corresponding video file.
  • the front-end device can transmit the media stream to the platform storage device for backup during the normal operation of the network, avoiding frequent
  • the storage space of the front-end device is used, and the video file is temporarily stored by the front-end device during the network interruption, and after the network is restored to normal, the video file during the network interruption is automatically backed up from the front-end device to the platform storage device according to the preset backup policy. , user-friendly operation.
  • FIG. 1 is a schematic flow chart of an embodiment of a method for controlling backup of a video file provided by the present invention
  • FIG. 2 is a schematic flow chart of an embodiment of a video file backup method provided by the present invention.
  • FIG. 3 is a schematic flowchart of an embodiment of a preset backup policy
  • FIG. 4 is a schematic flowchart diagram of still another embodiment of a method for controlling backup of a video file provided by the present invention.
  • FIG. 5 is a schematic structural diagram of an embodiment of a video file backup system provided by the present invention.
  • FIG. 6 is a schematic structural diagram of an embodiment of a front end device provided by the present invention.
  • FIG. 7 is a schematic structural diagram of still another embodiment of a front end device provided by the present invention.
  • FIG. 8 is a schematic structural diagram of an embodiment of a control device for backing up a video file provided by the present invention.
  • FIG. 9 is a schematic structural diagram of an embodiment of a platform storage device provided by the present invention.
  • FIG. 10 is a schematic structural diagram of still another embodiment of a platform storage device provided by the present invention.
  • the method and device for controlling the backup of the video file provided by the embodiment of the present invention, and the corresponding front-end device, the platform storage device and the corresponding video file backup system can be automatically activated according to the preset backup policy after the network is restored to normal. Back up video files during network outage from front-end devices to platform storage devices On, it is convenient for users to operate.
  • FIG. 1 a schematic flowchart of a method for controlling backup of a video file provided by the present invention is shown in the following figure:
  • index information of the video file temporarily stored by the front-end device during the network interruption is obtained. It should be noted that, in the specific implementation, the index information of the video file temporarily stored by the front-end device during the network interruption period may be obtained by actively querying the front-end device, or the front-end device may be obtained by the front-end device actively reporting. Index information of the video file temporarily stored during the network interruption.
  • step S101 a corresponding video backup task is established according to the index information.
  • step S102 the video backup task is sent to the platform storage device according to the preset backup policy, so that the front-end device sends the video file temporarily stored during the network interruption to the platform storage device after the network is restored to normal. Make a backup.
  • the method for controlling backup of a video file controls the storage device of the platform to back up the video file temporarily stored by the front-end device during the network interruption according to the preset backup policy, without manual backup by the user, and is convenient for the user to operate. .
  • the video backup backup route is provided to the front-end device, so that the front-end device sends the corresponding video file to the platform storage device for backup according to the provided video backup route.
  • the front-end device can more flexibly select platform storage devices to back up video files.
  • the front-end device can also use the routing information stored in the front-end device to send the temporary recording file during the network interruption to the platform storage device for backup, thereby improving the efficiency of the backup video file.
  • FIG. 2 it is a schematic flowchart of a method for backing up a video file provided by the present invention.
  • This embodiment will focus on the processing flow of the media stream acquired by the front-end device according to the recording strategy.
  • the central platform management server needs to record video, and the recording strategy is used to indicate that the media stream is recorded.
  • the front-end device is in the normal network.
  • the obtained media stream is transmitted to the platform storage device, and when the network is interrupted, the media stream is generated to generate a video file and temporarily stored; when the media stream is not required to be recorded, even if the network is normal, it is not required Transfer the media stream to the platform storage device.
  • the specific process is shown in Figure 2: [53]
  • step S200 it is detected whether the network is normal. Specifically, the front-end device detects whether the network connection between the network and the system is normal. If the network connection is normal, the process proceeds to step S201; if the network connection is interrupted, the process proceeds to step S202.
  • step S201 after the network is normal, the media stream obtained by the network storage device is transmitted to the platform storage device; specifically, the front-end device stores the network with the system according to the recording policy, and stores the data to the platform of the system.
  • the device actually transmits the media stream it acquires, and the media stream is obtained by the front-end device by itself or from other monitoring devices.
  • the front-end device directly sends the obtained media stream to the platform storage device after the network connection is normal, and does not process the media stream itself.
  • step S202 during the network interruption, temporarily storing the video file generated according to the media stream during the network interruption; specifically, when the front-end device is disconnected from the network of the system, the front-end device acquires the media during the network interruption.
  • the stream generation video file is temporarily stored on the front end device; further, corresponding index information may be generated according to the video file.
  • step S203 after the network is restored to normal, the video file temporarily stored by the file storage module is provided to the platform storage device for backup.
  • the method for backing up the video file provided by the embodiment of the present invention can transmit the media stream to the platform storage device for backup during the normal operation of the network, so as to avoid frequent use of the storage space of the front-end device, and the front end during the network interruption period.
  • the device temporarily stores the video file, and after the network is restored to normal, the video file during the network interruption is automatically backed up from the front-end device to the platform storage device according to the preset backup policy, which is convenient for the user to operate.
  • the front-end device temporarily stores the video file during the network interruption, and after the network is restored to normal, the video file is sent to the platform storage device for backup according to the preset backup policy, in a specific implementation manner.
  • the preset backup policy for the specific process of the preset backup strategy, see Figure 3:
  • step S300 the user logs in to the system management client, enters the add front-end device backup policy window, and the user can select the backup policy through the window provided by the system management client.
  • the user submits a specific front-end video backup strategy.
  • step S301
  • the system management client writes the backup policy and related information selected by the user to the add-end device backup policy request, and submits it to the system management background server.
  • Add front-end device backup policy request including front-end settings
  • Backup strategies include: Prohibit backups, fixed backups, free backups, and more. If you use the backup file, the submitted information also includes the start and end time of the backup policy, and the system only backs up the video files during the network interruption during the backup policy.
  • the system will only start the backup task after the front-end device is not being browsed and recorded by video, and after performing the backup, if there is video browsing or video recording, stop the backup immediately; if the backup is prohibited, the system selects Discard the video files during the network interruption.
  • step S302 after receiving the request for adding the front-end device backup policy, the system management background server writes the information about the backup policy to the database of the central platform management server.
  • step S303 the system management background server feeds back the backup policy addition result to the system management client.
  • step S304 the system management client prompts the user according to the result of the system management background server feedback.
  • a plurality of specific backup policies are provided for the user to flexibly select according to their own needs.
  • the preset backup policy enables the video files of the front-end device to be automatically backed up to the platform storage device, so that the video files are not lost.
  • FIG. 4 it is a schematic flowchart of still another embodiment of a method for controlling backup of a video file provided by the present invention.
  • This embodiment will focus on the processing flow of the platform storage device to the video file, which can improve the continuity of the video file in the platform storage device and reduce redundancy.
  • step S400 the central platform management server determines to send a query request to query an index on the front end device.
  • step S401 the front-end device feeds back the index information to the central platform management server according to the query request.
  • the front-end device can also actively report the index information of the video file to the central platform management server.
  • step S402 the central platform management server passes the index information, and if a video file that needs to be backed up is found in the front-end device, a corresponding video backup task is established.
  • step S403 the central platform management server delivers a video backup task to the platform storage device according to the preset backup policy.
  • step S404 after receiving the video backup task, the platform storage device performs overlap detection on the index information of the video file of the front-end device, and determines whether the video file referred to in the video backup task is backed up in the platform storage device. If it is confirmed that there is no backup, step S405 is performed; if it has been backed up, the central platform management server is notified that the video file has been backed up, so that the central platform management server notifies the front-end device to delete the video file and the corresponding index information.
  • step S405 the platform storage device sends a video backup request to the central platform management server.
  • step S406 the central platform management server forwards the video backup request to the front end device.
  • step S407 after receiving the video backup request, the front-end device sends a routing request to the central platform management server to request to obtain a route from the front-end device to the platform storage device.
  • step S408 after receiving the routing request sent by the front-end device, the central platform management server sends a corresponding backup route to the front-end device.
  • step S409 the front-end device receives the backup route, and sends a backup response to the central platform management server, indicating that it is ready to send the video file.
  • step S410 the central platform management server forwards the backup response to the platform storage device, and notifies the platform storage device to prepare for receiving the video file.
  • step S411 the front end device sends the video file to be backed up to the platform storage device. After the front-end device finishes transmitting the video file, the video file and its corresponding index information are deleted from the memory card.
  • step S412 after receiving the video file, the platform storage device compares the video file with the existing video file on the platform storage device, and merges the overlapping portions of the video file to save the data on the platform storage device.
  • the video file is complete and continuous.
  • the method for controlling backup of a video file provided by the embodiment of the present invention automatically backs up the video file during the network interruption from the front-end device to the platform storage device according to the preset backup policy after the network is restored to normal, facilitating user operation.
  • the overlapping detection of the index information and the overlapping of the overlapping portions of the recording file enable the recording file on the platform storage device to be complete and continuous, and the user calls and browses more conveniently, and the platform storage device is reduced. Redundant video files.
  • FIG. 5 it is a schematic structural diagram of an embodiment of a video file backup system provided by the present invention.
  • the system includes: a front end device 1, a central platform management server 2, and a platform storage device 3: [82]
  • the front-end device 1 transmits the obtained media stream to the platform storage device 3 after the network connection with the video file backup system is normal according to the recording policy, and the front-end device 1 does not use the media stream.
  • Performing other processing after the network interruption between the front-end device 1 and the video file backup system, temporarily storing the video file generated according to the media stream during the network interruption, and providing the temporarily stored video file after the network returns to normal Back up the platform storage device 3.
  • the central platform management server 2 determines to obtain the index information on the front-end device 1. If the index information is found, the front-end device 1 has a video file to be backed up, and a corresponding video backup task is established, and according to the preset The backup policy is to deliver the video backup task to the platform storage device 3.
  • the platform storage device 3 After receiving the video backup task delivered by the central platform management server 2, the platform storage device 3 sends a video backup request to the front-end device 1 and receives the corresponding video file sent by the front-end device 1 for backup.
  • the video file backup system provided by the embodiment of the invention not only improves the processing mode of the media stream acquired by the front-end device, reduces the frequency of use of the memory card of the front-end device, and prolongs the service life of the memory card, and the system can be
  • the preset backup strategy automatically acquires the video files during the network interruption, without manual backup, which is convenient for users to operate.
  • FIG. 6 is a schematic structural diagram of an embodiment of a front-end device provided by the present invention, as shown in the following figure:
  • the network detection module 10 is configured to detect whether the network is normal
  • the media stream transmission module 11 is configured to: according to the recording policy, transmit the media stream obtained by the media storage device to the platform storage device after the network is normal;
  • a file storage module 12 configured to temporarily store a video file generated according to a media stream during a network interruption during network interruption;
  • the file transfer module 13 is configured to provide the temporary storage file of the file storage module 12 to the platform storage device for backup after the network is restored.
  • the front-end device provided by the embodiment of the present invention can transmit the media stream to the platform storage device for backup during the normal operation of the network, so as to avoid frequent use of the storage space of the front-end device, and the front-end device temporarily pauses during the network interruption period.
  • the video file is saved, and after the network is restored to normal, the video file during the network interruption is automatically backed up from the front-end device to the platform storage device, which is convenient for the user to operate.
  • FIG. 7 is a schematic structural view of still another embodiment of a front end device according to the present invention.
  • the front-end device provided in this embodiment has the same structure and function as the front-end device shown in FIG. , Also includes:
  • the index generating module 14 is configured to establish corresponding index information according to the video file temporarily stored by the file storage module 12 of the front-end device during the network interruption, so that the central platform management server establishes a corresponding video backup according to the index information. task.
  • the file storage module 12 of the front-end device generates a corresponding video file for storage according to the media stream acquired during the network interruption, and the index generating module 14 establishes corresponding information according to the video file. If the network has multiple interruptions in a network, the front-end device generates a plurality of video files, and the index information generated by the index generation module 14 has information about multiple video files, including the start and end time of each video file. Size, etc., the main purpose is to facilitate other related devices to determine whether the video file is not backed up.
  • the front end device may further include:
  • the information interaction module 15 is configured to receive a video backup request sent by the central platform management server, where the video backup request is sent by the central platform management server to the platform storage device according to the backup policy, and received from the platform storage server. Initiated after the video backup request.
  • the central platform management server finds a video file that needs to be backed up through the index information of the front-end device, it will send a video backup task to the platform storage device. After the platform storage device overlaps the index information, it confirms that the video file needs to be backed up, and sends a video backup request to the central platform management server. The central platform management server forwards the video backup request to the front-end device, that is, notifies the front-end device to record the corresponding video. The file is sent to the platform storage device.
  • the route obtaining module 16 is configured to obtain a backup route from the central platform management server after the information interaction module 15 receives the video backup request. More specifically, after receiving the video backup request, the information obtaining module 16 sends a routing request to the central platform management server, and after receiving the request, the central platform management server feeds back the front-end device to the platform to the front-end device. A backup route of the storage device. This backup route is the route that the front-end device sends video files to the platform storage device.
  • the file transmission module 13 is configured to send a corresponding video file to the platform storage device according to the backup route obtained by the route obtaining module 12.
  • the route obtaining module 16 is optional, and the route obtaining module 16 obtains a route from the central platform management server, and the front-end device can perform corresponding video recording according to the provided video backup route. The pieces are sent to the platform storage device for backup.
  • the central platform management server can provide different routes, so that the front-end device can more flexibly select the platform storage device to back up the video files.
  • the front-end device can also use the routing information stored in the front-end device to send the recording file temporarily stored during the network interruption to the platform storage device for backup, thereby improving the efficiency of the backup video file.
  • the front-end device provided by the embodiment of the present invention may generate corresponding index information according to the stored video file for the central platform management server to query; and the front-end device receives the video backup request and obtains the backup route. , automatically send the corresponding video file to the platform storage device for backup, without the need for manual backup by the user, which is convenient for the user to operate.
  • FIG. 8 is a schematic structural diagram of an embodiment of a control device for backing up a video file according to the present invention. As shown in the figure, the device includes:
  • the obtaining module 21 is configured to obtain index information of the video file temporarily stored by the front-end device during the network interruption; during the specific implementation, the front-end device may obtain the temporary interrupt during the network interruption by actively querying the front-end device.
  • the index information of the stored video file may also obtain the index information of the video file temporarily stored by the front-end device during the network interruption by receiving the information reported by the front-end device.
  • the index information of the front-end device should be empty. If the network has multiple interruptions in one inter-segment, the index information should have multiple video file information, corresponding to each. The video file of each network interruption.
  • the processing module 22 according to the index information, establish a corresponding video backup task, and deliver the video backup task to the platform storage device according to the preset backup policy, so that the front-end device returns to normal in the network. After that, the video file temporarily stored during the network interruption is sent to the platform storage device for backup.
  • the processing module 22 sends a video backup task to the platform storage device according to the preset backup policy. If the backup policy corresponding to the front-end device is a backup, the processing module 22 needs to wait until the time interval specified by the backup policy to deliver the video backup task to the platform storage device; if the front-end device corresponds to the idle backup The policy, the processing module 22 only goes to the platform after the front-end device is not being browsed and recorded by the video.
  • the storage device sends a video backup task, and during the backup process of the video storage file on the platform storage device, if there is video browsing or video recording on the front-end device, the backup is stopped immediately.
  • control device for backing up the video file may further include:
  • the routing module 23 is configured to send a backup route to the front-end device after receiving the routing request sent by the front-end device.
  • the backup route is the route between the front-end device and the platform storage device.
  • the front-end device can send the video file to the platform storage device through the backup route.
  • the control device for backing up the recorded file provided by the embodiment of the present invention may be a central platform management server or located in the central platform management server.
  • the control device for backing up the video file provided by the embodiment of the present invention can discover the video file to be backed up by means of a fixed query, and control the platform storage device to back up the video file according to the preset backup policy.
  • the monitoring network automatically backs up the recording file during the network interruption from the front-end device to the platform storage device according to the preset backup policy, without manual backup by the user. User operation.
  • FIG. 9 is a schematic structural diagram of an embodiment of a platform storage device according to the present invention. As shown in the figure, the platform storage device includes:
  • the information interaction module 30 is configured to receive a video backup task delivered by the central platform management server according to the backup policy.
  • the video backup task includes basic information indicating which front-end device of the video file to be backed up and the start and end information of the video file.
  • the backup request module 31 is configured to send a video backup request to the central platform management server according to the video backup task received by the information interaction module 30.
  • the file storage module 32 is configured to store a video file corresponding to the backup request sent by the backup request module 31 from the front end device.
  • the platform storage device provided by the embodiment of the present invention can obtain the video file for backup to the front-end device according to the video backup task delivered by the central platform management server, thereby avoiding the prior art, after the network is interrupted, There is a cumbersome operation brought by the user to the front-end device to manually obtain the video file, which is convenient for the user to use.
  • FIG. 10 is a schematic structural diagram of another embodiment of a platform storage device according to the present invention.
  • the platform storage device provided in this embodiment is different from the platform storage device shown in FIG. 9 in that the present embodiment provides After acquiring the video files of the front-end devices, the platform storage device will also merge the overlapping portions to make the video files continuous and complete, and reduce redundant video files on the platform storage devices.
  • the platform storage device includes not only the information interaction module 30, the backup request module 31, and the file storage module 32, as shown in FIG. 9, but also includes:
  • the overlap detection module 33 is configured to perform overlap detection on the index information in the corresponding front-end device according to the video backup task received by the information interaction module 30.
  • the overlap detection module 33 determines whether the video files in the front-end device are not backed up in the file storage module 32 according to the basic information of the video files to be backed up in the video backup task, such as the video recording time, the front-end device identifier, and the like.
  • the overlap detection module 33 finds that the video file to be backed up has been stored in the file storage module 32, the overlap detection module 33 notifies the central platform management server that the video file has been backed up on the platform storage device through the information interaction module 30, and the central platform management server After receiving this notification, the front-end device is notified that the video file has been backed up, and the video file is deleted by the front-end device from its own memory card.
  • the file processing module 34 is configured to merge the existing video files in the file storage module 32 with the overlapping portions of the video files received by the platform storage device.
  • the file storage module 32 may already store a part of the content of the video file sent by the front-end device. Therefore, the file processing module 34 detects the newly received video file to determine whether there is an overlapping portion, for example, the newly received video file. Whether it overlaps with the time of the existing video file in the file storage module 32 to determine whether there is an overlapping portion
  • the overlapping parts are merged, and then merged and then stored by the file storage module 32.
  • the platform storage device provided by the embodiment of the present invention can not only obtain the video file backup for the front-end device according to the backup task of the video file delivered by the central platform management server, but also can merge the overlapping portions of the video file.
  • the video files are complete and continuous, which is convenient for users to browse and browse, and can reduce the redundancy of video files on the platform storage device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

A headend equipment, a video recording file backup method and a control method, device and system are provided by the embodiment of the present invention. The control method for video recording file backup includes: acquiring an index information of the video recording file which is temporarily memorized by the headend equipment during network interruption; establishing the corresponding video recording backup tasks according to the index information; delivering the video recording backup tasks to a platform memory equipment according to the predetermined backup strategy, so that the headend equipment sends the video recording file temporarily memorized during network interruption to the platform memory equipment for backup when the network returns to normal. By implementing the embodiment of the present invention, the video recording file during network interruption can be automatically backup from the headend equipment to the platform memory equipment according to the predetermined backup strategy when the network returns to normal, therefore the users' manipulation can be facilitated.

Description

说明书 前端设备、 录像文件备份方法及其控制方法、 装置及系统  Front-end device, video file backup method and control method, device and system thereof
[I] 本申请要求于 2008年 11月 18日提交中国专利局、 申请号为 200810219202.X、 发 明名称为"前端设备、 录像文件备份方法及其控制方法、 装置及系统"的中国专利 申请的优先权, 其全部内容通过引用结合在本申请中。  [I] This application is required to be submitted to the Chinese Patent Office on November 18, 2008, and the application number is 200810219202.X. The invention titled "front-end equipment, video file backup method and its control method, device and system" is applied for in Chinese patent application. Priority is hereby incorporated by reference in its entirety.
[2] 技术领域 [2] Technical field
[3] 本发明涉及电子通讯领域, 尤其涉及一种前端设备、 录像文件备份方法及其控 制方法、 装置及系统。  [3] The present invention relates to the field of electronic communications, and in particular, to a front-end device, a video file backup method, and a control method, device and system thereof.
[4] 发明背景 [4] Background of the invention
[5] 网络视频监控业务是基于宽带网的增值业务。 该业务利用网络, 将分散、 独立 的釆集录像的前端设备进行联网, 实现跨地域、 全范围的统一监控、 统一存储 、 统一管理、 资源共享。  [5] The network video surveillance service is a value-added service based on broadband networks. The service uses the network to network the front-end devices of distributed and independent video collection to achieve unified monitoring, unified storage, unified management, and resource sharing across regions and all areas.
[6] 网络视频监控业务中, 前端设备釆集的录像文件通常是根据用户制定的录像策 略, 将录制的视频文件首先在自身的储存卡上进行存储。 当前端设备上存储的 录像文件达到一定的数量或录像达到一定的吋间后, 系统会将前端设备中的录 像文件备份到系统的平台存储设备中, 以供用户査询使用。 前端设备在平台存 储设备完成对录像文件的备份后, 以新的录像文件覆盖原有录像文件。  [6] In the network video surveillance service, the video files collected by the front-end devices are usually stored on their own memory cards according to the video policy developed by the user. After the video files stored on the current device reach a certain amount or the video reaches a certain time, the system will back up the video files in the front-end device to the platform storage device of the system for the user to query. After the platform storage device completes the backup of the video file, the front-end device overwrites the original video file with the new video file.
[7] 目前釆用的这种前端设备的录像策略, 可以在前端设备上始终保证有一份录像 数据。 当前端设备与系统的网络连接中断, 系统的平台存储设备无法备份前端 设备中的录像文件吋, 用户直接到前端设备中获取网络中断期间的录像文件, 并手动备份到系统的平台存储设备中。  [7] The recording strategy of the front-end device currently used can guarantee a video data on the front-end device. The network connection between the current device and the system is interrupted. The platform storage device of the system cannot back up the video files in the front-end device. The user directly accesses the video files during the network interruption to the front-end device and manually backs up to the platform storage device of the system.
[8] 发明人在实施本发明的过程中, 发现现有技术存在如下缺点:  [8] In the process of implementing the present invention, the inventors found that the prior art has the following disadvantages:
[9] 在当前的前端设备录像策略下, 当前端设备与系统的网络连接中断, 系统平台 存储设备无法备份前端设备中的录像文件吋, 用户必须到前端设备手动备份网 络中断期间的录像数据, 造成用户使用的复杂性。  [9] Under the current front-end device recording strategy, the network connection between the current device and the system is interrupted, and the system platform storage device cannot back up the video files in the front-end device. The user must manually back up the video data during the network interruption to the front-end device. The complexity of the user's use.
[10] 发明内容  [10] Summary of the invention
[I I] 本发明实施例提供一种前端设备、 录像文件备份方法及其控制方法、 装置及系 统, 可以避免频繁使用前端设备的存储空间, 能自动将网络中断期间的录像文 件从前端设备备份到平台存储设备上, 方便用户操作使用。 [II] An embodiment of the present invention provides a front-end device, a video file backup method, and a control method, device, and system thereof The system can avoid the frequent use of the storage space of the front-end device, and can automatically back up the video files during the network interruption from the front-end device to the platform storage device, which is convenient for users to operate.
[12] 本发明实施例提供的录像文件备份的控制方法包括: [12] The method for controlling backup of a video file provided by the embodiment of the present invention includes:
[13] 获得前端设备在网络中断期间暂存的录像文件的索引信息; [13] obtaining index information of the video file temporarily stored by the front-end device during the network interruption;
[14] 根据所述索引信息, 建立相应的录像备份任务; [14] establishing a corresponding video backup task according to the index information;
[15] 根据预置的备份策略, 向平台存储设备下发所述录像备份任务; 以使所述前端 设备在网络恢复正常后, 将网络中断期间暂存的录像文件发送给所述平台存储 设备进行备份。  [15] The video backup task is delivered to the platform storage device according to the preset backup policy, so that the front-end device sends the video file temporarily stored during the network interruption to the platform storage device after the network is restored to normal. Make a backup.
[16] 本发明实施例提供的录像文件备份方法, 包括:  [16] The video file backup method provided by the embodiment of the present invention includes:
[17] 检测网络是否正常;  [17] Check if the network is normal;
[18] 根据录像策略, 在网络正常吋, 向平台存储设备传输其获取的媒体流;  [18] According to the recording strategy, after the network is normal, the media stream obtained by the platform storage device is transmitted;
[19] 在网络中断吋, 暂存根据网络中断期间的媒体流生成的录像文件;  [19] During network interruption, temporary storage of video files generated based on media streams during network interruptions;
[20] 在网络恢复正常后, 将所述暂存的录像文件提供给平台存储设备进行备份。  [20] After the network is restored to normal, the temporarily stored video file is provided to the platform storage device for backup.
[21] 本发明实施例提供的前端设备, 包括:  [21] The front-end device provided by the embodiment of the present invention includes:
[22] 网络检测模块, 用于检测网络是否正常;  [22] The network detection module is configured to detect whether the network is normal;
[23] 媒体流传输模块, 用于根据录像策略, 在网络正常吋, 向平台存储设备传输其 获取的媒体流;  [23] a media stream transmission module, configured to transmit, according to the recording strategy, the media stream obtained by the network storage device to the platform storage device after the network is normal;
[24] 文件存储模块, 用于在网络中断吋, 暂存根据网络中断期间的媒体流生成的录 像文件;  [24] a file storage module, configured to temporarily store a video file generated according to a media stream during a network interruption during network interruption;
[25] 文件传输模块, 用于在网络恢复正常后, 将文件存储模块暂存的录像文件提供 给平台存储设备进行备份。  [25] The file transfer module is configured to provide a temporary storage file of the file storage module to the platform storage device for backup after the network is restored.
[26] 本发明实施例提供的录像文件备份系统, 包括: 前端设备, 平台存储设备和中 心平台管理服务器: [26] The video file backup system provided by the embodiment of the present invention includes: a front end device, a platform storage device, and a central platform management server:
[27] 所述前端设备, 用于根据录像策略, 在网络正常吋, 向所述平台存储设备传输 其获取的媒体流; 在所述网络中断吋, 暂存根据网络中断期间的媒体流生成的 录像文件, 并根据所述录像文件生成索引信息, 在网络恢复正常后, 将所述录 像文件提供给平台存储设备进行备份;  [27] the front-end device is configured to: according to the recording policy, transmit the media stream obtained by the network storage device to the platform storage device after the network is normal; during the network interruption, the temporary storage is generated according to the media stream during the network interruption period. Recording a file, and generating index information according to the video file, and after the network is restored to normal, the video file is provided to the platform storage device for backup;
[28] 所述中心平台管理服务器获得所述前端设备中的索弓 I信息, 根据所述索弓 I信息 , 建立相应地录像备份任务, 并根据备份策略, 向平台存储设备下发所述录像 备份任务; [28] The central platform management server obtains the information of the cable in the front-end device, according to the information of the cable And establishing a corresponding video backup task, and delivering the video backup task to the platform storage device according to the backup policy;
[29] 所述平台存储设备收到所述中心平台管理服务器下发的录像备份任务后, 向所 述前端设备发送录像备份请求, 并接收相应的录像文件。  [29] After receiving the video backup task delivered by the central platform management server, the platform storage device sends a video backup request to the front-end device, and receives a corresponding video file.
[30] 实施本发明实施例提供的录像文件备份的控制方法、 装置、 录像文件备份方法 及系统, 前端设备可以在网络正常吋候, 将媒体流实吋传输到平台存储设备上 备份, 避免频繁使用前端设备的存储空间, 在网络中断期间由前端设备暂存录 像文件, 并在网络恢复正常后, 根据预置的备份策略, 自动将网络中断期间的 录像文件从前端设备备份到平台存储设备上, 方便用户操作使用。  [30] The method and device for backing up the video file provided by the embodiment of the present invention, and the method and system for backing up the video file, the front-end device can transmit the media stream to the platform storage device for backup during the normal operation of the network, avoiding frequent The storage space of the front-end device is used, and the video file is temporarily stored by the front-end device during the network interruption, and after the network is restored to normal, the video file during the network interruption is automatically backed up from the front-end device to the platform storage device according to the preset backup policy. , user-friendly operation.
[31] 附图简要说明  [31] BRIEF DESCRIPTION OF THE DRAWINGS
[32] 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施例或 现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的 附图仅仅是本发明的一些实施例, 对于本领域技术人员来讲, 在不付出创造性 劳动性的前提下, 还可以根据这些附图获得其他的附图。  [32] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art description will be briefly described below, and obviously, in the following description The drawings are only some of the embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive labor.
[33] 图 1是本发明提供的录像文件备份的控制方法实施例的流程示意图;  1 is a schematic flow chart of an embodiment of a method for controlling backup of a video file provided by the present invention;
[34] 图 2是本发明提供的录像文件备份方法实施例的流程示意图;  2 is a schematic flow chart of an embodiment of a video file backup method provided by the present invention;
[35] 图 3是预置备份策略实施例的流程示意图;  [35] FIG. 3 is a schematic flowchart of an embodiment of a preset backup policy;
[36] 图 4是本发明提供的录像文件备份的控制方法又一实施例的流程示意图;  [36] FIG. 4 is a schematic flowchart diagram of still another embodiment of a method for controlling backup of a video file provided by the present invention;
[37] 图 5是本发明提供的录像文件备份系统实施例的结构示意图;  [37] FIG. 5 is a schematic structural diagram of an embodiment of a video file backup system provided by the present invention;
[38] 图 6是本发明提供的前端设备实施例的结构示意图;  6 is a schematic structural diagram of an embodiment of a front end device provided by the present invention;
[39] 图 7是本发明提供的前端设备又一实施例的结构示意图;  7 is a schematic structural diagram of still another embodiment of a front end device provided by the present invention;
[40] 图 8是本发明提供的录像文件备份的控制装置实施例的结构示意图;  [40] FIG. 8 is a schematic structural diagram of an embodiment of a control device for backing up a video file provided by the present invention;
[41] 图 9是本发明提供的平台存储设备实施例的结构示意图;  FIG. 9 is a schematic structural diagram of an embodiment of a platform storage device provided by the present invention; FIG.
[42] 图 10是本发明提供的平台存储设备又一实施例的结构示意图。  FIG. 10 is a schematic structural diagram of still another embodiment of a platform storage device provided by the present invention.
[43] 实施本发明的方式  [43] Mode for carrying out the invention
[44] 实施本发明实施例提供的录像文件备份的控制方法、 装置及相应的前端设备, 平台存储设备和对应的录像文件备份系统, 可以在网络恢复正常后, 根据预置 的备份策略, 自动将网络中断期间的录像文件从前端设备备份到平台存储设备 上, 方便用户操作使用。 [44] The method and device for controlling the backup of the video file provided by the embodiment of the present invention, and the corresponding front-end device, the platform storage device and the corresponding video file backup system can be automatically activated according to the preset backup policy after the network is restored to normal. Back up video files during network outage from front-end devices to platform storage devices On, it is convenient for users to operate.
[45] 参见图 1, 为本发明提供的录像文件备份的控制方法实施例流程示意图, 如图 所示: [45] Referring to FIG. 1, a schematic flowchart of a method for controlling backup of a video file provided by the present invention is shown in the following figure:
[46] 在步骤 S100, 获得前端设备在网络中断期间暂存的录像文件的索引信息。 需要 说明的是, 在具体实现的吋候, 可以通过向前端设备主动査询的方式获得前端 设备在网络中断期间暂存的录像文件的索引信息, 也可以通过前端设备主动上 报的方式获得前端设备在网络中断期间暂存的录像文件的索引信息。  [46] In step S100, index information of the video file temporarily stored by the front-end device during the network interruption is obtained. It should be noted that, in the specific implementation, the index information of the video file temporarily stored by the front-end device during the network interruption period may be obtained by actively querying the front-end device, or the front-end device may be obtained by the front-end device actively reporting. Index information of the video file temporarily stored during the network interruption.
[47] 在步骤 S101 , 根据索引信息, 建立相应的录像备份任务。  [47] In step S101, a corresponding video backup task is established according to the index information.
[48] 在步骤 S102, 根据预置的备份策略, 向平台存储设备下发录像备份任务, 以使 前端设备在网络恢复正常后, 将网络中断期间暂存的录像文件发送给所述平台 存储设备进行备份。  [48] In step S102, the video backup task is sent to the platform storage device according to the preset backup policy, so that the front-end device sends the video file temporarily stored during the network interruption to the platform storage device after the network is restored to normal. Make a backup.
[49] 本发明实施例提供的录像文件备份的控制方法, 根据预置的备份策略控制平台 存储设备对网络中断期间, 前端设备暂存的录像文件进行备份, 无须用户手动 备份, 方便用户操作使用。  [49] The method for controlling backup of a video file provided by the embodiment of the present invention controls the storage device of the platform to back up the video file temporarily stored by the front-end device during the network interruption according to the preset backup policy, without manual backup by the user, and is convenient for the user to operate. .
[50] 可选的, 向前端设备提供录像备份路由, 使前端设备根据提供的录像备份路由 , 将相应的录像文件发送给所述平台存储设备进行备份。 通过提供不同的路由 , 可以使得前端设备更加灵活的选择平台存储设备来备份录像文件。 当然, 前 端设备也可以不用请求路由信息, 只需要利用自身存储的路由信息, 将网络中 断期间暂存的录像文件发送给平台存储设备进行备份, 从而提高备份录像文件 的效率。  [50] Optionally, the video backup backup route is provided to the front-end device, so that the front-end device sends the corresponding video file to the platform storage device for backup according to the provided video backup route. By providing different routes, the front-end device can more flexibly select platform storage devices to back up video files. Of course, the front-end device can also use the routing information stored in the front-end device to send the temporary recording file during the network interruption to the platform storage device for backup, thereby improving the efficiency of the backup video file.
[51] 参见图 2, 为本发明提供的录像文件备份方法实施例流程示意图。  [51] Referring to FIG. 2, it is a schematic flowchart of a method for backing up a video file provided by the present invention.
[52] 本实施例将着重说明根据录像策略, 前端设备对其获取的媒体流的处理流程。 [52] This embodiment will focus on the processing flow of the media stream acquired by the front-end device according to the recording strategy.
需要说明的是, 本实施例中的录像策略, 具体是中心平台管理服务器需要录像 吋, 制定录像策略, 用以指示对媒体流进行录像, 在需要进行录像的吋候, 前 端设备在网络正常的吋候, 将其获取的媒体流传输到平台存储设备, 在网络中 断的吋候, 将媒体流生成录像文件并暂存起来; 当不需要对媒体流进行录像吋 , 即使网络正常, 也不需要将媒体流实吋传输到平台存储设备。 具体流程如图 2 所示: [53] 在步骤 S200, 检测网络是否正常, 具体地, 由前端设备检测自身与系统的网络 连接是否正常, 若网络连接正常, 则转入步骤 S201 ; 若网络连接中断, 则转入 步骤 S202。 It should be noted that, in the recording strategy in this embodiment, the central platform management server needs to record video, and the recording strategy is used to indicate that the media stream is recorded. When the video recording needs to be performed, the front-end device is in the normal network. At this time, the obtained media stream is transmitted to the platform storage device, and when the network is interrupted, the media stream is generated to generate a video file and temporarily stored; when the media stream is not required to be recorded, even if the network is normal, it is not required Transfer the media stream to the platform storage device. The specific process is shown in Figure 2: [53] In step S200, it is detected whether the network is normal. Specifically, the front-end device detects whether the network connection between the network and the system is normal. If the network connection is normal, the process proceeds to step S201; if the network connection is interrupted, the process proceeds to step S202.
[54] 在步骤 S201, 根据录像策略, 在网络正常吋, 向平台存储设备传输其获取的媒 体流; 具体地, 前端设备根据录像策略, 在与系统的网络连接正常吋, 向系统 的平台存储设备实吋传输其获取的媒体流, 所述媒体流是前端设备通过自身或 从其它的监控设备获取的。 前端设备在网络连接正常吋直接将获取的媒体流发 送给平台存储设备, 自身不对媒体流进行处理。  [54] In step S201, according to the recording policy, after the network is normal, the media stream obtained by the network storage device is transmitted to the platform storage device; specifically, the front-end device stores the network with the system according to the recording policy, and stores the data to the platform of the system. The device actually transmits the media stream it acquires, and the media stream is obtained by the front-end device by itself or from other monitoring devices. The front-end device directly sends the obtained media stream to the platform storage device after the network connection is normal, and does not process the media stream itself.
[55] 在步骤 S202, 在网络中断吋, 暂存根据网络中断期间的媒体流生成的录像文件 ; 具体地, 前端设备在与系统的网络连接中断吋, 前端设备将网络中断期间所 获取的媒体流生成录像文件, 暂吋存储在该前端设备上; 进一步地, 还可以根 据所述录像文件, 生成对应的索引信息。  [55] In step S202, during the network interruption, temporarily storing the video file generated according to the media stream during the network interruption; specifically, when the front-end device is disconnected from the network of the system, the front-end device acquires the media during the network interruption. The stream generation video file is temporarily stored on the front end device; further, corresponding index information may be generated according to the video file.
[56] 在步骤 S203 , 在网络恢复正常后, 将文件存储模块暂存的录像文件提供给平台 存储设备进行备份。  [56] In step S203, after the network is restored to normal, the video file temporarily stored by the file storage module is provided to the platform storage device for backup.
[57] 实施本发明实施例提供的录像文件备份方法, 可以在网络正常吋候, 将媒体流 实吋传输到平台存储设备上备份, 避免频繁使用前端设备的存储空间, 在网络 中断期间由前端设备暂存录像文件, 并在网络恢复正常后, 根据预置的备份策 略, 自动将网络中断期间的录像文件从前端设备备份到平台存储设备上, 方便 用户操作使用。  [57] The method for backing up the video file provided by the embodiment of the present invention can transmit the media stream to the platform storage device for backup during the normal operation of the network, so as to avoid frequent use of the storage space of the front-end device, and the front end during the network interruption period. The device temporarily stores the video file, and after the network is restored to normal, the video file during the network interruption is automatically backed up from the front-end device to the platform storage device according to the preset backup policy, which is convenient for the user to operate.
[58] 在本发明实施例中, 前端设备在网络中断期间暂存录像文件, 在网络恢复正常 后, 根据预置的备份策略将录像文件发送到平台存储设备进行备份, 在具体实 现的吋候, 预置备份策略具体流程参见图 3:  [58] In the embodiment of the present invention, the front-end device temporarily stores the video file during the network interruption, and after the network is restored to normal, the video file is sent to the platform storage device for backup according to the preset backup policy, in a specific implementation manner. For the specific process of the preset backup strategy, see Figure 3:
[59] 在步骤 S300, 用户登录到系统管理客户端, 进入添加前端设备备份策略窗口, 用户可以通过系统管理客户端提供的窗口选择备份策略。 用户选定具体的前端 录像备份策略后提交。  [59] In step S300, the user logs in to the system management client, enters the add front-end device backup policy window, and the user can select the backup policy through the window provided by the system management client. The user submits a specific front-end video backup strategy.
[60] 在步骤 S301,  [60] In step S301,
系统管理客户端将用户选定的备份策略及相关信息写入添加前端设备备份策略 请求中, 提交到系统管理后台服务器。 添加前端设备备份策略请求包括前端设 备标识和该前端设备对应的备份策略。 备份策略包括: 禁止备份、 定吋备份、 闲吋备份等各种类型。 若釆用定吋备份吋, 提交的信息中还包括备份策略对应 的起始和结束吋间, 且系统只在备份策略规定是吋间段内对网络中断期间的录 像文件进行备份; 若釆用闲吋备份, 则系统只在前端设备没有被视频浏览和录 像吋才会启动备份任务, 并且在执行备份吋, 如果有视频浏览或录像吋, 立即 停止备份; 若釆用禁止备份, 则系统选择丢弃网络中断期间的录像文件。 The system management client writes the backup policy and related information selected by the user to the add-end device backup policy request, and submits it to the system management background server. Add front-end device backup policy request including front-end settings The backup ID and the backup policy corresponding to the front-end device. Backup strategies include: Prohibit backups, fixed backups, free backups, and more. If you use the backup file, the submitted information also includes the start and end time of the backup policy, and the system only backs up the video files during the network interruption during the backup policy. For leisure backup, the system will only start the backup task after the front-end device is not being browsed and recorded by video, and after performing the backup, if there is video browsing or video recording, stop the backup immediately; if the backup is prohibited, the system selects Discard the video files during the network interruption.
[61] 在步骤 S302, 系统管理后台服务器接收到添加前端设备备份策略请求后, 将备 份策略的相关信息写入到中心平台管理服务器的数据库中。  [61] In step S302, after receiving the request for adding the front-end device backup policy, the system management background server writes the information about the backup policy to the database of the central platform management server.
[62] 在步骤 S303 , 系统管理后台服务器将备份策略添加结果反馈到系统管理客户端 [62] In step S303, the system management background server feeds back the backup policy addition result to the system management client.
[63] 在步骤 S304, 系统管理客户端根据系统管理后台服务器反馈的结果提示用户。 [63] In step S304, the system management client prompts the user according to the result of the system management background server feedback.
[64] 本发明实施例提供的预置备份策略的方法简单易行, 方便用户操作使用, 在本 发明实施例中, 还提供了多种具体的备份策略, 供用户根据自身需要灵活选择In the embodiment of the present invention, a plurality of specific backup policies are provided for the user to flexibly select according to their own needs.
, 并且通过预置备份策略, 使得前端设备的录像文件可以自动备份到平台存储 设备上, 能够保证录像文件不丢失。 And the preset backup policy enables the video files of the front-end device to be automatically backed up to the platform storage device, so that the video files are not lost.
[65] 参见图 4, 为本发明提供的录像文件备份的控制方法又一实施例流程示意图。 [65] Referring to FIG. 4, it is a schematic flowchart of still another embodiment of a method for controlling backup of a video file provided by the present invention.
本实施例将着重说明平台存储设备对录像文件的处理流程, 可以提高平台存储 设备中录像文件的连续性, 减少冗余。  This embodiment will focus on the processing flow of the platform storage device to the video file, which can improve the continuity of the video file in the platform storage device and reduce redundancy.
[66] 本实施例提供的录像文件备份的控制方法具体流程如图 4所示: [66] The specific process of the video file backup control method provided in this embodiment is shown in FIG. 4:
[67] 在步骤 S400, 中心平台管理服务器定吋发送査询请求, 査询前端设备上的索引  [67] In step S400, the central platform management server determines to send a query request to query an index on the front end device.
Ι π Λ∑!、。  Ι π Λ∑! ,.
[68] 在步骤 S401, 前端设备根据査询请求, 向中心平台管理服务器反馈索引信息。  [68] In step S401, the front-end device feeds back the index information to the central platform management server according to the query request.
可选地, 前端设备也可以主动向中心平台管理服务器上报其录像文件的索引信 息。  Optionally, the front-end device can also actively report the index information of the video file to the central platform management server.
[69] 在步骤 S402, 中心平台管理服务器通过索引信息, 若发现前端设备中有需要备 份的录像文件后, 建立相应的录像备份任务。  [69] In step S402, the central platform management server passes the index information, and if a video file that needs to be backed up is found in the front-end device, a corresponding video backup task is established.
[70] 在步骤 S403 , 中心平台管理服务器根据预置的备份策略, 向平台存储设备下发 录像备份任务。 [71] 在步骤 S404, 平台存储设备在收到录像备份任务后, 对前端设备录像文件的索 引信息进行重叠检测, 判断录像备份任务中所指的录像文件在平台存储设备中 是否备份。 若确认没有备份, 则执行步骤 S405 ; 若已经备份, 则通知中心平台 管理服务器该录像文件已备份, 使中心平台管理服务器通知前端设备删除该录 像文件及对应的索引信息。 [70] In step S403, the central platform management server delivers a video backup task to the platform storage device according to the preset backup policy. [71] In step S404, after receiving the video backup task, the platform storage device performs overlap detection on the index information of the video file of the front-end device, and determines whether the video file referred to in the video backup task is backed up in the platform storage device. If it is confirmed that there is no backup, step S405 is performed; if it has been backed up, the central platform management server is notified that the video file has been backed up, so that the central platform management server notifies the front-end device to delete the video file and the corresponding index information.
[72] 在步骤 S405 , 平台存储设备向中心平台管理服务器发送录像备份请求。  [72] In step S405, the platform storage device sends a video backup request to the central platform management server.
[73] 在步骤 S406 , 中心平台管理服务器向前端设备转发录像备份请求。  [73] In step S406, the central platform management server forwards the video backup request to the front end device.
[74] 在步骤 S407 , 前端设备收到录像备份请求后, 向中心平台管理服务器发送路由 请求, 请求获取从该前端设备到平台存储设备的路由。  [74] In step S407, after receiving the video backup request, the front-end device sends a routing request to the central platform management server to request to obtain a route from the front-end device to the platform storage device.
[75] 在步骤 S408 , 中心平台管理服务器收到前端设备发送的路由请求后, 即向该前 端设备发送相应的备份路由。  [75] In step S408, after receiving the routing request sent by the front-end device, the central platform management server sends a corresponding backup route to the front-end device.
[76] 在步骤 S409 , 前端设备收到所述备份路由, 向中心平台管理服务器发送备份响 应, 表明自身已做好发送录像文件的准备。  [76] In step S409, the front-end device receives the backup route, and sends a backup response to the central platform management server, indicating that it is ready to send the video file.
[77] 在步骤 S410, 中心平台管理服务器向平台存储设备转发备份响应, 通知平台存 储设备做好接收录像文件的准备。  [77] In step S410, the central platform management server forwards the backup response to the platform storage device, and notifies the platform storage device to prepare for receiving the video file.
[78] 在步骤 S411 , 前端设备向平台存储设备发送需要备份的录像文件。 前端设备在 完成录像文件的发送后, 从自身存储卡上删除该录像文件及其对应的索引信息  [78] In step S411, the front end device sends the video file to be backed up to the platform storage device. After the front-end device finishes transmitting the video file, the video file and its corresponding index information are deleted from the memory card.
[79] 在步骤 S412, 平台存储设备收到录像文件后, 将该录像文件与平台存储设备上 已有的录像文件进行比对, 合并录像文件中重叠的部分后保存, 使平台存储设 备上的录像文件完整而连续。 [79] In step S412, after receiving the video file, the platform storage device compares the video file with the existing video file on the platform storage device, and merges the overlapping portions of the video file to save the data on the platform storage device. The video file is complete and continuous.
[80] 本发明实施例提供的录像文件备份的控制方法, 在网络恢复正常后, 根据预置 的备份策略, 自动将网络中断期间的录像文件从前端设备备份到平台存储设备 上, 方便用户操作使用, 而且本实施例通过对索引信息的重叠检测, 和对录像 文件重叠部分的合并, 使平台存储设备上的录像文件完整而连续, 用户调用、 浏览更加方便, 同吋减少了平台存储设备上的冗余录像文件。  [80] The method for controlling backup of a video file provided by the embodiment of the present invention automatically backs up the video file during the network interruption from the front-end device to the platform storage device according to the preset backup policy after the network is restored to normal, facilitating user operation. In the embodiment, the overlapping detection of the index information and the overlapping of the overlapping portions of the recording file enable the recording file on the platform storage device to be complete and continuous, and the user calls and browses more conveniently, and the platform storage device is reduced. Redundant video files.
[81] 参见图 5, 为本发明提供的录像文件备份系统实施例结构示意图。 如图所示, 该系统包括: 前端设备 1, 中心平台管理服务器 2和平台存储设备 3: [82] 前端设备 1, 根据录像策略, 在与所述录像文件备份系统之间的网络连接正常 吋, 向平台存储设备 3实吋传输其获取的媒体流, 且该前端设备 1不对该媒体流 进行其它处理; 在前端设备 1与所述录像文件备份系统之间的网络中断吋, 暂存 根据网络中断期间的媒体流生成的录像文件, 并在网络恢复正常后, 将暂存的 录像文件提供给平台存储设备 3进行备份。 [81] Referring to FIG. 5, it is a schematic structural diagram of an embodiment of a video file backup system provided by the present invention. As shown, the system includes: a front end device 1, a central platform management server 2, and a platform storage device 3: [82] The front-end device 1 transmits the obtained media stream to the platform storage device 3 after the network connection with the video file backup system is normal according to the recording policy, and the front-end device 1 does not use the media stream. Performing other processing; after the network interruption between the front-end device 1 and the video file backup system, temporarily storing the video file generated according to the media stream during the network interruption, and providing the temporarily stored video file after the network returns to normal Back up the platform storage device 3.
[83] 中心平台管理服务器 2定吋获得前端设备 1上的索引信息, 若通过该索引信息, 发现该前端设备 1上有需要备份的录像文件, 则建立相应地录像备份任务, 并根 据预置的备份策略, 向平台存储设备 3下发该录像备份任务。  [83] The central platform management server 2 determines to obtain the index information on the front-end device 1. If the index information is found, the front-end device 1 has a video file to be backed up, and a corresponding video backup task is established, and according to the preset The backup policy is to deliver the video backup task to the platform storage device 3.
[84] 平台存储设备 3收到中心平台管理服务器 2下发的录像备份任务后, 向前端设备 1发送录像备份请求, 并接收前端设备 1发送的相应录像文件进行备份。  [84] After receiving the video backup task delivered by the central platform management server 2, the platform storage device 3 sends a video backup request to the front-end device 1 and receives the corresponding video file sent by the front-end device 1 for backup.
[85] 本发明实施例提供的录像文件备份系统, 不仅改善了前端设备对其获取的媒体 流的处理方式, 减少前端设备存储卡的使用频率, 延长存储卡的使用寿命, 而 且该系统可以根据预置的备份策略, 自动获取网络中断期间的录像文件, 无需 手动备份, 方便用户的操作使用。  The video file backup system provided by the embodiment of the invention not only improves the processing mode of the media stream acquired by the front-end device, reduces the frequency of use of the memory card of the front-end device, and prolongs the service life of the memory card, and the system can be The preset backup strategy automatically acquires the video files during the network interruption, without manual backup, which is convenient for users to operate.
[86] 参见图 6, 为本发明提供的前端设备实施例结构示意图, 如图所示:  [86] FIG. 6 is a schematic structural diagram of an embodiment of a front-end device provided by the present invention, as shown in the following figure:
[87] 网络检测模块 10, 用于检测网络是否正常;  [87] The network detection module 10 is configured to detect whether the network is normal;
[88] 媒体流传输模块 11, 用于根据录像策略, 在网络正常吋, 向平台存储设备传输 其获取的媒体流;  [88] The media stream transmission module 11 is configured to: according to the recording policy, transmit the media stream obtained by the media storage device to the platform storage device after the network is normal;
[89] 文件存储模块 12, 用于在网络中断吋, 暂存根据网络中断期间的媒体流生成的 录像文件;  [89] a file storage module 12, configured to temporarily store a video file generated according to a media stream during a network interruption during network interruption;
[90] 文件传输模块 13, 用于在网络恢复正常后, 将文件存储模块 12暂存的录像文件 提供给平台存储设备进行备份。  [90] The file transfer module 13 is configured to provide the temporary storage file of the file storage module 12 to the platform storage device for backup after the network is restored.
[91] 实施本发明实施例提供的前端设备, 可以在网络正常吋候, 将媒体流实吋传输 到平台存储设备上备份, 避免频繁使用前端设备的存储空间, 在网络中断期间 由前端设备暂存录像文件, 并在网络恢复正常后, 自动将网络中断期间的录像 文件从前端设备备份到平台存储设备上, 方便用户操作使用。  The front-end device provided by the embodiment of the present invention can transmit the media stream to the platform storage device for backup during the normal operation of the network, so as to avoid frequent use of the storage space of the front-end device, and the front-end device temporarily pauses during the network interruption period. The video file is saved, and after the network is restored to normal, the video file during the network interruption is automatically backed up from the front-end device to the platform storage device, which is convenient for the user to operate.
[92] 参见图 7, 为本发明中前端设备又一实施例的结构示意图。  [92] FIG. 7 is a schematic structural view of still another embodiment of a front end device according to the present invention.
[93] 本实施例提供的前端设备, 除了具有图 6所示的前端设备相同的结构和功能外 , 还包括: [93] The front-end device provided in this embodiment has the same structure and function as the front-end device shown in FIG. , Also includes:
[94] 索引生成模块 14, 用于根据前端设备的文件存储模块 12在网络中断期间暂吋存 储的录像文件, 建立对应的索引信息, 使中心平台管理服务器根据该索引信息 , 建立相应的录像备份任务。  [94] The index generating module 14 is configured to establish corresponding index information according to the video file temporarily stored by the file storage module 12 of the front-end device during the network interruption, so that the central platform management server establishes a corresponding video backup according to the index information. task.
[95] 更为具体的, 前端设备的文件存储模块 12根据网络中断期间获取的媒体流, 生 成对应的录像文件进行存储, 索引生成模块 14根据录像文件建立对应的索弓 I信 息。 若网络在一个吋间段内有多次中断, 则前端设备生成多个录像文件, 则索 引生成模块 14建立的索引信息中有多条录像文件的相关信息, 包括各个录像文 件的起止吋间, 大小等, 主要目的是方便其它相关设备判断该录像文件是否没 有备份。  [95] More specifically, the file storage module 12 of the front-end device generates a corresponding video file for storage according to the media stream acquired during the network interruption, and the index generating module 14 establishes corresponding information according to the video file. If the network has multiple interruptions in a network, the front-end device generates a plurality of video files, and the index information generated by the index generation module 14 has information about multiple video files, including the start and end time of each video file. Size, etc., the main purpose is to facilitate other related devices to determine whether the video file is not backed up.
[96] 可选的, 前端设备还可以包括:  [96] Optionally, the front end device may further include:
[97] 信息交互模块 15, 用于接收中心平台管理服务器发送的录像备份请求, 该录像 备份请求是中心平台管理服务器根据备份策略向平台存储设备下发备份任务, 并接收到来自平台存储服务器的录像备份请求后发起的。  [97] The information interaction module 15 is configured to receive a video backup request sent by the central platform management server, where the video backup request is sent by the central platform management server to the platform storage device according to the backup policy, and received from the platform storage server. Initiated after the video backup request.
[98] 更为具体的, 中心平台管理服务器若通过前端设备的索引信息, 发现有需要备 份的录像文件, 就会向平台存储设备发送录像备份任务。 平台存储设备经过对 索引信息的重叠检测, 确认该录像文件需要备份后, 向中心平台管理服务器发 送录像备份请求, 中心平台管理服务器向前端设备转发此录像备份请求, 即通 知前端设备将对应的录像文件发送给平台存储设备。  [98] More specifically, if the central platform management server finds a video file that needs to be backed up through the index information of the front-end device, it will send a video backup task to the platform storage device. After the platform storage device overlaps the index information, it confirms that the video file needs to be backed up, and sends a video backup request to the central platform management server. The central platform management server forwards the video backup request to the front-end device, that is, notifies the front-end device to record the corresponding video. The file is sent to the platform storage device.
[99] 路由获取模块 16, 用于在信息交互模块 15收到录像备份请求后, 向中心平台管 理服务器获取备份路由。 更为具体的, 路由获取模块 16在信息交互模块 15收到 录像备份请求后, 向中心平台管理服务器发送路由请求, 中心平台管理服务器 在收到此请求后, 向前端设备反馈该前端设备到平台存储设备的备份路由, 此 备份路由即为前端设备向平台存储设备发送录像文件的路由。  [99] The route obtaining module 16 is configured to obtain a backup route from the central platform management server after the information interaction module 15 receives the video backup request. More specifically, after receiving the video backup request, the information obtaining module 16 sends a routing request to the central platform management server, and after receiving the request, the central platform management server feeds back the front-end device to the platform to the front-end device. A backup route of the storage device. This backup route is the route that the front-end device sends video files to the platform storage device.
[100] 所述文件传输模块 13, 用于根据路由获取模块 12获取的备份路由, 向平台存储 设备发送相应的录像文件。  [100] The file transmission module 13 is configured to send a corresponding video file to the platform storage device according to the backup route obtained by the route obtaining module 12.
[101] 需要说明的是, 该路由获取模块 16是可选的, 由路由获取模块 16向中心平台管 理服务器获取路由, 前端设备可以根据提供的录像备份路由, 将相应的录像文 件发送给所述平台存储设备进行备份。 中心平台管理服务器可以提供不同的路 由, 使得前端设备可以更加灵活的选择平台存储设备来备份录像文件。 前端设 备也可以不用请求路由信息, 只需要利用自身存储的路由信息, 将网络中断期 间暂存的录像文件发送给平台存储设备进行备份, 从而提高备份录像文件的效 率。 [101] It should be noted that the route obtaining module 16 is optional, and the route obtaining module 16 obtains a route from the central platform management server, and the front-end device can perform corresponding video recording according to the provided video backup route. The pieces are sent to the platform storage device for backup. The central platform management server can provide different routes, so that the front-end device can more flexibly select the platform storage device to back up the video files. The front-end device can also use the routing information stored in the front-end device to send the recording file temporarily stored during the network interruption to the platform storage device for backup, thereby improving the efficiency of the backup video file.
[102] 本发明实施例提供的前端设备, 可以根据其存储的录像文件, 生成对应的索引 信息, 供中心平台管理服务器査询; 且该前端设备在收到录像备份请求, 并获 取备份路由之后, 自动将相应的录像文件发送给平台存储设备进行备份, 无需 用户手动备份, 方便用户操作。  The front-end device provided by the embodiment of the present invention may generate corresponding index information according to the stored video file for the central platform management server to query; and the front-end device receives the video backup request and obtains the backup route. , automatically send the corresponding video file to the platform storage device for backup, without the need for manual backup by the user, which is convenient for the user to operate.
[103] 参见图 8, 为本发明提供的录像文件备份的控制装置实施例结构示意图, 如图 所示, 该装置包括:  [103] FIG. 8 is a schematic structural diagram of an embodiment of a control device for backing up a video file according to the present invention. As shown in the figure, the device includes:
[104] 获得模块 21, 用于获得前端设备在网络中断期间暂存的录像文件的索引信息; 在具体实现的吋候, 可以通过向前端设备主动査询的方式获得前端设备在网络 中断期间暂存的录像文件的索引信息, 也可以通过接收前端设备主动上报信息 的方式获得前端设备在网络中断期间暂存的录像文件的索引信息。  [104] The obtaining module 21 is configured to obtain index information of the video file temporarily stored by the front-end device during the network interruption; during the specific implementation, the front-end device may obtain the temporary interrupt during the network interruption by actively querying the front-end device. The index information of the stored video file may also obtain the index information of the video file temporarily stored by the front-end device during the network interruption by receiving the information reported by the front-end device.
[105] 在网络一直没有中断的情况下, 前端设备的索引信息应该为空, 若网络在一个 吋间段内出现多次中断的情况, 则索引信息中应有多份录像文件信息, 分别对 应每次网络中断吋的录像文件。  [105] In the case that the network has not been interrupted, the index information of the front-end device should be empty. If the network has multiple interruptions in one inter-segment, the index information should have multiple video file information, corresponding to each. The video file of each network interruption.
[106] 处理模块 22, 根据所述索引信息, 建立相应地录像备份任务, 并根据预置的备 份策略, 向平台存储设备下发所述录像备份任务; 以使所述前端设备在网络恢 复正常后, 将网络中断期间暂存的录像文件发送给所述平台存储设备进行备份  [106] The processing module 22, according to the index information, establish a corresponding video backup task, and deliver the video backup task to the platform storage device according to the preset backup policy, so that the front-end device returns to normal in the network. After that, the video file temporarily stored during the network interruption is sent to the platform storage device for backup.
[107] 具体的, 当获得模块 21发现前端设备的索引信息中有录像文件的相关信息记录 , 即说明网络出现过中断, 网络中断期间的录像文件暂存储在前端设备上。 此 吋处理模块 22根据预置的备份策略, 向平台存储设备下发录像备份任务。 若该 前端设备对应的备份策略是定吋备份, 则处理模块 22需等到该定吋备份策略规 定的吋间段, 才能向平台存储设备下发录像备份任务; 若前端设备对应的是闲 吋备份策略, 则处理模块 22只在前端设备没有被视频浏览和录像吋才会向平台 存储设备下发录像备份任务, 并且在平台存储设备对录像文件进行备份过程中 , 如果前端设备上有视频浏览或录像吋, 立即停止备份。 [107] Specifically, when the obtaining module 21 finds that the index information of the front-end device has the related information record of the video file, that is, the network is interrupted, and the video file during the network interruption is temporarily stored on the front-end device. The processing module 22 sends a video backup task to the platform storage device according to the preset backup policy. If the backup policy corresponding to the front-end device is a backup, the processing module 22 needs to wait until the time interval specified by the backup policy to deliver the video backup task to the platform storage device; if the front-end device corresponds to the idle backup The policy, the processing module 22 only goes to the platform after the front-end device is not being browsed and recorded by the video. The storage device sends a video backup task, and during the backup process of the video storage file on the platform storage device, if there is video browsing or video recording on the front-end device, the backup is stopped immediately.
[108] 可选的, 该录像文件备份的控制装置还可以包括:  [108] Optionally, the control device for backing up the video file may further include:
[109] 路由模块 23, 用于在收到前端设备发送的路由请求后, 向该前端设备发送备份 路由。 该备份路由即为前端设备与平台存储设备之间的路由, 前端设备可以通 过该备份路由, 将录像文件发送给平台存储设备。  [109] The routing module 23 is configured to send a backup route to the front-end device after receiving the routing request sent by the front-end device. The backup route is the route between the front-end device and the platform storage device. The front-end device can send the video file to the platform storage device through the backup route.
[110] 本发明实施例提供的录像文件备份的控制装置, 可以是中心平台管理服务器, 或位于中心平台管理服务器中。  The control device for backing up the recorded file provided by the embodiment of the present invention may be a central platform management server or located in the central platform management server.
[111] 本发明实施例提供的录像文件备份的控制装置, 通过定吋査询等方式能够发现 需要备份的录像文件, 并根据预置的备份策略控制平台存储设备对该录像文件 进行备份。 实施本发明实施例提供的装置, 可以使监控网络在网络中断恢复后 , 根据预置的备份策略, 自动将网络中断期间的录像文件从前端设备备份到平 台存储设备上, 无须用户手动备份, 方便用户操作使用。  The control device for backing up the video file provided by the embodiment of the present invention can discover the video file to be backed up by means of a fixed query, and control the platform storage device to back up the video file according to the preset backup policy. By implementing the device provided by the embodiment of the present invention, after the network interruption is resumed, the monitoring network automatically backs up the recording file during the network interruption from the front-end device to the platform storage device according to the preset backup policy, without manual backup by the user. User operation.
[112] 参见图 9, 为本发明提供的平台存储设备实施例结构示意图, 如图所示, 该平 台存储设备包括:  [112] FIG. 9 is a schematic structural diagram of an embodiment of a platform storage device according to the present invention. As shown in the figure, the platform storage device includes:
[113] 信息交互模块 30, 用于接收中心平台管理服务器根据备份策略下发的录像备份 任务。 该录像备份任务中包括指示待备份录像文件在哪个前端设备、 该录像文 件的起止信息等基本信息。  [113] The information interaction module 30 is configured to receive a video backup task delivered by the central platform management server according to the backup policy. The video backup task includes basic information indicating which front-end device of the video file to be backed up and the start and end information of the video file.
[114] 备份请求模块 31, 用于根据信息交互模块 30接收的录像备份任务, 向中心平台 管理服务器发送录像备份请求。 [114] The backup request module 31 is configured to send a video backup request to the central platform management server according to the video backup task received by the information interaction module 30.
[115] 文件存储模块 32, 用于存储来自前端设备的, 与备份请求模块 31发送的备份请 求对应的录像文件。 [115] The file storage module 32 is configured to store a video file corresponding to the backup request sent by the backup request module 31 from the front end device.
[116] 实施本发明实施例提供的平台存储设备, 可以根据中心平台管理服务器下发的 录像备份任务, 主动向前端设备获取录像文件进行备份, 避免了现有技术中, 在网络中断后, 必须有用户到前端设备手动获取录像文件带来的繁琐操作, 方 便用户使用。  The platform storage device provided by the embodiment of the present invention can obtain the video file for backup to the front-end device according to the video backup task delivered by the central platform management server, thereby avoiding the prior art, after the network is interrupted, There is a cumbersome operation brought by the user to the front-end device to manually obtain the video file, which is convenient for the user to use.
[117] 参见图 10, 为本发明提供的平台存储设备又一实施例结构示意图, 本实施例提 供的平台存储设备与如图 9所示的平台存储设备不同之处在于, 本实施例提供的 平台存储设备, 在获取前端设备的录像文件后, 还将对其重叠部分进行合并, 使录像文件连续完整, 减少平台存储设备上的冗余录像文件。 如图 10所示, 该 平台存储设备不仅包括如图 9所示的信息交互模块 30、 备份请求模块 31、 文件存 储模块 32, 还包括: [117] FIG. 10 is a schematic structural diagram of another embodiment of a platform storage device according to the present invention. The platform storage device provided in this embodiment is different from the platform storage device shown in FIG. 9 in that the present embodiment provides After acquiring the video files of the front-end devices, the platform storage device will also merge the overlapping portions to make the video files continuous and complete, and reduce redundant video files on the platform storage devices. As shown in FIG. 10, the platform storage device includes not only the information interaction module 30, the backup request module 31, and the file storage module 32, as shown in FIG. 9, but also includes:
[118] 重叠检测模块 33, 用于根据所述信息交互模块 30接收的录像备份任务, 对相应 前端设备中的索引信息进行重叠检测。 重叠检测模块 33根据录像备份任务中携 带的待备份录像文件的基本信息, 如录像吋间、 前端设备标识等, 确定前端设 备中的录像文件是否没有在文件存储模块 32中备份。 如果重叠检测模块 33发现 待备份录像文件已经在文件存储模块 32中存在, 则重叠检测模块 33通过信息交 互模块 30, 通知中心平台管理服务器该录像文件已经在平台存储设备上备份, 中心平台管理服务器收到此通知后, 通知前端设备该录像文件已备份, 由前端 设备从自身的存储卡上将该录像文件删除。  [118] The overlap detection module 33 is configured to perform overlap detection on the index information in the corresponding front-end device according to the video backup task received by the information interaction module 30. The overlap detection module 33 determines whether the video files in the front-end device are not backed up in the file storage module 32 according to the basic information of the video files to be backed up in the video backup task, such as the video recording time, the front-end device identifier, and the like. If the overlap detection module 33 finds that the video file to be backed up has been stored in the file storage module 32, the overlap detection module 33 notifies the central platform management server that the video file has been backed up on the platform storage device through the information interaction module 30, and the central platform management server After receiving this notification, the front-end device is notified that the video file has been backed up, and the video file is deleted by the front-end device from its own memory card.
[119] 文件处理模块 34, 用于将所述文件存储模块 32中已有的录像文件与平台存储设 备接收的录像文件的重叠部分进行合并。 文件存储模块 32可以已经存储有前端 设备发送的录像文件中的一部分内容, 因此文件处理模块 34对新接收的录像文 件都进行检测, 判断是否存在重叠部分, 比如可以通过新接收的录像文件的吋 间, 与文件存储模块 32中已有录像文件的吋间是否重叠判断是否存在重叠部分[119] The file processing module 34 is configured to merge the existing video files in the file storage module 32 with the overlapping portions of the video files received by the platform storage device. The file storage module 32 may already store a part of the content of the video file sent by the front-end device. Therefore, the file processing module 34 detects the newly received video file to determine whether there is an overlapping portion, for example, the newly received video file. Whether it overlaps with the time of the existing video file in the file storage module 32 to determine whether there is an overlapping portion
, 若存在, 则对重叠部分进行合并, 合并后再交由文件存储模块 32存储。 If it exists, the overlapping parts are merged, and then merged and then stored by the file storage module 32.
[120] 本发明实施例提供的平台存储设备, 不仅可以根据中心平台管理服务器下发的 录像文件备份任务, 主动向前端设备获取录像文件进行备份, 而且可以将录像 文件的重叠部分进行合并, 使录像文件完整、 连续, 既方便用户査询浏览, 又 可以减少平台存储设备上的录像文件冗余。 The platform storage device provided by the embodiment of the present invention can not only obtain the video file backup for the front-end device according to the backup task of the video file delivered by the central platform management server, but also can merge the overlapping portions of the video file. The video files are complete and continuous, which is convenient for users to browse and browse, and can reduce the redundancy of video files on the platform storage device.
[121] 通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到本发明可借 助软件加必需的硬件平台的方式来实现, 当然也可以全部通过硬件来实施。 基 于这样的理解, 本发明的技术方案对背景技术做出贡献的全部或者部分可以以 软件产品的形式体现出来, 该计算机软件产品可以存储在存储介质中, 如 ROM/ RAM、 磁碟、 光盘等, 包括若干指令用以使得一台计算机设备 (可以是个人计 算机, 服务器, 或者网络设备等) 执行本发明各个实施例或者实施例的某些部 分所述的方法。 Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary hardware platform, and of course, can also be implemented entirely by hardware. Based on such understanding, all or part of the technical solution of the present invention contributing to the background art may be embodied in the form of a software product, which may be stored in a storage medium such as a ROM/RAM, a magnetic disk, an optical disk, or the like. Including a number of instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform portions of various embodiments or embodiments of the present invention The method described.
以上所揭露的仅为本发明一种较佳实施例而已, 当然不能以此来限定本发明之 权利范围, 因此依本发明权利要求所作的等同变化, 仍属本发明所涵盖的范围  The above disclosure is only a preferred embodiment of the present invention, and of course, the scope of the present invention is not limited thereto, and thus equivalent changes made in accordance with the claims of the present invention are still within the scope of the present invention.

Claims

权利要求书 Claim
[1] 一种录像文件备份的控制方法, 其特征在于, 包括:  [1] A method for controlling backup of a video file, comprising:
获得前端设备在网络中断期间暂存的录像文件的索引信息; 根据所述索引信息, 建立相应的录像备份任务;  Obtaining index information of the video file temporarily stored by the front-end device during the network interruption; establishing a corresponding video backup task according to the index information;
根据预置的备份策略, 向平台存储设备下发所述录像备份任务; 以使所述 前端设备在网络恢复正常后, 将网络中断期间暂存的录像文件发送给所述 平台存储设备进行备份。  And sending the video backup task to the platform storage device according to the preset backup policy, so that the front-end device sends the video file temporarily stored during the network interruption to the platform storage device for backup after the network is restored.
[2] 如权利要求 1所述的录像文件备份的控制方法, 其特征在于, 在向平台存储 设备下发所述录像备份任务之后, 还包括:  [2] The method for controlling the backup of the recorded file according to claim 1, wherein after the recording the backup task to the platform storage device, the method further includes:
向所述前端设备提供录像备份路由, 以使所述前端设备根据所述录像备份 路由, 在网络恢复正常后将相应的录像文件发送给所述平台存储设备进行 备份。  Providing a video backup route to the front-end device, so that the front-end device sends a corresponding video file to the platform storage device for backup after the network is restored according to the video backup route.
[3] 如权利要求 1所述的录像文件备份的控制方法, 其特征在于, 所述方法还包 括:  [3] The method for controlling backup of a recorded file according to claim 1, wherein the method further comprises:
制定录像策略, 所述录像策略使所述前端设备在网络正常吋向所述平台存 储设备实吋传输其获取的媒体流, 在网络中断吋, 存储根据网络中断期间 的媒体流生成的录像文件。  A recording strategy is established. The recording strategy enables the front-end device to actually transmit the obtained media stream to the platform storage device after the network is normal. After the network is interrupted, the video file generated according to the media stream during the network interruption is stored.
[4] 如权利要求 1-3任一项所述的录像文件备份的控制方法, 其特征在于, 在网 络恢复前, 还包括: [4] The method for controlling backup of a video file according to any one of claims 1 to 3, further comprising: before the network is restored, further comprising:
通过系统管理客户端预置备份策略, 所述备份策略为备份所述前端设备在 网络中断期间存储的录像文件的方式。  The backup policy is configured by the system management client, and the backup policy is a manner of backing up the video files stored by the front-end device during the network interruption.
[5] 如权利要求 2所述的录像文件备份的控制方法, 其特征在于, 所述向所述前 端设备提供录像备份路由包括: [5] The method for controlling the backup of the recorded file according to claim 2, wherein the providing the backup backup route to the front end device comprises:
接收所述前端设备发送的路由请求;  Receiving a routing request sent by the front end device;
根据所述路由请求向所述前端设备发送备份路由。  And sending a backup route to the front end device according to the routing request.
[6] 一种录像文件备份方法, 其特征在于, 包括: [6] A video file backup method, comprising:
检测网络是否正常;  Check if the network is normal;
根据录像策略, 在网络正常吋, 向平台存储设备传输其获取的媒体流; 在网络中断吋, 暂存根据网络中断期间的媒体流生成的录像文件; 在网络恢复正常后, 将所述暂存的录像文件提供给平台存储设备进行备份 According to the recording strategy, after the network is normal, the media stream obtained by the platform storage device is transmitted; After the network is interrupted, the video file generated according to the media stream during the network interruption is temporarily stored; after the network is restored to normal, the temporarily stored video file is provided to the platform storage device for backup.
[7] 一种前端设备, 其特征在于, 包括: [7] A front-end device, comprising:
网络检测模块, 用于检测网络是否正常;  a network detection module, configured to detect whether the network is normal;
媒体流传输模块, 用于根据录像策略, 在网络正常吋, 向平台存储设备传 输其获取的媒体流;  a media stream transmission module, configured to: according to the video recording policy, transmit the media stream obtained by the network storage device to the platform storage device after the network is normal;
文件存储模块, 用于在网络中断吋, 暂存根据网络中断期间的媒体流生成 的录像文件;  a file storage module, configured to temporarily store a video file generated according to a media stream during a network interruption during network interruption;
文件传输模块, 用于在网络恢复正常后, 将文件存储模块暂存的录像文件 提供给平台存储设备进行备份。  The file transfer module is configured to provide the storage file temporarily stored by the file storage module to the platform storage device for backup after the network is restored.
[8] 如权利要求 7所述的前端设备, 其特征在于, 所述前端设备还包括: [8] The front-end device of claim 7, wherein the front-end device further comprises:
信息交互模块, 用于接收录像备份请求, 所述录像备份请求是中心平台管 理服务器根据备份策略向平台存储设备下发备份任务, 并接收到来自平台 存储设备的录像备份请求后发起的;  The information exchange module is configured to receive a video backup request, where the video backup request is sent by the central platform management server to the platform storage device according to the backup policy, and after receiving the video backup request from the platform storage device;
路由获取模块, 用于在所述信息交互模块接收到录像备份请求后, 向所述 中心平台管理服务器获取备份路由;  a route obtaining module, configured to obtain a backup route from the central platform management server after the information interaction module receives the video backup request;
所述文件传输模块在网络恢复正常后, 根据所述获取的备份路由, 向所述 平台存储设备发送相应的录像文件。  After the network is restored, the file transmission module sends a corresponding video file to the platform storage device according to the acquired backup route.
[9] 如权利要求 7或 8所述的前端设备, 其特征在于, 所述前端设备还包括: 索引生成模块, 用于根据所述文件存储模块暂存的录像文件, 生成对应的 索引信息。 [9] The front-end device according to claim 7 or 8, wherein the front-end device further comprises: an index generating module, configured to generate corresponding index information according to the video file temporarily stored by the file storage module.
[10] 一种录像文件备份的控制装置, 其特征在于, 包括:  [10] A control device for backing up a video file, comprising:
获得模块, 用于获得前端设备在网络中断期间暂存的录像文件的索引信息 处理模块, 根据所述索引信息, 建立相应地录像备份任务, 并根据预置的 备份策略, 向平台存储设备下发所述录像备份任务; 以使所述前端设备在 网络恢复正常后, 将网络中断期间暂存的录像文件发送给所述平台存储设 备进行备份。 The obtaining module, the index information processing module for obtaining the video file temporarily stored by the front-end device during the network interruption, establishing a corresponding recording backup task according to the index information, and delivering the data to the platform storage device according to the preset backup policy The video backup task is configured to: after the network device returns to normal, send the video file temporarily stored during the network interruption to the platform storage device. Prepare for backup.
[11] 如权利要求 10所述的录像文件备份的控制装置, 其特征在于, 所述装置还 包括:  [11] The device for controlling the backup of the recorded file according to claim 10, wherein the device further comprises:
路由模块, 用于在收到所述前端设备发送的路由请求后, 向该前端设备发 送备份路由。  The routing module is configured to send a backup route to the front-end device after receiving the routing request sent by the front-end device.
[12] 如权利要求 10或 11所述的录像文件备份的控制装置, 其特征在于, 所述录 像文件备份的控制装置是中心平台管理服务器, 或位于中心平台管理服务 器中。  [12] The control device for backing up a recorded file according to claim 10 or 11, wherein the control means for backing up the recorded file is a central platform management server or located in a central platform management server.
[13] 一种录像文件备份系统, 其特征在于, 所述系统包括: 前端设备, 平台存 储设备和中心平台管理服务器:  [13] A video file backup system, wherein the system comprises: a front end device, a platform storage device, and a central platform management server:
所述前端设备, 用于根据录像策略, 在网络正常吋, 向所述平台存储设备 传输其获取的媒体流; 在所述网络中断吋, 暂存根据网络中断期间的媒体 流生成的录像文件, 并根据所述录像文件生成索引信息, 在网络恢复正常 后, 将所述录像文件提供给平台存储设备进行备份;  The front-end device is configured to: according to the recording policy, transmit the media stream obtained by the network storage device to the platform storage device after the network is normal; and temporarily store the video file generated according to the media stream during the network interruption during the network interruption, And generating index information according to the video file, and after the network is restored to normal, the video file is provided to the platform storage device for backup;
所述中心平台管理服务器获得所述前端设备中的索引信息, 根据所述索引 信息, 建立相应地录像备份任务, 并根据备份策略, 向平台存储设备下发 所述录像备份任务;  The central platform management server obtains the index information in the front-end device, and establishes a corresponding video backup task according to the index information, and delivers the video backup task to the platform storage device according to the backup policy.
所述平台存储设备收到所述中心平台管理服务器下发的录像备份任务后, 向所述前端设备发送录像备份请求, 并接收相应的录像文件。  After receiving the video backup task sent by the central platform management server, the platform storage device sends a video backup request to the front-end device, and receives a corresponding video file.
PCT/CN2009/071732 2008-11-18 2009-05-11 Headend equipment, video recording file backup method and control method, device and system WO2010057377A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810219202A CN101742197B (en) 2008-11-18 2008-11-18 Front-end equipment, video file backup method and control method, device and system thereof
CN200810219202.X 2008-11-18

Publications (1)

Publication Number Publication Date
WO2010057377A1 true WO2010057377A1 (en) 2010-05-27

Family

ID=42197823

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/071732 WO2010057377A1 (en) 2008-11-18 2009-05-11 Headend equipment, video recording file backup method and control method, device and system

Country Status (2)

Country Link
CN (1) CN101742197B (en)
WO (1) WO2010057377A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747218A (en) * 2014-01-27 2014-04-23 上海朗尚科贸有限公司 Automatic video monitoring storing device
CN105187754A (en) * 2015-08-31 2015-12-23 浙江宇视科技有限公司 Cache replenishment method and device
CN113051428A (en) * 2019-12-28 2021-06-29 浙江宇视科技有限公司 Method and device for storing and backing up front end of camera
WO2023125777A1 (en) * 2021-12-31 2023-07-06 中兴通讯股份有限公司 Video recording data replenishment method, cloud storage server, system and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102227131A (en) * 2011-05-12 2011-10-26 杭州海康威视数字技术股份有限公司 Hot backup system of NVR and method thereof
CN102413302B (en) * 2011-07-29 2018-03-13 中兴通讯股份有限公司 The method and apparatus for back-up processing of being recorded a video in video monitoring, alternate device
CN102572357B (en) * 2011-12-31 2018-03-30 中兴通讯股份有限公司 The storage method and video monitoring system of a kind of video monitoring front-end
CN105141869B (en) * 2015-08-19 2018-12-18 中山市天启智能科技有限公司 Segmentation Video data processing method based on android system
CN111225170B (en) * 2018-11-27 2022-08-23 浙江宇视科技有限公司 Video additional recording method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2888772Y (en) * 2006-03-13 2007-04-11 曹安生 A network video camera with storage function
WO2007058269A1 (en) * 2005-11-18 2007-05-24 Matsushita Electric Industrial Co., Ltd. Network camera, network camera system, monitor method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100791415B1 (en) * 2006-04-26 2008-01-07 동원대학 산학협력단 Data transmission system of security device with web camera
CN101217647A (en) * 2008-01-07 2008-07-09 赵凤济 A wireless network video monitoring system of high mobility and the corresponding control method
CN101216843B (en) * 2008-01-17 2010-09-29 四川格瑞特科技有限公司 Multi-point multi-hop data real time backup method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007058269A1 (en) * 2005-11-18 2007-05-24 Matsushita Electric Industrial Co., Ltd. Network camera, network camera system, monitor method
CN2888772Y (en) * 2006-03-13 2007-04-11 曹安生 A network video camera with storage function

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747218A (en) * 2014-01-27 2014-04-23 上海朗尚科贸有限公司 Automatic video monitoring storing device
CN105187754A (en) * 2015-08-31 2015-12-23 浙江宇视科技有限公司 Cache replenishment method and device
CN105187754B (en) * 2015-08-31 2018-09-14 浙江宇视科技有限公司 A kind of caching amended record method and apparatus
CN113051428A (en) * 2019-12-28 2021-06-29 浙江宇视科技有限公司 Method and device for storing and backing up front end of camera
CN113051428B (en) * 2019-12-28 2024-04-05 浙江宇视科技有限公司 Method and device for back-up storage at front end of camera
WO2023125777A1 (en) * 2021-12-31 2023-07-06 中兴通讯股份有限公司 Video recording data replenishment method, cloud storage server, system and storage medium

Also Published As

Publication number Publication date
CN101742197A (en) 2010-06-16
CN101742197B (en) 2012-10-03

Similar Documents

Publication Publication Date Title
WO2010057377A1 (en) Headend equipment, video recording file backup method and control method, device and system
US10356194B2 (en) Method, system and client for uploading image, network server and computer storage medium
JP5974373B2 (en) System and method for adaptive file delivery using transparency features
JP4098610B2 (en) Access relay device
CN101156407B (en) Method for supplying content through communication network
WO2013078689A1 (en) Method and device for realizing message transfer in cloud message service
KR100772385B1 (en) Method and apparatus for transmitting and receiving content on distributed storage system
CN103164256A (en) Processing method and system capable of achieving one machine supporting high concurrency
US20120150808A1 (en) Method and system for performing data backup and restoration
US20120296946A1 (en) File management apparatus and file management apparatus controlling method
JP2011527054A (en) Adaptive file delivery system and method using link profiles
JP2018505579A (en) Method, server, and terminal device for deleting push information
AU2010278498B2 (en) Method and system for video-recording recovery
JP2003248607A (en) Backup system, program for backup, and backup method
US9003097B2 (en) Information transfer apparatus, information transfer system and information transfer method
CN110620798B (en) Control method, system, equipment and storage medium for FTP connection
JP2020087323A (en) Device management server, method and program
JP4480702B2 (en) Communication method, communication system, router and program thereof
US8284414B2 (en) Image forming system and managing method thereof
CN110471897B (en) File management method and device
TW201227268A (en) Data backup system and data backup and retrival method
JP6452458B2 (en) Data management apparatus, data management method, and program
JP2003015925A (en) Information terminal management device and program
CN100592299C (en) Management method and storage system of file information in storage system
JP6544145B2 (en) IMAGE PROCESSING SYSTEM, TERMINAL DEVICE, SCREEN PROVIDING METHOD, AND COMPUTER PROGRAM

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: 09827126

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09827126

Country of ref document: EP

Kind code of ref document: A1