CN116017038A - Video data transmission method, system and computer readable storage medium - Google Patents

Video data transmission method, system and computer readable storage medium Download PDF

Info

Publication number
CN116017038A
CN116017038A CN202211486593.8A CN202211486593A CN116017038A CN 116017038 A CN116017038 A CN 116017038A CN 202211486593 A CN202211486593 A CN 202211486593A CN 116017038 A CN116017038 A CN 116017038A
Authority
CN
China
Prior art keywords
data stream
video
frame
key
video data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211486593.8A
Other languages
Chinese (zh)
Inventor
豆红雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Huacheng Software Technology Co Ltd
Original Assignee
Hangzhou Huacheng Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Huacheng Software Technology Co Ltd filed Critical Hangzhou Huacheng Software Technology Co Ltd
Priority to CN202211486593.8A priority Critical patent/CN116017038A/en
Publication of CN116017038A publication Critical patent/CN116017038A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a video data transmission method, a system and a computer readable storage medium, wherein the video data transmission method comprises the following steps: the video acquisition equipment acquires a video data stream, determines whether the video data stream contains an alarm data stream, and the alarm data stream is the video data stream with an alarm event; if the video data stream contains the alarm data stream, acquiring a non-alarm data stream within a first preset time period before the alarm data stream, and sending the non-alarm data stream and the alarm data stream to video processing equipment, wherein the video processing equipment stores the non-alarm data stream and the alarm data stream. By the method, the loss of the key video before the occurrence of the event can be avoided, and the video monitoring effectiveness is improved.

Description

