CN111428080A - Storage method, search method and device for video files - Google Patents

Storage method, search method and device for video files Download PDF

Info

Publication number
CN111428080A
CN111428080A CN201910341199.7A CN201910341199A CN111428080A CN 111428080 A CN111428080 A CN 111428080A CN 201910341199 A CN201910341199 A CN 201910341199A CN 111428080 A CN111428080 A CN 111428080A
Authority
CN
China
Prior art keywords
master
trigger
video
recording
slave
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910341199.7A
Other languages
Chinese (zh)
Other versions
CN111428080B (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201910341199.7A priority Critical patent/CN111428080B/en
Publication of CN111428080A publication Critical patent/CN111428080A/en
Application granted granted Critical
Publication of CN111428080B publication Critical patent/CN111428080B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/78Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/7867Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title and artist information, manually generated time, location and usage information, user ratings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Library & Information Science (AREA)
  • Television Signal Processing For Recording (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

The application discloses a storage method, a searching method and a searching device of video files, and belongs to the technical field of video monitoring. The method is applied to the storage device and comprises the following steps: receiving video data, wherein the video data is obtained by recording through a plurality of camera devices; when the video data includes video triggering indication information, recording a master-slave triggering relationship between a master triggering device and a triggered device based on the video triggering indication information, where the master triggering device is a camera device that triggers the triggered device to execute a recording operation after detecting that an external event satisfies a video triggering condition among the multiple camera devices, and the triggered device is any camera device among the multiple camera devices. The method and the device can search all video files with the association relation at one time.

Description

Storage method, search method and device for video files
Technical Field
The present application relates to the field of video surveillance technologies, and in particular, to a storage method, a search method, and an apparatus for video files.
Background
In a video monitoring scene, a plurality of image capturing apparatuses may be deployed in a certain scene, and the plurality of image capturing apparatuses may have a video recording function. In some cases, the video files recorded by the camera devices may be triggered by events, for example, the video files recorded by a certain camera device are recorded when a certain event is monitored, and in this case, the camera devices may also trigger other camera devices to perform linked video recording, so that linked video recording is performed from a plurality of different angles by the plurality of camera devices to obtain video files with an association relationship.
In an application process, the image capturing devices may store the respective recorded video files in the storage device, and in some embodiments, the video files recorded by the plurality of image capturing devices are stored by using information such as device identifiers of the image capturing devices as indexes. When a user needs to search a certain video file, the user can search from a large number of video files according to information such as equipment identification of the camera equipment.
However, in the above implementation, the user can only search out the video files from a large number of video files at a certain angle, so that the user can only view the videos from a single angle.
Disclosure of Invention
The embodiment of the application provides a storage method, a searching device and a storage medium of video files, which can solve the problem that in the related art, only video files at a certain angle can be searched from a large number of video files. The technical scheme is as follows:
in a first aspect, a method for storing a video file is provided, and is applied to a storage device, where the method includes:
receiving video data, wherein the video data is obtained by recording through a plurality of camera devices;
when the video data includes video triggering indication information, recording a master-slave triggering relationship between a master triggering device and a triggered device based on the video triggering indication information, where the master triggering device is a camera device that triggers the triggered device to execute a recording operation after detecting that an external event satisfies a video triggering condition among the multiple camera devices, and the triggered device is any camera device among the multiple camera devices.
Optionally, when the video recording trigger indication information includes a master device identifier of the master trigger device and a slave device identifier of the triggered device, the recording a master-slave trigger relationship between the master trigger device and the triggered device includes:
and correspondingly recording the master equipment identifier and the slave equipment identifier into a master-slave triggering relation table, wherein the master-slave triggering relation table is used for recording the master-slave triggering relation between the camera equipment with the incidence relation.
Optionally, the recording data further includes at least one of a recording start time, a recording end time, and an external event type, and the recording the master device identifier and the slave device identifier correspondingly into a master-slave trigger relationship table includes:
and correspondingly recording at least one of the recording starting time, the recording ending time and the external event type, the master equipment identifier and the slave equipment identifier into the master-slave triggering relationship table.
In a second aspect, a method for searching for a video file is provided, where the method is applied to a storage device, and the method includes:
receiving a search request;
when the search request comprises a main equipment identifier of main trigger equipment, determining equipment identifiers of all the camera shooting equipment triggered by the main trigger equipment according to a main-slave trigger relation table, wherein the main-slave trigger relation table is used for recording main-slave trigger relations among the camera shooting equipment with incidence relations;
when the search request comprises a slave equipment identifier, determining a master equipment identifier corresponding to the slave equipment identifier according to the master-slave triggering relation table, and determining equipment identifiers of all the camera shooting equipment triggered by the master triggering equipment corresponding to the master equipment identifier;
and searching the recorded files based on the determined equipment identifications of all the camera equipment.
Optionally, when at least one of a recording start time, a recording end time, and an external event type is further recorded in the master-slave trigger relationship table, the searching for the recording file based on the determined device identifiers of all the image capturing devices includes:
acquiring at least one of recording start time, recording end time and external event type corresponding to equipment identifiers of all the camera equipment;
searching out all corresponding recording files according to at least one of the obtained recording start time, the obtained recording end time and the obtained external event type and the equipment identifications of all the camera equipment;
and transmitting all searched recording files.
In a third aspect, a method for storing a recording file is provided, which is applied to any one of a plurality of image capturing apparatuses, and includes:
when a video trigger event is detected, generating video trigger indication information, where the video trigger indication information is used to indicate a master-slave trigger relationship between a master trigger device and a triggered device, the master trigger device is a camera device which triggers the triggered device to execute a recording operation after detecting that an external event satisfies a video trigger condition in the multiple camera devices, and the triggered device is any camera device in the multiple camera devices;
sending video data to a storage device, wherein the video data includes the video trigger indication information, and the video trigger indication information is used for the storage device to establish a master-slave trigger relationship between the master trigger device and the triggered device.
Optionally, when the video recording trigger event is detected, before generating the video recording trigger indication information, the method further includes:
when detecting that an external event meets a video trigger condition, determining to detect the video trigger event;
alternatively, the first and second electrodes may be,
and when a video recording trigger signal sent by the main trigger equipment is received, determining that the video recording trigger event is detected.
Optionally, the generating of the video trigger indication information, where the video trigger signal carries a main device identifier of the main trigger device, includes:
and generating the video recording trigger indication information based on the main equipment identifier and the slave equipment identifier, wherein the slave equipment identifier is the equipment identifier of any camera equipment.
In a fourth aspect, there is provided an apparatus for storing a video file, configured in a storage device, the apparatus including:
the first receiving module is used for receiving video data, and the video data is obtained by recording through a plurality of camera devices;
the recording module is configured to record a master-slave trigger relationship between a master trigger device and a triggered device based on video trigger indication information when the video data includes the video trigger indication information, where the master trigger device is a camera device that triggers the triggered device to execute a recording operation after detecting that an external event satisfies a video trigger condition among the multiple camera devices, and the triggered device is any one of the multiple camera devices.
Optionally, the recording module is configured to:
when the video trigger indication information includes a master device identifier of the master trigger device and a slave device identifier of the triggered device, correspondingly recording the master device identifier and the slave device identifier into a master-slave trigger relationship table, where the master-slave trigger relationship table is used to record a master-slave trigger relationship between the camera devices having an association relationship.
Optionally, the recording module is configured to:
when the recorded data further comprises at least one of recording starting time, recording ending time and external event types, correspondingly recording the at least one of the recording starting time, the recording ending time and the external event types, the master equipment identification and the slave equipment identification in the master-slave triggering relation table.
In a fifth aspect, an apparatus for searching for a video file, configured in a storage device, includes:
the second receiving module is used for receiving the search request;
a first determining module, configured to determine, when the search request includes a master device identifier of a master trigger device, device identifiers of all image capturing devices triggered by the master trigger device according to a master-slave trigger relationship table, where the master-slave trigger relationship table is used to record a master-slave trigger relationship between image capturing devices having an association relationship;
a second determining module, configured to determine, when the search request includes a slave device identifier, a master device identifier corresponding to the slave device identifier according to the master-slave trigger relationship table, and determine device identifiers of all image capturing devices triggered by a master trigger device corresponding to the master device identifier;
and the searching module is used for searching the recording file based on the determined equipment identifications of all the camera equipment.
Optionally, the search module is configured to:
when at least one of recording start time, recording end time and external event type is recorded in the master-slave trigger relation table, at least one of recording start time, recording end time and external event type corresponding to the equipment identification of all the camera equipment is obtained;
searching out all corresponding recording files according to at least one of the obtained recording start time, the obtained recording end time and the obtained external event type and the equipment identifications of all the camera equipment;
and transmitting all searched recording files.
In a sixth aspect, there is provided a storage apparatus for recording a file, the storage apparatus being provided in any one of a plurality of image pickup devices, the apparatus comprising:
the system comprises a generating module, a triggering module and a triggering module, wherein the generating module is used for generating video triggering indication information when a video triggering event is detected, the video triggering indication information is used for indicating a master-slave triggering relationship between a main triggering device and a triggered device, the main triggering device is a camera device which triggers the triggered device to execute a recording operation after an external event is detected to meet a video triggering condition in the plurality of camera devices, and the triggered device is any one of the plurality of camera devices;
the sending module is configured to send video data to a storage device, where the video data includes the video trigger indication information, and the video trigger indication information is used for the storage device to establish a master-slave trigger relationship between the master trigger device and the triggered device.
Optionally, the apparatus further comprises a third determining module, configured to:
when detecting that an external event meets a video trigger condition, determining to detect the video trigger event;
alternatively, the first and second electrodes may be,
and when a video recording trigger signal sent by the main trigger equipment is received, determining that the video recording trigger event is detected.
Optionally, the generating module is configured to:
and generating the video recording trigger indication information based on the main equipment identifier and the slave equipment identifier, wherein the slave equipment identifier is the equipment identifier of any camera equipment.
In a seventh aspect, a storage device is provided, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to implement the steps of any one of the methods of the first or second aspects above.
In an eighth aspect, there is provided an image pickup apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to implement the steps of any one of the methods of the third aspect above. .
In a ninth aspect, there is provided a computer readable storage medium having stored thereon instructions which, when executed by a processor, implement the method of the first or second aspect.
In a tenth aspect, a computer-readable storage medium is provided, having instructions stored thereon, which when executed by a processor, implement the method of the third aspect described above.
In an eleventh aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of the first or second aspect described above.
In a twelfth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of the third aspect described above.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
the storage device receives the video data recorded by the plurality of camera devices, and if the video data comprises video triggering indication information, the master-slave triggering relation between the master triggering device and the triggered device is recorded according to the video triggering indication information, namely, which camera device triggers which camera device to execute video recording operation is recorded. The main trigger device is an image pickup device which triggers a triggered device to execute recording operation after detecting that an external event meets a video recording trigger condition in the image pickup devices, and the triggered device is any one of the image pickup devices. Because the storage device records the association relationship between the camera devices with the master-slave triggering relationship, all associated video files can be searched out at one time according to the master-slave triggering relationship when a search request is received, so that a user can simultaneously check videos recorded from a plurality of angles.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an implementation environment shown in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating a method for storing video files in accordance with an exemplary embodiment;
FIG. 3 is a flow diagram illustrating a method for storing video files in accordance with another exemplary embodiment;
FIG. 4 is a block diagram illustrating a video file storage device according to an exemplary embodiment;
FIG. 5 is a schematic diagram illustrating a video file search apparatus according to another exemplary embodiment;
FIG. 6 is a schematic diagram illustrating a video file storage device according to another exemplary embodiment;
FIG. 7 is a schematic diagram illustrating a video file storage device according to another exemplary embodiment;
fig. 8 is a block diagram of a terminal according to an example embodiment.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Before describing the storage method and the search method of the video file provided by the embodiment of the present application in detail, first, a brief description is given to an application scenario and an implementation environment related to the embodiment of the present application.
First, a brief description is given of an application scenario related to an embodiment of the present application.
At present, a monitoring system is widely applied to various video monitoring scenes. During video monitoring, when the camera equipment in the monitoring system monitors that an external event meets a preset video triggering condition, the video recording mode can be automatically started, and a recorded video file is stored in the storage equipment. In some scenarios, there may be a linkage relationship between multiple image capturing devices in the monitoring system, and in this case, there is also an association between the video files recorded by the multiple image capturing devices having the linkage relationship. When searching for a video file, if a certain video file is searched, it is generally desirable to be able to search for all other video files associated with the video file. In the related art, users can only manually search one by one from a large number of stored video files, which results in complex operation and low search efficiency. Therefore, the embodiment of the present application provides a storage method and a search method for video files, which can quickly search out all video files with relevance, so that a user can simultaneously check videos recorded from multiple angles, and the search efficiency of the video files is improved, and please refer to the embodiment shown in fig. 2 and fig. 3 for specific implementation.
Next, a brief description will be given of an implementation environment related to the embodiments of the present application.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating an implementation environment including a storage device 110 and a plurality of image capture devices 120 according to an exemplary embodiment. Wherein the storage device 110 can establish a communication connection with each of the plurality of image pickup devices 120 through a network. Further, the implementation environment may further include a search device 130, and the storage device 110 may further establish a communication connection with the search device 130 through a network. In addition, some or all of the plurality of image pickup apparatuses 120 may establish communication connection with each other through a network.
The storage device 110 may be configured to store video files recorded by the plurality of camera devices 120. Further, the storage device 110 may also be used to store other information related to the video files or the image capturing devices transmitted by the plurality of image capturing devices 120, for example, the device identifier of the image capturing device may also be stored. In some embodiments, the storage device 110 may be a terminal such as a notebook computer, a desktop computer, a portable computer, and the like, which is not limited in this application.
The plurality of camera devices 120 may be configured to record video files and send the video files to the storage device 110 for storage. In some scenarios, a user may configure device information of other image capturing devices in a certain image capturing device 120 according to actual needs, and thus, when the certain image capturing device 120 performs a video recording operation, the configured other image capturing devices may be triggered to perform the video recording operation together, so as to obtain a plurality of associated video recording files. In some embodiments, each camera device 120 may be provided with a communication module, a processor, a memory, a camera, and the like, so that each camera device 120 may establish a communication connection with other camera devices 120 through the communication module, and in addition, may capture a video image through the camera to record a video file. The memory may be used for storing data or instructions, and the processor may be used for executing the instructions stored in the memory, so that each image capturing apparatus can execute the relevant operations of the method provided by the present application.
The search device 130 may be configured to search for the video files from the storage device 110, and further, may play the searched video files, so that the user may view the video content of the video files to be searched on the search device 130. In addition, when the number of searched video files is plural, the plural video files may be played simultaneously in different display areas. In some embodiments, the search device 130 may be a terminal such as a tablet, laptop, desktop, laptop, or the like. The embodiment of the present application does not limit this.
It should be noted that the above-described implementation environment is only exemplary, in another embodiment, the storage device and the image capturing device in the implementation environment may also be integrated on one device, and in another embodiment, the storage device may also be provided with a search function, which is equivalent to that the storage device and the search device in the implementation environment are an integrated device, and this is not limited in this application.
After the application scenarios and the implementation environments related to the embodiments of the present application are introduced, the method for storing the video files provided by the embodiments of the present application will be described in detail with reference to the accompanying drawings.
Fig. 2 is a flowchart illustrating a method for storing a video file according to an exemplary embodiment, where the method for storing a video file is described in the embodiment of the present application by way of example as being applied to the implementation environment illustrated in fig. 1, the method for storing a video file may include the following steps:
step 201: when the image pickup equipment detects a video trigger event, generating video trigger indication information, wherein the video trigger indication information is used for indicating a master-slave trigger relationship between main trigger equipment and triggered equipment, the main trigger equipment is the image pickup equipment which triggers the triggered equipment to execute a recording operation after detecting that an external event meets a video trigger condition in the plurality of image pickup equipment, and the triggered equipment is any image pickup equipment in the plurality of image pickup equipment.
As described above, in an implementation environment, a plurality of image capturing devices may perform linked recording, and in implementation, the plurality of image capturing devices may be controlled to perform linked recording in a triggering manner. According to different triggering modes, the plurality of image pickup devices can be divided into a main triggering device and a triggered device, wherein the main triggering device can actively trigger other triggered devices to carry out linkage video recording under a certain condition, and the triggered device carries out linkage video recording after being triggered by the main triggering device.
Because the image capturing apparatus that detects the video recording trigger event may be the main trigger apparatus or the triggered apparatus, based on this, the situation that the image capturing apparatus detects the video recording trigger event is also different, which may specifically include:
in the first case: and when the external event is detected to meet the video recording triggering condition, determining that the video recording triggering event is detected.
The external event may refer to a user behavior, an animal behavior, a vehicle behavior, and the like in the monitored video picture. In addition, the video trigger condition may be preset according to actual requirements, for example, the video trigger condition may include, but is not limited to, a flame event being detected, a smoke event being detected, a human accident event being detected, and an article loss event being detected.
In this case, the image capturing apparatuses are main trigger apparatuses, that is, the image capturing apparatuses having a linkage relationship are not always in a linkage video recording state, but one or some of the main trigger apparatuses perform a monitoring operation, for example, in a video monitoring process, the main trigger apparatus may analyze a monitored video image, and when it is monitored that an external event satisfies a video recording trigger condition, start to perform a linkage recording operation to generate video recording trigger indication information, where the video recording trigger indication information may include a main apparatus identifier of the main trigger apparatus. And the main trigger equipment triggers other camera equipment which has linkage relation with the main trigger equipment to execute linkage video recording operation together.
In the second case: and when a video recording trigger signal sent by the main trigger equipment is received, determining that a video recording trigger event is detected.
In this case, the image pickup apparatus is a triggered apparatus, wherein the video recording trigger signal is sent by the main trigger apparatus and used to instruct the triggered apparatus to perform a linked video recording operation, and at this time, the triggered apparatus performs the linked video recording operation to generate video recording trigger instruction information.
For the triggered device, after receiving the video trigger signal sent by the main trigger device, the video trigger indication information may be generated to indicate the main-slave trigger relationship between the main trigger device and the triggered device by using the video trigger indication information, in other words, it may be determined who triggered to execute the recording operation according to the video trigger indication information.
As an example, the recording trigger signal may carry a master device identifier of a master trigger device. In this case, the specific implementation of the triggered device generating the video recording trigger indication information may include: and generating the video recording trigger indication information based on the main equipment identifier and the slave equipment identifier, wherein the slave equipment identifier is the equipment identifier of any one image pickup equipment.
The device identifier may be used to uniquely identify one image capturing device. That is, the triggered device may record the master-slave triggering relationship between the master triggering device and the triggered device through the corresponding relationship between the master device identifier and the slave device identifier.
Further, the triggered equipment executes the video recording operation. When the triggered device is also configured with device information of other image capturing devices, the triggered device may send a trigger signal to the other image capturing devices to trigger the other image capturing devices to perform a video recording operation, where for the other triggered image capturing devices, the triggered device is relatively a main trigger device. That is, the master triggering device and the triggered device described in this application are relative concepts.
Step 202: the camera device sends video data to the storage device, the video data includes the video trigger indication information, and the video trigger indication information is used for the storage device to establish a master-slave trigger relationship between the master trigger device and the triggered device.
The video data may further include a video file recorded by the camera device, that is, the camera device may carry the recorded video file through the video data.
As described above, the image pickup apparatus may be a main image pickup apparatus or a triggered image pickup apparatus, wherein the main trigger apparatus transmits the video recording file recorded by itself to the storage apparatus, and also transmits the video recording trigger indication information to the storage apparatus, so as to inform the storage apparatus that the current video recording file is from the linked video recording. Similarly, for the triggered device, besides sending the video file recorded by the triggered device to the storage device, the video triggering indication information is also sent to the storage device, and at the moment, the video triggering indication information comprises a main device identifier and a slave device identifier, so that the storage device can know who triggers the linkage video recording of the triggered device.
As an example, the recording data may further include other information, such as at least one of a start recording time, an end recording time, and an external event type of the recording file.
It should be noted that, because the image pickup device sends the video data to the storage device, the video data includes the video trigger indication information, so that the storage device can determine the master-slave trigger relationship between the master trigger device and the triggered device based on the video trigger indication information, and thus obtain the video files recorded by the plurality of linked image pickup devices according to the master-slave trigger relationship.
As an example, the storage device may store the content in the video data as follows.
Step 203: the storage device receives video data, which is recorded by a plurality of image pickup devices.
In a possible implementation manner, the storage device may store the video files recorded by each image capturing device with the device identifier of each image capturing device as an index. Further, when the image capturing device further uses at least one of the recording start time, the recording end time, and the external event type, the storage device may further use at least one of the recording start time, the recording end time, and the external event type and the device identifier together as an index to store the video file recorded by each image capturing device.
Step 204: when the video data comprises video triggering indication information, the storage device records a master-slave triggering relationship between the master triggering device and the triggered device based on the video triggering indication information.
As described above, the main triggering device is an image capturing device that triggers the triggered device to perform a recording operation when detecting that an external event satisfies a recording triggering condition, and the triggered device is any one of the image capturing devices.
When the video data includes video triggering indication information, it is indicated that a plurality of camera devices are linked for video recording, and in order to facilitate the follow-up search of all video files with association relations at one time, the storage device records the master-slave triggering relation between the master triggering device and the triggered device indicated by the video triggering indication information.
In a possible implementation manner, when the video recording trigger indication information includes a master device identifier of the master trigger device and a slave device identifier of the triggered device, a specific implementation of recording a master-slave trigger relationship between the master trigger device and the triggered device that are indicated by the video recording trigger indication information may include: and correspondingly recording the master equipment identifier and the slave equipment identifier into a master-slave triggering relation table, wherein the master-slave triggering relation table is used for recording the master-slave triggering relation between the camera equipment with the association relation.
In some embodiments, the master-slave triggering relationship table may include a master device identification item and a slave device identification item, so as to correspondingly record a master-slave triggering relationship between the image capturing devices having an association relationship through the master device identification item and the slave device identification item. In this way, the storage device may add the master device identifier in the video trigger indication information to the master device identifier item, and add the slave device identifier in the video trigger indication information to the slave device identifier item.
For example, if the master device identifier a and the slave device identifier B of the triggered device in a certain video trigger indication information are assumed to be a, the master device identifier a and the slave device identifier B are correspondingly recorded in the master-slave trigger relationship table, and the obtained master-slave trigger relationship table may be as shown in table 1:
TABLE 1
Figure BDA0002040753820000111
Figure BDA0002040753820000121
Of course, if the number of the video data is multiple, the storage device may record the master-slave triggering relationship between the master triggering device and the triggered device indicated by each video triggering indication information based on the video triggering indication information in each video data, and the recording result is as shown in table 1 above.
Further, the recording data further includes at least one of a recording start time, a recording end time, and an external event type, and at this time, the storage device records at least one of the recording start time, the recording end time, the external event type, the master device identifier, and the slave device identifier in the master-slave trigger relationship table in a corresponding manner.
For example, assuming that the recording trigger indication information in a certain recording data includes a master device identifier a, a slave device identifier B of a triggered device, and the recording start time, the recording end time, and the external event type in the recording data are 10:00, 11:30, respectively, and MOTION, the storage device records the recording start time, the recording end time, the external event type, the master device identifier a, and the slave device identifier B into the master-slave trigger relationship table, and the obtained master-slave trigger relationship table may be as shown in table 2:
TABLE 2
Master device identification Slave device identification Type of triggering event Recording start time End time of recording
A B MOTION 10:00 11:30
A F MOTION 10:00 11:30
A G MOTION 10:00 11:30
F G MOTION 10:00 11:30
F D MOTION 10:00 11:30
... ... ... ... ...
Similarly, if the number of the video data is multiple, the storage device may correspondingly record at least one of the recording start time, the recording end time, the external event type, the master device identifier, and the slave device identifier in each video data into the master-slave triggering relationship table, where the recording result is as shown in table 2 above.
Because the storage device stores the master-slave relationship among the camera devices of the plurality of linkage videos and also records the corresponding relationship between the information such as the device identification of each camera device and the video files, when a user needs to search out a plurality of video files with the linkage relationship, the storage device can search out all the video files at one time based on the information such as the device identification of any camera device in the plurality of camera devices of the linkage videos, and thus, the searching effect of the video files is improved.
In the embodiment of the application, the storage device receives video data recorded by a plurality of image pickup devices, and if the video data includes video trigger indication information, the storage device records a master-slave trigger relationship between the master trigger device and the triggered device according to the video trigger indication information, that is, records which image pickup device triggers which image pickup device to execute a video recording operation. The main trigger device is an image pickup device which triggers a triggered device to execute recording operation after detecting that an external event meets a video recording trigger condition in the image pickup devices, and the triggered device is any one of the image pickup devices. Because the storage device records the association relationship between the camera devices with the master-slave triggering relationship, all associated video files can be searched out at one time according to the master-slave triggering relationship when a search request is received, so that a user can simultaneously check videos recorded from a plurality of angles.
Fig. 3 is a flowchart illustrating a method for searching for a video file according to an exemplary embodiment, where the method for searching for a video file is described in the embodiment of fig. 1, and the method for searching for a video file may include the following steps:
step 301: the storage device receives a search request.
As an example, the storage device stores a video file obtained by linking video recording of a plurality of image capturing devices, and further records a master-slave triggering relationship between the plurality of image capturing devices, and a specific implementation thereof may be seen in the embodiment shown in fig. 2.
Illustratively, the storage device records the master-slave triggering relationship among the plurality of image pickup devices in a master-slave triggering relationship table. Further, the master-slave trigger relationship table records at least one of a recording start time, a recording end time and an external event type, and the at least one of the recording start time, the recording end time and the external event type is correspondingly stored with the device identifier.
As an example, the search request may be sent by a search device, and when a user wants to search for a certain recording file or certain recording files in the stored recording files, the search request may be sent to the storage device through the search device, and the search request may carry a device identifier of a certain image capturing device. Wherein, the device identifier may be a master device identifier, and the master device identifier is used to identify a master trigger device, and then the following step 302 is executed; or it may be a slave device identity, which is used to identify a triggered device, when the following step 303 is performed.
Step 302: when the search request includes the master device identifier of the master trigger device, the storage device determines the device identifiers of all the image pickup devices triggered by the master trigger device according to a master-slave trigger relationship table, wherein the master-slave trigger relationship table is used for recording master-slave trigger relationships among the image pickup devices with the association relationships.
That is, when the device identifier carried in the search request by the search device is the master device identifier, the storage device determines, according to the stored master-slave trigger relationship table, the device identifiers of all the image capturing devices triggered by the master trigger device, for example, referring to table 2 in the embodiment of fig. 2, assuming that the device identifier carried in the search request is a, the device identifiers of all the image capturing devices triggered by the corresponding master trigger device may be searched, including: B. f, G are provided. Further, since the searched triggered device B also triggers another image pickup device D, the image pickup device D can be indirectly considered to be also a triggered device, and thus the final query result can also include the device identification D.
Step 303: when the search request comprises the slave equipment identification, the storage equipment determines the master equipment identification corresponding to the slave equipment identification according to the master-slave triggering relation table, and determines the equipment identifications of all the image pickup equipment triggered by the master triggering equipment corresponding to the master equipment identification.
When the device identifier carried in the search request is the slave device identifier, the storage device determines, according to the master-slave triggering relationship, a master triggering device that triggers the triggered device corresponding to the slave device identifier, and then determines device identifiers of all the image pickup devices that trigger the master triggering device. For example, continuing to refer to table 2 in the embodiment of fig. 2, assuming that the device identifier carried in the search request is B, the storage device determines a master device identifier a of a master triggering device that triggers the triggered device B, and then determines that the device identifiers of all triggered image capturing devices triggered by the master triggering device a include: B. f, G, D are provided.
Step 304: and the storage equipment searches the recorded files based on the determined equipment identifications of all the camera equipment.
In implementation, the storage device acquires the video files corresponding to each determined device identifier, obtains all the video files with linkage association relationship, and sends all the obtained video files to the search device.
In a possible implementation manner, when at least one of the recording start time, the recording end time, and the external event type is further recorded in the master-slave trigger relationship table, the storage device may obtain at least one of the recording start time, the recording end time, and the external event type corresponding to the device identifier of all the image capturing devices, and then search for a corresponding recording file according to the device identifier and at least one of the recording start time, the recording end time, and the external event type corresponding to the image capturing device, and send all the searched recording files.
It should be noted that, in the above implementation manner, the video files recorded by any one of the image capturing devices are searched, that is, the video files recorded by all other image capturing devices having an association relationship with the image capturing device can be searched at the same time, so that the search efficiency is improved.
In the embodiment of the application, the storage device records the master-slave triggering relationship between the master triggering device and the triggered device, that is, records which image pickup device triggers which image pickup device to execute the video recording operation, so that when a search request is received, all associated video files can be searched out at one time according to the master-slave triggering relationship, and a user can check videos recorded at multiple angles at the same time.
Fig. 4 is a schematic diagram illustrating a structure of a storage device for video files, which may be implemented by software, hardware or a combination of the two according to an exemplary embodiment. The apparatus is configured in a storage device, the apparatus comprising:
a first receiving module 410, configured to receive video data, where the video data is obtained by recording with multiple camera devices;
a recording module 420, configured to record, based on the video trigger indication information, a master-slave trigger relationship between a master trigger device and a triggered device when the video data includes the video trigger indication information, where the master trigger device is a camera device that triggers the triggered device to execute a recording operation after detecting that an external event satisfies a video trigger condition in the multiple camera devices, and the triggered device is any one of the multiple camera devices.
Optionally, the recording module 420 is configured to:
when the video trigger indication information includes a master device identifier of the master trigger device and a slave device identifier of the triggered device, correspondingly recording the master device identifier and the slave device identifier into a master-slave trigger relationship table, where the master-slave trigger relationship table is used to record a master-slave trigger relationship between the camera devices having an association relationship.
Optionally, the recording module 420 is configured to:
when the recorded data further comprises at least one of recording starting time, recording ending time and external event types, correspondingly recording the at least one of the recording starting time, the recording ending time and the external event types, the master equipment identification and the slave equipment identification in the master-slave triggering relation table.
In the embodiment of the application, the storage device receives video data recorded by a plurality of image pickup devices, and if the video data includes video trigger indication information, the storage device records a master-slave trigger relationship between the master trigger device and the triggered device according to the video trigger indication information, that is, records which image pickup device triggers which image pickup device to execute a video recording operation. The main trigger device is an image pickup device which triggers a triggered device to execute recording operation after detecting that an external event meets a video recording trigger condition in the image pickup devices, and the triggered device is any one of the image pickup devices. Because the storage device records the association relationship between the camera devices with the master-slave triggering relationship, all associated video files can be searched out at one time according to the master-slave triggering relationship when a search request is received, so that a user can simultaneously check videos recorded from a plurality of angles.
Fig. 5 is a schematic diagram illustrating a structure of a video file searching apparatus according to an exemplary embodiment, where the video file searching apparatus may be implemented by software, hardware, or a combination of the two. The apparatus is configured in a storage device, the apparatus comprising:
a second receiving module 510, configured to receive a search request;
a first determining module 520, configured to determine, when the search request includes a master device identifier of a master trigger device, device identifiers of all image capturing devices triggered by the master trigger device according to a master-slave trigger relationship table, where the master-slave trigger relationship table is used to record a master-slave trigger relationship between image capturing devices having an association relationship;
a second determining module 530, configured to determine, when the search request includes a slave device identifier, a master device identifier corresponding to the slave device identifier according to the master-slave triggering relationship table, and determine device identifiers of all image capturing devices triggered by the master triggering device corresponding to the master device identifier;
and a searching module 540, configured to perform recording file search based on the determined device identifiers of all the image capturing devices.
Optionally, the searching module 540 is configured to:
when at least one of recording start time, recording end time and external event type is recorded in the master-slave trigger relation table, at least one of recording start time, recording end time and external event type corresponding to the equipment identification of all the camera equipment is obtained;
searching out all corresponding recording files according to at least one of the obtained recording start time, the obtained recording end time and the obtained external event type and the equipment identifications of all the camera equipment;
and transmitting all searched recording files.
In the embodiment of the application, since the storage device records the association relationship between the camera devices with the master-slave triggering relationship, when a search request is received, all associated video files can be searched out at one time according to the master-slave triggering relationship, so that a user can simultaneously check videos recorded at multiple angles.
Fig. 6 is a schematic diagram illustrating a structure of a storage device for video files, which may be implemented by software, hardware or a combination of the two according to an exemplary embodiment. The apparatus is configured in any one of a plurality of image pickup apparatuses, and includes:
a generating module 610, configured to generate video trigger indication information when a video trigger event is detected, where the video trigger indication information is used to indicate a master-slave trigger relationship between a master trigger device and a triggered device, the master trigger device is a camera device that triggers the triggered device to execute a recording operation after detecting that an external event satisfies a video trigger condition in the multiple camera devices, and the triggered device is any one of the multiple camera devices;
a sending module 620, configured to send video data to a storage device, where the video data includes the video trigger indication information, and the video trigger indication information is used for the storage device to establish a master-slave trigger relationship between the master trigger device and the triggered device.
Optionally, referring to fig. 7, the apparatus further includes a third determining module 630, where the third determining module 630 is configured to:
when detecting that an external event meets a video trigger condition, determining to detect the video trigger event;
alternatively, the first and second electrodes may be,
and when a video recording trigger signal sent by the main trigger equipment is received, determining that the video recording trigger event is detected.
Optionally, the generating module 610 is configured to:
and generating the video recording trigger indication information based on the main equipment identifier and the slave equipment identifier, wherein the slave equipment identifier is the equipment identifier of any camera equipment.
In the embodiment of the application, the video recording device sends video recording data to the storage device, and if the video recording data includes video recording triggering indication information, the storage device records a master-slave triggering relationship between the master triggering device and the triggered device according to the video recording triggering indication information, that is, records which image pickup device triggers which image pickup device to execute a video recording operation. The main trigger device is an image pickup device which triggers a triggered device to execute recording operation after detecting that an external event meets a video recording trigger condition in the image pickup devices, and the triggered device is any one of the image pickup devices. Because the storage device records the association relationship between the camera devices with the master-slave triggering relationship, all associated video files can be searched out at one time according to the master-slave triggering relationship when a search request is received, so that a user can simultaneously check videos recorded from a plurality of angles.
It should be noted that: in the implementation of the apparatus provided in the foregoing embodiment, only the division of the functional modules is illustrated, and in practical applications, the above functions may be distributed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Fig. 8 is a block diagram illustrating a terminal 800 according to an exemplary embodiment of the present disclosure, where the terminal 800 may be a smart phone, a tablet pc, an MP3 player (Moving Picture Experts Group Audio L layer III, mpeg Audio layer 3), an MP4 player (Moving Picture Experts Group Audio L layer iv, mpeg Audio layer 4), a notebook pc, or a desktop pc, and the terminal 800 may also be referred to as a user equipment, a portable terminal, a laptop terminal, a desktop terminal, or other names.
In general, the terminal 800 includes: a processor 801 and a memory 802.
Processor 801 may also include a main processor, which is a processor for Processing data in a wake-up state, also known as a Central Processing Unit (CPU), and a coprocessor, which is a low power processor for Processing data in a standby state, processor 801 may, in some embodiments, be integrated with a GPU (Graphics Processing Unit, image processor) for rendering and rendering content for display, and in some embodiments, may also include an intelligent processor 801 (AI) for performing Artificial learning operations on the processor.
Memory 802 may include one or more computer-readable storage media, which may be non-transitory. Memory 802 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 802 is used to store at least one instruction for execution by processor 801 to implement the methods provided by the method embodiments herein.
In some embodiments, the terminal 800 may further include: a peripheral interface 803 and at least one peripheral. The processor 801, memory 802 and peripheral interface 803 may be connected by bus or signal lines. Various peripheral devices may be connected to peripheral interface 803 by a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 804, a touch screen display 805, a camera 806, an audio circuit 807, a positioning component 808, and a power supply 809.
The peripheral interface 803 may be used to connect at least one peripheral related to I/O (Input/Output) to the processor 801 and the memory 802. In some embodiments, the processor 801, memory 802, and peripheral interface 803 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 801, the memory 802, and the peripheral interface 803 may be implemented on separate chips or circuit boards, which are not limited by this embodiment.
The Radio Frequency circuit 804 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 804 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 804 converts an electrical signal into an electromagnetic signal to be transmitted, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 804 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 804 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 8G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 804 may further include NFC (Near Field Communication) related circuits, which are not limited in this application.
The Display 805 is used to Display a UI (User Interface) that may include graphics, text, icons, video, and any combination thereof, when the Display 805 is a touch Display, the Display 805 also has the ability to capture touch signals on or over the surface of the Display 805. the touch signals may be input to the processor 801 for processing as control signals, at which time the Display 805 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard.
The camera assembly 806 is used to capture images or video. Optionally, camera assembly 806 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 806 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 807 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 801 for processing or inputting the electric signals to the radio frequency circuit 804 to realize voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the terminal 800. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 801 or the radio frequency circuit 804 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuitry 807 may also include a headphone jack.
The positioning component 808 is used to locate the current geographic location of the terminal 800 to implement navigation or L BS (L geographic based Service). the positioning component 808 can be a positioning component based on the united states GPS (global positioning System), the chinese beidou System, or the russian galileo System.
Power supply 809 is used to provide power to various components in terminal 800. The power supply 809 can be ac, dc, disposable or rechargeable. When the power supply 809 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 800 also includes one or more sensors 810. The one or more sensors 810 include, but are not limited to: acceleration sensor 811, gyro sensor 812, pressure sensor 813, fingerprint sensor 814, optical sensor 815 and proximity sensor 816.
The acceleration sensor 811 may detect the magnitude of acceleration in three coordinate axes of the coordinate system established with the terminal 800. For example, the acceleration sensor 811 may be used to detect the components of the gravitational acceleration in three coordinate axes. The processor 801 may control the touch screen 805 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 811. The acceleration sensor 811 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 812 may detect a body direction and a rotation angle of the terminal 800, and the gyro sensor 812 may cooperate with the acceleration sensor 811 to acquire a 3D motion of the user with respect to the terminal 800. From the data collected by the gyro sensor 812, the processor 801 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensors 813 may be disposed on the side bezel of terminal 800 and/or underneath touch display 805. When the pressure sensor 813 is disposed on the side frame of the terminal 800, the holding signal of the user to the terminal 800 can be detected, and the processor 801 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 813. When the pressure sensor 813 is disposed at a lower layer of the touch display screen 805, the processor 801 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 805. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 814 is used for collecting fingerprints of a user, the identity of the user is identified by the processor 801 according to the fingerprints collected by the fingerprint sensor 814, or the identity of the user is identified by the fingerprint sensor 814 according to the collected fingerprints, when the identity of the user is identified to be a credible identity, the user is authorized to execute relevant sensitive operations by the processor 801, the sensitive operations comprise screen unlocking, encrypted information viewing, software downloading, payment, setting change and the like, the fingerprint sensor 814 can be arranged on the front side, the back side or the side of the terminal 800, when a physical key or a manufacturer L ogo is arranged on the terminal 800, the fingerprint sensor 814 can be integrated with the physical key or the manufacturer L ogo.
The optical sensor 815 is used to collect the ambient light intensity. In one embodiment, the processor 801 may control the display brightness of the touch screen 805 based on the ambient light intensity collected by the optical sensor 815. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 805 is increased; when the ambient light intensity is low, the display brightness of the touch display 805 is turned down. In another embodiment, the processor 801 may also dynamically adjust the shooting parameters of the camera assembly 806 based on the ambient light intensity collected by the optical sensor 815.
A proximity sensor 816, also known as a distance sensor, is typically provided on the front panel of the terminal 800. The proximity sensor 816 is used to collect the distance between the user and the front surface of the terminal 800. In one embodiment, when the proximity sensor 816 detects that the distance between the user and the front surface of the terminal 800 gradually decreases, the processor 801 controls the touch display 805 to switch from the bright screen state to the dark screen state; when the proximity sensor 816 detects that the distance between the user and the front surface of the terminal 800 becomes gradually larger, the processor 801 controls the touch display 805 to switch from the screen-on state to the screen-on state.
Those skilled in the art will appreciate that the configuration shown in fig. 8 is not intended to be limiting of terminal 800 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
Embodiments of the present application also provide a non-transitory computer-readable storage medium, where instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to perform the method provided by the above embodiments.
The embodiment of the present application also provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the method provided by the above embodiment.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (11)

1. A method for storing video files is applied to a storage device, and comprises the following steps:
receiving video data, wherein the video data is obtained by recording through a plurality of camera devices;
when the video data includes video triggering indication information, recording a master-slave triggering relationship between a master triggering device and a triggered device based on the video triggering indication information, where the master triggering device is a camera device that triggers the triggered device to execute a recording operation after detecting that an external event satisfies a video triggering condition among the multiple camera devices, and the triggered device is any camera device among the multiple camera devices.
2. The method of claim 1, wherein when the video recording trigger indication information includes a master device identifier of the master trigger device and a slave device identifier of the triggered device, the recording a master-slave trigger relationship between the master trigger device and the triggered device includes:
and correspondingly recording the master equipment identifier and the slave equipment identifier into a master-slave triggering relation table, wherein the master-slave triggering relation table is used for recording the master-slave triggering relation between the camera equipment with the incidence relation.
3. The method of claim 2, wherein the recording data further includes at least one of a recording start time, a recording end time, and an external event type, and the correspondingly recording the master device identifier and the slave device identifier into a master-slave triggering relationship table includes:
and correspondingly recording at least one of the recording starting time, the recording ending time and the external event type, the master equipment identifier and the slave equipment identifier into the master-slave triggering relationship table.
4. A method for searching video files is applied to a storage device, and comprises the following steps:
receiving a search request;
when the search request comprises a main equipment identifier of main trigger equipment, determining equipment identifiers of all the camera shooting equipment triggered by the main trigger equipment according to a main-slave trigger relation table, wherein the main-slave trigger relation table is used for recording main-slave trigger relations among the camera shooting equipment with incidence relations;
when the search request comprises a slave equipment identifier, determining a master equipment identifier corresponding to the slave equipment identifier according to the master-slave triggering relation table, and determining equipment identifiers of all the camera shooting equipment triggered by the master triggering equipment corresponding to the master equipment identifier;
and searching the recorded files based on the determined equipment identifications of all the camera equipment.
5. The method according to claim 4, wherein when at least one of a recording start time, a recording end time, and an external event type is further recorded in the master-slave trigger relationship table, the performing a recording file search based on the determined device identifiers of all the image capturing devices includes:
acquiring at least one of recording start time, recording end time and external event type corresponding to equipment identifiers of all the camera equipment;
searching out all corresponding recording files according to at least one of the obtained recording start time, the obtained recording end time and the obtained external event type and the equipment identifications of all the camera equipment;
and transmitting all searched recording files.
6. A method of storing a recording file, applied to any one of a plurality of image pickup apparatuses, the method comprising:
when a video trigger event is detected, generating video trigger indication information, where the video trigger indication information is used to indicate a master-slave trigger relationship between a master trigger device and a triggered device, the master trigger device is a camera device which triggers the triggered device to execute a recording operation after detecting that an external event satisfies a video trigger condition in the multiple camera devices, and the triggered device is any camera device in the multiple camera devices;
sending video data to a storage device, wherein the video data includes the video trigger indication information, and the video trigger indication information is used for the storage device to establish a master-slave trigger relationship between the master trigger device and the triggered device.
7. The method of claim 6, wherein before generating the record trigger indication information when the record trigger event is detected, further comprising:
when detecting that an external event meets a video trigger condition, determining to detect the video trigger event;
alternatively, the first and second electrodes may be,
and when a video recording trigger signal sent by the main trigger equipment is received, determining that the video recording trigger event is detected.
8. The method of claim 7, wherein the video recording trigger signal carries a master device identifier of the master trigger device, and the generating video recording trigger indication information comprises:
and generating the video recording trigger indication information based on the main equipment identifier and the slave equipment identifier, wherein the slave equipment identifier is the equipment identifier of any camera equipment.
9. An apparatus for storing a video file, the apparatus being configured in a storage device, the apparatus comprising:
the first receiving module is used for receiving video data, and the video data is obtained by recording through a plurality of camera devices;
the recording module is configured to record a master-slave trigger relationship between a master trigger device and a triggered device based on video trigger indication information when the video data includes the video trigger indication information, where the master trigger device is a camera device that triggers the triggered device to execute a recording operation after detecting that an external event satisfies a video trigger condition among the multiple camera devices, and the triggered device is any one of the multiple camera devices.
10. An apparatus for searching for a video file, which is provided in a storage device, the apparatus comprising:
the second receiving module is used for receiving the search request;
a first determining module, configured to determine, when the search request includes a master device identifier of a master trigger device, device identifiers of all image capturing devices triggered by the master trigger device according to a master-slave trigger relationship table, where the master-slave trigger relationship table is used to record a master-slave trigger relationship between image capturing devices having an association relationship;
a second determining module, configured to determine, when the search request includes a slave device identifier, a master device identifier corresponding to the slave device identifier according to the master-slave trigger relationship table, and determine device identifiers of all image capturing devices triggered by a master trigger device corresponding to the master device identifier;
and the searching module is used for searching the recording file based on the determined equipment identifications of all the camera equipment.
11. A storage apparatus for recording a file, the storage apparatus being provided in any one of a plurality of image pickup devices, the apparatus comprising:
the system comprises a generating module, a triggering module and a triggering module, wherein the generating module is used for generating video triggering indication information when a video triggering event is detected, the video triggering indication information is used for indicating a master-slave triggering relationship between a main triggering device and a triggered device, the main triggering device is a camera device which triggers the triggered device to execute a recording operation after an external event is detected to meet a video triggering condition in the plurality of camera devices, and the triggered device is any one of the plurality of camera devices;
the sending module is configured to send video data to a storage device, where the video data includes the video trigger indication information, and the video trigger indication information is used for the storage device to establish a master-slave trigger relationship between the master trigger device and the triggered device.
CN201910341199.7A 2019-04-25 2019-04-25 Video file storage method, video file search method and video file storage device Active CN111428080B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910341199.7A CN111428080B (en) 2019-04-25 2019-04-25 Video file storage method, video file search method and video file storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910341199.7A CN111428080B (en) 2019-04-25 2019-04-25 Video file storage method, video file search method and video file storage device

Publications (2)

Publication Number Publication Date
CN111428080A true CN111428080A (en) 2020-07-17
CN111428080B CN111428080B (en) 2024-02-27

Family

ID=71546710

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910341199.7A Active CN111428080B (en) 2019-04-25 2019-04-25 Video file storage method, video file search method and video file storage device

Country Status (1)

Country Link
CN (1) CN111428080B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112752100A (en) * 2020-12-28 2021-05-04 杭州海康威视***技术有限公司 Method and device for determining video integrity and readable storage medium
CN113220935A (en) * 2021-05-28 2021-08-06 杭州海康威视***技术有限公司 Video data storage and query method and device

Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006173939A (en) * 2004-12-15 2006-06-29 Mitsubishi Electric Corp Video data accumulation system and video data retrieval method
JP2007180985A (en) * 2005-12-28 2007-07-12 Matsushita Electric Ind Co Ltd Video-recorded video backup system
JP2009187155A (en) * 2008-02-05 2009-08-20 Victor Co Of Japan Ltd Monitoring device, monitoring method, and monitoring program
US20090219411A1 (en) * 2008-03-03 2009-09-03 Videolq, Inc. Content aware storage of video data
CN101572804A (en) * 2009-03-30 2009-11-04 浙江大学 Multi-camera intelligent control method and device
US7777783B1 (en) * 2007-03-23 2010-08-17 Proximex Corporation Multi-video navigation
US20120127315A1 (en) * 2010-11-18 2012-05-24 Kurt Heier Software, systems, and methods for video recording of a transaction involving protected data
WO2013185434A1 (en) * 2012-06-15 2013-12-19 杭州海康威视数字技术股份有限公司 High-reliability, extensible video storage and search method and system thereof
CN104079885A (en) * 2014-07-07 2014-10-01 广州美电贝尔电业科技有限公司 Nobody-monitored and linkage-tracked network camera shooting method and device
CN104376093A (en) * 2014-11-21 2015-02-25 深圳市华宝电子科技有限公司 Searching method and device for video files
JP2015207798A (en) * 2014-04-17 2015-11-19 株式会社 日立産業制御ソリューションズ Video data management method, monitoring camera device, and monitoring camera system
CN105120099A (en) * 2015-08-31 2015-12-02 小米科技有限责任公司 Shooting control method and device
CN105391965A (en) * 2015-11-05 2016-03-09 广东欧珀移动通信有限公司 Multi-camera-based video recording method and apparatus
CN106303442A (en) * 2016-08-26 2017-01-04 浙江大华技术股份有限公司 Follow the trail of multi-path topology method for building up, destination object method for tracing and equipment
CN107592506A (en) * 2017-09-26 2018-01-16 英华达(上海)科技有限公司 A kind of monitoring method and supervising device, monitoring system
CN108022414A (en) * 2017-10-25 2018-05-11 来邦科技股份公司 A kind of alarm linkage method of command dispatching system, electronic equipment and storage medium
CN108234961A (en) * 2018-02-13 2018-06-29 欧阳昌君 A kind of multichannel video camera coding and video flowing drainage method and system
WO2018157758A1 (en) * 2017-02-28 2018-09-07 中兴通讯股份有限公司 Smart home system
CN109040674A (en) * 2018-07-23 2018-12-18 华为技术有限公司 A kind of data transmission method and device
CN109191749A (en) * 2018-11-01 2019-01-11 北京北信智云科技有限公司 A kind of pipe network facilities monitoring sensing and video interlink system and its control method
CN109218839A (en) * 2017-07-07 2019-01-15 杭州海康威视数字技术股份有限公司 Video broadcasting method and device

Patent Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006173939A (en) * 2004-12-15 2006-06-29 Mitsubishi Electric Corp Video data accumulation system and video data retrieval method
JP2007180985A (en) * 2005-12-28 2007-07-12 Matsushita Electric Ind Co Ltd Video-recorded video backup system
US7777783B1 (en) * 2007-03-23 2010-08-17 Proximex Corporation Multi-video navigation
JP2009187155A (en) * 2008-02-05 2009-08-20 Victor Co Of Japan Ltd Monitoring device, monitoring method, and monitoring program
US20090219411A1 (en) * 2008-03-03 2009-09-03 Videolq, Inc. Content aware storage of video data
CN101572804A (en) * 2009-03-30 2009-11-04 浙江大学 Multi-camera intelligent control method and device
US20120127315A1 (en) * 2010-11-18 2012-05-24 Kurt Heier Software, systems, and methods for video recording of a transaction involving protected data
WO2013185434A1 (en) * 2012-06-15 2013-12-19 杭州海康威视数字技术股份有限公司 High-reliability, extensible video storage and search method and system thereof
JP2015207798A (en) * 2014-04-17 2015-11-19 株式会社 日立産業制御ソリューションズ Video data management method, monitoring camera device, and monitoring camera system
CN104079885A (en) * 2014-07-07 2014-10-01 广州美电贝尔电业科技有限公司 Nobody-monitored and linkage-tracked network camera shooting method and device
CN104376093A (en) * 2014-11-21 2015-02-25 深圳市华宝电子科技有限公司 Searching method and device for video files
CN105120099A (en) * 2015-08-31 2015-12-02 小米科技有限责任公司 Shooting control method and device
CN105391965A (en) * 2015-11-05 2016-03-09 广东欧珀移动通信有限公司 Multi-camera-based video recording method and apparatus
CN106303442A (en) * 2016-08-26 2017-01-04 浙江大华技术股份有限公司 Follow the trail of multi-path topology method for building up, destination object method for tracing and equipment
WO2018157758A1 (en) * 2017-02-28 2018-09-07 中兴通讯股份有限公司 Smart home system
CN109218839A (en) * 2017-07-07 2019-01-15 杭州海康威视数字技术股份有限公司 Video broadcasting method and device
CN107592506A (en) * 2017-09-26 2018-01-16 英华达(上海)科技有限公司 A kind of monitoring method and supervising device, monitoring system
CN108022414A (en) * 2017-10-25 2018-05-11 来邦科技股份公司 A kind of alarm linkage method of command dispatching system, electronic equipment and storage medium
CN108234961A (en) * 2018-02-13 2018-06-29 欧阳昌君 A kind of multichannel video camera coding and video flowing drainage method and system
CN109040674A (en) * 2018-07-23 2018-12-18 华为技术有限公司 A kind of data transmission method and device
CN109191749A (en) * 2018-11-01 2019-01-11 北京北信智云科技有限公司 A kind of pipe network facilities monitoring sensing and video interlink system and its control method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112752100A (en) * 2020-12-28 2021-05-04 杭州海康威视***技术有限公司 Method and device for determining video integrity and readable storage medium
CN112752100B (en) * 2020-12-28 2022-08-12 杭州海康威视***技术有限公司 Method and device for determining video integrity and readable storage medium
CN113220935A (en) * 2021-05-28 2021-08-06 杭州海康威视***技术有限公司 Video data storage and query method and device

Also Published As

Publication number Publication date
CN111428080B (en) 2024-02-27

Similar Documents

Publication Publication Date Title
US11200022B2 (en) Method and apparatus of playing audio data
CN109101213B (en) Method, device and storage medium for controlling sound card to transmit audio
CN109922356B (en) Video recommendation method and device and computer-readable storage medium
CN110248236B (en) Video playing method, device, terminal and storage medium
CN112084811B (en) Identity information determining method, device and storage medium
CN110839128B (en) Photographing behavior detection method and device and storage medium
CN111510482B (en) Method and device for determining failed network request and computer storage medium
CN111858382A (en) Application program testing method, device, server, system and storage medium
CN112148899A (en) Multimedia recommendation method, device, equipment and storage medium
CN109547847B (en) Method and device for adding video information and computer readable storage medium
CN110471614B (en) Method for storing data, method and device for detecting terminal
CN111192072A (en) User grouping method and device and storage medium
CN111428080B (en) Video file storage method, video file search method and video file storage device
CN112559795A (en) Song playing method, song recommending method, device and system
CN111008083A (en) Page communication method and device, electronic equipment and storage medium
CN112597417B (en) Page updating method and device, electronic equipment and storage medium
CN113706807B (en) Method, device, equipment and storage medium for sending alarm information
CN110717110B (en) Multimedia resource filtering method and device, electronic equipment and storage medium
CN111399797B (en) Voice message playing method and device, electronic equipment and storage medium
CN110941458B (en) Method, device, equipment and storage medium for starting application program
CN111190751B (en) Task processing method and device based on song list, computer equipment and storage medium
CN112364244A (en) Multimedia data recommendation method, device, server and storage medium
CN109344284B (en) Song file playing method, device, equipment and storage medium
CN107948171B (en) User account management method and device
CN111464829A (en) Method, device and equipment for switching media data and storage medium

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