[go: up one dir, main page]

CN119814973A - RTSP video transmission method and system under one-way gateway environment - Google Patents

RTSP video transmission method and system under one-way gateway environment Download PDF

Info

Publication number
CN119814973A
CN119814973A CN202411811688.1A CN202411811688A CN119814973A CN 119814973 A CN119814973 A CN 119814973A CN 202411811688 A CN202411811688 A CN 202411811688A CN 119814973 A CN119814973 A CN 119814973A
Authority
CN
China
Prior art keywords
video
data
transmission
unidirectional
receiving end
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.)
Granted
Application number
CN202411811688.1A
Other languages
Chinese (zh)
Other versions
CN119814973B (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.)
Hunan Qilin Xin'an Technology Co ltd
Original Assignee
Hunan Qilin Xin'an 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 Hunan Qilin Xin'an Technology Co ltd filed Critical Hunan Qilin Xin'an Technology Co ltd
Priority to CN202411811688.1A priority Critical patent/CN119814973B/en
Publication of CN119814973A publication Critical patent/CN119814973A/en
Application granted granted Critical
Publication of CN119814973B publication Critical patent/CN119814973B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种单向网关环境下RTSP视频传输方法及系统,本发明方法包括单向网关环境下RTSP视频传输方法,包括通过包含客户端模块、数据冗余编码模块、策略管理模块和视频流打包发送模块的摄像头端服务进行单向网关环境下的RTSP视频发送,以及通过包含视频接收与解码模块、丢包修复模块以及视频重建和播放模块的接收端服务进行单向网关环境下的RTSP视频接收。本发明实在实现单向网关环境下的RTSP视频传输,确保在单向网关环境下没有反向链路的情况下保证视频数据的可靠传输与播放,同时避免双向交互过程中的数据依赖,确保在严格受限的网络条件下视频传输的稳定性和低延迟性。

The present invention discloses an RTSP video transmission method and system under a unidirectional gateway environment. The method of the present invention includes an RTSP video transmission method under a unidirectional gateway environment, including sending RTSP video under a unidirectional gateway environment through a camera end service including a client module, a data redundancy encoding module, a policy management module, and a video stream packaging and sending module, and receiving RTSP video under a unidirectional gateway environment through a receiving end service including a video receiving and decoding module, a packet loss repair module, and a video reconstruction and playback module. The present invention realizes RTSP video transmission under a unidirectional gateway environment, ensures reliable transmission and playback of video data in the absence of a reverse link under a unidirectional gateway environment, avoids data dependence in a two-way interactive process, and ensures stability and low latency of video transmission under strictly restricted network conditions.

Description

