Storage management method of video surveillance video, electronic equipment and storage medium

By creating an event list in the video surveillance and recording storage system and storing audio and video files and event information, the problems of single storage methods and weak data correlation in the existing system are solved, and efficient storage management and user experience optimization are achieved.

CN119520844AInactive Publication Date: 2025-02-25SHENZHEN XINRUISHI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411470363.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-21
Publication Date
2025-02-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing video surveillance video recording storage system has problems such as single storage mode, simple storage space management, low retrieval efficiency, unfriendly user interface and weak data correlation, resulting in difficulties in event retrieval and analysis.

Method used

A storage management method for video surveillance video recording is proposed. By creating an event list, the recorded audio and video files are associated with event information, and when the storage medium capacity is insufficient, the old audio and video files and event information are deleted according to the recording time order to free up storage space.

Benefits of technology

It realizes efficient correlation and synchronization operation of audio and video files and event information, improves storage efficiency and user experience, is suitable for long-term audio and video recording application scenarios, and solves the storage failure problem caused by insufficient storage capacity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119520844A_ABST
    Figure CN119520844A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, in particular to a video monitoring record storage management method, electronic equipment and a computer readable storage medium, and the method comprises the steps: creating an event list in response to starting of an audio and video recording function; storing the recorded audio and video in a storage medium in a file form, recording event information corresponding to the audio and video file in the event list, and establishing a mapping relationship between the audio and video file and the event information; when it is confirmed that the residual storage capacity of the storage medium is smaller than or equal to a preset threshold value, according to the sequence of the recording time in the event list and the mapping relation, the audio and video files with the top recording time and the corresponding event information are deleted. Through the automatic synchronous storage and updating mode, efficient storage and automatic management of audio and video files and event information can be realized in a limited storage space, the storage efficiency is improved, and the user experience is optimized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a storage management method for video surveillance recordings, electronic equipment and a computer-readable storage medium. Background Art

[0002] With the popularization of video surveillance and recording equipment, people have a growing demand for efficient storage and fast retrieval of audio and video data. Currently, the audio and video storage and playback systems on the market can basically realize basic functions such as recording, storage and playback of large amounts of audio and video data. Some can also realize additional functions such as real-time preview, remote access, event-triggered recording, etc. However, in the process of realizing the above functions, these systems still face some problems, including:

[0003] 1. Single storage method: Existing systems usually use a single continuous recording method to store audio and video data in the form of files with a fixed length. This storage method is simple to implement, but it is difficult to associate with specific events, which is not conducive to subsequent event retrieval and analysis. If the event recording and ordinary recording are stored separately, it will cause the problem of more file fragments. In addition, long-term continuous recording will generate a large amount of audio and video data, which needs to be stored in a limited storage space. If there is a lack of an effective storage management mechanism, the problem of audio and video storage failure due to insufficient storage capacity will also occur.

[0004] 2. Simple storage space management: When recording in most systems, ordinary videos and event videos are recorded together. This method may result in low space utilization, and most of the time, ordinary videos with little effective information are stored.

[0005] 3. Low retrieval efficiency: Traditional systems usually distinguish event recordings by file name, which means that when searching for a specific event recording, it is often necessary to traverse all recording files, resulting in low retrieval efficiency. In addition, in order to facilitate retrieval by time, traditional systems also design complex directory structures, further increasing the complexity of retrieval.

[0006] 4. Unfriendly user interface: The playback interface of many existing systems is poorly designed. Through the playback interface, it is difficult for users to intuitively understand the distribution of recorded content, and it is also difficult to quickly locate the time point of interest.

[0007] 5. Weak data correlation: Some systems usually store audio and video data and event information separately, but lack an effective correlation mechanism, which increases the difficulty of subsequent data analysis and event tracking. Sometimes, the event data may exist but the video has been deleted.

[0008] In view of the existence of the above problems, there is an urgent need for a new video surveillance recording storage management method that can efficiently manage audio and video data and event information and can adapt to different application scenarios. Summary of the invention

[0009] In view of this, the present invention proposes a storage management method for video surveillance recordings, an electronic device and a computer-readable storage medium, aiming to solve the problem that the storage space management method of the existing audio and video storage and playback system is too simple.

[0010] In order to solve the above problems, the present invention adopts the following technical solutions:

[0011] In a first aspect, the present invention provides a storage management method for video surveillance recordings, comprising:

[0012] In response to starting the function of recording audio and video, creating an event list;

[0013] The recorded audio and video are stored in a storage medium in the form of a file, and the event information corresponding to the audio and video file is recorded in the event list, and a mapping relationship between the audio and video file and the event information is established; wherein the storage medium stores a plurality of audio and video files, the event list includes a plurality of event information, and each of the event information includes a file name and recording time of an audio and video file;

