Search

WO-2026092041-A1 - VIDEO STREAM TRANSMISSION METHOD AND DEVICE IN VIDEO SURVEILLANCE SYSTEM, AND STORAGE MEDIUM

WO2026092041A1WO 2026092041 A1WO2026092041 A1WO 2026092041A1WO-2026092041-A1

Abstract

The present invention relates to the technical field of video surveillances. Disclosed are a video stream transmission method and device in a video surveillance system, and a storage medium. A backup access apparatus can continuously receive a video stream when an access apparatus is in a fault state, and send the video stream to a processing apparatus on the basis of a first connection instruction sent by the processing apparatus, so that the processing apparatus can receive a complete video stream and perform data processing, thereby avoiding affecting the completion of a video surveillance task and avoiding impacting user experience.

Inventors

  • LUO, JING
  • XING, Shiyang
  • YANG, Dongtao
  • Zhang, Lijiao
  • WEI, ZHIQIANG
  • TANG, XIAO

Assignees

  • 通号通信信息集团有限公司

Dates

Publication Date
20260507
Application Date
20250929
Priority Date
20241031

Claims (10)

  1. A video stream transmission method in a video surveillance system, characterized in that the system includes an access device, a backup access device, and a processing device; the method includes: The backup access device parses the video stream continuously sent by the camera device to obtain multiple frame images in sequence, and caches the latest N frame groups; wherein, the multiple frame images include multiple frame groups arranged in sequence, each frame group includes a first keyframe and at least one prediction frame arranged in sequence, the at least one prediction frame includes each frame image located after the first keyframe and before the second keyframe, the second keyframe being the keyframe following the first keyframe; N is an integer not less than 1; For any obtained frame, the backup access device determines that the frame is a key frame. Then, it generates a corresponding hash value based on a preset hash algorithm and the frame, and uses it as a frame group identifier. Starting from a preset initial order, it records the acquisition order of the frame and the frame in the same group to obtain the acquisition order of the frame and the frame in the same group in the corresponding frame group. It then creates frame information for the frame and the frame in the same group, including the frame group identifier and the acquisition order of the frame in the corresponding frame group. The backup access device receives a first connection instruction sent by the processing device; wherein, the first connection instruction is generated when the processing device determines that the access device has failed and disconnects from the access device during data processing of the video stream received through the access device, and the first connection instruction includes a target hash value and a target acquisition order, wherein the target hash value is generated by the processing device according to the preset hash algorithm and the target keyframe, the target acquisition order is the acquisition order of the target frame in the corresponding frame group, and the target keyframe and the target frame are respectively the latest keyframe and the latest frame obtained and processed by the processing device according to the video stream before disconnecting from the access device; The backup access device determines the next frame of the target frame from the N currently cached frame groups based on the target hash value, the order in which the target is acquired, and the frame information in the first connection instruction, and sends the video stream to the processing device to continue data processing starting from the next frame.
  2. The method according to claim 1, characterized in that, before caching the most recently acquired N frame groups, it further includes: The backup access device determines the handover duration, maximum frame transmission delay, frame transmission rate, and number of frames in the frame group; wherein, the handover duration is the time required for the processing device to successfully switch to the backup access device after determining that the access device has failed. The backup access device inputs the switching duration, the maximum frame transmission delay, the frame transmission rate, and the number of frames contained in the frame group into a preset model for calculation, obtains the output value of the preset model, determines an integer that is not less than the output value and is closest to the output value, and uses it as N; The preset model is as follows: M = (S <sub>0</sub> + S <sub>τ</sub> ) × FPS / GOP; M is the variable corresponding to the output value, S0 is the variable corresponding to the switching duration, Sτ is the variable corresponding to the maximum frame transmission delay, FPS is the variable corresponding to the frame transmission rate, and GOP is the variable corresponding to the number of frames.
  3. According to the method of claim 1, when the processing device is a distribution device, the first connection instruction is generated when the distribution device determines that the access device has failed and disconnected from the access device during the forwarding of the video stream received through the access device to the downstream device; Starting from the next frame, sending the video stream to the processing device for continued data processing includes: The backup access device sends the video stream to the distribution device starting from the next frame after the target frame, so that the distribution device continues to forward the received video stream to the downstream device.
  4. According to the method of claim 1, when the processing device is a storage device, the first connection instruction is generated when the storage device determines that the access device has malfunctioned and disconnected from the access device during the storage of the video stream received through the access device; Starting from the next frame, sending the video stream to the processing device for continued data processing includes: The backup access device sends the video stream to the storage device starting from the next frame after the target frame, so that the storage device continues to store the received video stream.
  5. According to the method of claim 1, wherein during data processing of the video stream received through the access device, when the processing device determines that the access device has malfunctioned and disconnected from the access device, it generates the first connection instruction, configured as follows: When the processing device obtains the first keyframe from the video stream received through the access device and has processed the first keyframe, it generates a corresponding first hash value according to the preset hash algorithm and the first keyframe, determines the first acquisition order of the first keyframe in the corresponding screen group, and saves the first hash value and the first acquisition order to a preset information record table. When the processing device acquires a new keyframe from the video stream received through the access device and has processed the new keyframe, it generates a new hash value corresponding to the new keyframe based on the preset hash algorithm, replaces the hash value currently stored in the information record table with the new hash value, and saves it; and when the processing device acquires a new frame from the video stream received through the access device and has processed the new frame, it determines the new acquisition order of the new frame in the corresponding frame group, replaces the acquisition order currently stored in the information record table with the new acquisition order, and saves it. During the data processing of the video stream received through the access device, when the processing device determines that the access device has malfunctioned and is disconnected from the access device, it uses the hash value currently stored in the information record table and the acquisition order as the target hash value and the target acquisition order, respectively. The processing device generates a first connection instruction that includes the target hash value and the order in which the targets are acquired.
  6. The method according to claim 5, characterized in that the system further includes a backup processing device and a service monitoring device; after sending the video stream to the processing device for continued data processing starting from the next frame, the method further includes: The backup access device stops sending the video stream to the processing device in response to a stop command sent by the service monitoring device; wherein the stop command is generated by the service monitoring device when it determines that the processing device has malfunctioned based on a status message sent by the processing device. The backup access device receives a second connection instruction sent by the backup processing device; wherein, the second connection instruction is generated by the backup processing device in response to a start instruction sent by the service monitoring device, based on the hash value currently stored in the information record table and the order in which they are acquired; the start instruction is generated by the service monitoring device when it determines that the processing device has failed based on a status message sent by the processing device. The backup access device sends the video stream to the backup processing device for further data processing according to the second connection instruction.
  7. A video stream transmission device in a video surveillance system, characterized in that the system includes an access device, a backup access device, and a processing device; the video stream transmission device is applied to the backup access device; The video stream transmission device includes: A parsing unit is used to parse the video stream continuously sent by the camera device to obtain multiple frame images in sequence; wherein, the multiple frame images include multiple frame groups arranged in sequence, each frame group includes a first keyframe and at least one prediction frame arranged in sequence, the at least one prediction frame includes each frame image located after the first keyframe and before a second keyframe, the second keyframe being the keyframe following the first keyframe; N is an integer not less than 1. The cache unit is used to cache the most recently acquired N frame groups; A creation unit is configured to, for any obtained frame, determine that the frame is a keyframe, generate a corresponding hash value based on a preset hash algorithm and the frame, and use it as a frame group identifier, record the acquisition order of the frame and the frame in the same group starting from a preset initial order, so as to obtain the acquisition order of the frame and the frame in the same group in the corresponding frame group, and create frame information of the frame and the frame in the same group, the frame information including the frame group identifier and the acquisition order of the frame in the corresponding frame group; The first receiving unit is configured to receive a first connection instruction sent by the processing device; wherein the first connection instruction is generated when the processing device determines that the access device has malfunctioned and disconnects from the access device during data processing of the video stream received through the access device; the first connection instruction includes a target hash value and a target acquisition order; the target hash value is generated by the processing device according to the preset hash algorithm and the target keyframe; the target acquisition order is the acquisition order of the target frame in the corresponding frame group; and the target keyframe and the target frame are respectively the latest keyframe and the latest frame obtained and processed by the processing device according to the video stream before disconnecting from the access device. The first determining unit is configured to determine the next frame of the target frame in the currently cached N frame groups based on the target hash value, the order in which the target is acquired, and the frame information in the first connection instruction. The first sending unit is used to send the video stream to the processing device for continued data processing starting from the next frame.
  8. According to the device of claim 7, when the processing device is a distribution device, the first connection instruction is generated when the distribution device determines that the access device has failed and disconnected from the access device during the process of forwarding the video stream received through the access device to the downstream device; The first transmitting unit is further configured to: Starting from the next frame after the target frame, the video stream is sent to the distribution device so that the distribution device continues to forward the received video stream to the downstream device.
  9. The device according to claim 7, wherein when the processing device is a storage device, the first connection instruction is generated when the storage device determines that the access device has malfunctioned and disconnected from the access device during the storage of the video stream received through the access device; The first transmitting unit is further configured to: Starting from the next frame after the target frame, the video stream is sent to the storage device so that the storage device continues to store the received video stream.
  10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions, the computer instructions being used to cause a computer to execute the video stream transmission method in the video surveillance system according to any one of claims 1 to 6.