RTSP video transmission method and system in unidirectional gateway environment
Technical Field
The invention belongs to the network video transmission technology, and particularly relates to an RTSP video transmission method and system in a unidirectional gateway environment.
Background
In some high security network environments or restricted networks, bi-directional data transmission may present a security risk, or the system architecture decides that only unidirectional data flows can be supported. For example, in application scenarios such as government institutions, military communications, monitoring centers, etc., it is often required that data can only be transmitted unidirectionally, so as to ensure that the receiving end does not leak sensitive information or suffer from network attacks. In such a unidirectional gateway environment, data is generally only allowed to flow from a source (sender) to a destination (receiver), and no feedback information of any form is allowed to return. The existing streaming media transmission system mostly relies on bidirectional communication for data confirmation and error repair, and the RTSP protocol generally requires bidirectional transmission for exchange of control commands and reliable transmission of streaming media data. How to realize stable and smooth RTSP video transmission under the condition of a unidirectional gateway becomes a technical challenge.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a method and a system for transmitting RTSP video in a unidirectional gateway environment, which can realize the RTSP video transmission in the unidirectional gateway environment, ensure the reliable transmission and playing of video data without a reverse link in the unidirectional gateway environment, avoid the data dependence in the bidirectional interaction process, and ensure the stability and low delay of video transmission under the strictly limited network condition.
In order to solve the technical problems, the invention adopts the following technical scheme:
The RTSP video transmission method in the unidirectional gateway environment comprises the steps of transmitting RTSP video in the unidirectional gateway environment through camera head end service comprising a client module, a data redundancy coding module, a strategy management module and a video stream packaging and transmitting module:
An RTSP client is constructed through a client module, a request is actively sent to a camera serving as an RTSP server, and data stream transmission is started through an instruction, so that a real-time compression-encoded audio and video stream is obtained;
The data redundancy coding module performs redundancy coding on video stream data and adds error correction information, so that the receiving end service can automatically repair lost data packets through the redundancy information even if feedback cannot be performed, and the integrity of the video stream is ensured;
The method comprises the steps that a link relation between a camera and a receiving end service is managed through a strategy management module, and associated receiving end service information is attached to a redundant coded audio and video stream so that a single camera end service can be abutted to one or more receiving end services;
And packaging the video data after the received associated receiving end service information by a video stream packaging and sending module, packaging according to a data packet transmission format constrained by the unidirectional gateway, carrying out appointed coding processing on header information, check information and a fragment sequence of the data packet, and transmitting the finally generated data packet to the unidirectional gateway to be sent to the receiving end service.
Optionally, the video data after receiving the relevant receiving end service information is packed by the video stream packing and sending module, the packing processing is carried out according to the data packet transmission format constrained by the unidirectional gateway, the appointed coding processing is carried out on the header information, the check information and the slice sequence of the data packet, the finally generated data packet is transmitted to the unidirectional gateway to be sent to the receiving end service, the video data after receiving the relevant receiving end service information is sliced according to the fixed size, the data with the fixed length is complemented by 0, the slice sequence number and the total slice number are added to each slice of data, so that the original data can be recombined at the receiving end, the slice sequence number is carried out in each frame, the partial picture can be restored at the frame level even if part of the slice is lost, the influence on the fluency is reduced, the data packet after the slice is sliced, the header information containing the time stamp, the frame number, the stream ID and the packet ID is added, the receiving end can play according to the original time sequence, the disorder or network delay influence on the fluency is prevented, the data packet can be completely-matched with the data packet according to the original time sequence, the check information can be completely-matched with the receiving end, the data packet can be completely-matched with the data transmission protocol, the data packet can be prevented from being completely-matched with the data transmission path after the receiving end, the data packet can be completely-matched with the data packet, and the data can be completely-transmitted to the data packet by the data transmission channel 32, and the data can be completely-matched with the data packet, and the data packet has the data transmission format.
The method comprises the steps of firstly carrying out optimization processing on a data packet after unidirectional transmission, which is adaptive to a video frame, based on an optimal transmission strategy, and then sending the data packet after the optimization processing to a receiving end service, wherein the optimization processing on the data packet after the unidirectional transmission, which is adaptive to the video frame, comprises the steps of inquiring the upper limit of the real-time available bandwidth of the link between the API interface camera end service and the receiving end service by the camera end service, inquiring the preset optimal transmission strategy to determine a current optimal transmission mode if the upper limit of the real-time available bandwidth of the link is smaller than a preset value, wherein the optimal transmission mode is one of the optimal transmission modes, namely mode 1, carrying out appropriate discarding or degrading transmission on a non-key video frame by preferentially transmitting the key video frame, and setting a key video frame and the non-key video frame for the video frame when the data packet is packaged, mode 2, carrying out the optimization processing on the data packet after the unidirectional transmission, which is adaptive to the associated with the video frame, and the bit rate of the associated receiving end service is adaptive to the video frame, and the bit rate of the associated data stream is larger than the upper limit of the real-time available bandwidth of the link is smaller than the upper limit of the real-time available bandwidth of the link, and the bit rate of the associated data is smaller than the upper limit of the real-time available data is adjusted, and the data is smaller than the real-time associated with the upper limit of the data.
The method comprises the steps of firstly carrying out optimization processing on the data packet after unidirectional transmission, which is based on an optimal transmission strategy, and then sending the data packet after unidirectional transmission to the receiving end service, wherein the optimization processing on the data packet after unidirectional transmission, which is based on the optimal transmission strategy, comprises the steps of inquiring the link delay between the API interface camera head end service and the receiving end service by the camera head end service, inquiring the preset optimal transmission strategy to determine a current optimization transmission mode if the link delay is larger than a preset value, wherein the optimization transmission mode is one of a mode 1, wherein key video frames are preferentially transmitted, non-key video frames are appropriately discarded or degraded for transmission, and the frame-level packaging comprises setting key video frames and non-key video frames for the video frames, a mode 2, and adaptively adjusting the bit rate of the received video data stream data, which is associated with the receiving end service information, so that the bit rate of the received data stream is associated with the bit rate of the video frames, and the bit rate of the data stream, and a mode 3, wherein the bit rate of the data stream is associated with the bit rate of the video frames, and the bit rate of the data stream after the data stream is associated with the bit rate, or the bit rate of the data stream is adjusted to be associated with the bit rate of the data stream, and the data of the data with the bit rate, or the data of the data stream, which is associated with the bit rate, or the bit rate is adjusted.
Optionally, the method further comprises detecting link jitter between the camera end service and the receiving end service in real time and providing a query API interface for the camera end service to call, wherein the link jitter refers to time difference between multiple transmissions; the method comprises the steps of firstly carrying out optimization processing on the data packet after the unidirectional transmission is adapted based on an optimal transmission strategy and then sending the data packet after the optimization processing to the receiving end service, wherein the optimization processing on the data packet after the unidirectional transmission is adapted based on the optimal transmission strategy comprises the steps of obtaining link jitter of a unidirectional gateway, inquiring the preset optimal transmission strategy to determine a current optimal transmission mode if the link jitter of the unidirectional gateway is larger than a preset value, wherein the optimal transmission mode is one of the following optimal transmission modes, namely, mode 1, preferentially transmitting key video frames and carrying out proper discarding or degrading transmission on non-key video frames, wherein the use of frame-level encapsulation comprises setting key video frames and non-key video frames for the video frames, mode 2, self-adaptively adjusting the bit rate of video data stream data after the received associated receiving end service information so that the bit rate is inversely related to the link jitter of the unidirectional gateway, and mode 3, self-adaptively adjusting the frame or resolution of the video data stream data after the associated receiving end service information so that the frame or resolution is inversely related to the link jitter of the unidirectional gateway.
Optionally, the method further comprises the step of performing RTSP video reception in a unidirectional gateway environment through a receiving end service comprising a video receiving and decoding module, a packet loss repairing module and a video reconstructing and playing module:
monitoring data flow from unidirectional gateway in real time and continuously through video receiving and decoding module, after receiving data, carrying out integrity check on the data, de-packaging according to the engineering label of unidirectional gateway protocol, and reorganizing the data according to fragment sequence information;
the packet loss repairing module is used for repairing and reconstructing data by using redundant coded error correction information so as to fill transmission gaps caused by unstable network, ensure that packet loss caused by network fluctuation in the unidirectional transmission process can be effectively repaired, and ensure the integrity of video and the stability of video during playing;
And processing the reconstructed video stream through a video reconstruction and play module, synchronously processing and formatting the decoded audio and video data, and flowing to a designated output path according to a preset configuration.
Optionally, the repairing and reconstructing the data by using the redundancy-encoded error correction information through the packet loss repairing module includes detecting a packet loss rate of the data by using the redundancy-encoded error correction information through the packet loss repairing module, repairing the lost data packet by directly using the redundancy-encoded error correction information if the packet loss rate is smaller than a preset threshold, otherwise, repairing the data packet corresponding to the key video frame by preferentially using the redundancy-encoded error correction information for the key video frame and the non-key video frame in the data packet, processing the reconstructed video stream through the video reconstruction and playing module, synchronizing and formatting the decoded audio and video data, performing at least one of image enhancement and noise reduction on the video data in the decoded audio and video data according to a preset configuration flow, wherein the image enhancement includes adjusting the color and saturation of the video image, the noise reduction includes identifying a dynamic region and a static region of the video image frame according to the adjacent video image frame, wherein the dynamic region refers to a region where a change occurs in the adjacent video image frame, the static region refers to a region where the adjacent video frame remains, and the noise reduction region is more stable than the dynamic region and the dynamic region has a higher noise reduction degree.
In addition, the invention also provides an RTSP video transmission system in the unidirectional gateway environment, which comprises a microprocessor and a memory which are connected with each other, wherein the microprocessor is programmed or configured to execute the RTSP video transmission method in the unidirectional gateway environment.
Furthermore, the present invention also provides a computer readable storage medium having stored therein a computer program or instructions programmed or configured to execute the RTSP video transmission method in the unidirectional gateway environment by a processor.
Furthermore, the present invention provides a computer program product comprising a computer program or instructions programmed or configured to execute the RTSP video transmission method in a unidirectional gateway environment by a processor.
Compared with the prior art, the invention has the following advantages:
1. The method of the invention prevents various reverse attacks and information leakage of the internal and external networks by the physical unidirectional gateway and the encryption transmission method on the link, and has high security.
2. According to the method, the receiving end can automatically repair packet loss under network oscillation in a scene of a unidirectional gateway link through a forward error correction technology, so that the integrity of a data video is ensured, and the high fault tolerance is realized.
3. The method of the invention improves the efficiency of audio and video data transmission and reduces the transmission delay by the high-efficiency video compression technology and the detection control of the data flow in the link.
4. The system is suitable for various monitoring scenes needing high safety, such as environments of military, government facilities, nuclear power stations, airport monitoring and the like, and has wide adaptability.
Drawings
Fig. 1 is a schematic deployment topology of a method according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of the working principle of the method according to the embodiment of the invention.
Fig. 3 is a schematic diagram of a camera end service processing in an embodiment of the present invention.
Fig. 4 is a schematic diagram of a receiving-end service processing in an embodiment of the present invention.
Detailed Description
In the following, taking a certain monitoring scenario shown in fig. 1, a camera is deployed in a high security area, and camera data is transmitted from an external network to an internal network through a unidirectional gateway for playing, for example, a further detailed description is made on an RTSP video transmission system in the unidirectional gateway environment of the present invention. The basis of this embodiment is a physical machine running the Linux system.
As shown in fig. 2 and fig. 3, the present embodiment provides an RTSP video transmission method in a unidirectional gateway environment, which includes performing RTSP video transmission in the unidirectional gateway environment through a camera head end service including a client module, a data redundancy encoding module, a policy management module, and a video stream packaging and transmitting module:
An RTSP client is constructed through a client module, a request is actively sent to a camera serving as an RTSP server, and data stream transmission is started through an instruction, so that a real-time compression-encoded audio and video stream is obtained;
The data redundancy coding module performs redundancy coding on the video stream data and adds error correction information (specifically, in the embodiment, forward error correction (FFC) coding is adopted to add error correction information, namely redundancy information, and other redundancy coding modes can be adopted according to requirements), so that the receiving end service can automatically repair lost data packets through the redundancy information to ensure the integrity of the video stream even if feedback cannot be performed;
The method comprises the steps that a link relation between a camera and a receiving end service is managed through a strategy management module, and associated receiving end service information is attached to a redundant coded audio and video stream so that a single camera end service can be abutted to one or more receiving end services;
And packaging the video data after the received associated receiving end service information by a video stream packaging and sending module, packaging according to a data packet transmission format constrained by the unidirectional gateway, carrying out appointed coding processing on header information, check information and a fragment sequence of the data packet, and transmitting the finally generated data packet to the unidirectional gateway to be sent to the receiving end service.
As shown in fig. 2, in this embodiment 1) a camera end service is deployed on a front end sending device host a of an external network in advance, a receiving end service is deployed on a rear end receiving device host B of the internal network, where the camera end service is configured to receive data sent by an external network camera application, process the data and transmit the processed data to a unidirectional gateway, the receiving end service is configured to receive the data of the unidirectional gateway and transmit the processed data to a video player or a rear end storage service, and the front end sending device host a and the rear end receiving device host B create a sending and receiving directory of the camera and the video player through a directory creation API interface provided by a policy management module, and create an interworking relationship between the camera and the video player through the policy creation API interface, where the camera end service includes a client module, a data redundancy encoding module, a policy management module, a video stream packaging and sending module, and the receiving end service includes a video receiving and decoding module, a packet loss repairing module, a video rebuilding and playing module, and the like.
In this embodiment, after a client module of the camera end service monitors that an interworking relationship creation action including a camera directory and a response exists, an RTSP server IP and a port of the camera are confirmed through the camera directory, an RTSP client is created, a request is initiated to the RTSP server of the camera, and after a streaming media resource description of the camera is acquired, a data stream is started by using an instruction. The corresponding data of the RTSP server (camera) comprises the description and transmission information of real-time data stream data, and the real-time compression encoded audio and video stream is obtained from the data stream, and the obtained audio and video stream data is sent to the data redundancy encoding module.
In this embodiment, after the data redundancy encoding module receives the audio and video data transmitted by the previous module, forward error correction processing is performed on the audio and video data, and redundant information is generated to correspond to the packet loss condition, so that the receiving end service can automatically repair the lost data packet through the redundant information even if feedback cannot be performed, and the integrity of the video stream is ensured. The module adopts a standard Reed-Solomon algorithm to balance bandwidth consumption and redundancy and adapt to network fluctuation in unidirectional transmission. The final module sends the data after the redundant coding to the video stream packaging and sending module;
In the embodiment, the video data after the received associated receiving end service information is packed by a video stream packing and sending module, the packing processing is carried out according to the data packet transmission format constrained by the unidirectional gateway, appointed coding processing is carried out on header information, check information and a slice sequence of the data packet, the finally generated data packet is transmitted to the unidirectional gateway to be sent to the receiving end service, the video data after the received associated receiving end service information is sliced by fixed size, the data with the fixed length is not completed by 0, the slice sequence number and the total slice number are added to each slice data, so that the original data can be recombined at the receiving end, the slice sequence is carried out in each frame, partial pictures can be restored at the frame level even if partial slices are lost, the influence on fluency is reduced, the data packet after the slicing is added, the header information containing time stamp, the frame number, the stream ID and the packet ID is assisted by the time stamp information, the receiving end can play according to the original time sequence, thereby preventing the influence of the data packet from being disordered or network delay, the data with 0 complement, the data packet can be completely received by the receiving end, the data packet can be completely received by the unidirectional gateway, the check data packet can be completely received by the feedback protocol, the data packet can be completely received by the receiving end, the data packet can be completely received by the data, and the data has the data packet, and the data has the full data. Through the specific coding processing, the integrity and the reconfigurability of the data can be guaranteed even if no feedback link exists in the network in time.
In the embodiment, when the data packet after the adaptive unidirectional transmission is sent to the receiving end service, the method comprises the steps of firstly carrying out optimization processing on the data packet after the adaptive unidirectional transmission based on an optimal transmission strategy, and then sending the data packet after the optimization processing to the receiving end service, wherein a video stream packaging and sending module inquires a strategy rule designed in the audio and video data transmission process by calling a strategy inquiry API interface, and the strategy rule comprises gateway path information, maximum allowable delay, jitter threshold and the like which are passed by the camera data to an intranet player. And confirming the real-time available bandwidth upper limit of the link by calculating and processing the historical bandwidth data of the path designated in the policy rule and the real-time network information. Based on the value of the upper limit of the real-time available bandwidth of the link, under the condition that the available bandwidth of the link is low, key video frames (such as I frames) are preferentially transmitted, and non-key frames (such as P frames and B frames) are appropriately discarded or degraded for transmission, or video coding bit rate is adaptively adjusted, the frame rate or resolution is reduced to adapt to the current bandwidth state, dynamic adjustment is performed based on real-time traffic feedback, and the continuity of the basic video stream is ensured. Meanwhile, the system can detect the delay condition of a real-time link, set a maximum allowable delay and a jitter threshold, timely search the link delay which affects the fluency and the real-time performance of the video stream in the link, preferentially transmit key frames in the link with higher delay or frequent jitter, and adopt degradation or frame skipping treatment on other frames to ensure the decodability and definition of video content. And ensuring that the video data transmission accords with the optimal transmission strategy of the current link based on the strategy, bandwidth, delay, flow delay and other information, and finally transmitting the processed data to the unidirectional gateway.
The method further comprises the steps of detecting the real-time available bandwidth upper limit of a link between the camera head end service and the receiving end service in real time and providing an inquiry API interface for the camera head end service to call, wherein the optimized processing of the data packet after the unidirectional transmission is carried out based on an optimal transmission strategy, the method comprises the steps of inquiring the real-time available bandwidth upper limit of the link between the camera head end service and the receiving end service by the API interface, inquiring the preset optimal transmission strategy to determine a current optimized transmission mode if the real-time available bandwidth upper limit of the link is smaller than a preset value, the optimized transmission mode is one of the optimized transmission modes, namely, 1, preferentially transmitting key video frames and carrying out proper discarding or degrading transmission on non-key video frames, and when frame-level encapsulation is used, setting key video frames and non-key video frames for the video frames, 2, adaptively adjusting the bit rate of received video data stream data after associated receiving end service information so that the bit rate is positively correlated with the real-time available bandwidth upper limit of the link, and 3, adaptively adjusting the frame resolution or the available bandwidth upper limit of the video stream data after the associated receiving end service information is positively correlated with the real-time resolution.
The method further comprises the steps of detecting link delay between camera head end service and receiving end service in real time and providing an inquiry API interface for the camera head end service to call, wherein the step of optimizing the data packet after the unidirectional transmission is adapted based on the optimal transmission strategy comprises the steps of inquiring the link delay between the camera head end service and the receiving end service by the API interface, inquiring the preset optimal transmission strategy to determine a current optimal transmission mode if the link delay is larger than a preset value, wherein the optimal transmission mode is one of the optimal transmission modes that key video frames are transmitted preferentially and non-key video frames are properly discarded or degraded, setting key video frames and non-key video frames for the video frames when frame-level encapsulation is used, the mode 2 is used for adaptively adjusting the bit rate of video data stream data after the received associated receiving end service information so that the bit rate is inversely related to the link delay of a unidirectional gateway, and the mode 3 is used for adaptively adjusting the frame rate or resolution of the video data stream data after the associated receiving end service information so that the frame rate or resolution is inversely related to the link delay of the unidirectional gateway.
The method further comprises the steps of detecting link jitter between the camera-end service and the receiving end service in real time, providing an inquiry API interface for the camera-end service to call, wherein the link jitter refers to time difference between multiple transmissions, performing optimization processing on the data packet after the unidirectional transmission is adapted based on an optimal transmission strategy, wherein the step of acquiring the link jitter of the unidirectional gateway, and if the link jitter of the unidirectional gateway is larger than a preset value, inquiring the preset optimal transmission strategy to determine a current optimal transmission mode, wherein the optimal transmission mode is one of a mode 1, preferentially transmitting a key video frame and performing appropriate discarding or degrading transmission on a non-key video frame, and the step of using frame-level encapsulation comprises setting the key video frame and the non-key video frame for the video frame, the step of adaptively adjusting the bit rate of video data stream data after the associated receiving end service information is received, so that the bit rate is inversely related to the link jitter of the unidirectional gateway, and the step of a mode 3, and the step of adaptively adjusting the frame rate or resolution of the video data stream data after the associated receiving end service information so that the frame rate is inversely related to the bit rate of the link jitter of the unidirectional gateway.
As shown in fig. 2 and fig. 4, the embodiment further includes receiving RTSP video in a unidirectional gateway environment through a receiving end service including a video receiving and decoding module, a packet loss repair module, and a video reconstruction and playing module:
monitoring data flow from unidirectional gateway in real time and continuously through video receiving and decoding module, after receiving data, carrying out integrity check on the data, de-packaging according to the engineering label of unidirectional gateway protocol, and reorganizing the data according to fragment sequence information;
the packet loss repairing module is used for repairing and reconstructing data by using redundant coded error correction information so as to fill transmission gaps caused by unstable network, ensure that packet loss caused by network fluctuation in the unidirectional transmission process can be effectively repaired, and ensure the integrity of video and the stability of video during playing;
And processing the reconstructed video stream through a video reconstruction and play module, synchronously processing and formatting the decoded audio and video data, and flowing to a designated output path according to a preset configuration.
The video receiving and decoding module of the receiving end service captures the data packet through a special interface, so that the receiving end can acquire the data stream stably and efficiently in a feedback-free network environment. After receiving the data packets of the unidirectional gateway, the video receiving and decoding module performs integrity check on each data packet so as to ensure that the data is not damaged or lost in the transmission process. And the module de-encapsulates the content of the data packet according to the requirements of the unidirectional gateway protocol engineering standard, reorganizes the data according to the information such as the fragment sequence and the like, and then transmits the data to the packet loss repair module.
After receiving the data transmitted by the video receiving and decoding module, the packet loss repairing module monitors and repairs the packet loss phenomenon caused by network fluctuation in real time by using redundant information generated by Forward Error Correction (FEC) coding, thereby effectively improving the integrity of the audio and video stream. Under the condition of no feedback mechanism, redundant data provided by the FEC coding can reconstruct lost data packets at a receiving end, so that the data transmission is more reliable. The packet loss repairing module is used for accurately reorganizing the serial numbers and the redundant information in the packet headers of the data packets after the packet packing is carried out for each frame of video packet in the video packing and transmitting module, meanwhile, a plurality of preset packet loss repairing strategies can be adopted, the lost data packets are repaired directly by using the redundant data under the condition of reduced packet loss rate, when serious packet loss is caused by network fluctuation, the packet loss repairing module skips part of redundant or secondary frames to recover key frames preferentially, so that resource consumption is reduced, transmission gaps caused by unstable network are filled, and continuity of video data is ensured. In addition, the module can still ensure the complete presentation of the video content under the condition of higher network jitter, so that the video is prevented from being blocked or lost during playing, and the stability of the whole transmission system and the smoothness of playing are further improved. And finally, the packet loss repair module transmits the recombined and repaired data packet to the video reconstruction and play module. In the embodiment, the repairing and reconstructing of the data by using the redundancy-coded error correction information through the packet loss repairing module comprises the steps of detecting the packet loss rate of the data by using the redundancy-coded error correction information through the packet loss repairing module, repairing the lost data packet by directly adopting the redundancy-coded error correction information if the packet loss rate is smaller than a preset threshold value, and repairing the data packet corresponding to the redundancy-coded error correction information by preferentially adopting the redundancy-coded error correction information if the packet loss rate is smaller than the preset threshold value, otherwise, repairing the data packet corresponding to the key video frame by aiming at the key video frame and the non-key video frame in the data packet.
In this embodiment, the video reconstruction and playing module processes the video stream after the reconstruction, performs synchronization processing and formatting on the decoded audio and video data, performs at least one of image enhancement and noise reduction on the video data in the decoded audio and video data when the decoded audio and video data flows to a designated output path according to a preset configuration, wherein the image enhancement includes adjusting the color and saturation of a video image, the noise reduction includes identifying a dynamic region and a static region of the video image frame according to adjacent video image frames, the dynamic region refers to a region where a change occurs in the adjacent video image frames, the static region refers to a region where a change remains in the adjacent video image frames, and different noise reduction filter parameters are adopted for the dynamic region and the static region, so that the noise reduction strength of the dynamic region is smaller, the noise reduction strength of the static region is larger to enhance the stability of the video image frames, and the quality and the definition of the video stream are ensured. 7) After the video reconstruction and playing module finishes decoding the received video stream, the video reconstruction and playing module synchronously processes and formats the decoded audio and video data, and reconstructs the video stream into a standard format meeting the requirements of playing equipment or storage equipment. The module not only executes basic video decoding, but also comprises post-processing functions such as image enhancement, noise reduction and the like, wherein color information is adaptively adjusted by using color and saturation adjusting functions according to video content, so that the color expression of the video is more vivid, filter parameters are dynamically adjusted based on video frame content, different noise environments are adapted, if a high motion area is detected, noise reduction intensity is reduced, so that blurring of pictures is prevented, noise reduction intensity is increased in a static area, image stability is enhanced, and the quality and definition of a video stream are ensured to meet user requirements. The reconstructed video data flows to different output paths according to preset configuration, such as real-time playing equipment, a network live broadcast platform or a local/cloud storage device, so as to support video use requirements in different scenes. For a real-time playing scene, the module can automatically optimize playing parameters according to the refresh rate and the resolution of the equipment, so that smooth and no jamming of pictures is ensured. For storage requirements, the module adjusts the video data according to the compression ratio and the resolution ratio, and ensures the quality of the video while maximizing the utilization of the storage space. The module finally realizes stable output of video data, so that a user can obtain high-quality viewing experience under various playing environments.
In summary, the RTSP video transmission method in the unidirectional gateway environment of the present embodiment includes a camera end service and a receiving end service. The method comprises the steps of deploying camera end service on a front-end sending host server in advance, deploying receiving end service on a back-end receiving host device, wherein the camera end service comprises a client module, a data redundancy coding module, a strategy management module, a video stream packaging and sending module and the like, and the receiving end service comprises a video receiving and decoding module, a packet loss repairing module, a video reconstruction and playing module and the like. The camera head end service firstly builds an RTSP client through a client module to actively initiate a transmission request to an RTSP server of a camera, transmits acquired audio and video data to a data redundancy coding module to carry out redundancy coding, repairs data lost in a network oscillation process through redundancy information under the condition that a link is not fed back by adding error correction information and other modes, confirms a data transmission link through a strategy management module, and finally encapsulates and fragments the data through a video stream packaging and transmitting module and transmits the data to a unidirectional gateway according to a designated protocol label. The receiving end module receives the encapsulated data through the video receiving and decoding module, then de-encapsulates and reassembles the data, repairs and rebuilds the damaged data through the packet loss repairing module by utilizing the redundant data, and finally, the video rebuilding and playing module processes the decoded data and then flows to different output paths according to preset configuration. The method of the embodiment solves the problems that under the condition that a unidirectional network environment has no reverse link, reliable transmission and playing of video data are guaranteed, meanwhile fault tolerance is carried out on the unstable condition of the network through an error correction technology, the integrity of the data is guaranteed, and through a video compression technology and data flow detection control, the stability of the link is guaranteed, meanwhile, the video transmission efficiency is improved, and the transmission delay is reduced. The system is suitable for various monitoring factories needing high security, and has wide applicability. According to the RTSP video transmission system in the unidirectional gateway environment, a physical machine running a Linux system is used as a basis, camera head end and receiving end services are deployed on the physical machine, various reverse attacks and information leakage of an internal network and an external network are prevented through the physical unidirectional gateway, the safety of a network is enhanced, automatic restoration and recombination are carried out according to the conditions of packet loss and the like under the condition of network oscillation through a forward error correction technology, the continuity and reliability of video data are improved, and the high fault tolerance of the system is guaranteed. By means of efficient video compression technology and detection control of data flow of a link, data transmission efficiency is improved, stability is guaranteed, and data transmission time delay is reduced.
In addition, the embodiment also provides an RTSP video transmission system in a unidirectional gateway environment, which comprises a microprocessor and a memory which are connected with each other, wherein the microprocessor is programmed or configured to execute the RTSP video transmission method in the unidirectional gateway environment.
Furthermore, the present embodiment also provides a computer-readable storage medium having stored therein a computer program or instructions programmed or configured to execute the RTSP video transmission method in the unidirectional gateway environment by a processor.
Furthermore, the present embodiment provides a computer program product comprising a computer program or instructions programmed or configured to execute the RTSP video transmission method in the unidirectional gateway environment by a processor.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided in the form of a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above examples, and all technical solutions belonging to the concept of the present invention belong to the protection scope of the present invention. It should be noted that modifications and adaptations to the present invention may occur to one skilled in the art without departing from the principles of the present invention and are intended to be within the scope of the present invention.