[0014] When it is confirmed that the remaining storage capacity of the storage medium is less than or equal to a preset threshold, the audio and video files with earlier recording times and the corresponding event information are deleted according to the order of recording times in the event list and the mapping relationship.

[0015] Furthermore, the storage management method is applied to an electronic device, the event list is stored in a persistent storage medium of the electronic device, and the audio and video files are stored in a removable storage medium connected to the electronic device.

[0016] Furthermore, each piece of event information includes a file name of an audio or video file, a corresponding event type, a start recording time, and an end recording time.

[0017] Further, deleting the audio and video files with earlier recording times and the corresponding event information according to the order of recording times in the event list and the mapping relationship includes:

[0018] According to the order of the start recording time in the event list and the mapping relationship, the corresponding audio and video files and the event information of the audio and video files are deleted in sequence starting from the earliest start recording time until it is confirmed that the remaining storage capacity of the storage medium is greater than the preset threshold, then the deletion of the audio and video files and the corresponding event information is stopped.

[0019] Furthermore, after establishing the mapping relationship between the audio and video files and the event information, the method further includes:

[0020] In response to receiving the search request, displaying a search time interface on a display screen;

[0021] Obtaining the requested search time range through the search time interface, creating a time axis according to the search time range, and displaying the time axis on a display screen;

[0022] Event information corresponding to the search time range is retrieved in the event list, and all retrieved event information is visually displayed in the form of video strips on the time axis.

[0023] Furthermore, after visually displaying all retrieved event information in the form of video strips on the timeline, the method further includes:

[0024] When the video bar displayed on the timeline detects a mouse click event, the audio and video file corresponding to the video bar is played;

[0025] When the timeline detects a mouse click event, the time point corresponding to the click position of the mouse click event on the timeline is obtained; based on the time point, the corresponding event information is retrieved from the event list, and the audio and video files corresponding to the retrieved event information are played.

[0026] Furthermore, after establishing the mapping relationship between the audio and video files and the event information, the method further includes:

[0027] In response to receiving a playback request, obtaining a playback time range of the playback request;

[0028] Creating a timeline according to the playback time range, and displaying the timeline on a display screen;

[0029] When a confirmation play instruction is received, the audio and video files corresponding to the playback time range are played;

[0030] When the timeline detects a mouse click event, the time point corresponding to the click position of the mouse click event on the timeline is obtained; based on the time point, the corresponding event information is retrieved from the event list, and the audio and video files corresponding to the retrieved event information are played.

[0031] Furthermore, after displaying the timeline on the display screen, the method further includes:

[0032] When the time axis detects a zoom event, the density of the time scale on the time axis is adjusted according to the zoom event;

[0033] When the time axis detects a drag event, the time scale mark of the time axis moves in the drag direction of the drag event.

[0034] In a second aspect, the present invention further provides an electronic device, comprising:

[0035] a memory for storing program instructions; and

[0036] The processor is used to execute the program instructions to implement the steps of the storage management method of video surveillance recordings as described above.

[0037] In a third aspect, the present invention further proposes a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps of the storage management method of video surveillance recordings as described above are implemented.

[0038] Compared with the prior art, the beneficial effects of the present invention are: a storage management method, electronic device and computer-readable storage medium for video surveillance recording, comprising: creating an event list in response to starting the function of recording audio and video; storing the recorded audio and video in the storage medium in the form of a file, and recording the event information corresponding to the audio and video file in the event list, and establishing a mapping relationship between the audio and video file and the event information; wherein the storage medium stores a plurality of audio and video files, the event list includes a plurality of event information, each of which includes a file name and recording time of an audio and video file; when it is confirmed that the remaining storage capacity of the storage medium is less than or equal to a preset threshold, the audio and video files with earlier recording times and the corresponding event information are deleted according to the order of recording time in the event list and the mapping relationship. It can be seen that the storage management method, electronic device and computer-readable storage medium for video surveillance recording realize the association between audio and video files and specific event information by establishing a mapping relationship between audio and video files and event information, which is conducive to the subsequent synchronization operation between audio and video files and event information and later data analysis and event tracking. When the remaining storage capacity of the storage medium is less than or equal to the preset threshold, the audio and video files with earlier recording times and the corresponding event information are deleted according to the order of recording time and the mapping relationship, so as to release storage space in time and avoid the problem of audio and video file loss or storage failure due to insufficient storage medium capacity, thus realizing long-term recording in limited storage space. Through this automatic synchronous storage and update method, efficient storage and automatic management of audio and video files and event information can be realized in limited storage space, which improves storage efficiency, optimizes user experience, and is suitable for various application scenarios that require long-term audio and video recording. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0040] Figure 1 It is a flowchart of a first embodiment of a method for storing and managing video surveillance recordings of the present invention;

[0041] Figure 2 A schematic diagram of a flow chart of a second embodiment of a method for storing and managing video surveillance recordings of the present invention;