Video data transmission method, system and computer readable storage medium
Technical Field
The present invention relates to the field of video processing technologies, and in particular, to a video data transmission method, a video data transmission system, and a computer readable storage medium.
Background
In the field of video monitoring, video acquisition devices acquire video data and continuously transmit to video processing devices. Along with the continuous improvement of video definition, the code stream is larger and larger, the requirement on networking bandwidth is higher and higher, and the energy consumption of video acquisition equipment is also larger and larger. In some emerging video monitoring fields, such as WiFi monitoring and smart cat eyes, video bandwidth and energy consumption become major constraints.
If some places such as intelligent home monitoring/office places can be used for storing the video all the day long, the storage space is too much. The method can be used for storing the warning video, and the warning video processing method records the moving target video with the change of a plurality of adjacent frames of pictures in a short time, but can not capture and store the slowly-changed pictures.
Disclosure of Invention
The invention mainly solves the technical problem of providing a video data transmission method, a video data transmission system and a computer readable storage medium, which can avoid the loss of key video before an event occurs and improve the effectiveness of video monitoring.
In order to solve the technical problems, the invention adopts a technical scheme that: there is provided a video data transmission method including: the video acquisition equipment acquires a video data stream, determines whether the video data stream contains an alarm data stream, and the alarm data stream is the video data stream with an alarm event; if the video data stream contains the alarm data stream, acquiring a non-alarm data stream within a first preset time period before the alarm data stream, and sending the non-alarm data stream and the alarm data stream to video processing equipment, wherein the video processing equipment stores the non-alarm data stream and the alarm data stream.
Wherein the sending of the non-alarm data stream and the alarm data stream to the video processing device further comprises: the video acquisition equipment acquires a rear-mounted key frame, wherein the rear-mounted key frame is a key frame of a video data stream of a next frame of the alarm data stream; and sending the post key frame to the video processing equipment.
The video data transmission method further comprises the following steps: the video acquisition equipment continuously acquires video data streams and performs data caching; detecting whether the video data stream contains an alarm data stream; if the video data streams in the second preset time period are detected to not contain the alarm data streams, obtaining a buffer key frame, wherein the buffer key frame is a plurality of key frames of the video data streams buffered in the second preset time period; and sending the buffer key frame to the video processing equipment.
The video data transmission method further comprises the following steps: and if the video data stream does not contain the alarm data stream, acquiring a key frame of the video data stream, and transmitting the key frame to the video processing equipment.
The video data transmission method further comprises the following steps: if the video data stream does not contain the alarm data stream, acquiring a key frame of the video data stream, sending the key frame to video processing equipment, and storing at least part of the key frame by the video processing equipment.
Wherein the video processing device saving at least a portion of the key frames comprises: the video processing device receives key frames of the video data stream; detecting whether the change between two frames of key frames reaches a change threshold; if the change between the two frames of key frames reaches the change threshold, storing the two frames of key frames and all transmission data between the two frames of key frames as a static alarm event.
The video data transmission method comprises the following steps: acquiring a first preset number of key frames in a continuous time period; selecting a second preset number of key frames from the first preset number of key frames as reference key frames, wherein the second preset number is smaller than or equal to the first preset number, and the reference key frames at least comprise the key frames of the last frame; comparing whether the change between the first frame key frame and the reference key frame reaches a change threshold; if the change between the first frame key frame and the reference key frame reaches the change threshold, all key frames between the reference key frame and the first frame key frame are reserved, and the reference key frame is used as a comparison key frame.
Wherein selecting a second preset number of key frames from the first preset number of key frames as reference key frames comprises: and selecting key frames from the first preset number of key frames at the same interval to obtain a second preset number of key frames as reference key frames.
The video data transmission method further comprises the following steps: if the change threshold is not reached between the first frame key frame and the reference key frame, deleting the internal key frame, wherein the internal key frame is all key frames except the first frame key frame and the last frame key frame, and taking the last frame key frame as a comparison key frame.
The video data transmission method further comprises the following steps: and taking the comparison key frame as a first frame key frame, and continuously executing the step of acquiring a first preset number of key frames in a continuous time period, and comparing whether the change between the first frame key frame and the reference key frame reaches a change threshold.
In order to solve the technical problems, the invention adopts another technical scheme that: the video data transmission system comprises video acquisition equipment and video processing equipment, wherein the video acquisition equipment is used for acquiring video data streams and determining whether the video data streams contain alarm data streams or not, and the alarm data streams are video data streams with alarm events; if the video data stream contains the alarm data stream, acquiring a non-alarm data stream in a first preset time period before the alarm data stream, and transmitting the non-alarm data stream and the alarm data stream to video processing equipment; if the video data stream does not contain the alarm data stream, acquiring a key frame of the video data stream, and transmitting the key frame to video processing equipment;
video processing means for storing the non-alert data stream and the alert data stream, or for storing at least a portion of the key frames.
In order to solve the technical problems, the invention adopts another technical scheme that: there is provided a computer readable storage medium for storing instruction/program data executable to implement the video data transmission method described above.
The beneficial effects of the invention are as follows: compared with the prior art, the method and the device detect the acquired video data by utilizing the video acquisition equipment at the front end, and when an alarm event exists, the alarm event and a part of non-alarm events before the alarm event are completely transmitted to the video processing equipment at the rear end, so that the problem of video recording before the alarm event is solved, the loss of key video before the alarm event is avoided, the better video recording and playing effects in the non-event time period are achieved, and the subsequent effectiveness of the video is improved.
Drawings
Fig. 1 is a schematic flow chart of a first embodiment of a video data transmission method of the present application;
fig. 2 is a schematic flow chart of a second embodiment of the video data transmission method of the present application;
fig. 3 is a schematic flow chart of a third embodiment of a video data transmission method of the present application;
fig. 4 is a schematic flow chart of a fourth embodiment of a video data transmission method of the present application;
FIG. 5 is a schematic diagram of a video data transmission system networking of the present application;
FIG. 6 is a flow chart of an embodiment of a video data transmission method according to the present application;
FIG. 7 is a first schematic diagram of video transmission data of the present application;
FIG. 8 is a second schematic diagram of video transmission data of the present application;
FIG. 9 is a third schematic diagram of video transmission data of the present application;
FIG. 10 is a fourth schematic diagram of video transmission data of the present application;
FIG. 11 is a fifth schematic diagram of video transmission data of the present application;
FIG. 12 is a sixth schematic diagram of video transmission data of the present application;
FIG. 13 is a schematic diagram of a particular networking of the video data transmission system of the present application;
fig. 14 is a schematic structural diagram of a video acquisition device in an embodiment of the present application;
fig. 15 is a schematic structural diagram of a video processing apparatus in the embodiment of the present application;
fig. 16 is a schematic structural view of a computer-readable storage medium in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and more specific, the present invention will be described in further detail below with reference to the accompanying drawings and examples.
The application provides a video data transmission method, which detects the acquired video data by utilizing video acquisition equipment at the front end, and when an alarm event exists, the alarm event and a part of non-alarm events before the alarm event are completely transmitted to video processing equipment at the rear end, so that the problem of video recording before the alarm event is solved, the loss of key video before the alarm event is avoided, the video recording and the better video playing effect in a better non-event time period are achieved, and the follow-up effectiveness of the video is improved.
Referring to fig. 1, fig. 1 is a flowchart of a first embodiment of a video data transmission method of the present application. It should be noted that, if there are substantially the same results, the present embodiment is not limited to the flow sequence shown in fig. 1. As shown in fig. 1, the present embodiment includes:
s110: the video acquisition device acquires the video data stream and determines whether the video data stream contains an alarm data stream.
The video acquisition equipment detects the acquired video data and detects whether the acquired video data contains an alarm data stream, wherein the alarm data stream is the video data stream with an alarm event. The alarm data stream may be set according to an actual usage scenario, for example, when a scene of a picture acquired by the current video acquisition device is an overhead scene, the alarm event may be an overhead parabolic event, an overhead fire event, or the like. For example, when the scene of the picture acquired by the current video acquisition device is a security scene, the alarm event may be an intrusion event, etc. And detecting whether the currently acquired video data contains an alarm event or not by using a corresponding detection algorithm.
S130: if the video data stream contains the alarm data stream, acquiring a non-alarm data stream within a first preset time period before the alarm data stream, and sending the non-alarm data stream and the alarm data stream to the video processing equipment so as to enable the video processing equipment to store videos.
The acquired video data stream is a continuous data stream, the alarm data stream is only a part of the data streams, and when the alarm data stream is detected to be contained in the current video data stream, the non-alarm data stream in a first preset time period before the alarm data stream is acquired is sent to the video processing device together with the alarm data stream, so that the video processing device processes and stores the non-alarm data stream. In general, only the data stream at the moment of occurrence of the alarm event is obtained, and the real situation of occurrence of the alarm event cannot be completely known, so that the alarm data stream needs to know partial data about the occurrence of the event to help know the beginning and the end of the alarm event.
In the embodiment, the video data acquired by utilizing the video acquisition equipment at the front end are detected, when an alarm event exists, the alarm event and a part of non-alarm events before the alarm event are completely sent to the video processing equipment at the rear end, so that the problem of video recording before the alarm event is solved, the loss of key video before the alarm event is avoided, the video recording and the good video playing effect are achieved in a good non-event time period, and the follow-up effectiveness of the video is improved.
Referring to fig. 2, fig. 2 is a flowchart of a second embodiment of the video data transmission method of the present application. It should be noted that, if there are substantially the same results, the embodiment is not limited to the flow sequence shown in fig. 2. As shown in fig. 2, the present embodiment includes:
s210: the video acquisition device acquires the video data stream and determines whether the video data stream contains an alarm data stream.
The video acquisition equipment continuously acquires video data streams and performs data caching, the cache space of the video acquisition equipment is limited, alarm data stream detection is performed on a certain amount of video data streams, and the cache space is continuously subjected to covering and rewriting.
S230: it is detected whether the video data stream contains an alarm data stream.
Step S250 is performed when the detected video data stream contains the alarm data stream, and step S290 is performed when the detected video data stream does not contain the alarm data stream.
S250: if the video data stream contains the alarm data stream, acquiring the non-alarm data stream within a first preset time period before the alarm data stream, and transmitting the non-alarm data stream and the alarm data stream to the video processing equipment.
The acquired video data stream is a continuous data stream, the alarm data stream is only a part of the data streams, and when the alarm data stream is detected to be contained in the current video data stream, the non-alarm data stream in a first preset time period before the alarm data stream is acquired is sent to the video processing device together with the alarm data stream, so that the video processing device processes and stores the non-alarm data stream.
S270: the video acquisition equipment acquires the post-positioned key frame and sends the post-positioned key frame to the video processing equipment.
And acquiring a key frame of a video data stream of a later frame of the alarm data stream, wherein the key frame is used as a rear key frame, and the rear key frame is a non-alarm data stream. And sending the post key frame to the video processing equipment. The detection of the subsequent video data stream continues.
S290: if the video data stream in the second preset time period is detected to not contain the alarm data stream, the buffer key frame is acquired, and the buffer key frame is sent to the video processing equipment.
For non-alarm video, there is little change in a short time, and the user is not interested. Analyzing a large time scale such as every 10 minutes, 1 hour, 1 day, and 1 week time interval, the user will have greater interest and more application scenarios. If the conventional ordinary video recording and analysis is performed, a large amount of storage space is occupied, and a large amount of computing resources are occupied when the large amount of storage data is analyzed. Therefore, for the data stream without the alarm event, the second preset time is acquired, wherein the second preset time can be the video frame time which can be cached in the cache space of the video acquisition device, or can be smaller than the video frame time which can be cached in the cache space of the video acquisition device. And continuously detecting that the video data stream in the second preset time period does not contain the alarm data stream, only acquiring a plurality of key frames of the video data stream cached in the second preset time period as cache key frames, and sending the cache key frames to the video processing equipment.
In this embodiment, the video data collected by the video collecting device at the front end is detected, when an alarm event exists, the alarm event and a part of non-alarm events before the alarm event are completely sent to the video processing device at the rear end, further, when no alarm event exists, the key frame data of the video data are saved, a large amount of storage space and calculation resources can be saved, the problem of video recording before the alarm event is solved, the loss of key video before the alarm event is avoided, the video recording and the good video playing effect are achieved in a good non-event time period, and the subsequent effectiveness of the video is improved.
By the method, the video acquisition device sends the complete data containing the alarm data stream and the key frames not containing the alarm data stream to the video processing device, and the video processing device further detects the complete data stream and the key frame data stream.
Referring to fig. 3, fig. 3 is a flowchart of a third embodiment of a video data transmission method according to the present application. It should be noted that, if there are substantially the same results, the embodiment is not limited to the flow sequence shown in fig. 3. As shown in fig. 3, the present embodiment includes:
s310: the video processing device receives the transmission data.
The video processing device pulls a stream to the video acquisition device to acquire transmission data, wherein the transmission data can comprise key frames of the video data stream or complete data of the video data stream.
S330: it is detected whether a change between two frames of key frames reaches a change threshold.
When the video data stream detected by the video acquisition device is a non-alarm event, there may be a change in the video data stream, and when detecting that a scene change needs to be focused, it is detected whether a change between two acquired key frames reaches a change threshold, where the change is generally of a slow change type, such as light brightening, light darkening, local change, target movement, target enlargement, target reduction, and the like, and the change is not limited to the above change, and whether the change between two frames of key frames reaches the change threshold is determined according to the response change threshold.
S350: if the change between the two frames of key frames reaches the change threshold, storing the two frames of key frames and all transmission data between the two frames of key frames as a static alarm event.
When the change between two frames of key frames reaches a change threshold, the video data is slowly changed in the time period, and the two frames of key frames and all transmission data between the two frames of key frames are stored as static alarm events.
Further, referring to fig. 4, fig. 4 is a flowchart of a fourth embodiment of the video data transmission method of the present application. It should be noted that, if there are substantially the same results, the embodiment is not limited to the flow sequence shown in fig. 4. As shown in fig. 4, the present embodiment includes:
s410: the video processing device receives the key frames.
S420: and acquiring a first preset number of key frames in a continuous time period, and selecting a second preset number of key frames from the first preset number of key frames as reference key frames.
And continuously acquiring a first preset number of key frames by taking the continuous time as a time basis for detecting whether the video data change occurs slowly or not, selecting a second preset number of key frames from the first preset number of key frames as reference key frames, and reacting the video data change condition in the continuous time period by the change among the reference key frames, wherein the second preset number is smaller than or equal to the first preset number, and the reference key frames at least comprise the last frame of key frames.
S430: whether a change between the first frame key frame and the reference key frame reaches a change threshold is compared.
And sequentially comparing the change condition between the subsequent reference key frame and the first frame key frame by taking the first frame key frame as a reference standard, and judging whether the change condition reaches a change threshold value or not.
S440: if the change between the first frame key frame and the reference key frame reaches the change threshold, all key frames between the reference key frame and the first frame key frame are reserved, and the reference key frame is used as a comparison key frame.
When the change between the first frame key frame and the reference key frame of a certain frame after the first frame key frame reaches a change threshold value, the video data between the two frame key frames is slowly changed, all key frames between the reference key frame and the first frame key frame are reserved, and the reference key frame is used as a comparison key frame. The comparison key frame may be the last frame key frame.
S450: if the change between the first frame key frame and the reference key frame does not reach the change threshold, deleting the internal key frame, and taking the last frame key frame as a comparison key frame.
When the change between the first frame key frame and all the reference key frames does not reach the change threshold, the video data in the continuous time period is not changed slowly which needs to be alarmed, all the internal key frames except the first frame key frame and the last frame key frame are deleted, and the last frame key frame is used as a comparison key frame.
S460: the comparison key frame is taken as a first frame key frame.
And step S420, taking the comparison key frame as a first key frame, continuing to execute, acquiring a first preset number of key frames in a continuous time period, and comparing whether the change between the key frame of the first frame and the reference key frame reaches a change threshold.
In this embodiment, for the video processing device at the back end, whether there are a target with a slowly changing large time span and a target changing type are considered for the data frame of the non-alarm event, the changing condition between the continuous key frames is obtained, for the slowly changing target, the key frames are screened, the storage space of the back end occupied by the non-key data frames is reduced, the key data frames are stored by using the storage space as much as possible, the playing speed in the non-event time period is improved, the picture occurring in the non-event time period can be truly recorded, and the good video recording and playing effect in the non-event time period can be achieved through playing at a very high speed such as hundred times/thousand times. The user can intuitively observe the trend of the target change by combining time, so that the time consumption is less, and the time of the user is saved. The target monitoring effect and accuracy of non-dynamic and non-rapid change/invasion are improved.
In the prior art, the number of I frames in a video stream is reduced through coding processing, and the code stream is reduced, so that the bandwidth is reduced. However, in this method, the video capturing apparatus continuously transmits the captured video data to the video processing apparatus, and thus has limited effect on the reduction of bandwidth and power consumption. If some places such as intelligent home monitoring/office places can be used for storing the video all the day long, the storage space is too much. The method can be set to alarm video storage, such as storage in certain time periods, such as night time, no people in the daytime and no people in the weekend/holiday office area, wherein the video storage is not performed, i.e. the storage is performed only when a target appears on a picture. On one hand, the method not only saves a lot of storage space, but also is convenient for quick searching, inquiring and video recording. The event target occurrence judgment processing has various methods, and the principle is that 2 adjacent video frames/interval video frames are compared and analyzed, and when the change reaches a certain threshold value, the occurrence of a moving target is judged. The alarm video processing method records the video of the moving object with the change in a short time/adjacent frames of pictures, but cannot capture and store the slowly-changed pictures.
Therefore, in a specific embodiment, the video capturing device may be an IPC (IP CAMERA), the video processing device may be a client device, a front-end management device, an NVR (Network Video Recorder ), a VMS (security video monitoring management platform), a mobile terminal APP, and the like. Thus, referring to fig. 5, fig. 5 is a schematic diagram of a network of the video data transmission system of the present application. In the embodiment of the application, the networking of the video acquisition device and the video processing device can be NVR-IPC, APP-cloud-IPC and the like. After the equipment is added to the client equipment, the NVR performs streaming to the camera, and after the streaming is successful, the camera sends a data stream to the NVR.
Referring to fig. 6, fig. 6 is a flowchart of an embodiment of a video data transmission method of the present application. It should be noted that, if there are substantially the same results, the embodiment is not limited to the flow sequence shown in fig. 5. As shown in fig. 6, the present embodiment includes:
s610: the video acquisition device acquires the video data stream and detects whether the video data stream contains an alarm data stream.
The video acquisition device, namely the storage buffer space of the video which can be stored for a preset time in the preset space of the camera side video acquisition device, for example, 10 seconds, can continuously cover and rewrite the storage space of the video. Stored in the cache is the normal full video stream. The camera side detects whether the current video data stream contains an alarm data stream.
S630: if the video data stream contains the alarm data stream, acquiring the non-alarm data stream within a first preset time period before the alarm data stream, and transmitting the non-alarm data stream and the alarm data stream to the video processing equipment.
Referring to fig. 7, fig. 7 is a first schematic diagram of video transmission data according to the present application. When an alarm event is detected, sending a non-alarm data stream within a first preset time period before the alarm data stream to the management device for storage, and then sending the alarm data stream to the management device for storage, specifically, sending I e(n+1) The video line within t time before the frame is sent to NVR equipment, and then I is sent to the NVR equipment e(n+1) Event streams following the frames are all sent to the NVR device.
S650: and if the video data stream does not contain the alarm data stream, acquiring a key frame of the video data stream, and transmitting the key frame to the video processing equipment.
If the current video data stream does not contain the alarm data stream, stopping transmitting the continuous video stream after transmitting the video stream for a preset time such as 5 seconds, and after the transmission, transmitting the subsequent video stream without transmitting the P frame, namely only transmitting the key frame I frame, and marking the I frame as a non-alarm event.
Referring to fig. 8, fig. 8 is a second schematic diagram of video transmission data according to the present application. If the alarm data stream is sent to end, the next key frame I b After the frame is sent, the P frame and the subsequent video frames are not sent continuously.
If I b If no alarm event exists in the post-preset time T, I is calculated b I of post-T time interval e The frames are sent to a video storage NVR device. The buffer is then updated and the video frame is marked as an alarm event free key I frame. Referring to fig. 9, fig. 9 is a third schematic diagram of video transmission data according to the present application. If no alarm event is recorded, the camera sends I frames to NVR every T time. I frames are respectively I e ,I e1 ,I e2 ,I e3 ,I e4 ,…I en ,I e(n+1) . The NVR client device may set interval T to the camera. The NVR camera is now held using a long connection.
S670: the video processing device stores the non-alert data stream and the alert data stream or stores at least a portion of the key frames.
Referring to fig. 10, fig. 10 is a fourth schematic diagram of video transmission data according to the present application. After the NVR receives a succession of intervals T marked as non-alert data streams, it stores I e ,I e1 ,I e2 ,I e3 ,I e4 ,…I en ,I e(n+1) . Comparing the first non-event I frame with a plurality of key I frames at the back, and detecting whether a change threshold is reached between two key frames; analyzing the slow change type, the local change alarm type includes, but is not limited to, light brightening, light dimming, slow dimming, local change, object movement, object enlargement/reduction. If the change threshold value is reached between two frames of key frames, storing all key frames between the two frames of key frames and recording all key frames as static alarm events; if the change threshold is not reached between the two frames of key frames, deleting all key frames between the two frames of key frames, namely replacing the later I frame with the position of the I frame stored in the previous position in an overlaying manner.
In an embodiment, consecutive multi-frame key frames are acquired, and a one-to-one comparison is performed between a first frame key frame and a subsequent key frame, please refer to fig. 11, fig. 11 is a fifth schematic diagram of video transmission data of the present application. Such as I e Same as I e1 ,I e2 ,I 3 ,I e4 ,…I en One by one comparison to find I e And I e20 And reach the change threshold, if none of them reach the change threshold, then I e20 Cover I e2 A storage location, the update writing the index location, a subsequent I frame from I e20 And writing later. Alternatively, if I is found e And I ei And reach the change threshold, if none of them reach the change threshold, then I ei Cover I e2 A storage location, the update writing the index location, a subsequent I frame from I ei And writing later, wherein i is less than or equal to 20. And when in replacement, the number of the replaced I frames and the time stamp corresponding to the I frames are recorded, and the time stamp is recorded in the I e2 An index area. Then update I ei Is compared withAnd the comparison key frame is a non-alarm key frame which is sent by the camera at a later interval T.
In another embodiment, a second predetermined number of reference key frames are selected from a first predetermined number of key frames of successive frames, one-to-one comparison is made between the first frame key frames and the subsequent reference key frames, if I is found e And I ei And reach the change threshold, if none of them reach the change threshold, then I ei Cover I e2 A storage location, the update writing the index location, a subsequent I frame from I ei And writing later. In another embodiment, the intervals between the second preset number of reference key frames are the same.
Referring to fig. 12, fig. 12 is a sixth schematic diagram of video transmission data according to the present application. If the comparison of the compared I frame and the subsequent n I frames does not reach the threshold change, the nth key frame is saved and the alarm event is not reported until the nth key frame is reached. n may be preset to 200, the compared I frames being unchanged. The critical non-alarm event picture recording is not lost in this case.
When the non-alarm event video is played later, the time stamp is used to be superimposed on the I frame, the change is only the time stamp, and the I frame is unchanged. The video recording problem of playing the non-alarm event at double speed is achieved. The speed of the superimposed time change is determined by the user play multiplier.
In another embodiment, referring to fig. 13, fig. 13 is a schematic diagram of a specific networking of the video data transmission system of the present application. As shown in fig. 13, IPC1 is a camera monitoring plant production pictures, and if the NVR receives other equipment events, T and T of IPC1 are adjusted in time. When the object approaches the IPC1 and is perceived by other devices, the whole-course video recording is not performed until the IPC1 perceives the dynamic object. If the IPC1 is performing a non-alarm event video recording period, other devices sense targets such as people before the IPC1, and notify the IPC1 that preset data acquisition can be performed. When other devices such as a doorbell, an intelligent door lock and the like sense that an event occurs, such as a sweeper and the like, the NVR occurs to other devices added to the NVR and having similar positions, and after the devices receive the message, the devices perform full video storage in advance.
For non-whole-course video recording, the video recording is started by sensing in advance, and the video recording is stored before the video recording of the current alarm event, so that the audio and video storage is performed in advance even if some storage is consumed, and the video recording is more complete before the alarm event occurs. The video research on slow change generates effects such as delayed photography, and has less data processing and extremely small storage space for plant growth research.
Referring to fig. 14, fig. 14 is a schematic structural diagram of a video capturing apparatus according to an embodiment of the present application. In this embodiment, the video capture device 41 includes a processor 42.
The processor 42 may also be referred to as a CPU (Central Processing Unit ). The processor 42 may be an integrated circuit chip having signal processing capabilities. Processor 42 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The general purpose processor may be a microprocessor or the processor 42 may be any conventional processor or the like.
The video capture device 41 may further include a memory (not shown) for storing instructions and data necessary for the operation of the processor 42.
The processor 42 is configured to execute instructions to implement the methods provided by any of the embodiments and any non-conflicting combinations of video data transmission methods described above.
Referring to fig. 15, fig. 15 is a schematic structural diagram of a video processing apparatus according to an embodiment of the present application. In this embodiment, the video processing device 51 includes a processor 52.
The processor 52 may also be referred to as a CPU (Central Processing Unit ). The processor 52 may be an integrated circuit chip having signal processing capabilities. Processor 52 may also be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The general purpose processor may be a microprocessor or the processor 52 may be any conventional processor or the like.
The video processing device 51 may further comprise a memory (not shown) for storing instructions and data required for the operation of the processor 52.
The processor 52 is configured to execute instructions to implement the methods provided by any of the embodiments of video data transmission and any non-conflicting combinations described above.
Referring to fig. 16, fig. 16 is a schematic structural view of a computer readable storage medium according to an embodiment of the present application. The computer readable storage medium 61 of the embodiments of the present application stores instruction/program data 62 that when executed implement the methods provided by any of the embodiments of the video data transmission methods of the present application, as well as any non-conflicting combination. Wherein the instructions/program data 62 may be stored in the storage medium 61 as a software product to enable a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium 61 includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes, or a terminal device such as a computer, a server, a mobile phone, a tablet, or the like.
In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of elements is merely a logical functional division, and there may be additional divisions of actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The foregoing description is only of embodiments of the present invention, and is not intended to limit the scope of the invention, and all equivalent structures or equivalent processes using the descriptions and the drawings of the present invention or directly or indirectly applied to other related technical fields are included in the scope of the present invention.