Claims (10)

1.一种单向网关环境下RTSP视频传输方法,其特征在于,包括通过包含客户端模块、数据冗余编码模块、策略管理模块和视频流打包发送模块的摄像头端服务进行单向网关环境下的RTSP视频发送:1. A RTSP video transmission method under a unidirectional gateway environment, characterized in that it includes sending RTSP video under a unidirectional gateway environment through a camera end service including a client module, a data redundancy encoding module, a policy management module and a video stream packaging and sending module: 通过客户端模块构建 RTSP 客户端,主动向作为 RTSP 服务端的摄像头发起请求,并通过指令启动数据流的传输,从而获取实时压缩编码的音视频流;所述摄像头作为 RTSP服务器,用于提供压缩编码后的视频流;The RTSP client is constructed through the client module, actively initiates a request to the camera as the RTSP server, and starts the transmission of the data stream through instructions, so as to obtain the real-time compressed and encoded audio and video stream; the camera acts as an RTSP server to provide the compressed and encoded video stream; 通过数据冗余编码模块对视频流数据进行冗余编码加入纠错信息,使接收端服务即使在无法进行反馈的情况下也能够通过冗余信息自动修复丢失的数据包以确保视频流的完整性;The data redundancy coding module is used to redundancy encode the video stream data and add error correction information, so that the receiving end service can automatically repair the lost data packets through the redundant information to ensure the integrity of the video stream even when feedback is not possible; 通过策略管理模块管理摄像头与接收端服务之间的链路关系并将冗余编码后的音视频流附加上关联的接收端服务信息以使得单个摄像头端服务对接一个或多个接收端服务;The link relationship between the camera and the receiving end service is managed through the policy management module, and the redundantly encoded audio and video streams are attached with the associated receiving end service information so that a single camera end service can be connected to one or more receiving end services; 通过视频流打包发送模块针对接收到的关联接收端服务信息后的视频数据进行打包,按照单向网关所约束的数据包传输格式进行封装处理,对数据包的头部信息、校验信息以及分片序列进行指定的编码处理,将最终生成的数据包传输至单向网关以发送到接收端服务。The video stream packaging and sending module packages the video data after receiving the associated receiving end service information, encapsulates it according to the data packet transmission format constrained by the unidirectional gateway, performs specified encoding processing on the header information, check information and fragmentation sequence of the data packet, and transmits the final generated data packet to the unidirectional gateway to send it to the receiving end service. 2. 根据权利要求1所述的单向网关环境下RTSP视频传输方法,其特征在于,所述通过视频流打包发送模块针对接收到的关联接收端服务信息后的视频数据进行打包,按照单向网关所约束的数据包传输格式进行封装处理,对数据包的头部信息、校验信息以及分片序列进行指定的编码处理,将最终生成的数据包传输至单向网关以发送到接收端服务包括:针对接收到的关联接收端服务信息后的视频数据流数据以固定大小进行分片,未达到固定长度大小的数据以 0 补全,每片数据加上分片序号和总片数,以确保在接收端可以重组原始数据,通过使用帧级封装,在每一帧内进行分片和序列化,保证即使部分片段丢失仍可以在帧级恢复部分画面,减少对流畅度的影响;对分片后的数据包并加入包含时间戳、帧号、流 ID、包ID 的头部信息,通过时间戳信息帮助接收端能够按照原始时间序列进行播放,防止因乱序或网络延迟影响流畅度,从而能在接收端确认顺序和完整性;使用 CRC32对数据包数据进行完整性校验,生成校验码,以使得接收端服务能够无需反馈即能检测并剔除损坏的数据包,保证接收数据的完整性;针对生成的数据包按照单向网关的协议工标将数据包的格式调整为适配单向传输以避免反馈路径依赖,将适配单向传输后的数据包发送到接收端服务。2. The RTSP video transmission method under the unidirectional gateway environment according to claim 1 is characterized in that the video data after the associated receiving end service information is packaged by the video stream packaging and sending module, encapsulated according to the data packet transmission format constrained by the unidirectional gateway, and the header information, check information and fragment sequence of the data packet are encoded as specified, and the finally generated data packet is transmitted to the unidirectional gateway to be sent to the receiving end service, including: the video data stream data after the associated receiving end service information is fragmented according to a fixed size, the data that does not reach the fixed length is filled with 0, and each piece of data is added with a fragment sequence number and a total number of slices to ensure that the original data can be reassembled at the receiving end, and by using frame-level encapsulation, fragmentation and serialization are performed in each frame to ensure that even if part of the fragment is lost, part of the picture can still be restored at the frame level, thereby reducing the impact on the fluency; the header information including timestamp, frame number, stream ID and packet ID is added to the fragmented data packet, and the timestamp information is used to help the receiving end to play according to the original time sequence to prevent the fluency from being affected by disorder or network delay, so that the order and integrity can be confirmed at the receiving end; using CRC32 performs integrity check on the data packet and generates a checksum so that the receiving service can detect and remove damaged data packets without feedback, thereby ensuring the integrity of the received data. For the generated data packets, the format of the data packets is adjusted to adapt to unidirectional transmission according to the protocol standard of the unidirectional gateway to avoid feedback path dependence, and the data packets adapted to unidirectional transmission are sent to the receiving service. 3. 根据权利要求2所述的单向网关环境下RTSP视频传输方法,其特征在于,还包括实时检测摄像头端服务、接收端服务之间的链路实时可用带宽上限并提供查询API 接口以供摄像头端服务调用;所述将适配单向传输后的数据包发送到接收端服务时,包括先对适配单向传输后的数据包基于最优传输策略进行优化处理,再将优化处理后的数据包发送到接收端服务;所述对适配单向传输后的数据包基于最优传输策略进行优化处理包括:摄像头端服务查询API 接口摄像头端服务、接收端服务之间的链路实时可用带宽上限,如果链路实时可用带宽上限小于预设值,则查询预设的最优传输策略确定当前的优化传输方式,所述优化传输方式为下述优化传输方式的一种:方式1,优先传输关键视频帧而对非关键视频帧进行适当丢弃或降级传输,所述使用帧级封装时包括为视频帧设置关键视频帧和非关键视频帧;方式2,自适应调整收到的关联接收端服务信息后的视频数据流数据的比特率,使得比特率的大小与链路实时可用带宽上限正相关;方式3,自适应调整收到的关联接收端服务信息后的视频数据流数据的帧率或分辨率,使得帧率或分辨率的大小与链路实时可用带宽上限正相关。3. The RTSP video transmission method under the unidirectional gateway environment according to claim 2 is characterized in that it also includes real-time detection of the upper limit of the real-time available bandwidth of the link between the camera-side service and the receiving-side service and providing a query API interface for the camera-side service to call; when the data packet adapted for unidirectional transmission is sent to the receiving-side service, it includes first optimizing the data packet adapted for unidirectional transmission based on the optimal transmission strategy, and then sending the optimized data packet to the receiving-side service; the optimizing the data packet adapted for unidirectional transmission based on the optimal transmission strategy includes: the camera-side service query API The upper limit of the real-time available bandwidth of the link between the interface camera end service and the receiving end service, if the upper limit of the real-time available bandwidth of the link is less than the preset value, the preset optimal transmission strategy is queried to determine the current optimized transmission mode, and the optimized transmission mode is one of the following optimized transmission modes: Mode 1, prioritizes the transmission of key video frames and appropriately discards or downgrades the transmission of non-key video frames, and the use of frame-level encapsulation includes setting key video frames and non-key video frames for video frames; Mode 2, adaptively adjusts the bit rate of the video data stream data after the associated receiving end service information is received, so that the size of the bit rate is positively correlated with the upper limit of the real-time available bandwidth of the link; Mode 3, adaptively adjusts the frame rate or resolution of the video data stream data after the associated receiving end service information is received, so that the size of the frame rate or resolution is positively correlated with the upper limit of the real-time available bandwidth of the link. 4. 根据权利要求2所述的单向网关环境下RTSP视频传输方法,其特征在于,还包括实时检测摄像头端服务、接收端服务之间的链路延迟并提供查询API 接口以供摄像头端服务调用;所述将适配单向传输后的数据包发送到接收端服务时,包括先对适配单向传输后的数据包基于最优传输策略进行优化处理,再将优化处理后的数据包发送到接收端服务;所述对适配单向传输后的数据包基于最优传输策略进行优化处理包括:摄像头端服务查询API 接口摄像头端服务、接收端服务之间的链路延迟,如果链路延迟大于预设值,则查询预设的最优传输策略确定当前的优化传输方式,所述优化传输方式为下述优化传输方式的一种:方式1,优先传输关键视频帧而对非关键视频帧进行适当丢弃或降级传输,所述使用帧级封装时包括为视频帧设置关键视频帧和非关键视频帧;方式2,自适应调整收到的关联接收端服务信息后的视频数据流数据的比特率,使得比特率的大小与单向网关的链路延迟负相关;方式3,自适应调整收到的关联接收端服务信息后的视频数据流数据的帧率或分辨率,使得帧率或分辨率的大小与单向网关的链路延迟负相关。4. The RTSP video transmission method under the unidirectional gateway environment according to claim 2 is characterized in that it also includes real-time detection of the link delay between the camera-side service and the receiving-side service and providing a query API interface for the camera-side service to call; when the data packet adapted for unidirectional transmission is sent to the receiving-side service, it includes first optimizing the data packet adapted for unidirectional transmission based on the optimal transmission strategy, and then sending the optimized data packet to the receiving-side service; the optimizing the data packet adapted for unidirectional transmission based on the optimal transmission strategy includes: the camera-side service query API The link delay between the interface camera end service and the receiving end service, if the link delay is greater than the preset value, the preset optimal transmission strategy is queried to determine the current optimized transmission mode, and the optimized transmission mode is one of the following optimized transmission modes: Mode 1, prioritizes the transmission of key video frames and appropriately discards or downgrades the transmission of non-key video frames, and the use of frame-level encapsulation includes setting key video frames and non-key video frames for video frames; Mode 2, adaptively adjusts the bit rate of the video data stream data after the associated receiving end service information is received, so that the bit rate is negatively correlated with the link delay of the unidirectional gateway; Mode 3, adaptively adjusts the frame rate or resolution of the video data stream data after the associated receiving end service information is received, so that the frame rate or resolution is negatively correlated with the link delay of the unidirectional gateway. 5. 根据权利要求2所述的单向网关环境下RTSP视频传输方法,其特征在于,还包括实时检测摄像头端服务、接收端服务之间的链路抖动并提供查询API 接口以供摄像头端服务调用,所述链路抖动是指多次传输之间的时间差;所述将适配单向传输后的数据包发送到接收端服务时,包括先对适配单向传输后的数据包基于最优传输策略进行优化处理,再将优化处理后的数据包发送到接收端服务;所述对适配单向传输后的数据包基于最优传输策略进行优化处理包括:获取单向网关的链路抖动,如果单向网关的链路抖动大于预设值,则查询预设的最优传输策略确定当前的优化传输方式,所述优化传输方式为下述优化传输方式的一种:方式1,优先传输关键视频帧而对非关键视频帧进行适当丢弃或降级传输,所述使用帧级封装时包括为视频帧设置关键视频帧和非关键视频帧;方式2,自适应调整收到的关联接收端服务信息后的视频数据流数据的比特率,使得比特率的大小与单向网关的链路抖动负相关;方式3,自适应调整收到的关联接收端服务信息后的视频数据流数据的帧率或分辨率,使得帧率或分辨率的大小与单向网关的链路抖动负相关。5. The RTSP video transmission method under a unidirectional gateway environment according to claim 2 is characterized in that it also includes real-time detection of link jitter between the camera end service and the receiving end service and providing a query API The interface is provided for the camera end service to call, the link jitter refers to the time difference between multiple transmissions; when the data packet adapted for unidirectional transmission is sent to the receiving end service, it includes first optimizing the data packet adapted for unidirectional transmission based on the optimal transmission strategy, and then sending the optimized data packet to the receiving end service; the optimizing the data packet adapted for unidirectional transmission based on the optimal transmission strategy includes: obtaining the link jitter of the unidirectional gateway, if the link jitter of the unidirectional gateway is greater than the preset value, querying the preset optimal transmission strategy to determine the current optimized transmission mode, the optimized transmission mode is one of the following optimized transmission modes: mode 1, giving priority to transmitting key video frames and appropriately discarding or downgrading the transmission of non-key video frames, when using frame-level encapsulation, it includes setting key video frames and non-key video frames for video frames; mode 2, adaptively adjusting the bit rate of the video data stream data after the associated receiving end service information is received, so that the size of the bit rate is negatively correlated with the link jitter of the unidirectional gateway; mode 3, adaptively adjusting the frame rate or resolution of the video data stream data after the associated receiving end service information is received, so that the size of the frame rate or resolution is negatively correlated with the link jitter of the unidirectional gateway. 6.根据权利要求1所述的单向网关环境下RTSP视频传输方法,其特征在于,还包括通过包含视频接收与解码模块、丢包修复模块以及视频重建和播放模块的接收端服务进行单向网关环境下的RTSP视频接收:6. The RTSP video transmission method under a unidirectional gateway environment according to claim 1 is characterized in that it also includes receiving RTSP video under a unidirectional gateway environment through a receiving end service including a video receiving and decoding module, a packet loss repair module, and a video reconstruction and playback module: 通过视频接收与解码模块对来自单向网关的数据流进行实时、持续的监听,接收数据后对数据进行完整性校验后,按照单向网关协议的工标进行解封装,并按照分片序列信息对数据进行重组;The video receiving and decoding module monitors the data stream from the unidirectional gateway in real time and continuously. After receiving the data, it verifies the integrity of the data, decapsulates it according to the industrial standard of the unidirectional gateway protocol, and reassembles the data according to the fragment sequence information. 通过丢包修复模块使用冗余编码的纠错信息对数据进行修复重建,以填补因网络不稳定造成的传输空缺、确保在单向传输过程中因网络波动导致的丢包能够得到有效修复,确保视频的完整性以及视频播放时的稳定性;The packet loss repair module uses redundantly coded error correction information to repair and reconstruct data to fill transmission gaps caused by network instability, ensure that packet loss caused by network fluctuations during one-way transmission can be effectively repaired, and ensure the integrity of the video and the stability of video playback; 通过视频重建与播放模块对完成重建后的视频流进行处理,对已解码后的音视频数据进行同步处理和格式化,按照预设的配置流向指定的输出路径。The reconstructed video stream is processed through the video reconstruction and playback module, the decoded audio and video data is synchronously processed and formatted, and the stream is directed to the specified output path according to the preset configuration. 7.根据权利要求6所述的单向网关环境下RTSP视频传输方法,其特征在于,所述通过丢包修复模块使用冗余编码的纠错信息对数据进行修复重建包括:通过丢包修复模块使用冗余编码的纠错信息对数据进行丢包率检测,如果丢包率小于预设阈值,则直接采用冗余编码的纠错信息修复丢失的数据包;否则,针对数据包中的关键视频帧和非关键视频帧,则优先采用冗余编码的纠错信息修复关键视频帧对应的数据包;所述通过视频重建与播放模块对完成重建后的视频流进行处理,对已解码后的音视频数据进行同步处理和格式化,按照预设的配置流向指定的输出路径时,还包括对已解码后的音视频数据中的视频数据进行图像增强和降噪中至少一种后处理,所述图像增强包括调节视频图像的颜色和饱和度,所述降噪包括根据相邻视频图像帧识别出视频图像帧的动态区域和静态区域,其中动态区域是指相邻视频图像帧中发生变化的区域、静态区域是指相邻视频图像帧中保持不变的区域,且针对动态区域和静态区域采用不同的降噪滤波器参数来进行降噪,使得动态区域降噪力度更小、静态区域降噪力度更大以增强视频图像帧的稳定性、确保视频流的质量和清晰度。7. The RTSP video transmission method under a unidirectional gateway environment according to claim 6 is characterized in that the repairing and reconstructing of data using redundantly coded error correction information through a packet loss repair module comprises: using redundantly coded error correction information to detect packet loss rate of data through a packet loss repair module, if the packet loss rate is less than a preset threshold, directly using redundantly coded error correction information to repair lost data packets; otherwise, for key video frames and non-key video frames in the data packets, redundantly coded error correction information is preferentially used to repair data packets corresponding to key video frames; the video reconstruction and playback module processes the reconstructed video stream, synchronously processes and formats the decoded audio and video data, and performs the following steps: When the preset configuration flows to the designated output path, it also includes post-processing of at least one of image enhancement and noise reduction on the video data in the decoded audio and video data, wherein the image enhancement includes adjusting the color and saturation of the video image, and the noise reduction includes identifying the dynamic area and the static area of the video image frame according to adjacent video image frames, wherein the dynamic area refers to the area that changes in the adjacent video image frames, and the static area refers to the area that remains unchanged in the adjacent video image frames, and different noise reduction filter parameters are used for the dynamic area and the static area to perform noise reduction, so that the noise reduction intensity in the dynamic area is smaller and the noise reduction intensity in the static area is larger, so as to enhance the stability of the video image frame and ensure the quality and clarity of the video stream. 8.一种单向网关环境下RTSP视频传输系统,包括相互连接的微处理器和存储器,其特征在于,所述微处理器被编程或配置以执行权利要求1~7中任意一项所述单向网关环境下RTSP视频传输方法。8. An RTSP video transmission system under a unidirectional gateway environment, comprising a microprocessor and a memory connected to each other, wherein the microprocessor is programmed or configured to execute the RTSP video transmission method under a unidirectional gateway environment as claimed in any one of claims 1 to 7. 9.一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序或指令,其特征在于,该计算机程序或指令被编程或配置以通过处理器执行权利要求1~7中任意一项所述单向网关环境下RTSP视频传输方法。9. A computer-readable storage medium storing a computer program or instruction, wherein the computer program or instruction is programmed or configured to execute the RTSP video transmission method in a unidirectional gateway environment described in any one of claims 1 to 7 through a processor. 10.一种计算机程序产品,包括计算机程序或指令,其特征在于,该计算机程序或指令被编程或配置以通过处理器执行权利要求1~7中任意一项所述单向网关环境下RTSP视频传输方法。10. A computer program product, comprising a computer program or an instruction, characterized in that the computer program or the instruction is programmed or configured to execute the RTSP video transmission method in a unidirectional gateway environment according to any one of claims 1 to 7 through a processor.
CN202411811688.1A 2024-12-10 2024-12-10 RTSP video transmission method and system in unidirectional gateway environment Active CN119814973B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411811688.1A CN119814973B (en) 2024-12-10 2024-12-10 RTSP video transmission method and system in unidirectional gateway environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411811688.1A CN119814973B (en) 2024-12-10 2024-12-10 RTSP video transmission method and system in unidirectional gateway environment