[0042] Figure 3 A schematic diagram of a flow chart of a third embodiment of a method for storing and managing video surveillance recordings of the present invention;

[0043] Figure 4 A schematic diagram of a flow chart of a fourth embodiment of a method for storing and managing video surveillance recordings of the present invention;

[0044] Figure 5 It is a schematic diagram of the structure of an electronic device in a hardware operating environment involved in an embodiment of the present invention. DETAILED DESCRIPTION

[0045] The scheme in the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiment of the present invention. Obviously, the described embodiment is only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0046] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.

[0047] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0048] See also Figure 1 As shown, it is a flow chart of the first embodiment of the storage management method of video surveillance recordings of the present invention.

[0049] In this embodiment, the video surveillance recording storage management method includes:

[0050] Step S100: In response to starting the function of recording audio and video, an event list is created.

[0051] Specifically, the event list is usually stored in a database. A database is a system specially designed to store structured data, and efficient data query and management can be performed through a database management system. The data in the database is organized in a table format and supports complex query operations. In contrast, the storage medium for storing audio and video files generally only provides a large storage space, but does not have the data structure and query capabilities of a database. Databases are usually used to store structured data, such as event information, which can be stored and queried according to a predefined data model. The storage medium for storing audio and video files is mainly used to store unstructured data, such as audio and video files. Audio and video data is stored in the form of audio and video files and can be read and written through the file system. The database provides efficient data access and processing methods, and flexible data operations can be performed through the SQL query language. The data on the storage medium for storing audio and video files needs to be read and written through the file system, and the query and management functions are relatively limited compared to the database. Therefore, due to the differences between the database and the storage medium for storing audio and video files in terms of data structure, query capability, data type and storage method, event information and audio and video files are generally stored separately to meet the storage and processing requirements of different types of data, so that different types of data can be better stored and processed.

[0052] Specifically, the database storing the event list can be deployed on a local server (the local server can be a dedicated physical server or a virtual server), or it can be stored on a remote server and accessed and managed through a network connection (the remote server is suitable for distributed systems or scenarios that require remote access). In actual applications, the appropriate database deployment and storage method can be selected based on system requirements and design considerations.

[0053] Step S200: storing the recorded audio and video in a storage medium in the form of a file, and recording the event information corresponding to the audio and video file in the event list, and establishing a mapping relationship between the audio and video file and the event information.

[0054] Therein, a plurality of audio and video files are stored in the storage medium, the event list includes a plurality of event information, and each of the event information includes the file name and recording time of an audio and video file.

[0055] Specifically, there are many methods for establishing the mapping relationship between the audio and video files and the event information. For example, a unique identifier is assigned to each audio and video file and event information, such as a file name and a database ID, and then the file name of the audio and video file is associated with the database ID of the event information in the database. By performing an associated query, the purpose of quickly finding and retrieving relevant information according to the unique identifier can be achieved, thereby effectively managing and associating audio and video files with event information. Of course, in addition to assigning a unique identifier to each audio and video file and event information and associating them in the database, the establishment of the mapping relationship can also consider establishing the mapping relationship between the audio and video files and the event information through timestamp association and association algorithms. Through the comprehensive use of timestamps and intelligent algorithms, the corresponding relationship between them can be determined more accurately, and the efficiency and accuracy of audio and video data monitoring management and analysis can be improved, thereby better supporting the operation and application of the monitoring system. In actual application, a suitable mapping relationship implementation method can be selected according to system requirements and design considerations.

[0056] Specifically, each audio and video file can be of a fixed duration to facilitate the management of audio and video files. However, if the system detects a specific event, in order to ensure the integrity of the picture, the duration of the specific event can be used as the duration of the corresponding audio and video file. This method of recording with a non-fixed duration can ensure that all relevant information is captured during the occurrence of a specific event. It also helps to more accurately map event information with audio and video files, improve the effectiveness and reliability of the monitoring system, better record and store the relevant content of specific events, and provide more useful information for subsequent analysis and retrieval.

[0057] Step S300: When it is confirmed that the remaining storage capacity of the storage medium is less than or equal to a preset threshold, the audio and video files with earlier recording times and the corresponding event information are deleted according to the order of recording times in the event list and the mapping relationship.

[0058] Specifically, the numerical value of the preset threshold can be determined according to the total capacity of the storage medium. Generally speaking, the preset threshold can be set to a certain percentage of the total capacity of the storage medium to ensure that the corresponding processing mechanism can be triggered in time when the storage capacity is close to exhaustion. For example, the preset threshold can be set to 10% or 20% of the total capacity of the storage medium. In this way, when the storage capacity is close to exhaustion, the system can take timely measures, such as cleaning up audio and video files with earlier recording times and corresponding event information, to avoid the loss of audio and video files or storage failure due to insufficient storage medium capacity. Deleting the corresponding event information at the same time as deleting the audio and video files can ensure the synchronization of audio and video files and event information, and prevent the situation where the event information is still there but the corresponding audio and video files have been deleted.

