[go: up one dir, main page]

CN111355910B - Video storage method, video search method and device - Google Patents

Video storage method, video search method and device Download PDF

Info

Publication number
CN111355910B
CN111355910B CN201910327833.1A CN201910327833A CN111355910B CN 111355910 B CN111355910 B CN 111355910B CN 201910327833 A CN201910327833 A CN 201910327833A CN 111355910 B CN111355910 B CN 111355910B
Authority
CN
China
Prior art keywords
video
stored
storage medium
target
file
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
CN201910327833.1A
Other languages
Chinese (zh)
Other versions
CN111355910A (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 CN201910327833.1A priority Critical patent/CN111355910B/en
Publication of CN111355910A publication Critical patent/CN111355910A/en
Application granted granted Critical
Publication of CN111355910B publication Critical patent/CN111355910B/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 OR CALCULATING; 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/73Querying
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/78Television signal recording using magnetic recording
    • H04N5/781Television signal recording using magnetic recording on disks or drums

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The embodiment of the application provides a video storage method and a video search method and device, and relates to the technical field of video processing, wherein the video storage method comprises the following steps: acquiring equipment information of video acquisition equipment as first equipment information, and acquiring a video acquired by the video acquisition equipment; storing the obtained video in a storage medium in the form of a video file; according to the first device information, storing the corresponding relation data of the stored video files in the storage medium, wherein the corresponding relation data of each video file is used for expressing that: the video file and the device for collecting the video in the video file. By applying the scheme provided by the embodiment of the application, videos are stored and searched, and the convenience of video searching can be improved.

Description

Video storage method, video search method, video storage device and video search device
Technical Field
The present application relates to the field of video processing technologies, and in particular, to a method and an apparatus for video storage and video search.
Background
At present, more and more automobiles are provided with vehicle-mounted NVR (Network Video Recorder). The vehicle-mounted NVR can directly store the video collected by the camera of the automobile in the hard disk plugged in the vehicle-mounted NVR. However, in an actual use process, the hard disks may be inserted in different vehicle-mounted NVRs in a mixed manner, that is, the same hard disk is inserted in different vehicle-mounted NVRs successively. Therefore, videos collected by the cameras of different automobiles are stored in the same hard disk.
Because the vehicle-mounted NVR directly stores the videos collected by the cameras of the automobiles in the inserted hard disks, once one hard disk has the mixed insertion condition, the videos collected by the cameras of different automobiles can be mixed in the hard disk. In this case, when the user wants to view a video captured by the camera of a certain vehicle, the vehicle-mounted NVR may not easily search for the video captured by the camera of the vehicle that the user wants to view from the mixed video.
Therefore, the vehicle-mounted NVR directly stores the video collected by the camera of the automobile in the hard disk, which causes difficulty in searching the video in a targeted manner.
Disclosure of Invention
The embodiment of the application aims to provide a video storage method and a video search method and device so as to improve the convenience of video search. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a video storage method, where the method includes:
acquiring equipment information of video acquisition equipment as first equipment information, and acquiring a video acquired by the video acquisition equipment;
storing the obtained video in a storage medium in the form of a video file;
according to the first device information, storing the corresponding relation data of the stored video files in the storage medium, wherein the corresponding relation data of each video file is used for expressing that: the video file and the device for collecting the video in the video file.
In an embodiment of the present application, the obtaining device information of the video capture device includes:
after the storage medium is monitored to be successfully connected, video acquisition equipment for acquiring videos is determined;
device information of the determined video capture device is obtained.
In an embodiment of the application, the storing, in the storage medium, relationship data corresponding to the stored video file according to the first device information includes:
acquiring a video acquisition time period corresponding to the stored video file;
and storing relationship data which corresponds to the stored video file and comprises the name of the stored video file and the video acquisition time period in the storage medium according to the first equipment information.
In an embodiment of the application, the storing, in the storage medium, relationship data corresponding to the stored video file according to the first device information includes:
determining a video class to which the stored video file belongs as a first video class;
obtaining an end storage position of stored data in a first storage area, wherein the first storage area is as follows: the storage medium is used for storing a region of relation data corresponding to the video file belonging to the first video class;
and storing the relation data corresponding to the stored video file to the obtained tail storage position according to the first equipment information.
In an embodiment of the present application, the obtaining device information of the video capture device includes:
acquiring equipment information of video acquisition equipment in communication connection;
and/or
The storing the obtained video in the form of a video file in a storage medium comprises:
and storing the obtained video into the spliced storage medium in the form of a video file.
In a second aspect, an embodiment of the present application provides a video search method, where the method includes:
acquiring equipment information of target video acquisition equipment as target equipment information;
searching a target video file stored in a storage medium according to the relation data and the target device information stored in the storage medium, wherein the target video file is as follows: storing a file of videos captured by the target video capture device, each relationship data representing: and the corresponding relation between a video file stored in the storage medium and the equipment for acquiring the video in the video file.
In an embodiment of the present application, the video search method further includes:
acquiring a target video acquisition time period;
the searching for the target video file stored in the storage medium according to the relationship data and the target device information stored in the storage medium includes:
and searching a target video file stored in the storage medium and having video acquisition time within the target video acquisition time period according to the relation data and the target device information stored in the storage medium.
In an embodiment of the application, the obtaining device information of the target video capture device as the target device information includes:
obtaining a search condition;
determining video acquisition equipment for acquiring videos stored in the video files meeting the search conditions as target video acquisition equipment;
acquiring equipment information of the target video acquisition equipment as target equipment information;
the searching for the target video file stored in the storage medium according to the relationship data and the target device information stored in the storage medium includes:
determining a video class matched with the search condition as a target video class;
determining an area in the storage medium for storing first relationship data as a first storage area, wherein the first relationship data is: relational data corresponding to the video files belonging to the target video class;
and searching the target video file which is stored in the storage medium and meets the searching condition according to the relation data and the target device information stored in the first storage area.
In an embodiment of the application, the searching for the target video file meeting the search condition stored in the storage medium according to the relationship data and the target device information stored in the first storage area includes:
obtaining the number of the relationship data stored in the first storage area from target class information stored in the storage medium, wherein the target class information is: class information of the target video class;
and searching the target video files meeting the search condition in the video files corresponding to the relation data stored in the first storage area according to the quantity and the target device information.
In a third aspect, an embodiment of the present application provides a video storage apparatus, where the apparatus includes:
the first equipment information acquisition module is used for acquiring equipment information of the video acquisition equipment as first equipment information;
the video acquisition module is used for acquiring videos acquired by the video acquisition equipment;
the file storage module is used for storing the obtained video in a storage medium in a video file form;
a relation data storage module, configured to store, in the storage medium, relation data corresponding to the stored video files according to the first device information, where the relation data corresponding to each video file is used to indicate: the video file and the device for collecting the video in the video file.
In an embodiment of the application, the first device information obtaining module is specifically configured to determine a video capture device for capturing a video after monitoring that a storage medium is successfully connected; and obtaining the equipment information of the determined video acquisition equipment as first equipment information.
In an embodiment of the application, the relational data storage module is specifically configured to obtain a video acquisition time period corresponding to a stored video file; and storing relationship data which corresponds to the stored video file and contains the name of the stored video file and the video acquisition time period in the storage medium according to the first equipment information.
In one embodiment of the present application, the relationship data storage module includes:
the first video class determining unit is used for determining the video class to which the stored video file belongs as a first video class;
a storage location obtaining unit, configured to obtain an end storage location of stored data in a first storage area, where the first storage area is: the storage medium is used for storing a region of relation data corresponding to the video file belonging to the first video class;
and the relation data storage unit is used for storing the relation data corresponding to the stored video file to the obtained tail storage position according to the first equipment information.
In an embodiment of the application, the first device information obtaining module is specifically configured to obtain device information of a video capture device in communication connection, as the first device information;
and/or
The file storage module is specifically used for storing the obtained video in a video file form into an inserted storage medium.
In a fourth aspect, an embodiment of the present application provides a video search apparatus, where the apparatus includes:
the second equipment information acquisition module is used for acquiring equipment information of the target video acquisition equipment as target equipment information;
a video file searching module, configured to search a target video file stored in a storage medium according to relationship data stored in the storage medium and the target device information, where the target video file is: storing a file of videos captured by the target video capture device, each relationship data representing: and the corresponding relation between a video file stored in the storage medium and the equipment for acquiring the video in the video file.
In an embodiment of the present application, the video search apparatus further includes:
the time period obtaining module is used for obtaining a target video acquisition time period;
the video file searching module is specifically configured to search, according to the relationship data and the target device information stored in the storage medium, a target video file stored in the storage medium and having a video acquisition time within the target video acquisition time period.
In an embodiment of the application, the second device information obtaining module is specifically configured to obtain a search condition; determining video acquisition equipment for acquiring videos stored in the video files meeting the search conditions as target video acquisition equipment; acquiring equipment information of the target video acquisition equipment as target equipment information;
the video file searching module comprises:
a second video class determination unit configured to determine a video class matching the search condition as a target video class;
an area determining unit, configured to determine, as a first storage area, an area in the storage medium for storing first relationship data, where the first relationship data is: relational data corresponding to the video files belonging to the target video class;
and the video file searching unit is used for searching the target video file which is stored in the storage medium and meets the searching condition according to the relation data and the target device information stored in the first storage area.
In an embodiment of the application, the video file searching unit is specifically configured to obtain, from object class information stored in the storage medium, a number of relationship data stored in the first storage area, where the object class information is: class information of the target video class; and searching the target video files meeting the search condition in the video files corresponding to the relation data stored in the first storage area according to the quantity and the target device information.
In a fifth aspect, embodiments provide an electronic device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: the method steps of the first aspect described above are implemented.
In a sixth aspect, embodiments of the present application provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: the method steps of the first aspect are carried out.
In a seventh aspect, an embodiment of the present application provides an electronic device, including a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: the method steps according to the second aspect above are implemented.
In an eighth aspect, embodiments of the present application provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: the method steps according to the second aspect above are implemented.
As can be seen from the above, when the scheme provided by the embodiment of the present application is applied to video storage, in addition to storing videos acquired by the video acquisition device in the storage medium, relationship data corresponding to video files is also stored in the storage medium. Because the corresponding relation data of each video file represents the corresponding relation between the video file and the equipment for acquiring the video in the video file, after the video acquired by the video acquisition equipment is stored in the storage medium in the manner, when the video acquired by each video acquisition equipment is required to be searched, the video file in which the video acquired by each video acquisition equipment is stored can be searched according to the relation data stored in the storage medium. Therefore, after the video is stored by applying the scheme provided by the embodiment of the application, the subsequent targeted video search is facilitated, and the convenience of the video search can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a video storage method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a video search method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a video storage apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a video search apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the 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.
In the prior art, videos collected by a camera of an automobile are directly stored in a hard disk by the vehicle-mounted NVR, and the hard disk may be inserted in a plurality of vehicle-mounted NVRs in a mixed manner, so that when videos are searched in the hard disk, video searching is difficult to be conducted in a targeted manner. In order to solve the technical problem, embodiments of the present application provide a video storage method and a video search method and apparatus.
In one embodiment of the present application, a video storage method is provided, which includes:
acquiring equipment information of video acquisition equipment as first equipment information, and acquiring a video acquired by the video acquisition equipment;
storing the obtained video in a storage medium in the form of a video file;
storing relationship data corresponding to the stored video files in a storage medium according to the first device information, wherein the relationship data corresponding to each video file is used for representing: the video file and the device for collecting the video in the video file.
Because the relationship data corresponding to each video file represents the corresponding relationship between the video file and the device for acquiring the video in the video file, when the video acquired by the video acquisition device is required to be searched after the video acquired by the video acquisition device is stored in the storage medium according to the above manner, the video file in which the video acquired by each video acquisition device is stored can be searched according to the relationship data stored in the storage medium. Therefore, after the video is stored by the scheme provided by the embodiment, the subsequent targeted video search is facilitated, and the convenience of the video search can be improved.
Based on the idea of storing relationship data in addition to video files when storing videos, in another embodiment of the present application, a video search method is provided, including:
acquiring equipment information of target video acquisition equipment as target equipment information;
searching a target video file stored in a storage medium according to the relationship data and the target device information stored in the storage medium, wherein the target video file is as follows: storing a file of videos captured by the target video capture device, each relationship data representing: the corresponding relation between a video file stored in the storage medium and the equipment for acquiring the video in the video file.
Because the storage medium stores the video files and also stores the relationship data corresponding to the video files, and the relationship data corresponding to each video file represents the corresponding relationship between the video file and the device for acquiring the video in the video file, when the scheme provided by the embodiment is applied to searching the video, the video files storing the videos acquired by each video acquisition device can be searched according to the relationship data stored in the storage medium, so that the convenience of video searching is improved.
The following respectively describes in detail the video storage and video search methods provided by the embodiments of the present application through specific embodiments.
Fig. 1 is a schematic flowchart of a video storage method according to an embodiment of the present application.
The following first describes an execution body of the video storage method provided in the embodiment of the present application.
In one case, the execution main body may be an electronic device such as a vehicle-mounted NVR, a desktop computer, and a notebook computer. The electronic equipment can obtain the video collected by the video collecting equipment in a mode of being in communication connection with the video collecting equipment, and the electronic equipment can also obtain the video collected by the video collecting equipment in a mode of being in communication connection with other equipment connected with the video collecting equipment. In addition, the electronic device may be connected to the storage medium by plugging or the like.
In another case, the executing body may be a video capture device itself. The video acquisition equipment can acquire videos and can be connected with a storage medium in a plugging mode and the like.
For example, the video capture device may be a CAMERA, an analog CAMERA, an IPC (IP CAMERA), or the like.
The storage medium refers to a carrier for storing data, and may be, for example, a hard disk, a flash memory, or the like.
In still another case, the execution body may be a storage medium itself having a data processing capability. For example, SSD (Solid State Disk), etc.
Specifically, the video storage method includes:
s101: and acquiring equipment information of the video acquisition equipment as first equipment information, and acquiring the video acquired by the video acquisition equipment.
In the case that the execution subject of the embodiment of the present application is not the video capture device itself, the execution subject may obtain device information of one or more video capture devices. For example, when the execution subject is a vehicle-mounted NVR, the video capture device may be each camera on the vehicle for capturing scene information around the vehicle body, and in this case, the vehicle-mounted NVR may obtain device information captured by each camera.
Based on the above, this step may be to obtain device information of one or more video capture devices.
In an embodiment of the application, the device information may include: a device serial number and/or a device identification, etc. In addition, the device information may further include information of a device in which the video capture device is located.
Taking the electronic device as a vehicle-mounted NVR as an example, the device information of the camera in communication connection with the vehicle-mounted NVR on the vehicle may include information such as a serial number of the camera, an identifier of the camera, and the like, and may also include information of the vehicle and the like. For example, the information of the vehicle may be a license plate number, a vehicle number, and the like.
In view of the foregoing, in an embodiment of the present application, device information of a video capture device in communication connection may be specifically obtained as the first device information. For example, in the case where the execution subject is the vehicle-mounted NVR, the vehicle-mounted NVR is communicatively connected to each camera mounted on the vehicle, and at this time, the vehicle-mounted NVR can obtain the device information of one or more cameras communicatively connected thereto.
Due to the reasons of large data volume of videos, limited storage resources of electronic equipment and the like, in order to ensure that videos collected by the video collecting equipment can be completely stored, the electronic equipment can be connected with various storage media in a plugging mode and the like. Based on this, in an embodiment of the present application, when the execution main body obtains the device information of the video capture device, after the execution main body monitors that the storage medium is successfully connected, the video capture device for capturing a video may be determined, and the device information of the determined video capture device may be obtained. That is, the acquisition of the device information is triggered by a connection event on the storage medium and the electronic device. Thus, the obtained device information can be effectively ensured to be: information of a device that collects the video to be stored in the above-mentioned storage medium. In addition, the device information can be effectively prevented from being repeatedly obtained after the storage medium is connected to the electronic device and in the process of storing the video.
Specifically, when the execution subject is the storage medium itself, it can be understood that the following description indicates that the storage medium is successfully connected: the storage medium monitors that it is successfully connected to another electronic device.
When the execution main body is an electronic device other than a storage medium such as a vehicle-mounted NVR and a video capture device, it can be understood that the storage medium is successfully connected when monitoring that the storage medium is successfully connected: the electronic device monitors that the storage medium is successfully connected.
In addition, when obtaining the device information of the determined video capture device, the executing entity may be implemented in one of the following ways:
the first method comprises the following steps: the execution subject may read the device information directly from the determined video capture device.
And the second method comprises the following steps: the execution main body may send an apparatus information acquisition request to the determined video capture apparatus, and after receiving the request, the determined video capture apparatus feeds back apparatus information of the video capture apparatus to the execution main body, so that the execution main body obtains the apparatus information of the determined video capture apparatus.
And the third is that: the execution main body can locally pre-record the equipment information of each video acquisition equipment, and after the video acquisition equipment is determined, the execution main body directly obtains the equipment information of the determined video acquisition equipment from the local.
In another embodiment of the application, the execution main body may further monitor whether a video capture device is successfully connected with the execution main body, and if so, may obtain device information of the video capture device. In this case, the execution body does not consider whether the storage medium is connected, but obtains the device information of the video capture device when the video capture device successfully establishes a communication connection with the execution body.
Since the video capture device continuously captures the video, in an embodiment of the present application, obtaining the video captured by the video capture device may also be understood as: the video collected by the video collecting device is continuously obtained along with the video collected by the video collecting device.
S102: the obtained video is stored in a storage medium in the form of a video file.
Since the execution main body can be connected with the storage medium in a manner of plugging, in one embodiment of the present application, the obtained video can be stored in the form of a video file in the plugged storage medium.
In addition, the execution subject may continuously obtain the video collected by the video collecting device, and in order to prevent the video file from being too large, in an embodiment of the present application, the obtained video may be stored in the storage medium according to at least one of the following manners:
generating a video file for each video with a preset time duration, for example, the preset time duration may be 5 minutes, 10 minutes, and the like;
a video file is generated when the file size reaches a preset size, which may be 100M, 200M, etc., for example.
In addition, after the storage medium is successfully connected, the connection may be disconnected for various reasons, in this case, to prevent the video captured by the video capture device from being lost, when it is detected that the storage medium is disconnected, videos that are not stored in the storage medium in the obtained videos are formed into a video file and stored in the storage medium. That is, the event that the storage medium is disconnected triggers the video file to be formed and stored into the storage medium. For example, the storage medium being disconnected may be the storage medium being pulled from the electronic device.
S103: and storing the corresponding relation data of the stored video file in the storage medium according to the first device information.
Wherein, the corresponding relation data of each video file is used for expressing: the video file and the device for collecting the video in the video file.
For example, the relationship data corresponding to each video file may be: and the name video _ name of the video file and the device information device _ information of the device for acquiring the video in the video file form a corresponding relation.
That is, video _ name ← → device _ information.
The relationship data corresponding to each video file may include at least one of the following information in addition to the name and the device information of the video file:
the video acquisition time period in the video file, the size of the video file, the storage position of the video file, the duration of the video in the video file and the like.
On the basis, in an embodiment of the present application, when the storage medium stores the relationship data corresponding to the stored video file according to the first device information, the video capture time period corresponding to the stored video file may be obtained, and the relationship data corresponding to the stored video file and including the name of the stored video file and the video capture time period may be stored in the storage medium according to the first device information.
The video acquisition time period corresponding to the video file refers to the video acquisition time period in the video file. Specifically, the start time of the video capture time period may be a start time of writing the video in the video file into the storage medium, and the end time of the video capture time period may be an end time of writing the video in the video file into the storage medium, that is, the video capture time period is determined by the storage side time. In addition, the start time and the end time of the video capture time period may also be the start time and the end time of capturing the video in the video file, which are fed back by the video capture device, that is, the video capture time period is determined by the capture-side time.
Next, the storage of the relationship data corresponding to the stored video file in the storage medium will be described from the perspective of the storage method.
In the first case, a specific area may be set in the storage medium for storing relationship data corresponding to the video file stored in the storage medium. In this case, the relationship data corresponding to the video file stored in the storage medium may be directly stored in the specific area.
In the second case, a file for storing the relationship data may also be created in the storage medium, and for convenience of description, the file is referred to as a data file in the embodiment of the present application. In this case, the relationship data corresponding to the video file stored in the storage medium may be stored in the data file.
In a third case, on the basis of the second case, a plurality of data files may be created in the storage medium, each data file being used to store relationship data corresponding to video files belonging to the same video class, and in this case, a data file used to store relationship data corresponding to the stored video file may be determined first, and then the relationship data corresponding to the stored video file may be stored in the determined data file. Therefore, the classified storage of the relational data can be realized, and the searching and the management of the relational data are convenient.
Specifically, the video class to which the video file belongs may be determined according to a device that acquires a video in the video file, for example, the video files that store videos acquired by the same video acquisition device belong to the same video class, and in the case that the execution subject is a vehicle-mounted NVR, the video files that store videos acquired by cameras of the same vehicle may also be considered to belong to the same video class. In addition, the video class to which the video file belongs may also be determined according to a video capture time period corresponding to the video file, for example, video files whose video capture time periods are within the same time period belong to the same video class.
When each data file is used for storing the relationship data corresponding to the video files belonging to the same video class, since the relationship data corresponding to the video files belonging to the same video class may have the same information, in order to reduce the data amount of the data to be stored, the same information in each relationship data may be stored only once when the data is stored in the data file, and then different information in each relationship data is stored respectively.
Taking the case that video files storing videos captured by the same video capture device belong to the same video class, in this case, the device information in each piece of relationship data stored in the data file is the same, so the device information of the video capture device may be stored in the header information of the data file, and then when the relationship data is stored in the data file, only information other than the device information in the relationship data is stored in the data file.
In view of the foregoing, in one embodiment of the present application, when the relationship data corresponding to the stored video file is stored in the storage medium, a video class to which the stored video file belongs may be determined, as the first video class, an end storage location of the stored data in the first storage area is obtained, and the relationship data corresponding to the stored video file is stored to the obtained end storage location according to the first device information.
Wherein the first storage area is: and an area in the storage medium for storing relationship data corresponding to a video file belonging to the first video class.
Therefore, when the relational data are stored, the first storage area can be directly found, and data storage is carried out at the tail storage position of the first storage area without traversing and searching the storage position of the relational data in the storage medium, so that the data storage efficiency can be effectively improved.
Each video class may have class information for a clearer description of each video class. The class information of each video class may include information describing video files in the video class.
For example, in the case that the video class to which the video file belongs is determined according to the device that collects the video in the video file, the class information of the video class may include: the device information of the video acquisition device, the class time period described by the earliest acquisition time and the latest acquisition time of the video in each video file of the video class, the number of the video files in the video class, the tail storage position of the stored data in the storage area, and the like. Wherein, the storage area is: and the storage medium is used for storing the area of the corresponding relation data of the video files belonging to the video class.
Under the condition that the video class to which the video file belongs is determined according to the video acquisition time period corresponding to the video file, the class information of the video class may include: the video acquisition time period corresponding to the video class, the class time period described by the earliest acquisition time and the latest acquisition time of the video in each video file of the video class, the number of the video files in the video class, the tail storage position of the stored data in the storage area, the equipment information of the equipment for acquiring the video in each video file, and the like.
In view of the above, each time the relationship data is stored in the first storage area, the last storage location of the first storage area may be updated into the class information of the first video class, so that when the last storage location of the stored data in the first storage area is obtained, the last storage location of the first storage area may be directly obtained from the class information of the first video class.
In an embodiment of the present application, when the end storage location of the stored data in the first storage area is obtained, the end storage location recorded in the first type of information may be obtained as the end storage location of the stored data in the first storage area. Wherein, the first type information is: class information of the first video class stored in the storage medium.
On the basis, after the relation data corresponding to the stored video file is stored to the obtained tail storage position according to the first device information, video information including the tail storage position of the video in the stored video file can be obtained, and the first type information is updated based on the obtained video information. This makes it possible to update the last storage location recorded in the first type of information to the last storage location of the stored video file.
Specifically, in addition to the end storage location of the stored video file, the video information may further include: a video capture time period, first device information, etc. In this way, the class time period may be updated based on the video capture time period included in the video information, the device information included in the first class information may be updated based on the first device information, and the like.
In addition, when the relationship data is stored in the file in the first storage area, the end storage position of the stored data in the first storage area can also be obtained by obtaining the file end.
As can be seen from the above, when the solutions provided by the above embodiments are applied to video storage, in addition to storing videos collected by the video collecting device in the storage medium, relationship data corresponding to video files are also stored in the storage medium. Because the relationship data corresponding to each video file represents the corresponding relationship between the video file and the device for acquiring the video in the video file, when the video acquired by the video acquisition device is required to be searched after the video acquired by the video acquisition device is stored in the storage medium according to the above manner, the video file in which the video acquired by each video acquisition device is stored can be searched according to the relationship data stored in the storage medium. Therefore, after the video is stored by applying the scheme provided by each embodiment, the subsequent targeted video search is facilitated, and the convenience of the video search can be improved.
Based on the idea of storing relationship data in addition to the video file when storing the video, the embodiment of the application further provides a video searching method.
Fig. 2 is a schematic flowchart of a video search method according to an embodiment of the present application.
The execution main body of the video search method can be electronic equipment such as a vehicle-mounted NVR, a video acquisition device, a desktop computer, a notebook computer and the like, which can be connected with a storage medium in a plug-in mode and the like, and can also be a storage medium with data processing capacity.
Specifically, the video search method includes:
s201: and acquiring the equipment information of the target video acquisition equipment as target equipment information.
In the embodiment of the present application, the target video capturing device is a device for capturing a video to be searched.
In one case, when performing video search, the execution main body in the embodiment of the present application may first obtain a search condition, and then determine a target video capture device by analyzing the search condition, so as to obtain target device information.
In another case, the execution subject of the embodiment of the present application may further obtain device information input by the user as the target device information.
In another case, the execution main body in the embodiment of the present application may further obtain information of a device where the video capture device is located, and then obtain the target device information according to the video capture device set on the device that is known in advance. For example, the vehicle information may be obtained first, and then the device information of the camera mounted on the vehicle, which is known in advance and is characterized by the vehicle information, may be obtained as the target device information.
The present application is described only by way of example, and is not limited to the manner in which the target device information is obtained.
S202: and searching the target video file stored in the storage medium according to the relation data and the target device information stored in the storage medium.
Wherein, the target video file is: storing files of videos acquired by the target video acquisition device, wherein each relationship data corresponds to each video file stored in the storage medium, and the relationship data corresponding to each video file is used for representing: the video file and the device for collecting the video in the video file. That is, each relationship data is used to represent: the corresponding relation between a video file stored in the storage medium and the equipment for acquiring the video in the video file.
Because the relation data corresponding to each video file represents the corresponding relation between the video file and the equipment for acquiring the video in the video file, the relation data related to the target video acquisition equipment can be selected from the relation data stored in the storage medium according to the target equipment information, and the video in the video file related in the selected relation data is acquired by the target video acquisition equipment, so that the search result can be obtained according to the video file related in the selected relation data.
When the storage medium stores the relationship data, the relationship data may be stored in a specific area of the storage medium or may be stored in a file specific to the storage medium.
Because the storage medium stores the video files and also stores the relationship data corresponding to the video files, and the relationship data corresponding to each video file represents the corresponding relationship between the video file and the device for acquiring the video in the video file, when the scheme provided by the embodiment is applied to searching the video, the video files storing the videos acquired by each video acquisition device can be searched according to the relationship data stored in the storage medium, so that the convenience of video searching is improved.
In searching for a video, a user may want a more accurate video, for example, a video captured by a certain video capture device for a certain period of time, in addition to the video captured by a certain video capture device. In view of this, in an embodiment of the present application, the video search method may further include:
and acquiring a target video acquisition time period.
In this case, when searching for a target video file stored in the storage medium based on the relationship data and the target device information stored in the storage medium, the target video file stored in the storage medium and having a video capture time within the target video capture period may be searched for based on the relationship data and the target device information stored in the storage medium.
Specifically, the target video capturing time period may be obtained by analyzing the search condition, or may be obtained by obtaining time period information input by the user.
As can be known from the foregoing embodiment shown in fig. 1, the relationship data corresponding to each video file may include, in addition to the name and the device information of the video file, information such as a video acquisition time period in the video file, a video file size, a video file storage location, and a video duration in the video file, in this case, relationship data that includes the target device information and includes the video acquisition time period within the target video acquisition time period may be searched in the relationship data stored in the storage medium, and then the video file corresponding to the name of the file in the searched relationship data may be determined as the target video file stored in the storage medium and having the video acquisition time within the target video acquisition time period.
In an embodiment of the present application, the step S201 obtains device information of the target video capture device, and the target device information may be implemented by the following steps a to C.
Step A: a search condition is obtained.
Specifically, the search condition may include information related to a device that collects the video to be searched, and information about a collection time period of the video to be searched.
The information related to the video capture device for capturing the video to be searched may be device information of the video capture device, and may also be information of a device in which the video capture device is installed.
And B: and determining video acquisition equipment for acquiring videos stored in the video files meeting the search conditions as target video acquisition equipment.
C, performing a step; and acquiring the equipment information of the target video acquisition equipment as target equipment information.
When the search condition includes the device information, the device information included in the search condition may be the target device information, and the video capture device indicated by the device information included in the search condition is the target video capture device.
When the carrier information is included in the search condition, the video capture device included in the device may be determined as a target video capture device according to the carrier information, and then device information of the target video capture device, that is, target device information, may be obtained.
When the device including the video capture device is a vehicle, the carrier information may be information of the vehicle, in which case, cameras on the vehicle may be determined according to the information of the vehicle, the cameras are the target video capture device, and the device information of the cameras is the target device information.
On the basis of the above, in the present embodiment, when the above step S202 searches for the target video file stored in the storage medium based on the relationship data and the target device information stored in the storage medium, it can be implemented by the following steps D-F.
Step D: and determining the video class matched with the search condition as the target video class.
Since the above-mentioned video classes may be determined from different angles, the information considered in determining the video class matching the search condition is not the same.
In one case, in the case where the video class is determined according to the video capture device, each video class corresponds to one video capture device, and therefore, when a video class matching the search condition is determined, a video class corresponding to the corresponding video capture device and the video capture device indicated by the search condition may be determined as the target video class.
For example, if the search condition indicates that a video file containing a video captured by device a is searched, video class 1 corresponds to device a, video class 2 corresponds to device B, and video class 3 corresponds to device C, then the target video class is video class 1.
In another case, in the case where the video class is determined according to the video capture period, each video class corresponds to a video capture period, and therefore, when a video class matching the search condition is determined, a video class whose corresponding video capture period coincides with the video capture period indicated by the search condition may be determined as the target video class.
For example, the search condition indicates that a video file containing the captured video at 2019.2.1300: 00:00-23:59:59 is searched, and the video capture time period corresponding to video class 1 is: 2019.1.1300: 00:00-23:59:59, the video collection time period corresponding to the video class 2 is: 2019.2.1312: 00:00-23:59:59, the video acquisition time period corresponding to video class 3 is: 2019.1.1300: 00:00-11:59:59, the target video class is video class 2 and video class 3.
Step E: and determining an area of the storage medium for storing the first relation data as a first storage area.
Wherein the first relation data is: and the relation data corresponds to the video files belonging to the target video class.
When the relationship data is stored in the file of the storage medium, the area where the file for storing the first relationship data is located is the first storage area.
Step F: and searching the target video file which is stored in the storage medium and meets the searching condition according to the relation data and the target device information stored in the first storage area.
Each video class may have class information for a clearer description of each video class. In this case, the number of the relationship data stored in the first storage area may be obtained from the target class information stored in the storage medium, and then the target video file satisfying the search condition among the video files corresponding to the relationship data stored in the first storage area may be searched according to the number and the target device information.
Wherein, the target class information is: class information of the target video class.
As can be seen from the above, in the scheme provided by this embodiment, after the target video class is determined, video file search is performed based on the target video class, so that search in all video files stored in the storage medium can be effectively avoided, and thus search efficiency is improved.
After the electronic device serving as the execution subject of the embodiment shown in fig. 2 obtains the search result, the search result may be sent to the client over the network, so that the user views the search result through the client.
In addition, the electronic device can also directly display the search result, so that the user can view the search result on the electronic device side.
The search result may include the name of the searched video file, a video capture time period, device information for capturing a video in the video file, and the like.
Specifically, in the case that the electronic device sends the search result to the client via the network, the search result may be encapsulated according to a preset network protocol, and then the encapsulated data may be sent to the client.
In the case where the electronic device directly presents the search result, the search result may be represented in a linked list. For example, first, a primary linked list is generated by using the target video class, each target video class is used as a node in the primary linked list, then, a secondary linked list of each target video class is generated by using the target video files meeting the search condition in each target video class, and the corresponding relation data of each target video file is used as a node of the secondary linked list.
Corresponding to the video storage method, the embodiment of the application also provides a video storage device.
Fig. 3 is a schematic structural diagram of a video storage apparatus according to an embodiment of the present application, where the apparatus includes:
a first device information obtaining module 301, configured to obtain device information of a video capture device as first device information;
a video obtaining module 302, configured to obtain a video collected by the video collecting device;
a file storage module 303, configured to store the obtained video in the form of a video file in a storage medium;
a relationship data storage module 304, configured to store relationship data corresponding to the stored video files in the storage medium according to the first device information, where the relationship data corresponding to each video file is used to represent: the video file and the device for collecting the video in the video file.
In an embodiment of the present application, the first device information obtaining module 301 is specifically configured to determine a video capture device for capturing a video after monitoring that a storage medium is successfully connected; and obtaining the equipment information of the determined video acquisition equipment as first equipment information.
In an embodiment of the present application, the relationship data storage module 304 is specifically configured to obtain a video acquisition time period corresponding to a stored video file; and storing relationship data which corresponds to the stored video file and contains the name of the stored video file and the video acquisition time period in the storage medium according to the first equipment information.
In an embodiment of the present application, the relationship data storage module 304 includes:
the first video class determining unit is used for determining the video class to which the stored video file belongs as a first video class;
a storage location obtaining unit, configured to obtain an end storage location of stored data in a first storage area, where the first storage area is: the storage medium is used for storing a region of relation data corresponding to the video file belonging to the first video class;
and the relation data storage unit is used for storing the relation data corresponding to the stored video file to the obtained tail storage position according to the first equipment information.
In an embodiment of the present application, the first device information obtaining module 301 may be specifically configured to obtain device information of a video capture device in communication connection, as the first device information;
and/or
The file storage module 303 may be specifically configured to store the obtained video in the form of a video file in an inserted storage medium.
In an embodiment of the application, the storage location obtaining unit is specifically configured to obtain an end storage location recorded in first type information as an end storage location of stored data in a first storage area, where the first type information is: class information of the first video class stored in the storage medium;
the relationship data storage module further comprises:
a storage location updating unit for obtaining video information including an end storage location of the stored video file after the relationship data storage unit stores the first relationship data to the obtained end storage location; updating the first type of information based on the obtained video information.
As can be seen from the above, when the solutions provided by the above embodiments are applied to video storage, in addition to storing the video acquired by the video acquisition device in the storage medium, the relational data corresponding to the video file is also stored in the storage medium. Because the relationship data corresponding to each video file represents the corresponding relationship between the video file and the device for acquiring the video in the video file, when the video acquired by the video acquisition device is required to be searched after the video acquired by the video acquisition device is stored in the storage medium according to the above manner, the video file in which the video acquired by each video acquisition device is stored can be searched according to the relationship data stored in the storage medium. Therefore, after the video is stored by applying the scheme provided by each embodiment, the subsequent targeted video search is facilitated, and the convenience of the video search can be improved.
Corresponding to the video searching method, the embodiment of the application also provides a video searching device.
Fig. 4 is a schematic structural diagram of a video search apparatus according to an embodiment of the present application, where the apparatus includes:
a second device information obtaining module 401, configured to obtain device information of a target video capture device as target device information;
a video file searching module 402, configured to search a target video file stored in a storage medium according to relationship data stored in the storage medium and the target device information, where the target video file is: storing a file of videos captured by the target video capture device, each relationship data representing: and the corresponding relation between a video file stored in the storage medium and the equipment for acquiring the video in the video file.
In an embodiment of the present application, the video search apparatus further includes:
the time period obtaining module is used for obtaining a target video acquisition time period;
the video file searching module 402 is specifically configured to search, according to the relationship data and the target device information stored in the storage medium, a target video file stored in the storage medium and having a video capturing time within the target video capturing time period.
In an embodiment of the application, the second device information obtaining module 401 is specifically configured to obtain a search condition; determining video acquisition equipment for acquiring videos stored in the video files meeting the search conditions as target video acquisition equipment; acquiring equipment information of the target video acquisition equipment as target equipment information;
the video file searching module 402 includes:
a second video class determination unit configured to determine a video class matching the search condition as a target video class;
an area determining unit, configured to determine, as a first storage area, an area in the storage medium for storing first relationship data, where the first relationship data is: relational data corresponding to the video files belonging to the target video class;
and the video file searching unit is used for searching the target video file which is stored in the storage medium and meets the searching condition according to the relation data and the target device information stored in the first storage area.
In an embodiment of the application, the video file searching unit is specifically configured to obtain, from object class information stored in the storage medium, a number of relationship data stored in the first storage area, where the object class information is: class information of the target video class; and searching the target video files meeting the search condition in the video files corresponding to the relation data stored in the first storage area according to the quantity and the target device information.
Because the storage medium stores the video files and also stores the relationship data corresponding to the video files, and the relationship data corresponding to each video file represents the corresponding relationship between the video file and the device for acquiring the video in the video file, when the scheme provided by the embodiments is applied to searching the video, the video files storing the video acquired by each video acquisition device can be searched according to the relationship data stored in the storage medium, so that the convenience of video searching is improved.
Corresponding to the video storage method, the embodiment of the application also provides the electronic equipment.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device includes: a processor 501 and a machine-readable storage medium 502, the machine-readable storage medium 502 storing machine-executable instructions executable by the processor 501, the processor 501 being caused by the machine-executable instructions to: the steps of the video storage method provided by the embodiment of the application are realized.
In one embodiment of the present application, a video storage method is provided, and the method includes:
acquiring equipment information of video acquisition equipment as first equipment information, and acquiring a video acquired by the video acquisition equipment;
storing the obtained video in a storage medium in the form of a video file;
according to the first device information, storing the corresponding relation data of the stored video files in the storage medium, wherein the corresponding relation data of each video file is used for expressing that: the video file and the device for collecting the video in the video file.
It should be noted that other embodiments of the video storage method implemented by the processor 501 through machine executable instructions are the same as the embodiments mentioned in the foregoing method embodiment section, and are not described here again.
As can be seen from the above, when the electronic device provided by this embodiment is applied to store videos, since the relationship data corresponding to each video file represents the corresponding relationship between the video file and the device that acquires the video in the video file, after the videos acquired by the video acquisition devices are stored in the storage medium in the above manner, when a user wants to search for videos acquired by each video acquisition device, the video file that stores the videos acquired by each video acquisition device can be searched according to the relationship data stored in the storage medium. Therefore, after the video is stored by applying the scheme provided by the embodiment, the subsequent targeted video search is facilitated, so that the convenience of video search can be improved.
In correspondence with the above-mentioned video storage method, embodiments of the present application further provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: the steps of the video storage method provided by the embodiment of the application are realized.
In one embodiment of the present application, a video storage method is provided, and the method includes:
acquiring equipment information of video acquisition equipment as first equipment information, and acquiring a video acquired by the video acquisition equipment;
storing the obtained video in a storage medium in the form of a video file;
according to the first device information, storing the corresponding relation data of the stored video files in the storage medium, wherein the corresponding relation data of each video file is used for expressing that: the video file and the device for collecting the video in the video file.
It should be noted that other embodiments of the video storage method implemented by the processor caused by the machine executable instructions are the same as the embodiments mentioned in the foregoing method embodiment section, and are not described here again.
As can be seen from the above, when the machine executable instructions stored in the machine readable storage medium provided in this embodiment are executed to store videos, since the relationship data corresponding to each video file represents the corresponding relationship between the video file and the device that collects the video in the video file, when it is desired to search for videos collected by the respective video collection devices after videos collected by the video collection devices are stored in the storage medium in the above manner, the video files in which the videos collected by the respective video collection devices are stored can be searched according to the relationship data stored in the storage medium. Therefore, after the video is stored by applying the scheme provided by the embodiment, the subsequent targeted video search is facilitated, so that the convenience of video search can be improved.
Corresponding to the video search method, an embodiment of the present application further provides an electronic device, where the electronic device includes: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: the steps of the video searching method provided by the embodiment of the application are realized.
In one embodiment of the present application, a video search method is provided, the method including:
acquiring equipment information of target video acquisition equipment as target equipment information;
searching a target video file stored in a storage medium according to the relation data and the target device information stored in the storage medium, wherein the target video file is as follows: storing a file of videos captured by the target video capture device, each relationship data representing: and the corresponding relation between a video file stored in the storage medium and the equipment for acquiring the video in the video file.
It should be noted that other embodiments of the video search method implemented by the processor through machine executable instructions are the same as the embodiments mentioned in the foregoing method embodiment section, and are not described here again.
Because the storage medium stores the video files and also stores the relationship data corresponding to the video files, and the relationship data corresponding to each video file represents the corresponding relationship between the video file and the device for acquiring the video in the video file, when the electronic device is used for searching videos, the video files storing the videos acquired by the video acquisition devices can be searched according to the relationship data stored in the storage medium, so that the convenience of video searching is improved.
In correspondence with the above video search method, embodiments of the present application further provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: the steps of the video searching method provided by the embodiment of the application are realized.
In one embodiment of the present application, a video search method is provided, the method including:
acquiring equipment information of target video acquisition equipment as target equipment information;
searching a target video file stored in a storage medium according to the relationship data and the target device information stored in the storage medium, wherein the target video file is as follows: storing a file of videos captured by the target video capture device, each relationship data representing: and the corresponding relation between a video file stored in the storage medium and the equipment for acquiring the video in the video file.
It should be noted that other embodiments of the video search method implemented by the processor caused by the machine executable instructions are the same as the embodiments mentioned in the foregoing method embodiment section, and are not described here again.
Because the storage medium stores the video files and the relationship data corresponding to the video files, and the relationship data corresponding to each video file represents the corresponding relationship between the video file and the device for acquiring the video in the video file, when the machine executable instruction stored in the machine readable storage medium provided by the embodiment is executed to search the video, the video files storing the videos acquired by the video acquisition devices can be searched according to the relationship data stored in the storage medium, so that the convenience of video searching is improved.
The machine-readable storage medium may include a Random Access Memory (RAM) and a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the machine-readable storage medium may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, electronic device, and machine-readable storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (16)

1. A method for video storage, the method comprising:
under the condition that the successful connection of the storage medium is monitored, video acquisition equipment for acquiring videos is determined; acquiring equipment information of the determined video acquisition equipment as first equipment information, and acquiring a video acquired by the video acquisition equipment; the storage medium is mixed and inserted between at least two vehicle-mounted video recorders;
storing the obtained video in the storage medium in the form of a video file;
according to the first device information, storing the corresponding relation data of the stored video files in the storage medium, wherein the corresponding relation data of each video file is used for expressing that: the video file and the device for collecting the video in the video file.
2. The method according to claim 1, wherein storing the relationship data corresponding to the stored video file in the storage medium according to the first device information comprises:
acquiring a video acquisition time period corresponding to the stored video file;
and storing relationship data which corresponds to the stored video file and contains the name of the stored video file and the video acquisition time period in the storage medium according to the first equipment information.
3. The method according to claim 1, wherein the storing the relationship data corresponding to the stored video file in the storage medium according to the first device information comprises:
determining a video class to which the stored video file belongs as a first video class;
obtaining an end storage position of stored data in a first storage area, wherein the first storage area is as follows: the storage medium is used for storing a region of relation data corresponding to the video file belonging to the first video class;
and storing the relation data corresponding to the stored video file to the obtained tail storage position according to the first equipment information.
4. The method of claim 1,
the obtaining of the device information of the determined video capture device includes:
acquiring equipment information of video acquisition equipment in communication connection;
and/or
Storing the obtained video in a storage medium in the form of a video file, comprising:
and storing the obtained video into the spliced storage medium in the form of a video file.
5. A method for video search, the method comprising:
acquiring equipment information of target video acquisition equipment as target equipment information;
searching a target video file stored in a storage medium according to the relation data and the target device information stored in the storage medium, wherein the target video file is as follows: storing a file of videos captured by the target video capture device, each relationship data representing: the corresponding relation between a video file stored in the storage medium and equipment for acquiring the video in the video file; the target device information stored in the storage medium is determined device information of a video acquisition device used for acquiring videos under the condition that successful connection of the storage medium is monitored, and the storage medium is inserted between at least two vehicle-mounted video recorders in a mixed mode.
6. The method of claim 5, further comprising:
acquiring a target video acquisition time period;
the searching for the target video file stored in the storage medium according to the relationship data and the target device information stored in the storage medium includes:
and searching a target video file stored in the storage medium and having video acquisition time within the target video acquisition time period according to the relation data and the target device information stored in the storage medium.
7. The method according to claim 5, wherein the obtaining device information of the target video capture device as the target device information comprises:
obtaining a search condition;
determining video acquisition equipment for acquiring videos stored in the video files meeting the search conditions as target video acquisition equipment;
acquiring equipment information of the target video acquisition equipment as target equipment information;
the searching for the target video file stored in the storage medium according to the relationship data and the target device information stored in the storage medium includes:
determining a video class matched with the search condition as a target video class;
determining an area in the storage medium for storing first relationship data as a first storage area, wherein the first relationship data is: relational data corresponding to the video files belonging to the target video class;
and searching the target video file which is stored in the storage medium and meets the searching condition according to the relation data and the target device information stored in the first storage area.
8. The method according to claim 7, wherein the searching for the target video file stored in the storage medium that satisfies the search condition based on the relationship data and the target device information stored in the first storage area comprises:
obtaining the number of the relationship data stored in the first storage area from target class information stored in the storage medium, wherein the target class information is: class information of the target video class;
and searching the target video files meeting the search condition in the video files corresponding to the relation data stored in the first storage area according to the quantity and the target device information.
9. A video storage apparatus, the apparatus comprising:
the first equipment information acquisition module is used for determining video acquisition equipment for acquiring videos under the condition that successful connection of a storage medium is monitored; acquiring equipment information of the determined video acquisition equipment as first equipment information, wherein the storage medium is mixed and inserted between at least two vehicle-mounted video recorders;
the video acquisition module is used for acquiring videos acquired by the video acquisition equipment;
the file storage module is used for storing the obtained video in a storage medium in a video file form;
a relation data storage module, configured to store, in the storage medium, relation data corresponding to the stored video files according to the first device information, where the relation data corresponding to each video file is used to indicate: the video file and the device for collecting the video in the video file.
10. The apparatus of claim 9,
the relation data storage module is specifically used for acquiring a video acquisition time period corresponding to the stored video file; and storing relationship data which corresponds to the stored video file and contains the name of the stored video file and the video acquisition time period in the storage medium according to the first equipment information.
11. The apparatus of claim 9, wherein the relational data storage module comprises:
the first video class determining unit is used for determining the video class to which the stored video file belongs as a first video class;
a storage location obtaining unit, configured to obtain an end storage location of stored data in a first storage area, where the first storage area is: the storage medium is used for storing a region of relation data corresponding to the video file belonging to the first video class;
and the relation data storage unit is used for storing the relation data corresponding to the stored video file to the obtained tail storage position according to the first equipment information.
12. The apparatus of claim 9,
the first device information obtaining module is specifically configured to obtain device information of a video acquisition device in communication connection, as first device information;
and/or
The file storage module is specifically used for storing the obtained video in a video file form into an inserted storage medium.
13. A video search apparatus, characterized in that the apparatus comprises:
the second equipment information acquisition module is used for acquiring equipment information of the target video acquisition equipment as target equipment information;
a video file searching module, configured to search a target video file stored in a storage medium according to relationship data stored in the storage medium and the target device information, where the target video file is: storing a file of videos captured by the target video capture device, each relationship data representing: the corresponding relation between a video file stored in the storage medium and equipment for acquiring the video in the video file; the target device information stored in the storage medium is determined device information of a video acquisition device used for acquiring videos under the condition that successful connection of the storage medium is monitored, and the storage medium is inserted between at least two vehicle-mounted video recorders in a mixed mode.
14. The apparatus of claim 13, further comprising:
the time period obtaining module is used for obtaining a target video acquisition time period;
the video file searching module is specifically configured to search, according to the relationship data and the target device information stored in the storage medium, a target video file stored in the storage medium and having a video capturing time within the target video capturing time period.
15. The apparatus of claim 13,
the second device information obtaining module is specifically configured to obtain a search condition; determining video acquisition equipment for acquiring videos stored in the video files meeting the search conditions as target video acquisition equipment; acquiring equipment information of the target video acquisition equipment as target equipment information;
the video file searching module comprises:
a second video class determination unit configured to determine a video class matching the search condition as a target video class;
an area determining unit, configured to determine, as a first storage area, an area in the storage medium for storing first relationship data, where the first relationship data is: relational data corresponding to the video files belonging to the target video class;
and the video file searching unit is used for searching the target video file which is stored in the storage medium and meets the searching condition according to the relation data and the target device information stored in the first storage area.
16. The apparatus of claim 15,
the video file search unit is specifically configured to obtain the number of the relationship data stored in the first storage area from target class information stored in the storage medium, where the target class information is: class information of the target video class; and searching the target video files meeting the search condition in the video files corresponding to the relation data stored in the first storage area according to the quantity and the target device information.
CN201910327833.1A 2019-04-23 2019-04-23 Video storage method, video search method and device Active CN111355910B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910327833.1A CN111355910B (en) 2019-04-23 2019-04-23 Video storage method, video search method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910327833.1A CN111355910B (en) 2019-04-23 2019-04-23 Video storage method, video search method and device

Publications (2)

Publication Number Publication Date
CN111355910A CN111355910A (en) 2020-06-30
CN111355910B true CN111355910B (en) 2022-09-02

Family

ID=71193926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910327833.1A Active CN111355910B (en) 2019-04-23 2019-04-23 Video storage method, video search method and device

Country Status (1)

Country Link
CN (1) CN111355910B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060242678A1 (en) * 2005-04-20 2006-10-26 Anthony Pugliese, Remote network video content recorder system
CN102244758A (en) * 2011-07-08 2011-11-16 杭州华三通信技术有限公司 Video-recording-file-based data acquisition method and equipment
JP2014131155A (en) * 2012-12-28 2014-07-10 Jvc Kenwood Corp Imaging apparatus, image processor, imaging method, image processing method and program
CN104268088B (en) * 2014-09-15 2018-11-16 郑州天迈科技股份有限公司 Vehicle-mounted DVR hard disc data storage method
CN107229620B (en) * 2016-03-23 2019-11-22 杭州海康威视数字技术股份有限公司 A kind of storage method and device of video data
CN107493458A (en) * 2017-09-13 2017-12-19 郑州云海信息技术有限公司 A kind of method and system for accessing monitor video
CN109189724B (en) * 2018-07-18 2021-01-29 北京世纪东方通讯设备有限公司 Method and device for improving audio and video data storage efficiency of video monitoring system
CN109327680A (en) * 2018-09-21 2019-02-12 北京世纪东方国铁科技股份有限公司 Multi-path video data concurrently stores and read method

Also Published As

Publication number Publication date
CN111355910A (en) 2020-06-30

Similar Documents

Publication Publication Date Title
US9262899B2 (en) Method, device and system for implementing video recording retrieval
US20160062992A1 (en) Shared server methods and systems for information storage, access, and security
CN109391647B (en) Storage resource recovery method, device and system
CN108093016B (en) Picture storage method and device and video monitoring system
CN109819265B (en) Data storage method, data acquisition method and system
CN102244758A (en) Video-recording-file-based data acquisition method and equipment
CN112434711B (en) Data management method and device and electronic equipment
CN110876090B (en) Video abstract playback method and device, electronic equipment and readable storage medium
CN108376377B (en) Method, device, terminal, server and storage medium for searching pet
CN111355910B (en) Video storage method, video search method and device
CN115525523A (en) Data processing method and device, electronic equipment and storage medium
CN111078588B (en) Garbage recycling method, device, equipment and storage medium
CN110876029B (en) Video abstract playback method and device, electronic equipment and readable storage medium
CN110110141A (en) Camera list sort method, device and monitoring management platform
CN113505788B (en) Method, device and storage medium for acquiring road network information
CN112463746B (en) File storage and generation method and device and electronic equipment
JP2020067770A (en) Video management device, video management method and program
CN110809125B (en) Video and audio recorder management method, data processing method and equipment
JP7313948B2 (en) Data collection device, data collection system and data collection method
CN112287143A (en) A method and device for retrieving and storing event information
CN111858779A (en) Data analysis method and device, electronic equipment and storage medium
CN110929095A (en) Video abstract playback method and device, electronic equipment and readable storage medium
CN118656519B (en) Method and device for retrieving video
CN111666453B (en) Video management and retrieval method and device, electronic equipment and storage medium
CN114998839B (en) Data management method and system based on hierarchical distribution

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