Publications (2)

Publication Number Publication Date
CN119814973A true CN119814973A (en) 2025-04-11
CN119814973B CN119814973B (en) 2025-11-11

Family

ID=95270753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411811688.1A Active CN119814973B (en) 2024-12-10 2024-12-10 RTSP video transmission method and system in unidirectional gateway environment

Country Status (1)

Country Link
CN (1) CN119814973B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120856841A (en) * 2025-09-25 2025-10-28 四川赛狄信息技术股份公司 An image processing and transmission method suitable for display, control and tracking and related products

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103957389A (en) * 2014-05-13 2014-07-30 重庆大学 3G video transmission method and system based on compression sensing
WO2023024469A1 (en) * 2021-08-27 2023-03-02 华为技术有限公司 Video quality problem determination method and apparatus, storage medium, and program product
CN117768669A (en) * 2022-09-19 2024-03-26 腾讯科技(深圳)有限公司 Data transmission method, device, electronic equipment and storage medium
US20240406514A1 (en) * 2023-05-31 2024-12-05 Microsoft Technology Licensing, Llc Fault-tolerant video streaming in one-way transfer systems

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103957389A (en) * 2014-05-13 2014-07-30 重庆大学 3G video transmission method and system based on compression sensing
WO2023024469A1 (en) * 2021-08-27 2023-03-02 华为技术有限公司 Video quality problem determination method and apparatus, storage medium, and program product
CN117768669A (en) * 2022-09-19 2024-03-26 腾讯科技(深圳)有限公司 Data transmission method, device, electronic equipment and storage medium
US20240406514A1 (en) * 2023-05-31 2024-12-05 Microsoft Technology Licensing, Llc Fault-tolerant video streaming in one-way transfer systems

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN120856841A (en) * 2025-09-25 2025-10-28 四川赛狄信息技术股份公司 An image processing and transmission method suitable for display, control and tracking and related products