[0059] Compared with the prior art, the storage management method of the video surveillance recording of the embodiment of the present invention realizes the association between the audio and video files and the specific event information by establishing a mapping relationship between the audio and video files and the event information, which is beneficial to the subsequent synchronization operation between the audio and video files and the event information as well as the later data analysis and event tracking. When the remaining storage capacity of the storage medium is less than or equal to the preset threshold, the audio and video files with earlier recording times and the corresponding event information are deleted according to the order of recording time and the mapping relationship, so as to release the storage space in time, avoid the problem of audio and video file loss or storage failure due to insufficient storage medium capacity, and realize long-term recording in a limited storage space. Through this automatic synchronous storage and update method, efficient storage and automatic management of audio and video files and event information can be realized in a limited storage space, which improves storage efficiency, optimizes user experience, and is suitable for various application scenarios that require long-term audio and video recording.

[0060] See also Figure 2 As shown, it is a flow chart of the second embodiment of the storage management method of video surveillance recordings of the present invention.

[0061] Compared with other embodiments of the storage management method for video surveillance recordings, this embodiment provides a detailed description of the steps of deleting audio and video files and corresponding event information.

[0062] In this embodiment, the video surveillance recording storage management method includes:

[0063] Step S100: In response to starting the function of recording audio and video, an event list is created.

[0064] Specifically, the function of recording audio and video can be set to automatically start when the system is turned on, and after starting, ordinary video and event video are recorded together. This automatic startup method is suitable for scenarios that require all-weather monitoring or real-time recording, ensuring that the system can be in a recording state at any time. Of course, the function of recording audio and video can also be set to start only when the system detects a specific event, and after starting, the event audio and video are recorded separately. For example, when the system detects abnormal activities, suspicious persons or other preset events through motion detection, sound detection and face recognition, the function of recording audio and video is turned on. Furthermore, the system can also be set to turn off the recording audio and video function when a specific event is detected and wait for the next time to start. This startup mechanism can save storage space, avoid recording a large amount of useless ordinary videos, and can also record important events more accurately. In actual application, the appropriate startup method can be selected according to the specific scenario to meet the different recording requirements of the video surveillance system.

[0065] Step S200: storing the recorded audio and video in a storage medium in the form of a file, and recording the event information corresponding to the audio and video file in the event list, and establishing a mapping relationship between the audio and video file and the event information.

[0066] Therein, a plurality of audio and video files are stored in the storage medium, the event list includes a plurality of event information, and each of the event information includes the file name and recording time of an audio and video file.

[0067] Specifically, the recorded audio and video are stored in the storage medium in the form of files, among which common file formats include MP4 (MPEG-4 Part 14), AVI (Audio Video Interleave), MOV (QuickTime Movie), MKV (Matroska Video) and FLV (Flash Video). These file formats define the encoding method, container format and metadata of audio and video data for easy storage, transmission and playback.

[0068] In some embodiments of the present application, the storage management method is applied to an electronic device, the event list is stored in a persistent storage medium of the electronic device, and the audio and video files are stored in a removable storage medium connected to the electronic device.

[0069] Specifically, persistent storage media usually refers to solid state drives (SSDs) and flash memory. These storage media use solid-state storage technology, do not contain mechanical parts, have high durability and stability, and are suitable for long-term data storage. Persistent storage media generally have a long service life and a low failure rate, which can meet the needs of electronic devices for stable data storage.

[0070] Specifically, removable storage media usually refers to storage that is easy to carry and can be connected to different electronic devices, including mobile hard disks, SD cards, and TF cards. This type of storage media generally has the characteristics of small size and easy connection. It can be used to transfer, back up and store data between different electronic devices, and has high portability and flexibility. Among them, although the TF card is small in size, its storage capacity can be large and can meet the needs of long-term recording. The storage capacity of modern TF cards ranges from a few GB to tens of GB, and there are even higher-capacity TF cards available. And TF cards have fast read and write speeds, can quickly record and read audio and video data, ensure the smoothness and accuracy of surveillance recordings, and are particularly suitable for the recording storage needs of video surveillance systems.

[0071] Specifically, persistent storage media are usually used to store important data and information that needs to be preserved for a long time. Event information, as important metadata, needs to be preserved and managed for a long time. Storing event information in persistent storage media can improve the security and stability of data, while better managing and accessing event information. Removable storage media are usually used to store large-capacity files. Audio and video files generally require a large storage space and need to be read and written frequently. Storing audio and video files in removable storage media can better manage large-capacity audio and video data, while reducing the burden on persistent storage media and maintaining its stability and long-term reliability. This separate storage method helps to improve data security and access speed, can optimize the storage and management of audio and video data to the greatest extent, and improve the efficiency and reliability of the system.