Claims (12)

1. A method of video data transmission, the method comprising:
the method comprises the steps that video acquisition equipment acquires a video data stream, and whether the video data stream contains an alarm data stream or not is determined, wherein the alarm data stream is the video data stream with an alarm event;
if the video data stream contains the alarm data stream, acquiring a non-alarm data stream within a first preset time period before the alarm data stream, and sending the non-alarm data stream and the alarm data stream to video processing equipment, wherein the video processing equipment stores the non-alarm data stream and the alarm data stream.
2. The method of claim 1, wherein said sending said non-alert data stream and said alert data stream to a video processing device further comprises:
the video acquisition equipment acquires a rear-mounted key frame, wherein the rear-mounted key frame is a key frame of a video data stream of a next frame of the alarm data stream;
and sending the post key frame to the video processing equipment.
3. The method according to claim 1, wherein the method further comprises:
the video acquisition equipment continuously acquires the video data stream and performs data caching;
detecting whether the video data stream contains the alarm data stream;
if the fact that the video data streams in the second preset time period do not contain the alarm data streams is detected, obtaining cache key frames, wherein the cache key frames are a plurality of key frames of the video data streams cached in the second preset time period;
and sending the buffer key frame to the video processing equipment.
4. The video data transmission method according to claim 1, characterized in that the method further comprises:
and if the video data stream does not contain the alarm data stream, acquiring a key frame of the video data stream, and sending the key frame to the video processing equipment.
5. The video data transmission method according to claim 1, characterized in that the method comprises:
and if the video data stream does not contain the alarm data stream, acquiring a key frame of the video data stream, sending the key frame to the video processing equipment, and storing at least part of the key frame by the video processing equipment.
6. The method of video data transmission of claim 5, wherein the video processing device storing at least a portion of the key frames comprises:
the video processing device receives key frames of the video data stream;
detecting whether the change between the two frames of key frames reaches a change threshold value;
and if the change between the two frames of the key frames reaches the change threshold value, storing the two frames of the key frames and all transmission data between the two frames of the key frames as static alarm events.
7. The video data transmission method according to claim 6, characterized in that the method comprises:
acquiring a first preset number of key frames in a continuous time period;
selecting a second preset number of key frames from the first preset number of key frames as reference key frames, wherein the second preset number is smaller than or equal to the first preset number, and the reference key frames at least comprise the key frames of the last frame;
comparing whether a change between a first frame key frame and the reference key frame reaches the change threshold;
if the change between the first frame key frame and the reference key frame reaches the change threshold, all key frames between the reference key frame and the first frame key frame are reserved, and the reference key frame is used as a comparison key frame.
8. The method of video data transmission according to claim 7, wherein said selecting a second preset number of said key frames from said first preset number of key frames as reference key frames comprises:
and selecting key frames from the first preset number of key frames at the same interval to obtain the second preset number of key frames as reference key frames.
9. The video data transmission method of claim 7, wherein the method further comprises:
if the change threshold is not reached between the first frame key frame and the reference key frame, deleting the internal key frame, wherein the internal key frame is all key frames except the first frame key frame and the last frame key frame, and taking the last frame key frame as a comparison key frame.
10. The video data transmission method according to any one of claims 7 to 9, characterized in that the method further comprises:
and taking the comparison key frame as a first frame key frame, continuing to execute the step of acquiring a first preset number of key frames in a continuous time period, and comparing whether the change between the first frame key frame and the reference key frame reaches the change threshold.
11. A video data transmission system, the video data transmission system comprising:
the video acquisition equipment is used for acquiring a video data stream, determining whether the video data stream contains an alarm data stream or not, wherein the alarm data stream is the video data stream with an alarm event; if the video data stream contains the alarm data stream, acquiring a non-alarm data stream in a first preset time period before the alarm data stream, and sending the non-alarm data stream and the alarm data stream to video processing equipment; if the video data stream does not contain the alarm data stream, acquiring a key frame of the video data stream, and sending the key frame to the video processing equipment;
video processing means for saving said non-alert data stream and said alert data stream, or for saving at least part of a key frame.
12. A computer readable storage medium storing instructions/program data executable to implement the video data transmission method of any one of claims 1-10.
CN202211486593.8A 2022-11-24 2022-11-24 Video data transmission method, system and computer readable storage medium Pending CN116017038A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211486593.8A CN116017038A (en) 2022-11-24 2022-11-24 Video data transmission method, system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211486593.8A CN116017038A (en) 2022-11-24 2022-11-24 Video data transmission method, system and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN116017038A true CN116017038A (en) 2023-04-25