Description

A video stream transmission method, device, and storage medium in a video surveillance system. Technical Field This invention relates to the field of video surveillance technology, and in particular to a video stream transmission method, device and storage medium in a video surveillance system. Background Technology Video surveillance systems are playing an increasingly prominent role in transportation command and production operations, and the requirements for their functions and performance are becoming more and more stringent. A video surveillance system can communicate with cameras, continuously receive video streams from the cameras, and process these streams to complete video monitoring tasks. If the video surveillance system malfunctions and cannot receive video streams from the cameras, it can quickly resolve the fault and resume receiving and processing video streams after the fault is resolved. However, during fault handling, video surveillance systems may be unable to receive and process video streams, resulting in incomplete video streams. This can affect the completion of video surveillance tasks and impact user experience. For example, when a user views live monitoring in a video surveillance system, the system can establish a communication link between the camera and the user terminal, continuously sending the video stream captured by the camera to the user terminal so that the user can view the live monitoring. When the communication link fails, the reception and transmission of the video stream will be interrupted. In this case, the video surveillance system can rebuild a new communication link and then continue sending the video stream captured by the camera to the user terminal. Technical issues However, the video surveillance system is unable to receive and transmit video streams during the establishment of a new communication link, causing users to be unable to view the surveillance video during that period. This may result in users perceiving a video interruption and affecting the user experience. Technical solutions This invention provides a video stream transmission method, device, and storage medium in a video surveillance system to address the shortcomings of related technologies where video surveillance systems cannot receive and process video streams during fault handling, resulting in incomplete video streams that may affect the completion of video surveillance tasks and user experience. The backup access device can continuously receive video streams during access device malfunctions and send video streams to the processing device according to a first connection command sent by the processing device, enabling the processing device to receive complete video streams and perform data processing, thus avoiding impact on the completion of video surveillance tasks and user experience. In a first aspect, the present invention provides a video stream transmission method in a video surveillance system, the system comprising an access device, a backup access device, and a processing device; the method comprising: The backup access device parses the video stream continuously sent by the camera device to obtain multiple frame images in sequence, and caches the latest N frame groups; wherein, the multiple frame images include multiple frame groups arranged in sequence, each frame group includes a first keyframe and at least one prediction frame arranged in sequence, the at least one prediction frame includes each frame image located after the first keyframe and before the second keyframe, the second keyframe being the keyframe following the first keyframe; N is an integer not less than 1; For any obtained frame, the backup access device determines that the frame is a key frame. Then, it generates a corresponding hash value based on a preset hash algorithm and the frame, and uses it as a frame group identifier. Starting from a preset initial order, it records the acquisition order of the frame and the frame in the same group to obtain the acquisition order of the frame and the frame in the same group in the corresponding frame group. It then creates frame information for the frame and the frame in the same group, including the frame group identifier and the acquisition order of the frame in the corresponding frame group. The backup access device receives a first connection instruction sent by the processing device; wherein, the first connection instruction is generated when the processing device determines that the access device has failed and disconnects from the access device during data processing of the video stream received through the access device, and the first connection instruction includes a target hash value and a target acquisition order, wherein the target hash value is generated by the processing device according to the preset hash algorithm and the target keyframe, the target acquisition order is the acquisition order of the target frame in the corresponding frame group, and t