CN112732177B - Video storage method, device, equipment and storage medium - Google Patents

Video storage method, device, equipment and storage medium Download PDF

Info

Publication number
CN112732177B
CN112732177B CN202011597052.3A CN202011597052A CN112732177B CN 112732177 B CN112732177 B CN 112732177B CN 202011597052 A CN202011597052 A CN 202011597052A CN 112732177 B CN112732177 B CN 112732177B
Authority
CN
China
Prior art keywords
video
video data
sub
target
alarm
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011597052.3A
Other languages
Chinese (zh)
Other versions
CN112732177A (en
Inventor
陈文明
庄少华
庄白云
庄二鹏
贺福华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN HUABAO ELECTRONIC TECHNOLOGY CO LTD
Original Assignee
SHENZHEN HUABAO ELECTRONIC TECHNOLOGY CO LTD
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SHENZHEN HUABAO ELECTRONIC TECHNOLOGY CO LTD filed Critical SHENZHEN HUABAO ELECTRONIC TECHNOLOGY CO LTD
Priority to CN202011597052.3A priority Critical patent/CN112732177B/en
Publication of CN112732177A publication Critical patent/CN112732177A/en
Application granted granted Critical
Publication of CN112732177B publication Critical patent/CN112732177B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/71Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/75Clustering; Classification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements

Landscapes

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

Abstract

The embodiment of the invention discloses a video storage method, a video storage device, video storage equipment and a video storage medium. The method comprises the following steps: acquiring a target video and acquiring a video to be covered in a storage space; dividing the video to be covered based on video frame types to obtain sub video data respectively corresponding to the video frame types; wherein the video frame types include compression encoded frames and forward prediction encoded frames; and determining target sub-video data according to the initial recording time point corresponding to each sub-video data, and performing overlay storage on the target sub-video data based on the target video. According to the embodiment of the invention, the video to be covered is divided based on the video frame type, and the target sub-video data for the overlay storage is determined based on the initial recording time point, so that the requirement of the monitoring video on timeliness is solved, the timeliness of the storage space and the video is ensured, and the equipment cost is reduced.

Description

Video storage method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of video storage, in particular to a video storage method, a device, equipment and a storage medium.
Background
With the increasing complexity of the monitoring environment, the conventional manner of acquiring the monitoring data through the sensor cannot meet the requirement of people on the monitoring result, so that the video medium is gradually introduced into the monitoring environment.
Because of the monitoring requirement of the monitoring environment, video data in the monitoring environment is always required to be collected by the video collecting device, but due to the limitation of the storage space of the video collecting device, traditional monitoring videos are generally stored linearly according to time, and the videos are stored in a covering mode according to time sequence.
Based on the prior art, when people have higher timeliness requirements on the monitoring video, a mode of expanding the storage space of the storage device is often needed, so that the equipment cost is increased.
Disclosure of Invention
The embodiment of the invention provides a video storage method, a device, equipment and a storage medium, which are used for reducing equipment cost while guaranteeing storage space and video timeliness.
In a first aspect, an embodiment of the present invention provides a video storage method, including:
acquiring a target video and acquiring a video to be covered in a storage space;
dividing the video to be covered based on video frame types to obtain sub video data respectively corresponding to the video frame types; wherein the video frame types include compression encoded frames and forward prediction encoded frames;
and determining target sub-video data according to the initial recording time point corresponding to each sub-video data, and performing overlay storage on the target sub-video data based on the target video.
In a second aspect, an embodiment of the present invention further provides a video storage apparatus, including:
the video to be covered acquisition module is used for acquiring the target video and acquiring the video to be covered in the storage space;
the sub-video data determining module is used for dividing the video to be covered based on video frame types to obtain sub-video data respectively corresponding to the video frame types; wherein the video frame types include compression encoded frames and forward prediction encoded frames;
and the target video coverage storage module is used for determining target sub-video data according to the initial recording time point corresponding to each sub-video data and performing coverage storage on the target sub-video data based on the target video.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement any of the video storage methods described above.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer executable instructions which, when executed by a computer processor, are used to perform any of the video storage methods referred to above.
According to the embodiment of the invention, the video to be covered is divided based on the video frame type, and the target sub-video data for the overlay storage is determined based on the initial recording time point, so that the requirement of the monitoring video on timeliness is solved, the timeliness of the storage space and the video is ensured, and the equipment cost is reduced.
Drawings
Fig. 1 is a flowchart of a video storage method according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a video storage method according to an embodiment of the invention.
Fig. 3 is a flowchart of a video storage method according to a second embodiment of the present invention.
Fig. 4A is a schematic diagram of video data in a storage space according to a second embodiment of the present invention.
Fig. 4B is a schematic diagram of video data in another storage space according to the second embodiment of the present invention.
Fig. 5 is a schematic diagram of a video storage device according to a third embodiment of the present invention.
Fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a video storage method according to a first embodiment of the present invention, where the method may be implemented by a video storage device, and the device may be implemented in software and/or hardware, and the device may be configured in a terminal device. The method specifically comprises the following steps:
s110, acquiring a target video and acquiring a video to be covered in the storage space.
According to the persistence of vision principle, the continuously changing digital image exceeds 24 frames per second, and the human eyes cannot distinguish a single static image, so that a continuous smooth visual effect is presented. Such a series of successive digital images becomes video. The target video is, for example, video data to be stored, which is collected by the monitoring device, and the video to be covered is video data stored in the storage space. The video to be overlaid may be video data of which the time is early in the storage space, for example.
S120, dividing the video to be covered based on the video frame types to obtain sub-video data respectively corresponding to the video frame types.
Because of the huge amount of video data, it is very inconvenient to transmit and store video, so in order to solve this problem, people use a video coding (also called video compression) mode to efficiently represent the original video data. Video data has a large amount of redundant information such as temporal redundancy, spatial redundancy, statistical redundancy, structural redundancy, visual redundancy, and knowledge redundancy. By way of example, spatial redundancy refers to a strong spatial correlation between adjacent pixels in the same video frame image for each video frame image in the video data. Temporal redundancy refers to a strong temporal correlation between adjacent video frame pictures. In particular, it is common to use prediction, transformation, quantization, entropy coding, etc. to minimize redundancy in video data and to characterize video using as little data as possible.
In this embodiment, the video to be covered is stored in the storage space by using a video predictive coding method. Video predictive coding is an effective means for improving the compression rate, and the basic principle is as follows: the pixels currently being encoded are predicted from the transmitted pixels based on the temporal or spatial correlation of the video frame images in the video data, and then the difference between the predicted value and the true value, the prediction error, is encoded and transmitted. Wherein the difference is much smaller than the original true value, thereby achieving the purpose of video data compression.
In the present embodiment, the video frame types of the video to be overlaid include compression-encoded frames and forward prediction-encoded frames. Therein, an exemplary, compression-coded frame (I-frame) represents a key frame in a video to be overlaid, and a complete video can be reconstructed using only the compression-coded frame when decoding. The forward Predictive coded frame (P-frame) represents the predicted difference between the current frame and the previous key frame or previous forward Predictive coded frame in the video to be overlaid.
The sub video data includes sub video data corresponding to a compression encoded frame and sub video data corresponding to a forward prediction encoded frame.
S130, determining target sub-video data according to the initial recording time point corresponding to each sub-video data, and performing overlay storage on the target sub-video data based on the target video.
In an exemplary embodiment, if the video to be covered belongs to the same video segment, the starting recording time points corresponding to the sub video data are the same, and if the video to be covered does not belong to the same video segment, the starting recording time points corresponding to the sub video data are different. For example, when the video to be overlaid belongs to the same video segment and the video segment is the video data of 0-10s, the video to be overlaid includes the sub-video data corresponding to the compression encoded frames of 0-10s and the sub-video data corresponding to the forward prediction encoded frames of 0-10 s. When the video to be covered does not belong to the same video segment, and the video segment is the sub-video data corresponding to the compression coding frame of 0-10s and the video data of 11-20s, the video to be covered comprises the sub-video data corresponding to the compression coding frame of 0-10s, the sub-video data corresponding to the compression coding frame of 11-20s and the sub-video data corresponding to the forward prediction coding frame of 11-20 s.
In one embodiment, optionally, determining target sub-video data corresponding to the target video according to a start recording time point corresponding to each sub-video data includes: if the initial recording time point of the sub-video data corresponding to the compression coding frame is greater than or equal to the initial recording time point of the sub-video data corresponding to the forward predictive coding frame, taking the sub-video data corresponding to the forward predictive coding frame as target sub-video data; and if the initial recording time point of the sub-video data corresponding to the compression coding frame is smaller than the initial recording time point of the sub-video data corresponding to the forward predictive coding frame, taking the sub-video data corresponding to the compression coding frame as target sub-video data.
Specifically, the initial recording time point is larger, which indicates that the recording time corresponding to the sub video data is later.
Fig. 2 is a schematic diagram of a video storage method according to an embodiment of the invention. The first row of matrix represents video data in the storage space, and a section of video data (e.g. 0-10 s) in the storage space is selected as the video A to be covered. Dividing the video A to be covered based on the video frame type to respectively obtain sub-video data corresponding to the compression coding frame and sub-video data corresponding to the forward predictive coding frame, wherein the sub-video data corresponding to the forward predictive coding frame is used as target sub-video data as the initial recording time points corresponding to the two sub-video data are the same. The last line in fig. 2 represents video data stored in the storage space after the overlay storage, where "I" and "P" represent compression-encoded frames and forward prediction-encoded frames in the target video, respectively. "iIII … II" represents sub-video data corresponding to compression-encoded frames in the video A to be overlaid for 0-10s, and "PIPI … IPI" represents video data for 11-15 s. When dividing the video B to be covered, the initial recording time point of the sub-video data corresponding to the compression coding frame in the video B to be covered is smaller than the initial recording time point of the sub-video data corresponding to the forward predictive coding frame in the video B to be covered.
In this embodiment, when the current video to be overlaid is acquired, the current video to be overlaid may store sub-video data corresponding to the compression encoded frame or sub-video data corresponding to the forward predictive encoded frame corresponding to the previous video data to be overlaid.
The advantage of this arrangement is that, for example, when the video data of 0-10s is overlaid, the prior art overlay storage method does not have video data of 0-10s in the storage space after the overlay storage method is overlaid. Assuming that the ratio of the compression coding frame to the forward prediction coding frame in the video data of 0-10s is 1:1, the technical scheme is to cover the sub-video data corresponding to the forward prediction coding frame in the video data of 0-20s, and the sub-video data corresponding to the compression coding frame of 0-20s still exists in the storage space after the covering. Compared with the prior art, the technical scheme reserves video data of 0-10s as long as possible under the condition of ensuring that new videos can be stored.
In one embodiment, optionally, if the storage space corresponding to the target sub-video data is smaller than the storage space corresponding to the target video, then another sub-video data is stored in an overlay manner based on the target video. For example, assuming that the target sub-video data is sub-video data corresponding to a forward predictive coding frame, if the storage space to which the target sub-video data corresponds is smaller than the storage space to which the target video corresponds, the sub-video data corresponding to the compression coding frame in the video to be overlaid is overlaid and stored based on the target video.
According to the technical scheme, the video to be covered is divided based on the video frame type, and the target sub-video data for covering and storing is determined based on the initial recording time point, so that the requirement of the monitoring video on timeliness is met, the timeliness of the storage space and the video is ensured, and meanwhile, the equipment cost is reduced.
Example two
Fig. 3 is a flowchart of a video storage method according to a second embodiment of the present invention, and the technical solution of this embodiment is further refinement based on the foregoing embodiment. Optionally, the obtaining the video to be covered in the storage space includes: and taking the video data with the alarm level lower than or equal to the target alarm level in the storage space as the video to be covered based on the target alarm level corresponding to the target video.
The specific implementation steps of the embodiment include:
s210, acquiring a target video.
S220, based on the target alarm level corresponding to the target video, taking the video data with the alarm level lower than or equal to the target alarm level in the storage space as the video to be covered.
In the field of monitoring, as the monitoring environment is increasingly complex, it is necessary to distinguish between recorded video data so as to search for the video data later. In this embodiment, the video data is differentiated based on the alarm level, and in one embodiment, optionally, the method further comprises: when an alarm signal is detected, determining an alarm grade label based on the alarm type of the alarm signal; based on the alarm grade label, executing a labeling operation on the collected video data until the alarm signal is ended; correspondingly, the method further comprises the steps of: and determining the alarm grade corresponding to the video data based on the alarm grade label in the video data.
In one embodiment, the alarm type of the alarm signal optionally includes at least one of a geographic location signal, an altitude signal, a time interval signal, a smoke signal, and a vehicle control signal. The geographical position signal and the altitude signal may be, for example, position signals and altitude signals acquired based on the chinese beidou health navigation system (BeiDou Navigation Satellite System, BDS) or based on the global positioning system (Global Positioning System, GPS). For example, when the target vehicle is not in the preset geographic area, a geographic position signal is generated, an alarm grade label corresponding to the geographic position signal is determined, video data from the beginning of the geographic position signal to the end of the geographic position signal is marked as an alarm video, and specifically, when the target vehicle is in the preset geographic area, the geographic position signal is ended.
In this embodiment, the video data finally collected includes an alarm video, or at least one normal video and at least one alarm video. Wherein, concretely, the common video is video data which is not marked by the alarm level label. By way of example, the alarm level corresponding to a normal video may be level 0.
In this embodiment, the video to be covered may include a normal video, or may include a normal video and an alarm video, where the alarm level of the alarm video is lower than or equal to the target alarm level.
Fig. 4A is a schematic diagram of video data in a storage space according to a second embodiment of the present invention. Fig. 4A shows that the collected video data includes a normal video a, an alarm video and a normal video B, and specifically, during the recording process of the normal video a, an alarm signal is detected, so that the video data collected later is marked as an alarm video until the alarm signal ends. In this embodiment, the acquired video data is directly stored in the storage space.
On the basis of the above embodiment, optionally, if the video type to which the target video belongs is an alarm video, in the storage space corresponding to the alarm video, the alarm video with the lowest alarm level is used as the video to be covered. In this embodiment, the normal video and the alarm video are stored separately. The method is characterized in that, for example, an alarm video with the lowest alarm level in a storage space is taken as a video to be covered, wherein the alarm level corresponding to the alarm video is 1 level, 2 level and 3 level, and the alarm video with the lowest alarm level in the storage space is taken as a target alarm level corresponding to the target video.
Fig. 4B is a schematic diagram of video data in another storage space according to the second embodiment of the present invention. In this embodiment, a normal video in the collected video data is stored in a storage space corresponding to the normal video, and an alarm video in the collected video data is stored in a storage space corresponding to the alarm video.
On the basis of the above embodiment, optionally, the method further includes: and generating an index list of the stored videos in the storage space based on the alarm level label, so that the stored videos are searched based on the index list. This has the advantage that it facilitates searching of stored video in the storage space.
S230, dividing the video to be covered based on the video frame types to obtain sub-video data respectively corresponding to the video frame types.
S240, determining target sub-video data according to the initial recording time point corresponding to each sub-video data, and performing overlay storage on the target sub-video data based on the target video.
According to the technical scheme, the video data are classified based on the alarm levels, the video to be covered is selected based on the alarm levels corresponding to the stored video data in the storage space, the problem that important alarm videos are easy to be covered is solved, the video data with high alarm levels in the storage space are reserved as long as possible, and therefore the viewing requirement of users on the video data with high alarm levels in the storage space is met.
Example III
Fig. 5 is a schematic diagram of a video storage device according to a third embodiment of the present invention. The embodiment can be suitable for the situation of storing the monitoring video, the device can be realized in a software and/or hardware mode, and the device can be configured in the terminal equipment. The video storage device includes: the to-be-overlaid video acquisition module 310, the sub-video data determination module 320, and the target video overlay storage module 330.
The to-be-covered video acquiring module 310 is configured to acquire a target video and acquire a to-be-covered video in a storage space;
the sub-video data determining module 320 is configured to divide the video to be covered based on the video frame types, so as to obtain sub-video data corresponding to each video frame type; wherein the video frame types include compression encoded frames and forward prediction encoded frames;
the target video overlay storage module 330 is configured to determine target sub-video data according to a start recording time point corresponding to each sub-video data, and overlay and store the target sub-video data based on the target video.
According to the technical scheme, the video to be covered is divided based on the video frame type, and the target sub-video data for covering and storing is determined based on the initial recording time point, so that the requirement of the monitoring video on timeliness is met, the timeliness of the storage space and the video is ensured, and meanwhile, the equipment cost is reduced.
Based on the above technical solution, optionally, the target video overlay storage module 330 is specifically configured to:
if the initial recording time point of the sub-video data corresponding to the compression coding frame is greater than or equal to the initial recording time point of the sub-video data corresponding to the forward predictive coding frame, taking the sub-video data corresponding to the forward predictive coding frame as target sub-video data;
and if the initial recording time point of the sub-video data corresponding to the compression coding frame is smaller than the initial recording time point of the sub-video data corresponding to the forward predictive coding frame, taking the sub-video data corresponding to the compression coding frame as target sub-video data.
Based on the above technical solution, optionally, the to-be-overlaid video acquisition module 310 includes:
the first video to be covered acquisition unit is used for taking the video data with the alarm level lower than or equal to the target alarm level in the storage space as the video to be covered based on the target alarm level corresponding to the target video.
Based on the above technical solution, optionally, the to-be-overlaid video acquisition module 310 includes:
the first video to be covered acquisition unit is used for taking the alarm video with the lowest alarm level as the video to be covered in the storage space corresponding to the alarm video if the video type of the target video is the alarm video.
On the basis of the above technical solution, optionally, the apparatus further includes a video data marking module, configured to:
when an alarm signal is detected, determining an alarm grade label based on the alarm type of the alarm signal; based on the alarm grade label, executing a labeling operation on the collected video data until the alarm signal is ended;
correspondingly, the device also comprises: and the alarm grade determining module is used for determining the alarm grade corresponding to the video data based on the alarm grade label in the video data.
On the basis of the above technical solution, optionally, the apparatus further includes:
and the index list generation module is used for generating an index list of the stored videos in the storage space based on the alarm grade label so as to search the stored videos based on the index list.
On the basis of the technical scheme, optionally, the alarm type of the alarm signal comprises at least one of a geographic position signal, an altitude signal, a time interval signal, a smoke signal and a vehicle control signal.
The video storage device provided by the embodiment of the invention can be used for executing the video storage method provided by the embodiment of the invention, and has the corresponding functions and beneficial effects of the execution method.
It should be noted that, in the embodiment of the video storage apparatus, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Example IV
Fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention, where the embodiment of the present invention provides services for implementing the video storage method according to the above embodiment of the present invention, and the video storage apparatus according to the above embodiment may be configured. Fig. 6 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 6 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 6, the electronic device 12 is in the form of a general purpose computing device. Components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard disk drive"). Although not shown in fig. 6, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the electronic device 12, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through a network adapter 20. As shown in fig. 6, the network adapter 20 communicates with other modules of the electronic device 12 over the bus 18. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing the video storage method provided by the embodiment of the present invention.
By the electronic equipment, the requirement of monitoring video on timeliness is met, the storage space and the timeliness of the video are ensured, and the equipment cost is reduced.
Example five
A fifth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a video storage method, the method comprising:
acquiring a target video and acquiring a video to be covered in a storage space;
dividing the video to be covered based on the video frame types to obtain sub video data respectively corresponding to the video frame types; wherein the video frame types include compression encoded frames and forward prediction encoded frames;
and determining target sub-video data according to the initial recording time point corresponding to each sub-video data, and performing overlay storage on the target sub-video data based on the target video.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the above method operations, and may also perform the related operations in the video storage method provided in any embodiment of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (9)

1. A video storage method, comprising:
acquiring a target video and acquiring a video to be covered in a storage space;
dividing the video to be covered based on video frame types to obtain sub video data respectively corresponding to the video frame types; wherein the video frame types include compression encoded frames and forward prediction encoded frames;
determining target sub-video data according to the initial recording time point corresponding to each sub-video data, and performing overlay storage on the target sub-video data based on the target video;
the determining the target sub-video data corresponding to the target video according to the initial recording time point corresponding to each sub-video data comprises the following steps:
if the initial recording time point of the sub-video data corresponding to the compression coding frame is greater than or equal to the initial recording time point of the sub-video data corresponding to the forward predictive coding frame, taking the sub-video data corresponding to the forward predictive coding frame as target sub-video data;
and if the initial recording time point of the sub-video data corresponding to the compression coding frame is smaller than the initial recording time point of the sub-video data corresponding to the forward predictive coding frame, taking the sub-video data corresponding to the compression coding frame as target sub-video data.
2. The method of claim 1, wherein the acquiring the video to be overlaid in the storage space comprises:
and taking the video data with the alarm level lower than or equal to the target alarm level in the storage space as the video to be covered based on the target alarm level corresponding to the target video.
3. The method of claim 1, wherein the acquiring the video to be overlaid in the storage space comprises:
and if the video type of the target video is the alarm video, taking the alarm video with the lowest alarm level as the video to be covered in a storage space corresponding to the alarm video.
4. A method according to claim 2 or 3, characterized in that the method further comprises:
when an alarm signal is detected, determining an alarm grade label based on the alarm type of the alarm signal;
based on the alarm grade label, marking the acquired video data until the alarm signal is finished;
correspondingly, the method further comprises the steps of: and determining the alarm grade corresponding to the video data based on the alarm grade label in the video data.
5. The method according to claim 4, wherein the method further comprises:
and generating an index list of the stored videos in the storage space based on the alarm grade label, so that the stored videos are searched based on the index list.
6. The method of claim 4, wherein the alarm type of the alarm signal comprises at least one of a geographic location signal, an altitude signal, a time interval signal, a smoke signal, and a vehicle control signal.
7. A video storage device, comprising:
the video to be covered acquisition module is used for acquiring the target video and acquiring the video to be covered in the storage space;
the sub-video data determining module is used for dividing the video to be covered based on video frame types to obtain sub-video data respectively corresponding to the video frame types; wherein the video frame types include compression encoded frames and forward prediction encoded frames;
the target video coverage storage module is used for determining target sub-video data according to the initial recording time point corresponding to each sub-video data and performing coverage storage on the target sub-video data based on the target video;
the target video coverage storage module is specifically configured to:
if the initial recording time point of the sub-video data corresponding to the compression coding frame is greater than or equal to the initial recording time point of the sub-video data corresponding to the forward predictive coding frame, taking the sub-video data corresponding to the forward predictive coding frame as target sub-video data;
and if the initial recording time point of the sub-video data corresponding to the compression coding frame is smaller than the initial recording time point of the sub-video data corresponding to the forward predictive coding frame, taking the sub-video data corresponding to the compression coding frame as target sub-video data.
8. An electronic device, the electronic device comprising:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the video storage method of any of claims 1-6.
9. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the video storage method of any of claims 1-6.
CN202011597052.3A 2020-12-28 2020-12-28 Video storage method, device, equipment and storage medium Active CN112732177B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011597052.3A CN112732177B (en) 2020-12-28 2020-12-28 Video storage method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011597052.3A CN112732177B (en) 2020-12-28 2020-12-28 Video storage method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112732177A CN112732177A (en) 2021-04-30
CN112732177B true CN112732177B (en) 2024-03-26

Family

ID=75611319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011597052.3A Active CN112732177B (en) 2020-12-28 2020-12-28 Video storage method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112732177B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101077001A (en) * 2004-11-12 2007-11-21 派尔高公司 Apparatus and method of storing video data
CN104735419A (en) * 2015-03-31 2015-06-24 广东威创视讯科技股份有限公司 Video signal display method and system
CN107124571A (en) * 2017-04-14 2017-09-01 浙江宇视科技有限公司 Videotape storage means and device
WO2019079944A1 (en) * 2017-10-23 2019-05-02 深圳市锐明技术股份有限公司 Video data storage method and device, and terminal device
CN109729429A (en) * 2019-01-31 2019-05-07 百度在线网络技术(北京)有限公司 Video broadcasting method, device, equipment and medium
CN111225171A (en) * 2020-01-19 2020-06-02 普联技术有限公司 Video recording method, device, terminal equipment and computer storage medium
CN111866457A (en) * 2020-07-14 2020-10-30 广州市宏视电子技术有限公司 Monitoring image processing method, electronic device, storage medium and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8798150B2 (en) * 2008-12-05 2014-08-05 Motorola Mobility Llc Bi-directional video compression for real-time video streams during transport in a packet switched network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101077001A (en) * 2004-11-12 2007-11-21 派尔高公司 Apparatus and method of storing video data
CN104735419A (en) * 2015-03-31 2015-06-24 广东威创视讯科技股份有限公司 Video signal display method and system
CN107124571A (en) * 2017-04-14 2017-09-01 浙江宇视科技有限公司 Videotape storage means and device
WO2019079944A1 (en) * 2017-10-23 2019-05-02 深圳市锐明技术股份有限公司 Video data storage method and device, and terminal device
CN109729429A (en) * 2019-01-31 2019-05-07 百度在线网络技术(北京)有限公司 Video broadcasting method, device, equipment and medium
CN111225171A (en) * 2020-01-19 2020-06-02 普联技术有限公司 Video recording method, device, terminal equipment and computer storage medium
CN111866457A (en) * 2020-07-14 2020-10-30 广州市宏视电子技术有限公司 Monitoring image processing method, electronic device, storage medium and system

Also Published As

Publication number Publication date
CN112732177A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN111026915B (en) Video classification method, video classification device, storage medium and electronic equipment
CN110321958B (en) Training method of neural network model and video similarity determination method
US8922659B2 (en) Dynamically reconfigurable intelligent video surveillance system
CN111445902B (en) Data collection method, device, storage medium and electronic equipment
CN109729429B (en) Video playing method, device, equipment and medium
CN112954398B (en) Encoding method, decoding method, device, storage medium and electronic equipment
CN110956648A (en) Video image processing method, device, equipment and storage medium
CN114296611B (en) Live broadcasting room control method, device, electronic equipment, medium and program product
CN112995749A (en) Method, device and equipment for processing video subtitles and storage medium
CN111031351A (en) Method and device for predicting target object track
CN112969075A (en) Frame supplementing method and device in live broadcast process and computing equipment
CN112084920A (en) Method, device, electronic equipment and medium for extracting hotwords
CN111368593B (en) Mosaic processing method and device, electronic equipment and storage medium
CN112732177B (en) Video storage method, device, equipment and storage medium
CN109147091A (en) Processing method, device, equipment and the storage medium of unmanned car data
CN111698533A (en) Video processing method, device, equipment and storage medium
CN112437289B (en) Switching time delay obtaining method
CN113286140B (en) Video coding and decoding test method, device and storage medium
CN112004065B (en) Video display method, display device and storage medium
CN113660495A (en) Real-time video stream compression method and device, electronic equipment and storage medium
CN113051415B (en) Image storage method, device, equipment and storage medium
CN111091848B (en) Method and device for predicting head posture
CN110958460A (en) Video storage method and device, electronic equipment and storage medium
CN117176979B (en) Method, device, equipment and storage medium for extracting content frames of multi-source heterogeneous video
CN112288774B (en) Mobile detection method, mobile detection device, electronic equipment and storage medium

Legal Events

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