CN115412694A - Video recording indexing method and video recording equipment - Google Patents
Video recording indexing method and video recording equipment Download PDFInfo
- Publication number
- CN115412694A CN115412694A CN202211359546.7A CN202211359546A CN115412694A CN 115412694 A CN115412694 A CN 115412694A CN 202211359546 A CN202211359546 A CN 202211359546A CN 115412694 A CN115412694 A CN 115412694A
- Authority
- CN
- China
- Prior art keywords
- video data
- video
- camera
- data
- file name
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 238000013507 mapping Methods 0.000 claims abstract description 56
- 238000012217 deletion Methods 0.000 claims description 5
- 230000037430 deletion Effects 0.000 claims description 5
- 230000003139 buffering effect Effects 0.000 claims 1
- 238000012544 monitoring process Methods 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/13—File access structures, e.g. distributed indices
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/162—Delete operations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/71—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/78—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/7867—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title and artist information, manually generated time, location and usage information, user ratings
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Software Systems (AREA)
- Signal Processing (AREA)
- Library & Information Science (AREA)
- Human Computer Interaction (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The disclosure relates to an indexing method of video recording and video recording equipment, and belongs to the field of video monitoring systems. The video recording indexing method comprises the following steps: establishing a mapping relation between a time period of video data and a camera ID and a file name and a storage path of the video data; during generation of video data based on video data acquired from a camera, calculating corresponding file names and saving paths of the video data based on the time period and camera ID of the video data and based on the mapping relation, naming the video data as the corresponding file names and storing the video data in the corresponding saving paths; and acquiring the time period of the video data to be read and the camera ID, and calculating the file name and the storage path of the video data to be read based on the mapping relation, thereby reading the video data to be read. By the video recording indexing method and the video recording equipment, the reading and writing efficiency and reliability of the video recording can be improved.
Description
Technical Field
The invention relates to the field of video monitoring systems, in particular to a video recording indexing method and video recording equipment based on function mapping.
Background
In general, when recording data of video data acquired by a camera is stored, the recording data is divided into a plurality of time periods according to shooting time. In order to find the corresponding video data during reading, the video data itself is usually stored, and the corresponding relationship between the video data and the time is also recorded. As for the correspondence between recorded video data and time, such a method is generally adopted at present: recording the corresponding result of each specific video data segment and time, and creating a corresponding index for the video data segment.
However, no matter what storage method such as a file method or a database method is used to store the index, there are several problems as follows: firstly, when the video data is written in, the index needs to be updated in real time, otherwise, the reading of the video data is influenced, and the reading and writing efficiency is reduced; secondly, once the index is in a problem, even if the corresponding video data is intact, the video data still cannot be read, and the video data exceeding the storage period cannot be automatically deleted, so that the storage space is consumed.
Disclosure of Invention
In order to solve at least one of the above problems, an indexing method for video recording and a video recording apparatus are provided, in which correspondence between video data and time is abstracted as function mapping, thereby improving the read-write efficiency and reliability of the video data.
According to an aspect of the present disclosure, there is provided an indexing method of a video recording, which may include: establishing a mapping relation between a time period of video data and a camera ID (identity identification number) and a file name and a storage path of the video data; during generation of video recording data based on video data acquired from a camera, calculating a corresponding file name and save path of the video recording data based on a time period and a camera ID of the video recording data and based on the mapping relationship, naming the video recording data as the corresponding file name and storing the video recording data in the corresponding save path; and acquiring the time period of the video data to be read and the camera ID, and calculating the file name and the storage path of the video data to be read based on the mapping relation, thereby reading the video data to be read.
Optionally, the indexing method may further include: and acquiring the time period of the video data to be deleted and the camera ID, and calculating the file name and the storage path of the video data to be deleted based on the mapping relation so as to delete the video data to be deleted.
Optionally, the mapping relationship may be a functional mapping relationship.
Optionally, the video data may be generated by caching the video data acquired from the camera.
Alternatively, the video data may be divided into a plurality of time periods according to the shooting time.
According to another aspect of the present disclosure, there is provided a video recording apparatus, which may include a camera and a memory, the camera may acquire video data and store the video data in the memory to generate recording data, and the video recording apparatus may further include: the mapping module can be used for establishing a mapping relation between a time period of video data and a camera ID and a file name and a storage path of the video data; a writing module that, during generation of the video data, may calculate a corresponding file name and save path of the video data based on a time period and a camera ID of the video data and based on the mapping relationship, name the video data as the corresponding file name and store the video data in the corresponding save path; and the reading module can acquire the time period of the video data to be read and the camera ID, and calculate the file name and the storage path of the video data to be read based on the mapping relation, so that the video data to be read is read. .
Optionally, the video recording device further includes a deletion module, where the deletion module may obtain a time period of the video data to be deleted and a camera ID, and calculate a file name and a storage path of the video data to be deleted based on the mapping relationship, so as to delete the video data to be deleted.
According to the video recording indexing method and the video recording equipment, the corresponding relation between the video data and the time is abstracted into the function mapping, the mapping relation between the video data and the time is only needed to be established, and the writing and the reading are carried out according to the mapping relation without recording the corresponding result between each specific section of the video data and the time, so that the reading and writing efficiency and the reliability are improved.
Drawings
FIG. 1 is a schematic block diagram of a method of indexing video footage in accordance with an exemplary embodiment of the present disclosure; and is
Fig. 2 is a schematic diagram of a video recording device according to an exemplary embodiment of the present disclosure.
Description of reference numerals:
10. video recording apparatus
11. Video camera
12. Memory device
13. Mapping module
14. Write-in module
15. Reading module
16. And deleting the module.
Detailed Description
In order that those skilled in the art will better understand the technical solutions of the present disclosure, exemplary embodiments will be described in detail below. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of systems and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The present disclosure provides an indexing method for video recording, the indexing method comprising: establishing a mapping relation (establishing a mapping relation S1) between a time period of video data and a file name and a storage path of camera ID and video data; during generation of the video data based on the video data acquired from the camera 11, the corresponding file name and save path of the video data are calculated based on the time period and camera ID of the video data and based on the mapping relationship, the video data are named as the corresponding file name and the video data are stored in the corresponding save path (write video data S2); and acquiring the time period and the camera ID of the video data to be read, and calculating the file name and the storage path of the video data to be read based on the mapping relation, thereby reading the video data to be read (reading the video data S3).
In some embodiments, the indexing method may further include: the time period of the video data to be deleted and the camera ID are acquired, and the file name and save path of the video data to be deleted are calculated based on the mapping relationship, thereby deleting the video data to be deleted (deleting the video data S4).
The present disclosure also provides a video recording device 10, where the video recording device 10 may include a camera 11 and a memory 12, the camera 11 may acquire video data (by live shooting) and store the video data in the memory 12 to generate recording data, and the video recording device 10 further includes: a mapping module 13, configured to establish a mapping relationship between a time period of video data and a file name and a storage path of the camera ID and the video data; a writing module 14 that calculates a corresponding file name and save path of the video data based on the time period and camera ID of the video data and on the mapping relationship established by the mapping module 13, names the video data as the corresponding file name and stores the video data in the corresponding save path, for example, in the memory 12, during generation of the video data; and a reading module 15 that acquires a time period of the video data to be read and the camera ID, and calculates a file name and a save path of the video data to be read based on the mapping relationship, thereby reading the video data to be read from, for example, the memory 12.
In some embodiments, the video recording apparatus 10 of the present disclosure may further include a deletion module 16, and the deletion module 16 may acquire a time period and a camera ID of the video data to be deleted, and calculate a file name and a saving path of the video data to be deleted based on the mapping relationship, so as to delete the video data to be deleted from, for example, the memory 12.
The camera 11 is used to take a video recording of a place to be monitored, thereby generating video data. The video data is transmitted to the memory 12 of the video recording device 10 by wire or wirelessly, and the video data is buffered to generate recording data. During the generation of the video data, the video data is divided into a plurality of time periods according to the time of shooting. For a particular piece of recorded data, the piece of recorded data can be uniquely determined by first determining the camera ID of the camera 11 and then determining the time period for which the recorded data is under the camera ID.
In the present embodiment, to index the recorded data, a mapping relationship is first established (S1). Specifically, a mapping relationship between the time slot of the recorded data and the camera ID, and the file name and save path of the recorded data is established. Preferably, the mapping is a functional mapping. By establishing the mapping relationship, a combination of a unique file name and a save path can be established for the video data in which the time period and the camera ID are determined. Preferably, the established mapping relationships may be stored in the memory 12 after the mapping relationships are established.
Subsequently, the video data is written (S2). Specifically, while the video data is generated based on the video data acquired from the camera 11, the video data is divided into video data of a plurality of time periods according to the shooting time, the camera ID of the camera 11 used and the time period information of a certain piece of video data are acquired, and the file name and the storage path of the piece of video data are acquired based on the mapping relationship established in the step of establishing the mapping relationship (S1). Then, the piece of recorded data is named in accordance with the obtained file name and saved in accordance with the obtained saving path, for example, in the memory 12. In the same manner, based on the mapping relationship, file names and saving paths of the video data of other time periods are obtained, and the corresponding pieces of video data are named according to the obtained file names and saved in, for example, the memory 12 according to the obtained saving paths. In this way, the correspondence relationship between a series of video data and time information has been abstracted as a map.
When the written video data needs to be read, the step (S3) of reading the video data can be implemented as follows. Firstly, the camera ID and the time period of the video data to be read are determined, the file name and the saving path of the video data to be read are calculated according to the established mapping relation, and the video data corresponding to the calculated file name and the saving path are found by matching the calculated file name and the saving path with the file name and the saving path of each piece of video data determined in the step (S2) of writing the video data, so that the video data can be read.
In some embodiments, it is also necessary to delete the written video data, which may be implemented by the following step (S4) of deleting the video data. Determining the camera ID and the time period of the video data to be deleted, calculating the file name and the saving path of the video data to be deleted according to the established mapping relation, and matching the file name and the saving path of each piece of video data determined in the step (S2) of writing the video data with the file name and the saving path of the video data to find the video data corresponding to the calculated file name and the saving path, so that the video data can be deleted.
In the video recording apparatus 10, the camera 11 can communicate with other modules or devices in a remote manner. The mapping module 13, the writing module 14, the reading module 15 and the deleting module 16 may be implemented in any suitable form of software or hardware. In some embodiments, the mapping module 13, the writing module 14, the reading module 15, and the deleting module 16 may be implemented by a processor. In some embodiments, the memory 12 may be any suitable storage device such as a magnetic recording medium, an optical recording medium, a magneto-optical recording medium, or a semiconductor memory.
By the video recording index method and the video recording equipment 10, the index does not need to be updated in real time every time the video data are written, so that the access efficiency of the video data is improved. In addition, the problem that the video data cannot be accessed due to the problem of index occurrence is solved, and the video data exceeding the storage period can be automatically deleted, so that the utilization rate of the storage space is improved.
It is to be understood that the above embodiments are merely exemplary embodiments employed to illustrate the principles of the present disclosure, and that the present disclosure is not limited thereto. It will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the disclosure, and these are to be considered as the scope of the disclosure.
Claims (7)
1. An indexing method for video recordings, the indexing method comprising:
establishing a mapping relation between a time period of video data and a camera ID and a file name and a storage path of the video data;
during generation of video recording data based on video data acquired from a camera, calculating a corresponding file name and save path of the video recording data based on a time period and a camera ID of the video recording data and based on the mapping relationship, naming the video recording data as the corresponding file name and storing the video recording data in the corresponding save path; and
and acquiring the time period of the video data to be read and the camera ID, and calculating the file name and the storage path of the video data to be read based on the mapping relation so as to read the video data to be read.
2. The method for indexing video footage according to claim 1, further comprising: and acquiring the time period of the video data to be deleted and the camera ID, and calculating the file name and the storage path of the video data to be deleted based on the mapping relation so as to delete the video data to be deleted.
3. The method for indexing video footage according to claim 1 or 2, wherein the mapping is a functional mapping.
4. The method for indexing video footage as claimed in claim 1 or 2, wherein the footage data is generated by buffering the video data obtained from the video camera.
5. The method for indexing video footage according to claim 1 or 2, wherein the footage data is divided into a plurality of time segments according to shooting time.
6. A video recording device comprising a camera and a memory, said camera acquiring video data and storing said video data in said memory to generate recording data,
the video recording apparatus further includes:
the mapping module is used for establishing a mapping relation between a time period of video data and camera ID and a file name and a storage path of the video data;
a writing module that calculates a corresponding file name and save path of the video data based on a time period and a camera ID of the video data and based on the mapping relationship, names the video data as the corresponding file name, and stores the video data in the corresponding save path during generation of the video data; and
and the reading module is used for acquiring the time period of the video data to be read and the camera ID, and calculating the file name and the storage path of the video data to be read based on the mapping relation so as to read the video data to be read.
7. The video recording device according to claim 6, further comprising a deletion module that acquires a time period and a camera ID of the video data to be deleted, and calculates a file name and a save path of the video data to be deleted based on the mapping relationship, thereby deleting the video data to be deleted.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211359546.7A CN115412694A (en) | 2022-11-02 | 2022-11-02 | Video recording indexing method and video recording equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211359546.7A CN115412694A (en) | 2022-11-02 | 2022-11-02 | Video recording indexing method and video recording equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115412694A true CN115412694A (en) | 2022-11-29 |
Family
ID=84169243
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211359546.7A Pending CN115412694A (en) | 2022-11-02 | 2022-11-02 | Video recording indexing method and video recording equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115412694A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010027100A (en) * | 2008-07-15 | 2010-02-04 | Sony Corp | Information recording device and information recording method |
JP2011087080A (en) * | 2009-10-14 | 2011-04-28 | Hitachi Kokusai Electric Inc | Video recording device |
CN102521309A (en) * | 2011-11-24 | 2012-06-27 | 中国船舶重工集团公司第七○九研究所 | Storage organization and search method of digital video videotaping files |
CN103248853A (en) * | 2012-02-10 | 2013-08-14 | 华为技术有限公司 | Method, equipment and system for achieving video retrieval |
CN103702053A (en) * | 2014-01-16 | 2014-04-02 | 深圳英飞拓科技股份有限公司 | Video storage and search method and system as well as monitoring system |
-
2022
- 2022-11-02 CN CN202211359546.7A patent/CN115412694A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010027100A (en) * | 2008-07-15 | 2010-02-04 | Sony Corp | Information recording device and information recording method |
JP2011087080A (en) * | 2009-10-14 | 2011-04-28 | Hitachi Kokusai Electric Inc | Video recording device |
CN102521309A (en) * | 2011-11-24 | 2012-06-27 | 中国船舶重工集团公司第七○九研究所 | Storage organization and search method of digital video videotaping files |
CN103248853A (en) * | 2012-02-10 | 2013-08-14 | 华为技术有限公司 | Method, equipment and system for achieving video retrieval |
CN103702053A (en) * | 2014-01-16 | 2014-04-02 | 深圳英飞拓科技股份有限公司 | Video storage and search method and system as well as monitoring system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3944556A1 (en) | Block data access method and apparatus, and block data storage method and apparatus | |
CN109213817B (en) | Incremental data abstracting method, device and server | |
CN103226965B (en) | Based on the audio/video data access method of time bitmap | |
CN111177143B (en) | Key value data storage method and device, storage medium and electronic equipment | |
CN113282249B (en) | Data processing method, system, device and medium | |
CN104182354A (en) | Video managing method and device | |
CN108304144B (en) | Data writing-in and reading method and system, and data reading-writing system | |
CN114647658A (en) | Data retrieval method, device, equipment and machine-readable storage medium | |
US20240045763A1 (en) | A data reconstruction method based on erasure coding, an apparatus, a device and a storage medium | |
CN110543398A (en) | method and system for recording fault information | |
CN115412694A (en) | Video recording indexing method and video recording equipment | |
CN101169956A (en) | Disc device | |
CN117115718A (en) | Government affair video data processing method, system and computer readable storage medium | |
CN113434476B (en) | Data synchronization method, device, equipment, system, storage medium and program product | |
CN114675783A (en) | Data storage method, system, equipment and medium | |
US20230385254A1 (en) | Method for storing time series data | |
CN104504349B (en) | A kind of Video data safe storage device and method | |
CN112667171B (en) | Circular coverage file system based on disk naked writing and read-write method | |
CN109960683B (en) | Information data storage integration system based on big database | |
CN110765290A (en) | Picture storage method, reading method, device and access system | |
CN114356232B (en) | Data reading and writing method and device | |
CN111930320B (en) | Memory optimization method and system based on distributed storage data | |
CN108984128B (en) | Data reading method and device | |
CN111949486B (en) | Method and device for realizing real-time cluster service monitoring | |
CN112203031B (en) | Digital video caching system and method |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20221129 |
|
RJ01 | Rejection of invention patent application after publication |