[0072] In some embodiments of the present application, each piece of event information includes a file name of an audio or video file, a corresponding event type, a start recording time, and an end recording time.

[0073] Specifically, event types are used to classify or identify events corresponding to recorded audio and video, including common events and specific events. Common events are used to describe and classify general events, such as people entering and exiting, vehicles driving, etc.; specific events are used to describe the nature, category or characteristics of specific events, such as fire, intrusion, abnormal behavior, etc., which helps to more accurately identify and process specific types of audio and video files. By marking the event type of audio and video files, users can also retrieve specific types of events and play back corresponding audio and video files as needed.

[0074] Step S301: When it is confirmed that the remaining storage capacity of the storage medium is less than or equal to a preset threshold, the corresponding audio and video files and the event information of the audio and video files are deleted in sequence starting from the earliest start recording time according to the order of the start recording time in the event list and the mapping relationship, until it is confirmed that the remaining storage capacity of the storage medium is greater than the preset threshold, then the deletion of the audio and video files and the corresponding event information is stopped.

[0075] Specifically, by deleting audio and video files and event information according to the order and mapping relationship of the start of recording time, it is a mechanism for automatically managing storage space and optimizing the use of storage resources. This mechanism helps to ensure the continuous recording of audio and video data, and take appropriate measures when the storage space is close to being exhausted, such as deleting old audio and video files to make room for new audio and video files. This automated storage space management method can ensure that the remaining storage capacity of the storage medium is always maintained at a safe level, avoiding the loss of audio and video files or storage failures caused by storage space exhaustion, further improving the stability and reliability of the system, while reducing the workload of administrators and ensuring the continuity and integrity of audio and video files.

[0076] The video surveillance recording storage management method of the embodiment of the present invention discloses a TF card-based audio and video event recording storage and playback system. The system stores audio and video in the form of files in the TF card, and stores event information in a database. When the TF card approaches the upper limit of the storage capacity, the system automatically rotates the files and deletes the relevant event information to achieve efficient storage of audio and video data and event information.

[0077] See also Figure 3 As shown, it is a flow chart of the third embodiment of the storage management method of video surveillance recordings of the present invention.

[0078] Compared with other embodiments of the storage management method for video surveillance recordings, this embodiment adds the steps of retrieving event information and playing the audio and video files corresponding to the retrieved event information.

[0079] In this embodiment, in step S200, after the mapping relationship between the audio and video files and the event information is established, the following step is further included:

[0080] Step S401: In response to receiving a search request, a search time interface is displayed on a display screen.

[0081] Specifically, the retrieval time interface is a client interface. The retrieval time interface is the interface displayed on the client's display screen after the system receives a retrieval request. This interface is used for users to enter a specific time range in order to retrieve specific event information. The retrieval time interface can be set to an input mode, allowing users to directly enter the start time and end time, or it can be set to a time selection mode, providing interactive elements such as a date selector or timeline, allowing users to select a time range by clicking or dragging. The retrieval time interface is designed to allow users to easily and quickly specify the time range they need to search, so that the system can accurately retrieve and present relevant data.

[0082] Step S402: obtaining a requested search time range through the search time interface, creating a time axis according to the search time range, and displaying the time axis on a display screen.

[0083] Specifically, the process of creating a timeline according to the retrieval time range includes: first, determining the start time and end time of the timeline according to the retrieval time range. The start time can be the start time of the retrieval time range, and the end time can be the end time of the retrieval time range. Then, according to the determined time span and the size of the display area, determine the time interval of the timeline, such as hourly, daily or weekly. In this way, the timeline can be divided into corresponding time periods, which is convenient for users to view and locate specific time points. Finally, according to the determined start time, end time and time interval, draw the timeline and mark the time scale, and then display the complete timeline on the display screen.

[0084] In some embodiments of the present application, the duration of the displayed timeline is greater than the duration of the retrieval time range.

[0085] Specifically, the display of the timeline needs to take into account the user's browsing experience and visualization effect. By extending the duration of the timeline to a duration that exceeds the retrieval time range, a more comprehensive perspective can be provided. This allows users to not only see the event information within the retrieval time range when browsing the timeline, but also understand the broader context and related events, helping users to better understand and analyze the data. By extending the duration of the timeline, more contextual information can be provided. Users can see the time distribution before and after the retrieval time range, so as to better understand the development and evolution of events. This helps users obtain more comprehensive information and make more accurate judgments and decisions. Extending the duration of the timeline can also provide users with more data points, thereby supporting more flexible data analysis. Users can observe and compare the distribution and trends of events in different time periods, discover potential patterns and associations, and help users dig deeper into the data to discover hidden information and insights. It should be noted that the duration of the displayed timeline that is longer than the retrieval time range is not suitable for all situations. When the time span of the search time range is large, the length of the time axis displayed may only be a part of the search time range. Users can drag the time axis to view the event information within the complete search time range to ensure the best visualization effect and user experience. In actual application, the display form of the time axis depends on the characteristics of the data, user needs and visualization effect.