Also Published As

Publication number Publication date
CN119814973B (en) 2025-11-11

Similar Documents

Publication Publication Date Title
CN102143367B (en) Method, device and system for checking error correction
TWI364988B (en) Error filter to differentiate between reverse link and forward link video data errors
JP5661693B2 (en) System and method for lost packet recovery along with congestion avoidance
US9537611B2 (en) Method and apparatus for improving the performance of TCP and other network protocols in a communications network using proxy servers
CN101040475B (en) Method and apparatus for assembling forward error correction frames
US20050013249A1 (en) Redundant packets for streaming video protection
US20130254611A1 (en) Recovering data in multimedia file segments
US8010863B2 (en) Method and apparatus for synchronizing multiple multimedia streams
KR20190027856A (en) Forward error correction of data streaming
CA2594121A1 (en) Adaptive information delivery system using fec feedback
US9516390B2 (en) Scaling video delivery
EP2823616A1 (en) Method, device and system for packet transmission over ip networks
CN110876066A (en) Adaptive forward error correction method, apparatus, medium and device
CN119814973B (en) RTSP video transmission method and system in unidirectional gateway environment
US10051266B2 (en) Apparatus and method for transmitting and receiving hybrid packets in a broadcasting and communication system using error correction source blocks and MPEG media transport assets
JP5344541B2 (en) Data transmission apparatus, transmission method and program
EP3038369B1 (en) In-band quality data
CN113542685B (en) Real-time ultra-high definition video transmission method based on reliable UDP
CN120548698A (en) Signaling media timing information from media applications to network elements
CN104348577A (en) Packet repeating strategy for improving video quality of cloud conference
GB2500175A (en) Redundant packet transmission over IP networks with buffer overwriting
Zhao Design and implementation of video surveillance system based on CDMA cellular wireless networks
CN119766790A (en) Media data transmission method and device, electronic equipment and storage medium
KR20150079399A (en) Apparatus and Method for Transmitting Data
TWI511499B (en) Method and system of cross-packet channel coding

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