Family

ID=86023765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211486593.8A Pending CN116017038A (en) 2022-11-24 2022-11-24 Video data transmission method, system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116017038A (en)

Similar Documents

Publication Publication Date Title
US10123051B2 (en) Video analytics with pre-processing at the source end
US11893796B2 (en) Methods and systems for detection of anomalous motion in a video stream and for creating a video summary
US10127452B2 (en) Relevant image detection in a camera, recorder, or video streaming device
US7236690B2 (en) Event management system
US20140043480A1 (en) Video monitoring system and method
US9143739B2 (en) Video analytics with burst-like transmission of video data
CN101860731A (en) Video information processing method, system and server
JP2007243699A (en) Method and apparatus for video recording and playback
US20190273866A1 (en) Analytics based power management for cameras
US11871140B2 (en) Motion detection methods and image sensor devices capable of generating ranking list of regions of interest and pre-recording monitoring images
KR20040105612A (en) Change detecting method and apparatus and monitoring system using the method or apparatus
CN110198475B (en) Video processing method, device, equipment, server and readable storage medium
CN110956648A (en) Video image processing method, device, equipment and storage medium
CN111787256B (en) Management method, device, medium and electronic equipment for pre-alarm video
CN111277800A (en) Monitoring video coding and playing method and device, electronic equipment and storage medium
CN102547221A (en) Video recording and network transmitting method based on motion detection
US20210136327A1 (en) Video summarization systems and methods
CN116017038A (en) Video data transmission method, system and computer readable storage medium
EP3629577B1 (en) Data transmission method, camera and electronic device
US10582147B2 (en) Systems and methods for intelligently recording video data streams
CN113038261A (en) Video generation method, device, equipment, system and storage medium
US20230276081A1 (en) System and method of altering real time audio and video streams
CN112885102B (en) Image shooting method, device, equipment and storage medium
GB2570498A (en) A method and user device for displaying video data, a method and apparatus for streaming video data and a video surveillance system
GB2614241A (en) A method of displaying video surveillance data in a video management system

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