[0086] Step S403: event information corresponding to the search time range is searched in the event list, and all the retrieved event information is visually displayed in the form of video strips on the time axis.

[0087] Specifically, the video strip format usually refers to displaying the corresponding audio and video recording time period in the form of a bar chart on the timeline. This form of visual display allows users to intuitively see the position and duration of event information on the timeline. Each bar chart represents an event information, and its length and position indicate the duration and time period of the audio and video file recording corresponding to the event information. Through the display in the form of video strips, users can more easily understand the distribution of event information on the timeline, thereby making it easier to retrieve and analyze events.

[0088] Step S501a: When the video bar displayed on the timeline detects a mouse click event, the audio and video file corresponding to the video bar is played.

[0089] Specifically, by visually displaying event information in the form of video strips on the timeline, and directly playing the corresponding audio and video files when the user clicks the video strip, the user can intuitively understand the time point and duration of the event, and immediately view the relevant audio and video files, so as to better understand the details of the event. When the video strip is clicked by the mouse, the corresponding audio and video file is directly played. This is an intuitive and fast simplified operation process that can facilitate users to view audio and video files related to specific events, help users more conveniently obtain the required information, and improve the ease of use of the system and user satisfaction.

[0090] Step S501b: When the timeline detects a mouse click event, the time point corresponding to the click position of the mouse click event on the timeline is obtained; according to the time point, the corresponding event information is retrieved from the event list, and the audio and video files corresponding to the retrieved event information are played.

[0091] Specifically, by clicking anywhere on the timeline to play the corresponding audio and video file, this method is more flexible than directly clicking the recording bar to play the audio and video file. Users can choose to view audio and video files at different time points according to specific needs, which helps users better understand the background and related content of the event, and facilitates users to browse and obtain required information more effectively.

[0092] It should be noted that step S501a and step S501b are two different audio and video file playing methods. Step S501a is a step of directly playing the corresponding audio and video file when the video bar displayed on the timeline is clicked; step S501b is a step of obtaining the time point corresponding to the click position when the timeline is clicked, then retrieving the event information corresponding to the time point in the event list, and playing the audio and video file corresponding to the retrieved event information. There is no order between step S501a and step S501b, and either one can be implemented.

[0093] The video surveillance recording storage management method of the embodiment of the present invention provides an audio and video event recording storage and playback system based on a TF card and integrating event management, intelligent storage space control and a friendly user interface. Users can query event information within a specific time period through the client and display the event information in the form of a video strip. The system also supports users to accurately locate and playback by dragging the timeline. The storage management method improves storage efficiency, optimizes user experience, and is suitable for various application scenarios that require long-term audio and video recording and fast retrieval.

[0094] See also Figure 4 As shown, it is a flow chart of the fourth embodiment of the storage management method of video surveillance recordings of the present invention.

[0095] Compared with other embodiments of the storage management method for video surveillance recordings, this embodiment adds a step of playing back audio and video files. The step of playing back audio and video files is implemented under the premise that the user specifies the playback time range.

[0096] In this embodiment, in step S200, after the mapping relationship between the audio and video files and the event information is established, the following step is further included:

[0097] Step S511: In response to receiving a playback request, obtaining a playback time range of the playback request.

[0098] Specifically, a playback request usually includes a specified playback time range or other parameters to determine the time period of the audio or video file that needs to be played back. When a playback request is received, the received playback request needs to be parsed first, including the format and content of the request. Finally, based on the parsed playback request, the playback time range contained therein is extracted. The playback time range involves extracting the playback start time and the playback end time, or determining the playback time range by specifying the playback duration.

[0099] Step S512: Create a timeline according to the playback time range, and display the timeline on a display screen.

[0100] In some embodiments of the present application, the duration of the displayed timeline is greater than the duration of the playback time range.

[0101] Specifically, the duration of the displayed timeline is longer than the duration of the playback time range, which can provide a more comprehensive time view and allow users to better understand the time distribution within the entire playback time range. By displaying a longer timeline, users can see the occurrence and duration of events more clearly, which helps to analyze and understand the data more comprehensively and help users to better analyze and make decisions. Of course, in order to achieve this visual display effect, the density of the time scale on the timeline can be dynamically adjusted according to the time span of the playback time range. When the playback time range span is short, the density of the time scale can be increased to display the time distribution in more detail. When the playback time range span is long, the density of the time scale can be reduced to avoid overcrowding of the timeline. In addition, according to the time span of the playback time range, the time scale can be divided into different levels. For example, when the playback time range span is short, a smaller time unit (such as minutes or hours) can be used as the unit of the time scale to display more detailed time information. When the playback time range span is long, a larger time unit (such as days or months) can be used as the unit of the time scale to display a wider time range.

