CN111182251B - Video backup method and device applied to online patrol synchronous transcoding and with hot-pluggable storage medium - Google Patents

Video backup method and device applied to online patrol synchronous transcoding and with hot-pluggable storage medium Download PDF

Info

Publication number
CN111182251B
CN111182251B CN202010011530.1A CN202010011530A CN111182251B CN 111182251 B CN111182251 B CN 111182251B CN 202010011530 A CN202010011530 A CN 202010011530A CN 111182251 B CN111182251 B CN 111182251B
Authority
CN
China
Prior art keywords
video
preset
camera
data
plan
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010011530.1A
Other languages
Chinese (zh)
Other versions
CN111182251A (en
Inventor
黄爱华
郭银海
陈润生
唐文立
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Jiafa Antai Education Technology Co ltd
Original Assignee
Chengdu Jiafa Antai Education Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Jiafa Antai Education Technology Co ltd filed Critical Chengdu Jiafa Antai Education Technology Co ltd
Priority to CN202010011530.1A priority Critical patent/CN111182251B/en
Publication of CN111182251A publication Critical patent/CN111182251A/en
Application granted granted Critical
Publication of CN111182251B publication Critical patent/CN111182251B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/164File meta data generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/71Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5018Thread allocation

Abstract

The application discloses a video backup method and a device which are applied to online patrol synchronous transcoding and have hot-pluggable storage media, wherein the method comprises the following steps: acquiring a path for presetting and storing video data; triggering at least one path of preset cameras to acquire images based on the preset video plan starting time to generate video data; naming the video data according to a preset naming rule to generate named video data; storing the named video data in a designated hard disk on an intelligent backup server according to the path to generate a video file; and when the current time reaches the end time of the preset video plan and the hard disk replacement is detected, identifying the replaced hard disk and carrying out video recording based on the preset video plan starting time. Therefore, by adopting the embodiment of the application, the workload and time for searching and downloading the patrol video after examination can be reduced, the load of a patrol video responsible person is reduced, and the working efficiency is improved.

Description

Video backup method and device applied to online patrol synchronous transcoding and with hot-pluggable storage medium
Technical Field
The application relates to the technical field of computers, in particular to a video backup method and device which are applied to online patrol synchronous transcoding and can enable a storage medium to be hot-pluggable.
Background
The education department delivers the technical standard of video standards of the national education examination online patrol system in 2007, but the standard only puts forward technical requirements on the patrol system, but the business level has no specific and detailed requirements, and local requirements are put forward on business according to the self condition at each place; however, the overall requirements on the collection, arrangement and examination of the patrol video files are basically consistent, namely: in order to ensure the fairness and justice of the examination, each examination point is required to submit all patrol monitoring videos of the examination point within a few hours after the examination is finished.
At present, video files on a storage server (NVR) are code stream files and hard disks are stored in a Raid array mode, and then the files are named in a standard mode through a downloading tool provided by a manufacturer and the video files are downloaded to a designated hard disk, or the video files are transferred to the designated hard disk through the storage server (NVR) while recording videos, and the video files are converted into files played by conventional video playing software. The problems with this approach are as follows: (1) the video files are large in number and long in downloading time, and cannot be completed in the specified time. (2) The operation of selecting and downloading the file is manual operation, so that misoperation and missing operation exist, and finally the submitted file is incomplete. (3) Only 1-2 paths of output can be provided, and the requirement of conversion capability of dozens of or hundreds of paths of video files of each examination point during national standardized examination cannot be met completely.
Disclosure of Invention
The embodiment of the application provides a video backup method and device which are applied to online patrol synchronous transcoding and can realize hot-plug of a storage medium. The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosed embodiments. This summary is not an extensive overview and is intended to neither identify key/critical elements nor delineate the scope of such embodiments. Its sole purpose is to present some concepts in a simplified form as a prelude to the more detailed description that is presented later.
In a first aspect, an embodiment of the present application provides a video backup method applied to online patrol synchronous transcoding and a storage medium is hot-pluggable, and the method is applied to an intelligent backup server, and the method includes:
acquiring video data generated by a camera;
and storing the video data in a preset hard disk on the intelligent backup server to generate a video file.
In a second aspect, an embodiment of the present application provides a video backup method applied to online patrol synchronous transcoding and hot-pluggable storage media, which is applied to a camera, and the method includes:
when a video recording instruction is received, collecting image information to generate video recording data;
And sending the video data to an intelligent backup server.
In a third aspect, an embodiment of the present application provides a video backup method applied to online patrol synchronous transcoding and a storage medium is hot-pluggable, where the method is applied to a client, and the method includes:
acquiring a path for presetting and storing video data;
triggering at least one path of preset cameras to acquire images based on the preset video plan starting time to generate video data;
naming the video data according to a preset naming rule to generate named video data;
storing the named video data in a designated hard disk on an intelligent backup server according to the path to generate a video file;
and when the current time reaches the end time of the preset video plan and the hard disk replacement is detected, identifying the replaced hard disk and carrying out video recording based on the preset video plan starting time.
Optionally, the method further includes:
when a camera adding instruction input by a client is received, storing information corresponding to the added camera as a preset camera;
adding the preset camera into a virtual video channel of the system to generate a video channel added with the camera;
When an examination information adding instruction input by a client is received, converting the examination information into video plan data according to a preset rule;
and configuring the video recording time of the video channel with the added camera based on the video recording plan data, and taking the video recording time as preset video recording time.
Optionally, the path for storing the video data in advance and the video naming rule in advance are set according to the video plan data.
In a fourth aspect, an embodiment of the present application provides a method and an apparatus for backing up videos that are synchronously transcoded for online patrol and that can be hot-plugged into and unplugged from a storage medium, where the apparatus includes:
the path acquisition module is used for acquiring a path for presetting and storing the video data;
the first data generation module is used for triggering at least one path of preset cameras to acquire images and generate video data based on the preset video plan starting time;
the second data generation module is used for naming the video data according to a preset naming rule and then generating named video data;
the data storage module is used for storing the named video data in a designated hard disk on the intelligent backup server according to the path to generate a video file;
And the hard disk identification module is used for identifying the replaced hard disk and recording based on the preset video plan starting time when the current time reaches the preset video plan ending time and the hard disk replacement is detected.
Optionally, the apparatus further comprises:
the first camera adding module is used for storing information corresponding to the added camera as a preset camera when a camera adding instruction input by a client is received;
the second camera adding module is used for adding the preset camera into a virtual video channel of the system to generate a video channel after the camera is added;
the information conversion module is used for converting the examination information into video plan data according to a preset rule when an examination information adding instruction input by a client is received;
and the data configuration module is used for configuring the video recording time of the video channel with the added camera based on the video recording plan data, and taking the video recording time as preset video recording time.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in the embodiment of the application, a user terminal firstly acquires a path for presetting and storing video data, triggers at least one path of preset camera to acquire images and generate video data based on preset video plan starting time, then names the video data according to preset naming rules and then generates named video data, and finally stores the named video data in a designated hard disk on an intelligent server according to the path to generate a video file. The scheme adopts a multithreading concurrency technology and adopts the characteristic that the camera supports multiple access, so that all inspection video sources of an inspection point are subjected to video acquisition in a mode of simultaneously recording multiple paths of video with an online inspection system, the inspection video is automatically and timely stored into a standard and complete video file according to a preset file naming rule, the file is stored into a hot-pluggable hard disk, automatic, intelligent and standardized video backup is realized, the workload and time for searching and downloading the inspection video after the inspection are reduced, the load of an inspection video responsible person is greatly reduced, and the inspection working efficiency is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic flowchart of a video backup method applied to synchronous transcoding for online patrol and hot-pluggable storage media according to an embodiment of the present application;
FIG. 2 is a schematic view of a workflow for a smart standby server according to an embodiment of the present application;
fig. 3 is a schematic view of a scenario of a video backup method applied to synchronous transcoding for online patrol and hot-pluggable storage media according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another video backup method applied to synchronous transcoding for online patrol and hot-pluggable storage media according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a video backup method applied to online patrol synchronous transcoding and a storage medium being hot-pluggable and provided by an embodiment of the present application being applied to an intelligent backup server;
fig. 6 is a schematic flowchart of a video backup method applied to synchronous transcoding for online patrol and hot-pluggable storage media applied to a video camera according to an embodiment of the present application;
Fig. 7 is a schematic structural diagram of a device for video backup method and apparatus applied to synchronous transcoding for online patrol and hot-pluggable storage media according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another video backup method and apparatus for synchronous transcoding for online patrol and hot-swappable storage media according to an embodiment of the present application;
fig. 9 is a schematic diagram of a terminal according to an embodiment of the present application.
Detailed Description
The following description and the annexed drawings set forth in detail certain illustrative embodiments of the application so as to enable those skilled in the art to practice them.
It should be understood that the embodiments described are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
So far, video files on a storage server (NVR) are code stream files and hard disks are stored in a Raid array mode, and then the files are named and the video files are downloaded to a designated hard disk through a downloading tool provided by a manufacturer, or the video files are transferred to a file played by conventional video playing software while recording on the storage server (NVR) to the designated hard disk. The problems with this approach are as follows: (1) the video files are large in number and long in downloading time, and cannot be completed in the specified time. (2) The operation of selecting and downloading the file is manual operation, so that misoperation and missing operation exist, and finally the submitted file is incomplete. (3) Only 1-2 paths of output can be provided, and the requirement of conversion capability of dozens of or hundreds of paths of video files of each examination point during national standardized examination cannot be met completely. Therefore, the application provides a video backup method, a system, equipment and a storage medium which are applied to online patrol synchronous transcoding and can be hot-plugged in and out of the storage medium, so as to solve the problems in the related technical problems. In the technical scheme provided by the application, due to the fact that the multithreading concurrency technology is adopted, and the characteristic that the camera supports multiple access is adopted, the mode that multiple paths of video are recorded simultaneously with the online patrol system is achieved, all patrol video sources of the examination point are subjected to video collection, the patrol videos are automatically stored into standard and complete video files in real time according to preset file naming rules, the files are stored into a hard disk which can be hot plugged, automatic, intelligent and standardized video backup is achieved, workload and time for searching and downloading the patrol videos after examination are reduced, the load of a patrol video responsible person is greatly reduced, and patrol work efficiency is improved.
The following describes in detail a video backup method applied to synchronous transcoding for online patrol and a storage medium capable of being hot-plugged and unplugged, according to an embodiment of the present application, with reference to fig. 1 to fig. 6. The method can be realized by depending on a computer program and can run on a Von Neumann system-based video backup method device which is applied to online patrol synchronous transcoding and can be used for hot plugging of a storage medium.
Referring to fig. 1, a schematic flow chart of a video backup method applied to online patrol synchronous transcoding and a storage medium being hot-pluggable is provided for an embodiment of the present application. As shown in fig. 1, the method of the embodiment of the present application may include the steps of:
s101, acquiring a path for presetting and storing video data;
the preset recording data storing path is set according to the information of the pre-stored examination plan, the camera information and the date and time information.
In one possible implementation, the user first needs to add the video to be recorded as a video source, and then adds (channel-associates) the video camera to the virtual video channel of the system, importing the examination plan into a system through an interface with an examination system and an Excel template or a recording mode, converting the examination plan into a video plan according to rules, setting the video plan (comprising the starting time and the ending time of video) of each video channel, and finally setting the video files and the naming rules of storage paths of each video channel in batches according to the information (examination point number, examination point name and the like) of the examination plan, the information (channel label, IP address and the like) of a camera and the date and time information, when the setting of the planning preparation before examination is finished and the user terminal receives the instruction of starting recording the examination, firstly, a preset video data storage path needs to be acquired for storing the collected video data.
S102, triggering at least one path of preset cameras to acquire images and generate video data based on the preset video plan starting time;
in the embodiment of the application, when the user terminal receives a video recording instruction, the video recording instruction is generated according to the start time and the end time of the time after the preset video recording time is obtained and is sent to one or more paths of camera equipment, and after the camera receives the instruction, one or more paths of cameras are started to carry out image acquisition, and then the acquired image frames are sent to the user terminal.
S103, naming the video data according to a preset naming rule to generate named video data;
in the embodiment of the application, when the user terminal receives the image data sent by the camera, the user terminal firstly acquires a preset image data storage path, and finally stores the image information into a specified hard disk in the intelligent backup server according to the storage path.
And S104, storing the named video data in a designated hard disk on the intelligent backup server according to the path to generate a video file.
Generally, the intelligent standby server product of the invention commonly exists with an online patrol system, and is used as an auxiliary derivative product of the online patrol system product, and needs to rely on the infrastructure of the online patrol system. Therefore, the network construction scheme is derived and expanded on the network construction scheme of the online patrol system. The network scheme of the application example is shown in fig. 3, the camera in fig. 3 comprises a camera of a reference examination room, a camera of a security room and a camera of a school gate, and the intelligent backup platform comprises an intelligent backup client and an intelligent backup server.
In one possible implementation, such as shown in FIG. 2, the present solution can be divided into pre-exam planning preparation, in-exam automatic backup, and post-exam review submission.
When planning and preparing before examination, in planning and setting information needing video backup in the examination, firstly, a video camera needing video is added as a video source, then, the video camera is added (channel association) to a virtual video channel of a system, then, the examination plan of the examination is imported into the system through a test system interface, an Excel template or a recording mode, the examination plan is converted into a video plan according to rules, a video plan (comprising video starting time and video ending time) of each video channel is set, finally, video files and naming rules of storage paths of each video channel are set in batch according to the information (examination point number, examination point name and the like), video camera information (channel label, IP address and the like) of the examination plan of the examination and date and time information, and planning preparation before examination is completed.
During automatic backup in examination, in automatic video recording according to a video recording plan, naming rules, file storage rules and the like set by examination point planning, firstly, the system simultaneously detects the video recording plan of each video channel, starts video recording when the video recording starts, generates corresponding video recording files on a designated hard disk of the server according to paths and the naming rules of the video recording files, and continuously writes the video recording into the video recording files.
And S105, when the current time reaches the preset video plan ending time and the hard disk replacement is detected, identifying the replaced hard disk and recording based on the preset video plan starting time.
In the embodiment of the application, if each video backup is submitted after the examination is finished according to the examination requirement, the integrity of the video file is rechecked after the examination is finished, the hard disk is pulled out by an examination manager and a new hard disk is inserted into the server, the pulled-out hard disk is submitted to a hard disk unified delivery point according to the requirement, and finally the video of the next examination is recorded according to the inserted new hard disk.
When the examination is rechecked and submitted after examination, if the examination is submitted only after all the scenes are finished, the hard disk does not need to be pulled out in the examination process, and the space of the hard disk is required to be enough for backing up all the video files needing to be recorded; after the examination is finished, the examination manager rechecks the integrity of all the backup video files, unplugs the hard disk and submits the hard disk to a hard disk unified delivery point.
In the embodiment of the application, a user terminal firstly acquires a path for presetting and storing video data, triggers at least one path of preset cameras to acquire images and generate the video data based on the preset video plan starting time, then names the video data according to a preset naming rule and then generates the named video data, finally stores the named video data in a designated hard disk on an intelligent equipment server according to the path to generate a video file, and when the current time reaches the preset video plan ending time and detects the replacement of the hard disk, identifies the replaced hard disk and records the video based on the preset video plan starting time. The scheme adopts a multithreading concurrency technology and adopts the characteristic that the camera supports multiple access, so that all inspection video sources of an inspection point are subjected to video acquisition in a mode of simultaneously recording multiple paths of video with an online inspection system, the inspection video is automatically and timely stored into a standard and complete video file according to a preset file naming rule, the file is stored into a hot-pluggable hard disk, automatic, intelligent and standardized video backup is realized, the workload and time for searching and downloading the inspection video after the inspection are reduced, the load of an inspection video responsible person is greatly reduced, and the inspection working efficiency is improved.
Referring to fig. 4, a schematic flowchart of another video backup method applied to online patrol synchronous transcoding and hot-pluggable storage media is provided for the embodiment of the present application. As shown in fig. 4, the method of the embodiment of the present application may include the steps of:
s201, when a camera adding instruction input by a client is received, storing information corresponding to the added camera as a preset camera;
s202, adding the preset camera into a virtual video channel of the system to generate a video channel with the camera added;
s203, when an examination information adding instruction input by a client is received, converting the examination information into video plan data according to a preset rule;
s204, configuring the video recording time of the video channel with the camera based on the video recording plan data, and taking the video recording time as preset video recording time;
s205, acquiring a path for storing video data in a preset manner;
s206, triggering at least one preset camera to acquire images and generate video data based on the preset video plan starting time;
s207, naming the video data according to a preset naming rule to generate named video data;
S208, storing the named video data in a designated hard disk on the intelligent backup server according to the path to generate a video file;
s209, triggering at least one preset camera to acquire images and generate video data based on the preset video plan starting time;
in the embodiment of the application, a user terminal firstly acquires a path for presetting and storing video data, triggers at least one path of preset camera to acquire images and generate video data based on preset video plan starting time, then names the video data according to preset naming rules and then generates named video data, and finally stores the named video data in a designated hard disk on an intelligent server according to the path to generate a video file. The scheme adopts a multithreading concurrency technology and adopts the characteristic that the camera supports multiple access, so that all inspection video sources of an inspection point are subjected to video acquisition in a mode of simultaneously recording multiple paths of video with an online inspection system, the inspection video is automatically and timely stored into a standard and complete video file according to a preset file naming rule, the file is stored into a hot-pluggable hard disk, automatic, intelligent and standardized video backup is realized, the workload and time for searching and downloading the inspection video after the inspection are reduced, the load of an inspection video responsible person is greatly reduced, and the inspection working efficiency is improved.
Referring to fig. 5, a schematic flow chart of a video backup method applied to online patrol synchronous transcoding and hot-pluggable storage media applied to a smart backup server is provided for the embodiment of the present application. As shown in fig. 5, the method of the embodiment of the present application may include the steps of:
s301, acquiring video data generated by a camera;
s302, storing the video data in a preset hard disk on the intelligent backup server to generate a video file.
In the embodiment of the application, a user terminal firstly acquires a path for presetting and storing video data, triggers at least one path of preset camera to acquire images and generate video data based on preset video plan starting time, then names the video data according to preset naming rules and then generates named video data, and finally stores the named video data in a designated hard disk on an intelligent server according to the path to generate a video file. The scheme adopts a multithreading concurrency technology and adopts the characteristic that the camera supports multiple access, so that all inspection video sources of an inspection point are subjected to video acquisition in a mode of simultaneously recording multiple paths of video with an online inspection system, the inspection video is automatically and timely stored into a standard and complete video file according to a preset file naming rule, the file is stored into a hot-pluggable hard disk, automatic, intelligent and standardized video backup is realized, the workload and time for searching and downloading the inspection video after the inspection are reduced, the load of an inspection video responsible person is greatly reduced, and the inspection working efficiency is improved.
Referring to fig. 6, a schematic flow chart of a video backup method applied to online patrol synchronous transcoding and hot-pluggable storage media applied to a video camera is provided for the embodiment of the present application. As shown in fig. 6, the method of the embodiment of the present application may include the steps of:
s401, when a video recording instruction is received, collecting image information to generate video recording data;
s402, the video data are sent to an intelligent backup server.
In the embodiment of the application, a user terminal firstly acquires a path for presetting and storing video data, triggers at least one path of preset camera to acquire images and generate video data based on preset video plan starting time, then names the video data according to preset naming rules and then generates named video data, and finally stores the named video data in a designated hard disk on an intelligent server according to the path to generate a video file. The scheme adopts a multithreading concurrency technology and adopts the characteristic that the camera supports multiple access, so that all inspection video sources of an inspection point are subjected to video acquisition in a mode of simultaneously recording multiple paths of video with an online inspection system, the inspection video is automatically and timely stored into a standard and complete video file according to a preset file naming rule, the file is stored into a hot-pluggable hard disk, automatic, intelligent and standardized video backup is realized, the workload and time for searching and downloading the inspection video after the inspection are reduced, the load of an inspection video responsible person is greatly reduced, and the inspection working efficiency is improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 7 is a schematic structural diagram of a device for video backup with a storage medium hot-pluggable and synchronous transcoding for online patrol according to an exemplary embodiment of the present application. The video backup method and device applied to online patrol synchronous transcoding and the storage medium can be hot-plugged and unplugged and can be realized by software, hardware or the combination of the software and the hardware to become all or part of the terminal. The device 1 comprises a path acquisition module 10, a first data generation module 20, a second data generation module 30 and a data storage module 40.
A path obtaining module 10, configured to obtain a path for storing video data in advance;
the first data generation module 20 is configured to trigger at least one preset camera to perform image acquisition based on a preset video plan start time to generate video data;
the second data generation module 30 is configured to name the video data according to a preset naming rule and then generate named video data;
the data storage module 40 is used for storing the named video data in a designated hard disk on the intelligent backup server according to the path to generate a video file;
And the hard disk identification module 50 is configured to identify a replaced hard disk and record a video based on the preset video plan start time when the current time reaches the preset video plan end time and a hard disk replacement is detected.
Optionally, as shown in fig. 8, the apparatus 1 further includes:
the first camera adding module 60 is configured to, when a camera adding instruction input for the client is received, store information corresponding to the camera adding as a preset camera;
a second camera adding module 70, configured to add the preset camera to a virtual video channel of the system to generate a video channel to which the camera is added;
the information conversion module 80 is configured to convert the examination information into video recording plan data according to a preset rule when receiving an examination information adding instruction input for the client;
and a data configuration module 90, configured to configure the video recording time of the video channel to which the camera is added based on the video recording plan data, and use the video recording time as a preset video recording time.
It should be noted that, when the apparatus for video backup with synchronous transcoding for online patrol and hot-pluggable storage medium provided in the foregoing embodiment is applied to the method for video backup with synchronous transcoding for online patrol and hot-pluggable storage medium, the foregoing division of the functional modules is only used for example, in practical application, the above function allocation may be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules, so as to complete all or part of the above described functions. In addition, the video backup method and apparatus for synchronous transcoding for online patrol and hot-pluggable storage media and the video backup method and apparatus for synchronous transcoding for online patrol and hot-pluggable storage media provided in the foregoing embodiments belong to the same concept, and the embodiment of the method and apparatus for synchronous transcoding for online patrol and hot-pluggable storage media embodies details of the implementation process, which are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description, and do not represent the advantages and disadvantages of the embodiments.
In the embodiment of the application, a user terminal firstly acquires a path for presetting and storing video data, triggers at least one path of preset cameras to acquire images and generate the video data based on the preset video plan starting time, then names the video data according to a preset naming rule and then generates the named video data, finally stores the named video data in a designated hard disk on an intelligent equipment server according to the path to generate a video file, and when the current time reaches the preset video plan ending time and detects the replacement of the hard disk, identifies the replaced hard disk and records the video based on the preset video plan starting time. The scheme adopts a multithreading concurrency technology and adopts the characteristic that a camera supports multi-path access, so that all inspection video sources of an inspection point are subjected to video acquisition in a mode of simultaneously recording a plurality of paths of video of an online inspection system, the inspection video is automatically and real-timely stored into a standard and complete video file according to a preset file naming rule, the file is stored into a hard disk which can be hot plugged and unplugged, the automatic, intelligent and standardized video backup is realized, the workload and time for searching and downloading the inspection video after the inspection are reduced, the load of an inspection video responsible person is greatly reduced, and the inspection work efficiency is improved.
The application also provides a computer readable medium, on which program instructions are stored, and when the program instructions are executed by a processor, the program instructions implement the video backup method which is provided by the above method embodiments and applied to online patrol synchronous transcoding and the storage medium can be hot-plugged.
The present application further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the video backup method applied to online patrol synchronous transcoding and hot-pluggable storage media described in the above method embodiments.
Please refer to fig. 9, which provides a schematic structural diagram of a terminal according to an embodiment of the present application. As shown in fig. 9, the terminal 1000 can include: at least one processor 1001, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002.
The communication bus 1002 is used to implement connection communication among these components.
The user interface 1003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1003 may further include a standard wired interface and a wireless interface.
The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Processor 1001 may include one or more processing cores, among other things. The processor 1001 interfaces various components throughout the electronic device 1000 using various interfaces and lines to perform various functions of the electronic device 1000 and to process data by executing or performing instructions, programs, code sets, or instruction sets stored in the memory 1005 and invoking data stored in the memory 1005. Alternatively, the processor 1001 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1001 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 1001, but may be implemented by a single chip.
The Memory 1005 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable medium. The memory 1005 may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory 1005 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 1005 may alternatively be at least one memory device located remotely from the processor 1001. As shown in fig. 9, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a video backup method application program that is applied to online patrol synchronous transcoding and the storage medium is hot-pluggable.
In the terminal 1000 shown in fig. 9, the user interface 1003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; the processor 1001 may be configured to invoke a video backup method application program, stored in the memory 1005, applied to online patrol synchronous transcoding and hot-pluggable storage media, and specifically execute the following operations:
Acquiring a path for presetting and storing video data;
triggering at least one path of preset cameras to acquire images based on the preset video plan starting time to generate video data;
naming the video data according to a preset naming rule to generate named video data;
storing the named video data in a designated hard disk on an intelligent backup server according to the path to generate a video file;
and when the current time reaches the end time of the preset video plan and the hard disk replacement is detected, identifying the replaced hard disk and carrying out video recording based on the preset video plan starting time.
In one embodiment, the processor 1001, before executing the path for obtaining the preset saved video data, further executes the following operations:
when a camera adding instruction input by a client is received, storing information corresponding to the added camera as a preset camera;
adding the preset camera into a virtual video channel of the system to generate a video channel added with the camera;
when an examination information adding instruction input by a client is received, converting the examination information into video plan data according to a preset rule;
And configuring the video recording time of the video channel with the added camera based on the video recording plan data, and taking the video recording time as preset video recording time.
In the embodiment of the application, a user terminal firstly acquires a path for presetting and storing video data, triggers at least one path of preset cameras to acquire images and generate video data based on a preset video plan starting time, names the video data according to a preset naming rule and then generates named video data, and finally stores the named video data in a designated hard disk on an intelligent backup server according to the path to generate a video file. The scheme adopts a multithreading concurrency technology and adopts the characteristic that the camera supports multiple access, so that all inspection video sources of an inspection point are subjected to video acquisition in a mode of simultaneously recording multiple paths of video with an online inspection system, the inspection video is automatically and timely stored into a standard and complete video file according to a preset file naming rule, the file is stored into a hot-pluggable hard disk, automatic, intelligent and standardized video backup is realized, the workload and time for searching and downloading the inspection video after the inspection are reduced, the load of an inspection video responsible person is greatly reduced, and the inspection working efficiency is improved.
Those of skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application. It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments disclosed herein, it should be understood that the disclosed methods, products (including but not limited to devices, apparatuses, etc.) may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
It should be understood that the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. The present application is not limited to the procedures and structures that have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (5)

1. A video backup method applied to online patrol synchronous transcoding and hot-pluggable storage media is applied to a backup server, and is characterized by comprising the following steps:
acquiring video data which is input by a client and generated by a camera aiming at the intelligent backup server;
storing the video data in a preset hard disk on the intelligent backup server to generate a video file; wherein the content of the first and second substances,
the preset hard disk on the intelligent equipment server is hot-pluggable; the generation and storage of the video data are carried out according to preset parameters; wherein the content of the first and second substances,
generating preset parameters according to the following steps of:
adding a camera to a virtual video channel of the system; importing the examination plan of the time into the system through an examination system interface, an Excel template or an input mode, and converting the examination plan into a video plan according to rules; setting a video recording plan of each video channel; and setting the video files of each video channel and the naming rules of the storage paths in batches according to the information of the examination plan, the camera information and the date and time information.
2. A video backup method applied to online patrol synchronous transcoding and hot-pluggable storage media is applied to a client, and is characterized by comprising the following steps:
Acquiring a path for presetting and storing video data;
triggering at least one path of preset cameras to acquire images based on the preset video plan starting time to generate video data;
naming the video data according to a preset naming rule to generate named video data;
storing the named video data in a designated hard disk on an intelligent backup server according to the path to generate a video file;
when the current time reaches the preset video plan end time and the hard disk replacement is detected, identifying the replaced hard disk and carrying out video recording of the next examination; wherein the content of the first and second substances,
before the path of the preset video data is obtained, the method further includes:
when a camera adding instruction input by a client is received, storing information corresponding to the added camera as a preset camera;
adding the preset camera into a virtual video channel of the system to generate a video channel added with the camera;
when an examination information adding instruction input by a client is received, converting the examination information into video plan data according to a preset rule;
configuring the video recording time of the video channel with the added camera based on the video recording plan data, and taking the video recording time as preset video recording time; and the path for presetting and storing the video recording data and the preset video recording naming rule are set according to the video recording plan data.
3. A video backup device applied to online patrol synchronous transcoding and hot-pluggable storage media is characterized by comprising:
the path acquisition module is used for acquiring a path for presetting and storing the video data;
the first data generation module is used for triggering at least one path of preset cameras to acquire images and generate video data based on the preset video plan starting time;
the second data generation module is used for naming the video data according to a preset naming rule and then generating named video data;
the data storage module is used for storing the named video data in a designated hard disk on the intelligent backup server according to the path to generate a video file;
the hard disk identification module is used for identifying a replaced hard disk and recording based on the preset video plan starting time when the current time reaches the preset video plan ending time and the hard disk replacement is detected; wherein the apparatus further comprises:
the first camera adding module is used for storing information corresponding to the camera adding module as a preset camera when a camera adding instruction input by a client is received;
the second camera adding module is used for adding the preset camera into a virtual video channel of the system to generate a video channel after the camera is added;
The information conversion module is used for converting the examination information into video plan data according to a preset rule when an examination information adding instruction input by a client is received;
the data configuration module is used for configuring the video recording time of the video channel with the camera based on the video recording plan data, and the video recording time is used as preset video recording time; and the path for presetting and storing the video data and the preset video naming rule are set according to the video plan data.
4. A video backup device applied to online patrol synchronous transcoding and hot-pluggable storage media is characterized by comprising:
one or more processors, storage devices storing one or more programs;
the one or more programs, when executed by the one or more processors, implement the method of any of claims 1-2.
5. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1 to 2.
CN202010011530.1A 2020-01-06 2020-01-06 Video backup method and device applied to online patrol synchronous transcoding and with hot-pluggable storage medium Active CN111182251B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010011530.1A CN111182251B (en) 2020-01-06 2020-01-06 Video backup method and device applied to online patrol synchronous transcoding and with hot-pluggable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010011530.1A CN111182251B (en) 2020-01-06 2020-01-06 Video backup method and device applied to online patrol synchronous transcoding and with hot-pluggable storage medium

Publications (2)

Publication Number Publication Date
CN111182251A CN111182251A (en) 2020-05-19
CN111182251B true CN111182251B (en) 2022-06-28

Family

ID=70654444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010011530.1A Active CN111182251B (en) 2020-01-06 2020-01-06 Video backup method and device applied to online patrol synchronous transcoding and with hot-pluggable storage medium

Country Status (1)

Country Link
CN (1) CN111182251B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111818288A (en) * 2020-07-08 2020-10-23 上海威固信息技术股份有限公司 Multi-format video acquisition and storage system with storage card and video acquisition card separately designed
CN113220935B (en) * 2021-05-28 2023-03-24 杭州海康威视系统技术有限公司 Video data storage and query method and device
CN116939129A (en) * 2022-03-30 2023-10-24 京东方科技集团股份有限公司 Equipment control method, system, device, server and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201017311Y (en) * 2006-12-29 2008-02-06 深圳易拓科技有限公司 Hard disk capable of thermal connect-disconnect
CN104469100A (en) * 2013-09-24 2015-03-25 张生福 Distributed type cloud video recording platform
CN106502341A (en) * 2016-12-13 2017-03-15 南陵智联电子科技有限公司 A kind of storage server
CN106844244A (en) * 2017-01-16 2017-06-13 联想(北京)有限公司 A kind of apparatus and method for realizing solid state hard disc data interaction
CN109002089A (en) * 2018-06-27 2018-12-14 郑州云海信息技术有限公司 A kind of server system and its can hot-swappable O&M storing mechanism
CN109040245A (en) * 2018-08-02 2018-12-18 北京奇虎科技有限公司 The shared method and device of a kind of multiple videos, audio

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9734681B2 (en) * 2013-10-07 2017-08-15 Ubiquiti Networks, Inc. Cloud-based video monitoring
CN104394382A (en) * 2014-12-09 2015-03-04 浙江省公众信息产业有限公司 Storage method, device and system of video monitoring record
CN205490904U (en) * 2015-12-30 2016-08-17 江苏省教育考试院 Examination hall monitored control system based on video image discernment
CN108174133B (en) * 2017-12-25 2020-04-24 北京东土科技股份有限公司 Court trial video display method and device, electronic equipment and storage medium
CN109120874A (en) * 2018-09-20 2019-01-01 华东交通大学 Production information acquisition method, system, storage medium and computer equipment
CN110489289A (en) * 2019-07-26 2019-11-22 苏州浪潮智能科技有限公司 A kind of method for testing hard disk and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201017311Y (en) * 2006-12-29 2008-02-06 深圳易拓科技有限公司 Hard disk capable of thermal connect-disconnect
CN104469100A (en) * 2013-09-24 2015-03-25 张生福 Distributed type cloud video recording platform
CN106502341A (en) * 2016-12-13 2017-03-15 南陵智联电子科技有限公司 A kind of storage server
CN106844244A (en) * 2017-01-16 2017-06-13 联想(北京)有限公司 A kind of apparatus and method for realizing solid state hard disc data interaction
CN109002089A (en) * 2018-06-27 2018-12-14 郑州云海信息技术有限公司 A kind of server system and its can hot-swappable O&M storing mechanism
CN109040245A (en) * 2018-08-02 2018-12-18 北京奇虎科技有限公司 The shared method and device of a kind of multiple videos, audio

Also Published As

Publication number Publication date
CN111182251A (en) 2020-05-19

Similar Documents

Publication Publication Date Title
CN111182251B (en) Video backup method and device applied to online patrol synchronous transcoding and with hot-pluggable storage medium
US10949158B2 (en) Screenshot method and apparatus
KR101750429B1 (en) Document editing system and method for collaborative editing
US20200007588A1 (en) Method and System for Automated Cybersecurity Incident and Artifact Visualization and Correlation for Security Operation Centers and Computer Emergency Response Teams
WO2014049804A1 (en) System operation trace method in distributed system
CN107666493B (en) Database configuration method and equipment thereof
CN110493028A (en) A kind of clustered deploy(ment) method, system, device and computer readable storage medium
CN112286723A (en) Computer room disaster recovery control method, terminal and storage medium
CN107665141B (en) Database configuration method and equipment thereof
CN102752294A (en) Method and system for synchronizing data of multiple terminals on basis of equipment capacity
CN112616024A (en) USB camera data acquisition method and device, electronic equipment and storage medium
CN107861821B (en) Mining method and device for module call relation and computer readable medium
CN111382004B (en) Parameter backup method and device, parameter restoration method and device and backup restoration system
EP3404914A1 (en) Information processing apparatus, information processing system, and information processing method
US10917679B2 (en) Video recording of a display device
US11157381B2 (en) Display control method and display control device
WO2019037073A1 (en) Method, device and sever for data synchronization
CN109241183B (en) Data synchronization method and system based on socket communication
CN115620877A (en) Method, system, equipment and storage medium for uploading medical data to cloud platform
CN113709421A (en) Safety management method and device based on video image recognition and electronic equipment
CN112866738A (en) Message processing method and live message management system
CN112541030A (en) Intelligent patrol management tool based on mobile platform
CN106878056B (en) Method and device for configuring synchronous interface in multi-environment
CN110580193B (en) Virtualization-based single-site disaster recovery method, system and equipment
CN112596752B (en) Internet of things method and system for electronic evidence obtaining equipment

Legal Events

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