[0102] Step S513a: When a confirmation play instruction is received, the audio and video files corresponding to the playback time range are played.

[0103] Specifically, after receiving the confirmation play command from the user, the audio and video files corresponding to the playback time range are played directly. This means that the user has clearly expressed the playback requirements for a specific time range, and the system can respond immediately and play the corresponding audio and video content. This method is suitable for users who already know the time range for playback, or specify the specific time range for playback through other means. The system can directly meet the user's needs and provide a fast playback experience.

[0104] Step S513b: When the timeline detects a mouse click event, the time point corresponding to the click position of the mouse click event on the timeline is obtained; according to the time point, the corresponding event information is retrieved from the event list, and the audio and video files corresponding to the retrieved event information are played.

[0105] Specifically, the user clicks the timeline with the mouse to obtain the audio and video files corresponding to a specific time point. This method is suitable for users who need to make a selection on the timeline to reposition the playback time point and then obtain the corresponding playback content according to the selection operation.

[0106] It should be noted that step S513a and step S513b are two different ways of playing back audio and video files. Step S513a is applicable to directly playing back audio and video files corresponding to the playback time range explicitly specified by the user, and step S513b is applicable to obtaining specific playback content according to the user's selection on the timeline. The difference between the two is that the way of triggering playback is different, one is to directly confirm the playback, and the other is to select the playback content for playback through the timeline. Such a design can meet the user's playback needs in different scenarios and provide a more flexible and diverse playback operation method. There is no order between step S13a and step S13b, and either one is implemented.

[0107] In some embodiments of the present application, when the time axis detects a zoom event, the density of the time scale on the time axis is adjusted according to the zoom event.

[0108] Specifically, the density of the time scale of the time axis is adjusted according to the user's zoom operation (such as mouse scrolling operation). Such a design allows the user to zoom in or out the interval of the time scale on the time axis as needed, so as to more clearly observe the event distribution and timeline within a specific time range. The user can adjust the density of the time axis according to specific needs, so as to more accurately locate and observe a specific time point or time period.

[0109] In some embodiments of the present application, when the timeline detects a drag event, the time scale mark of the timeline moves in the drag direction of the drag event.

[0110] Specifically, the moving direction of the time scale mark of the time axis is adjusted according to the user's dragging operation. Such a design can enable users to browse different time periods on the time axis more conveniently and quickly locate a specific time point. Through the drag event, users can easily move the time scale mark on the time axis to browse and locate a specific time point or time range more quickly.

[0111] The storage management method of the video surveillance recording of the embodiment of the present invention is an efficient and easy-to-use new audio and video event recording storage and playback system, which can efficiently manage audio and video data and event information, support flexible retrieval and playback, realize efficient storage of audio and video data and event information, and realize automatic management of audio and video data in limited storage space, and also provide convenient event retrieval and playback functions.

[0112] The storage management method for video surveillance recordings of the embodiment of the present invention realizes long-term recording in a limited storage space through a file rotation mechanism; uses a database to store event information to achieve fast retrieval and positioning; and provides an intuitive and convenient operation interface through a visual timeline and flexible playback control, which can be applied to various scenarios such as security monitoring and vehicle-mounted recording.

[0113] The following is an embodiment of the electronic device provided by the present invention. The embodiment of the electronic device and the embodiment of the storage management method of the video surveillance recording belong to the same concept, and the details not described in detail in the embodiment of the electronic device can refer to the embodiment of the storage management method of the video surveillance recording.

[0114] See also Figure 5 As shown, it is a schematic diagram of the structure of an electronic device in a hardware operating environment involved in an embodiment of the present invention.

[0115] In this embodiment, an electronic device includes:

[0116] Memory 1005, used to store program instructions; and

[0117] Processor 1001 is used to execute the program instructions to implement the steps of the video surveillance recording storage management method as described above.

[0118] The electronic device of the embodiment of the present invention can be a computing device such as a desktop computer, a notebook, a palm computer, and a server. Figure 5As shown, the electronic device may include: a processor 1001 (e.g., a CPU), a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit, such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0119] Those skilled in the art will understand that Figure 5 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0120] like Figure 5 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module and a computer program.

[0121] exist Figure 5 In the electronic device shown, the network interface 1004 is mainly used to connect to the background server and communicate data with the background server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the computer program stored in the memory 1005. When the computer program is called and executed by the processor 1001, the steps of the storage management method of the above-mentioned video surveillance recording are implemented.

[0122] The following are embodiments of the computer-readable storage medium provided by the present invention. The embodiments of the computer-readable storage medium and the embodiments of the video surveillance recording storage management method and electronic device described above are of the same concept, and the details not described in detail in the embodiments of the computer-readable storage medium can be referred to the embodiments of the video surveillance recording storage management method and electronic device described above.

[0123] In this embodiment, a computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps of the video surveillance recording storage management method described above are implemented.

[0124] Since the electronic device and computer-readable storage medium of the present invention can both implement the steps of the above-mentioned video surveillance recording storage management method, they at least have all the beneficial effects brought by the technical solutions of the above-mentioned video surveillance recording storage management method step embodiments, which will not be described one by one here.

[0125] The above description is only a partial or preferred embodiment of the present invention. Neither the text nor the drawings can limit the scope of protection of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the overall concept of the present invention, or direct / indirect application in other related technical fields are included in the scope of protection of the present invention.

[0126] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0127] The present application is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0128] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0129] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0130] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for storing and managing video surveillance recordings, characterized in that: include: In response to starting the function of recording audio and video, creating an event list; The recorded audio and video are stored in a storage medium in the form of a file, and the event information corresponding to the audio and video file is recorded in the event list, and a mapping relationship between the audio and video file and the event information is established; wherein the storage medium stores a plurality of audio and video files, the event list includes a plurality of event information, and each of the event information includes a file name and recording time of an audio and video file; When it is confirmed that the remaining storage capacity of the storage medium is less than or equal to a preset threshold, the audio and video files with earlier recording times and the corresponding event information are deleted according to the order of recording times in the event list and the mapping relationship.

2. The video surveillance recording storage management method according to claim 1, characterized in that: The storage management method is applied to an electronic device, the event list is stored in a persistent storage medium of the electronic device, and the audio and video files are stored in a removable storage medium connected to the electronic device.

3. The video surveillance recording storage management method according to claim 1, characterized in that: Each piece of event information includes a file name of an audio or video file, a corresponding event type, a start recording time, and an end recording time.

4. The video surveillance recording storage management method according to claim 3 is characterized in that: The deleting the audio and video files with earlier recording times and the corresponding event information according to the order of the recording times in the event list and the mapping relationship includes: According to the order of the start recording time in the event list and the mapping relationship, the corresponding audio and video files and the event information of the audio and video files are deleted in sequence starting from the earliest start recording time until it is confirmed that the remaining storage capacity of the storage medium is greater than the preset threshold, then the deletion of the audio and video files and the corresponding event information is stopped.

5. The video surveillance recording storage management method according to claim 1, characterized in that: After the mapping relationship between the audio and video files and the event information is established, the method further includes: In response to receiving the search request, displaying a search time interface on a display screen; Obtaining the requested search time range through the search time interface, creating a time axis according to the search time range, and displaying the time axis on a display screen; Event information corresponding to the search time range is retrieved in the event list, and all retrieved event information is visually displayed in the form of video strips on the time axis.

6. The video surveillance recording storage management method according to claim 5, characterized in that: After visually displaying all retrieved event information in the form of video strips on the timeline, the method further includes: When the video bar displayed on the timeline detects a mouse click event, the audio and video file corresponding to the video bar is played; When the timeline detects a mouse click event, the time point corresponding to the click position of the mouse click event on the timeline is obtained; based on the time point, the corresponding event information is retrieved from the event list, and the audio and video files corresponding to the retrieved event information are played.

7. The video surveillance recording storage management method according to claim 1, characterized in that: After the mapping relationship between the audio and video files and the event information is established, the method further includes: In response to receiving a playback request, obtaining a playback time range of the playback request; Creating a timeline according to the playback time range, and displaying the timeline on a display screen; When a confirmation play instruction is received, the audio and video files corresponding to the playback time range are played; When the timeline detects a mouse click event, the time point corresponding to the click position of the mouse click event on the timeline is obtained; based on the time point, the corresponding event information is retrieved from the event list, and the audio and video files corresponding to the retrieved event information are played.

8. The video surveillance recording storage management method according to claim 5 or 7, characterized in that: After displaying the timeline on the display screen, the method further includes: When the time axis detects a zoom event, the density of the time scale on the time axis is adjusted according to the zoom event; When the time axis detects a drag event, the time scale mark of the time axis moves in the drag direction of the drag event.

9. An electronic device, characterized in that: include: A memory for storing program instructions; as well as A processor is used to execute the program instructions to implement the steps of the video surveillance recording storage management method as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps of the video surveillance recording storage management method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Method and device for storing audio-video images

    CN102655579A

  • Video file record processing method and device, computer equipment and storage medium

    CN108959419A

  • Video big data event library construction method and device and computer equipment

    CN111782869A

  • Structured video file marking method and system, host and storage medium

    CN113255438A

  • Video processing method and device, equipment and storage medium

    CN118200464A