A redundant hot standby method and system based on transmission stream multicast listening

CN122969965APending Publication Date: 2026-10-23BEIJING QINGYUAN ZHIXIN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611084695.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-21
Publication Date
2026-10-23

AI Technical Summary

Technical Problem

[0002]在现有的轨道交通技术中,站厅、上行、下行等各区域播放控制器普遍采用独立工作运行模式,而矩阵设备作为唯一集中信号切换节点,一旦其发生故障,对应区域的显示屏将因无正常信号输入而无法显示列车到站倒计时、目的地等关键信息,导致乘客无法及时获取乘车指引信息,影响了乘坐体验的问题

Benefits of technology

[0018]本发明通过区域播表数据和视听传输数据合并复用,且备用链路处理单元调取备份播表进行重构传输码流,保证了主备两路码流的节目关联表与节目映射表结构一致,使切换时无需长时间重新搜索频道,缩短了黑屏时间。在此基础上,通过链路质量约束作为切换判定依据进行实时异常检测,进而区分轻微链路劣化与实质性链路故障,当链路指标超出链路质量约束时才触发备用链路。随后,持续监测主链路质量,当主链路满足链路质量约束时才恢复传输,在恢复初期不会立即夺回控制权,避免了主备链路频繁往复切换导致的反复解码复位问题。综上所述,本发明解决了乘客无法及时获取乘车指引信息的问题。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122969965A_ABST
    Figure CN122969965A_ABST
Patent Text Reader

Abstract

The application provides a redundancy hot backup method and system based on transmission stream multicast listening, relates to the technical field of rail transit, and comprises the following steps: acquiring regional broadcast table data and audiovisual transmission data; performing multiplexing processing on the basis of the regional broadcast table data and the audiovisual transmission data at a main link transmission end, outputting a stable main multicast stream; performing real-time anomaly detection on the stable main multicast stream on the basis of a preset link quality constraint; when a main link anomaly is detected, triggering a backup link processing unit to call a pre-device backup table to reconstruct a transmission code stream and generate a backup transmission stream; inputting the backup transmission stream into a display decoding unit to perform link switching and decoding reset processing and output an audiovisual decoding signal; and continuously monitoring the main link quality on the basis of a playing state of the audiovisual decoding signal, switching back to the main link when the main link meets the link quality constraint, and resuming multicast stream output through the main link. The application solves the problem that passengers cannot obtain ride guide information in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of rail transit technology, and more specifically, to a redundancy hot standby method and system based on transport stream multicast sniffing. Background Technology

[0002] In existing rail transit technologies, the playback controllers for different areas such as the station hall, up and down lines generally operate independently. As the only centralized signal switching node, the matrix equipment will fail if it malfunctions. The corresponding display screen will be unable to display key information such as the train arrival countdown and destination due to the lack of normal signal input. This will prevent passengers from obtaining timely boarding guidance information and affect their riding experience.

[0003] Therefore, there is an urgent need for a redundant hot standby method and system based on transport stream multicast listening, which solves the problem that passengers cannot obtain timely travel guidance information. Summary of the Invention

[0004] The purpose of this invention is to provide a redundant hot standby method and system based on transport stream multicast sniffing to improve the aforementioned problems. To achieve the above objective, the technical solution adopted by this invention is as follows:

[0005] Firstly, this application provides a redundancy hot standby method based on transport stream multicast sniffing, including:

[0006] Acquire regional playlist data and audiovisual transmission data;

[0007] Based on the regional broadcast table data and the audio-visual transmission data, the main link transmission end is merged and multiplexed to output a stable primary multicast stream;

[0008] Based on preset link quality constraints, the stable primary multicast stream is subjected to real-time anomaly detection. When an anomaly is detected in the primary link, the backup link processing unit is triggered to retrieve the preset backup broadcast table to reconstruct the transmission stream and generate a backup transmission stream.

[0009] The backup transmission stream is input to the display decoding unit to perform link switching and decoding reset processing, and outputs audiovisual decoding signals;

[0010] Based on the playback status of the audio-visual decoded signal, the main link quality is continuously monitored. When the main link meets the link quality constraints, the main link is switched back and the multicast stream output is restored through the main link.

[0011] Secondly, this application also provides a redundant hot standby system based on transport stream multicast sniffing, comprising:

[0012] The acquisition module is used to acquire regional playlist data and audiovisual transmission data;

[0013] The merging module is used to perform merging and multiplexing processing on the main link transmission end based on the regional broadcast table data and the audio-visual transmission data, and output a stable primary multicast stream.

[0014] The detection module is used to perform real-time anomaly detection on the stable primary multicast stream based on preset link quality constraints. When an anomaly is detected in the primary link, the backup link processing unit is triggered to retrieve the preset backup broadcast table to reconstruct the transmission stream and generate a backup transmission stream.

[0015] The switching module is used to input the backup transmission stream into the display decoding unit to perform link switching and decoding reset processing, and output audiovisual decoding signals;

[0016] The monitoring module is used to continuously monitor the quality of the main link based on the playback status of the audio-visual decoded signal. When the main link meets the link quality constraints, it switches back to the main link and restores the multicast stream output through the main link.

[0017] The beneficial effects of this invention are as follows:

[0018] This invention merges and multiplexes regional playlist data and audiovisual transmission data, and the backup link processing unit retrieves the backup playlist to reconstruct the transmission stream. This ensures that the program association table and program mapping table structures of the primary and backup streams are consistent, eliminating the need for lengthy channel re-searching during switching and shortening black screen time. Furthermore, it uses link quality constraints as the basis for switching decisions to perform real-time anomaly detection, distinguishing between minor link degradation and substantial link failures. The backup link is only triggered when link indicators exceed the link quality constraints. Subsequently, the primary link quality is continuously monitored, and transmission is only restored when the primary link meets the link quality constraints. Control is not immediately regained during the initial recovery phase, avoiding repeated decoding and reset issues caused by frequent switching between primary and backup links. In summary, this invention solves the problem of passengers being unable to obtain timely boarding guidance information.

[0019] Other features and advantages of the invention will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing embodiments of the invention. The objects and other advantages of the invention may be realized and obtained by means of the structures particularly pointed out in the written description, claims, and drawings. Attached Figure Description

[0020] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1Flow chart of the redundancy hot backup method based on the multicast listening of the transport stream in the embodiment of the present application;

[0022] Figure 2 Structure diagram of the redundancy hot backup device based on the multicast listening of the transport stream in the embodiment of the present application.

[0023] Marked in the figure: 800, the redundancy hot backup device based on the multicast listening of the transport stream; 801, the processor; 802, the memory; 803, the multimedia component; 804, the I / O interface; 805, the communication component. DETAILED DESCRIPTION

[0024] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. The components of the embodiments of the present application described and shown in the accompanying drawings can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art without creative work based on the embodiments in the present application belong to the scope of protection of the present application.

[0025] It should be noted that: similar labels and letters represent similar items in the following drawings, therefore, once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. Meanwhile, in the description of the present application, the terms "first", "second" and the like are only used to distinguish description, and cannot be understood as indicating or implying relative importance.

[0026] In the on-site deployment and operation environment of the PIS passenger information display system in a rail transit station, independent main play controllers are matched for each area of the station hall, uplink platform and downlink platform. All the play controllers and platform display screen OPS decoding units complete wired / optical cable networking transmission of audiovisual transmission multicast streams relying on network switches. The traditional scheme relies on matrix equipment as the only centralized signal switching node. When the matrix equipment hardware fails, the link transmission is interrupted or the output stream of a single main play controller is abnormal, the phenomenon of no valid transmission data packet in the main link for continuous multiple frame periods, a cliff drop in transmission code rate and loss of main SDT identification occurs, thereby causing no compliant audiovisual signal input to the corresponding partition display screen, black screen and interrupted broadcast of train arrival countdown and ride guidance information. At the same time, the traditional fault detection switching mechanism takes a long time of 1-2 seconds, and the switching process is prone to problems such as picture flicker, audio and video out of sync and time sequence disorder. Moreover, a single point failure of the matrix equipment will cause the paralysis of the play system in multiple areas of the whole station, passengers cannot obtain real-time ride guidance information, and the rail transit travel service experience is seriously reduced.

[0027] Embodiment 1

[0028] The embodiment provides a redundant hot backup method based on transmission stream multicast listening.

[0029] Referring to Figure 1 , the method includes steps S1-S5, which include:

[0030] S1: Obtain area broadcast table data and audiovisual transmission data;

[0031] After the main play controller is powered on and initialized, this step initiates a request for the area broadcast table to the station control center server, and synchronously obtains the partition broadcast table data corresponding to the station hall, uplink platform and downlink platform of the whole station. The broadcast table data includes all the text, picture and video material files to be broadcasted and the broadcast timing parameters. When the complete broadcast table is not cached locally, the downloading is automatically performed and the downloading completion status is marked. When the complete broadcast table is cached, the broadcast ready state is directly entered.

[0032] At the same time, after the standby play controller is started, it actively pulls all the broadcast tables of all the main play controllers of the whole station and preloads them into the local memory cache, which is used to avoid the additional time delay caused by reading the material when a fault is triggered. All the main play controllers generate original audiovisual transmission data by decoding, synthesizing and encoding audiovisual materials in real time during normal operation.

[0033] S2: Based on the area broadcast table data and the audiovisual transmission data, perform multiplexing processing at the main link transmission end, and output stable main multicast stream;

[0034] To clearly specify the specific acquisition method of the stable main multicast stream, steps S21-S25 are included in step S2, which specifically include:

[0035] S21: determining the audio-visual data identifier based on the time index of the current play period parsed from the regional play list data;

[0036] In this step, the time index of the current play period in the play list is parsed line by line based on the regional play list data to locate the content items to be played in the current play period. The audio-visual data identifier corresponding to each segment of the content to be played is extracted by matching the text and video materials of the play time index, and the video material identifier and the audio material identifier are used to distinguish static text materials (bottom map and guide text) and dynamic video materials (promotional video and real-time information).

[0037] S22: generating the in-phase baseband signal by phase synthesis of the audio-visual data identifier and the audio-visual transmission data;

[0038] In this step, the audio-visual transmission data in the local cache is retrieved according to the audio-visual data identifier, and picture synthesis and audio synthesis processing are performed respectively. In the picture layer synthesis process, three layers of station guide text, static bottom map and dynamic video are superimposed, and in the audio track mixing synthesis process, the volume and channel parameters are unified to ensure that the audio-visual time stamp is strictly aligned, and the time-synchronous in-phase baseband signal without phase offset is output, thereby avoiding the problem of audio-visual synchronization in encoding multiplexing.

[0039] S23: layering adaptive encoding of the in-phase baseband signal, and weighted multiplexing of the encoding result by a preset priority dynamic switching mechanism to generate a standard transmission stream;

[0040] In this step, the in-phase baseband signal is compressed and encoded using the H.264 encoding standard to output a video transmission stream (video ES stream); and the synthesized in-phase baseband signal is audio encoded to output an audio transmission stream (audio ES stream). The encoding process is adapted to 1080P50 high-definition play specifications, and a group of picture structure (GOP) is forcibly set to ensure that the first frame of each group of pictures is a complete I frame.

[0041] Subsequently, the video transmission stream (video ES stream) and the audio transmission stream (audio ES stream) are weighted and multiplexed into a standard transmission stream (TS stream), and in the service description table (SDT) in the standard transmission stream (TS stream), the service provider name (ServiceProvider) is fixedly set as the unified identifier "PIS_System", and the service name (ServiceName) is set as "Master" as the exclusive identifier of the main stream, realizing frame-precision switching.

[0042] S24: encapsulating the standard transport stream according to preset multicast addressing information to obtain a multicast encapsulation transport stream;

[0043] In this step, the multicast addressing information configured locally by the station control center through a WEB page is used to assign independent and non-repeated multicast IP addresses and port numbers to the station hall, the uplink platform and the downlink platform as partition logical isolation identifiers. The main play controller encapsulates the standard transport stream according to the multicast address and port of the partition where the main play controller is located to generate a partition multicast encapsulation transport stream. The multicast encapsulation transport stream realizes logical isolation of multi-partition code streams and independent network distribution.

[0044] S25: In the process of continuously outputting the multicast encapsulation transport stream, the encapsulation data packets are pre-stored in a link buffer and an exit instruction is listened to. When no exit instruction is listened to, the data processing is circularly executed until the exit instruction is listened to, and the stable main multicast stream is output.

[0045] In this step, the main play controller pre-stores the encapsulation data packets in a temporary storage area for sending data packets through network multicast in the process of continuously pushing the multicast encapsulation transport stream to the external network switch. This guarantees uninterrupted output of the code stream in a network jitter scenario. During the operation, the exit instruction signal of the external interface is continuously listened to. When no exit instruction is listened to, the process of broadcasting table analysis, audio and video synthesis and encoding, and multicast distribution is circularly executed in step S21, and uninterrupted broadcasting is maintained. Once the external exit instruction is listened to, the encoding is stopped, the sending buffer is emptied, and the transport stream output cycle is terminated, and finally the stable main multicast stream is output.

[0046] S3: Based on the preset link quality constraint, the stable main multicast stream is detected in real time. When the main link is detected to be abnormal, the standby link processing unit is triggered to reconstruct the transport code stream by calling the pre-device broadcasting table to generate a standby transport stream.

[0047] To clearly obtain the judgment condition of the link quality constraint, step S3 includes S31, which specifically includes:

[0048] S31: According to a continuous preset number of frame periods as the minimum detection granularity, when the main link processing unit does not output any valid transport stream data packet in a plurality of continuous frame periods, it is determined that the main link transmission is abnormal.

[0049] In this step, the backup link processing unit continuously listens to the data packets with the minimum detection granularity of 3 consecutive 1080P50 video frame periods (60 ms) as the link fault judgment. When the multicast address port of the main link processing unit does not capture any compliant and valid transmission stream data packet in a plurality of consecutive frame periods, it is directly determined that the main link of the partition has transmission abnormalities, the fault partition number, the original main link exclusive multicast addressing information are locked, and the frame time sequence mark of the last normal data packet of the main link is cached and retained. Only the consecutive frame period without valid packet triggers the fault judgment, which avoids misjudgment caused by instantaneous network jitter and single packet loss, and continuously listens to the main link multicast stream throughout the process to maintain real-time detection capability.

[0050] To clarify the specific acquisition method of the backup transmission stream, steps S32 to S35 are included in step S3, specifically:

[0051] S32: Based on the link quality constraint, the stable main multicast stream is detected in real time for abnormalities. When it is detected that the transmission parameters of the stable main multicast stream do not meet the link quality constraint condition, it is determined that the main link has transmission failure, and a main link fault trigger signal is generated;

[0052] In this step, the stable main multicast stream is checked in multiple dimensions in parallel based on the link quality constraint. The checking dimensions include TS code rate fluctuation amplitude, "Master" main identification persistence in the SDT table, and data packet timestamp continuity. When it is detected that there is no valid data packet in a consecutive frame period, the code rate drops sharply, or the main SDT identifier disappears, any of which does not meet the link quality constraint, it is confirmed that the partition main play controller hardware, the encoding module or the network output link has a substantial transmission failure, and a main link fault trigger signal is generated. The main link fault trigger signal includes four types of information, including fault partition number, original main multicast address port, fault occurrence frame timestamp, and fault type. The main link fault trigger signal is pushed to the backup link broadcast thread through a local memory sharing area, and does not depend on external network transmission, thereby eliminating the signal transmission delay.

[0053] S33: When the backup link processing unit receives the main link fault trigger signal, it takes over the output control, freezes the main link output, and marks the output frame timestamp of the current main link;

[0054] In this step, when the standby link processing unit receives the main link failure trigger signal, it immediately preoccupies the network multicast output authority of the failure partition, and at the same time, issues an output freezing instruction to the original main play controller to stop the transmission stream encoding and multicast packet sending action of the main link device, extracts the last normal output frame timestamp carried in the failure trigger signal and completes the local persistent cache marking. The output frame timestamp is used for standby code stream timing alignment scheduling to ensure that the standby link can continue the main link broadcast timing logic and will not have the problems of broadcast table content jump and timing disorder. Moreover, the process of taking over the output control right reuses the partition multicast address and port of the original main link, without the need to modify the network addressing configuration.

[0055] S34: According to the preset priority switching strategy, the output frame timestamp is used to dynamically replace and update the working weight value of the standby link, and a link switching scheduling instruction is output.

[0056] In this step, according to the priority switching strategy of the built-in hierarchical failure, when only one main play controller (uplink or downlink) fails, the standby play controller plays the backup broadcast table corresponding to the failure partition; when the uplink and downlink two main play controllers fail at the same time, the standby play controller switches to the station hall partition backup broadcast table; when the station hall main play controller and one of the uplink or downlink fails, it is preferred to switch to the failure station partition broadcast table; when all three main play controllers fail, switch to the station hall partition backup broadcast table.

[0057] The output frame timestamp of the cached main link is matched with the broadcast item on the same time axis in the backup broadcast table of the standby link, the encoding output working weight value of the standby link partition is dynamically updated, the failure partition is set as the highest output priority, the remaining normal partitions maintain the original main link output weight value, and the link switching scheduling instruction carrying the target broadcast table index, encoding start frame type and partition multicast addressing information is generated based on the updated weight value.

[0058] S35: According to the link switching scheduling instruction, the backup broadcast table is indexed and the standby code stream is retrieved, and the standby transport stream is generated by reconstructing the encoding of the standby code stream.

[0059] In this step, the backup link processing unit retrieves the full-site backup playlist and accompanying graphic and video materials that were pre-downloaded and cached locally during the startup phase, based on the playlist index carried in the link switching scheduling instruction. This eliminates the need for temporary material retrieval after a failure, thus avoiding download delays. The unit reads the time-series audiovisual materials through the link switching scheduling instruction, sequentially performing image layer compositing, audio mixing synchronization, and H.264 layered adaptive encoding to generate independent video and audio transmission streams. The multiplexing rules of the transport stream are used to encapsulate it into a standard transport stream. The service name field in the SDT service description table is rewritten to "Slaver" as a dedicated identifier for the backup bitstream. A complete GOP image group I-frame is forced to be the first data packet sent in the backup transport stream, thus reconstructing the backup transport stream.

[0060] S4: Input the backup transmission stream into the display decoding unit to perform link switching and decoding reset processing, and output the audiovisual decoding signal;

[0061] To clarify the specific method for acquiring the audiovisual decoding signal, step S4 includes steps S41 to S44, specifically:

[0062] S41: Input the backup transmission stream into the display decoding unit to monitor the code stream identifier in real time. When the main identifier is detected to switch to the backup identifier, it is determined that the link is switched to the backup transmission stream.

[0063] In this step, the backup transport stream is input into the OPS decoding display unit in the OPS expansion slot of the display screen for real-time monitoring of the stream identifier. When the primary identifier is detected to have switched to the backup identifier, it is determined that the link is switched to the backup transport stream.

[0064] S42: Clear the backup stream buffer in the backup transport stream, and make an adaptive buffer size estimate based on the current network jitter and the bit rate change of the backup transport stream to obtain the estimated buffer duration;

[0065] In this step, after switching to the backup transport stream, all undecoded old data in the decoding buffer is cleared (only the start position of the latest I-frame is retained) to prevent the mixing of old and new bitstreams from causing decoding abnormalities. Subsequently, the network packet loss rate and latency fluctuation amplitude are collected in real time to evaluate the network jitter level. The real-time output bitrate and GOP interval parameters of the 1080P50H.264 backup transport stream are read simultaneously. Based on the relationship that the greater the network jitter and the higher the bitrate, the greater the buffer required, an adaptive estimation is performed. The basic buffer duration is set to 1000ms, and it increases by 200ms for each jitter level (maximum 2000ms) to ensure that the backup transport stream data is completely stored before decoding is started, avoiding stuttering or screen tearing.

[0066] S43: The buffer prediction threshold is obtained by weighted calculation based on the estimated buffer duration and the encoding parameters of the backup transmission stream;

[0067] In this step, the estimated buffer duration is weighted and fused with the fixed weighting coefficient configured in the encoding parameters to generate a buffer prediction threshold. The buffer prediction threshold is defined synchronously based on the number of complete transmission data packets that the buffer can hold and the cumulative bit stream size. At the same time, a switching number correction factor is built in. When the device accumulates 3 or more master-slave switching times in a short period of time, the buffer prediction threshold is automatically increased to avoid frequent switching causing continuous screen stuttering.

[0068] The encoding parameters include video resolution, frame rate, number of frames per GOP, I-frame data volume, audio sampling rate, and bit rate.

[0069] S44: Reconfigure the buffer duration according to the buffer prediction threshold and output the audiovisual decoding signal.

[0070] In this step, the original default buffer duration configuration is overwritten according to the buffer prediction threshold. The buffer storage capacity and data reception waiting time configuration are updated synchronously. Backup transport stream data packets are continuously received to fill the buffer. After the amount of cached data reaches the buffer prediction threshold, the audio and video demultiplexing and layered decoding process is started. The original video stream and original audio stream in the bitstream are separated, and the video decoding and audio decoding are completed to generate a time-synchronized audio and video decoding signal.

[0071] S5: Based on the playback status of the audio-visual decoding signal, continuously monitor the quality of the main link. When the main link meets the link quality constraints, switch back to the main link and restore the multicast stream output through the main link.

[0072] To clarify the specific method for obtaining the multicast stream output during main link recovery, step S5 includes S51 to S54, specifically:

[0073] S51: Based on the playback status of the audio-visual decoding signal, continuously monitor the quality of the main link. When it is detected that the backup identifier has switched to the main identifier, determine that the main link has recovered and meets the link quality constraints, and generate a main link recovery signal.

[0074] In this step, the main link quality is monitored in real time based on the playback status of the audiovisual decoded signal. All transmitted data packets within the partition multicast group are continuously analyzed and the link quality is monitored. The link playback status is determined by collecting the signal frame rate, audio-visual synchronization offset, and decoding error count. The dedicated service provider identifier is verified by parsing the transport stream service description table packet by packet. The "PIS_System" field is used to lock the bitstream affiliation. The "ServiceName" field is extracted to distinguish the primary and backup link identifiers. When the field stably switches from the "Slaver" backup identifier to the "Master" primary identifier within multiple consecutive frame periods, and the backup playback controller stably receives valid transmitted data packets from the original master controller for three consecutive frame periods (approximately 60ms), without any packet loss, bitstream interruption, or identifier abnormality faults, the main link is determined to have fully recovered. A main link recovery signal including partition number, multicast addressing information, and GOP timing mark is generated synchronously.

[0075] S52: Based on the main link recovery signal, pause the decoding output of the backup transport stream and clear the decoding buffer bitstream in layers to generate a clean bitstream base;

[0076] In this step, after receiving the main link recovery signal, the display decoding unit immediately pauses the audio and video decoding process of the current backup transmission stream, cuts off the data reading channel of the backup bitstream, and then uses a cache clearing mechanism to clear the four storage areas of network receiving cache, TS demultiplexing cache, video frame decoding cache, and audio frame cache in sequence, forming a clean bitstream base without redundant dirty data.

[0077] S53: Based on the pure bitstream base and the preset main link buffering strategy, reconfigure the main link buffering duration and re-buffer the main link input bitstream to obtain buffered bitstream data;

[0078] In this step, the buffer duration is reconfigured based on the pure bitstream base and the main link buffering strategy is retrieved, and the main link input bitstream is reburied to generate buffered bitstream data.

[0079] Under normal and stable network conditions, the baseline buffer duration for main link recovery and switching is set to 800ms. The buffer threshold is dynamically adjusted based on real-time network jitter and the bit rate of the 1080P50H.264 primary transmission stream. The partitioned multicast stream receiving channel is enabled to continuously receive the primary multicast transmission packets after recovery and fill them into the buffer. Data filling stops when the cumulative duration of the buffered bitstream reaches the adjusted threshold, and complete, continuous, and unbroken frame buffered bitstream data is stored.

[0080] S54: Perform decoding access legality verification on the buffered bitstream data, perform bitstream correction and timing calibration in combination with the image group boundary information of the main link, and finally restore the main link decoding output.

[0081] In this step, the buffered bitstream data undergoes a decoding access legitimacy check. The check includes verification of the integrity of the transmitted data packets, the consistency of the primary identifier, the compliance of the H.264 video encoding format, and the matching of audio sampling parameters. Illegal data packets are removed. After the check passes, the group of pictures boundary information (GOP) is extracted to locate the first complete I-frame as the decoding starting point. The bitstream is corrected and the audio and video timestamps are aligned to eliminate timing offsets. After calibration is completed, the demultiplexing decoding is restarted, and the audio-visual signal is output to restore the main link playback.

[0082] Example 2:

[0083] This embodiment provides a redundant hot standby system based on transport stream multicast monitoring, the system comprising:

[0084] The acquisition module is used to acquire regional playlist data and audiovisual transmission data;

[0085] The merging module is used to perform merging and multiplexing processing on the main link transmission end based on the regional broadcast table data and the audio-visual transmission data, and output a stable primary multicast stream.

[0086] To clarify the specific methods for obtaining the merge module, the following are included:

[0087] The parsing unit is used to parse the timing index of the current playback cycle based on the regional playlist data to determine the audio and video data identifier;

[0088] A synthesis unit is used to perform phase synthesis with the audio-visual data identifier and the audio-visual transmission data to generate an in-phase baseband signal;

[0089] The encoding unit is used to perform hierarchical adaptive encoding on the in-phase baseband signal, and to perform weighted multiplexing of the encoding results through a preset priority dynamic switching mechanism to generate a standard transport stream.

[0090] An encapsulation unit is used to perform layered and fragmented encapsulation of the standard transport stream according to preset multicast addressing information to obtain a multicast encapsulated transport stream.

[0091] The pre-storage unit is used to perform link pre-storage buffering of encapsulated data packets and listen for exit instructions during the continuous output of the multicast encapsulated transport stream. When no exit instruction is heard, data processing is performed in a loop until an exit instruction is heard, at which point the loop terminates and a stable primary multicast stream is output.

[0092] The detection module is used to perform real-time anomaly detection on the stable primary multicast stream based on preset link quality constraints. When an anomaly is detected in the primary link, the backup link processing unit is triggered to retrieve the preset backup broadcast table to reconstruct the transmission stream and generate a backup transmission stream.

[0093] To clarify the specific methods for obtaining the judgment conditions of link quality constraints in the detection module, the following are included:

[0094] Based on a preset number of consecutive frame periods as the minimum detection granularity, if the main link processing unit fails to output any valid transmission stream data packet within multiple consecutive frame periods, the main link transmission is determined to be abnormal.

[0095] To clarify the specific methods for obtaining the detection module, the following are included:

[0096] The detection unit is used to perform real-time anomaly detection on the stable primary multicast stream based on the link quality constraints. When it is detected that the transmission parameters of the stable primary multicast stream do not meet the link quality constraints, it determines that the primary link has a transmission failure and generates a primary link failure trigger signal.

[0097] The takeover unit is used to take over the output control after the backup link processing unit receives the main link failure trigger signal, freeze the main link output and mark the current main link output frame timestamp.

[0098] The replacement unit is used to dynamically replace and update the working weight of the backup link according to the preset priority switching strategy and the output frame timestamp, and output the link switching scheduling instruction.

[0099] The retrieval unit is used to index and retrieve the backup broadcast table and the backup bitstream according to the link switching scheduling instruction, and to reconstruct and encode the backup bitstream to generate a backup transport stream.

[0100] The switching module is used to input the backup transmission stream into the display decoding unit to perform link switching and decoding reset processing, and output audiovisual decoding signals;

[0101] To clarify the specific methods for obtaining the switching module, the following are provided:

[0102] The identification unit is used to input the backup transport stream into the display decoding unit to monitor the stream identifier in real time. When the main identifier is detected to switch to the backup identifier, it determines that the link is switched to the backup transport stream.

[0103] The clearing unit is used to clear the backup stream buffer in the backup transport stream, and to perform adaptive buffer size estimation by combining the current network jitter and the bit rate change of the backup transport stream to obtain the estimated buffer duration.

[0104] The calculation unit is used to calculate the buffer prediction threshold by weighting the estimated buffer duration and the encoding parameters of the backup transport stream.

[0105] The configuration unit is used to reconfigure the buffer duration according to the buffer prediction threshold and output the audiovisual decoding signal.

[0106] The monitoring module is used to continuously monitor the quality of the main link based on the playback status of the audio-visual decoded signal. When the main link meets the link quality constraints, it switches back to the main link and restores the multicast stream output through the main link.

[0107] It should be noted that the specific methods by which each module performs operations in the system described in the above embodiments have been described in detail in the embodiments related to the method, and will not be elaborated here.

[0108] Example 3:

[0109] Corresponding to the above method embodiments, this embodiment also provides a redundant hot standby device based on transport stream multicast listening. The redundant hot standby device based on transport stream multicast listening described below and the redundant hot standby method based on transport stream multicast listening described above can be referred to each other.

[0110] Figure 2 This is a block diagram illustrating a redundant hot standby device 800 based on transport stream multicast sniffing, according to an exemplary embodiment. Figure 2 As shown, the redundant hot standby device 800 based on transport stream multicast sniffing may include: a processor 801 and a memory 802. The redundant hot standby device 800 based on transport stream multicast sniffing may also include one or more of the following: a multimedia component 803, an I / O interface 804, and a communication component 805.

[0111] The processor 801 controls the overall operation of the redundant hot standby device 800 based on transport stream multicast listening to complete all or part of the steps in the aforementioned redundant hot standby method based on transport stream multicast listening. The memory 802 stores various types of data to support the operation of the redundant hot standby device 800 based on transport stream multicast listening. This data may include, for example, instructions for any application or method operating on the redundant hot standby device 800 based on transport stream multicast listening, as well as application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 802 can be implemented using any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The multimedia component 803 may include a screen and an audio component. The screen may be, for example, a touchscreen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in the memory 802 or transmitted via the communication component 805. The audio component also includes at least one speaker for outputting audio signals. I / O interface 804 provides an interface between processor 801 and other interface modules, such as keyboards, mice, and buttons. These buttons can be virtual or physical. Communication component 805 is used for wired or wireless communication between the redundant hot standby device 800 based on transport stream multicast listening and other devices. Wireless communication includes, for example, Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination thereof. Therefore, the corresponding communication component 805 may include a Wi-Fi module, a Bluetooth module, and an NFC module.

[0112] In an exemplary embodiment, the redundant hot standby device 800 based on transport stream multicast sniffing may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the redundant hot standby method based on transport stream multicast sniffing described above.

[0113] Example 4:

[0114] Corresponding to the above method embodiments, this embodiment also provides a medium. The medium described below can be referred to in conjunction with the redundant hot standby method based on transport stream multicast sniffing described above.

[0115] A medium storing a computer program, which, when executed by a processor, implements the steps of the redundant hot standby method based on transport stream multicast sniffing in the above method embodiments.

[0116] The medium can specifically be any medium capable of storing program code, such as a USB flash drive, external hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0117] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

[0118] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A redundancy hot standby method based on transport stream multicast sniffing, characterized in that, include: Acquire regional playlist data and audiovisual transmission data; Based on the regional broadcast table data and the audio-visual transmission data, the main link transmission end is merged and multiplexed to output a stable primary multicast stream; Based on preset link quality constraints, the stable primary multicast stream is subjected to real-time anomaly detection. When an anomaly is detected in the primary link, the backup link processing unit is triggered to retrieve the preset backup broadcast table to reconstruct the transmission stream and generate a backup transmission stream. The backup transmission stream is input to the display decoding unit to perform link switching and decoding reset processing, and outputs audiovisual decoding signals; Based on the playback status of the audio-visual decoded signal, the main link quality is continuously monitored. When the main link meets the link quality constraints, the main link is switched back and the multicast stream output is restored through the main link.

2. The redundant hot standby method based on transport stream multicast monitoring according to claim 1, characterized in that, Based on the merging and multiplexing of the regional broadcast table data and the audiovisual transmission data at the main link transmission end, a stable primary multicast stream is output, including: Based on the regional playlist data, the timing index of the current playback cycle is parsed to determine the audio and video data identifier; Based on the audio and video data identifiers and the audio and video transmission data, phase synthesis is performed to generate an in-phase baseband signal; The in-phase baseband signal is subjected to hierarchical adaptive coding, and the coding results are weighted and multiplexed through a preset priority dynamic switching mechanism to generate a standard transport stream. The standard transport stream is layered and fragmented according to the preset multicast addressing information to obtain a multicast encapsulated transport stream. During the continuous output of the multicast encapsulated transport stream, the encapsulated data packets are pre-stored and cached on the link, and an exit command is listened for. When no exit command is heard, data processing is performed in a loop until an exit command is heard, at which point the loop terminates and a stable primary multicast stream is output.

3. The redundant hot standby method based on transport stream multicast monitoring according to claim 1, characterized in that, The determination criteria for the link quality constraints include: Based on a preset number of consecutive frame periods as the minimum detection granularity, if the main link processing unit fails to output any valid transmission stream data packet within multiple consecutive frame periods, the main link transmission is determined to be abnormal.

4. The redundant hot standby method based on transport stream multicast sniffing according to claim 1, characterized in that, Based on preset link quality constraints, real-time anomaly detection is performed on the stable primary multicast stream. When a primary link anomaly is detected, the backup link processing unit is triggered to retrieve a preset backup broadcast table to reconstruct the transmission stream and generate a backup transmission stream, including: Based on the link quality constraints, real-time anomaly detection is performed on the stable primary multicast stream. When the transmission parameters of the stable primary multicast stream are detected to be inconsistent with the link quality constraints, it is determined that a transmission failure has occurred in the primary link, and a primary link failure trigger signal is generated. When the backup link processing unit receives the main link failure trigger signal, it takes over the output control, freezes the main link output, and marks the current main link output frame timestamp. According to the preset priority switching strategy, the working weight of the backup link is dynamically replaced and updated by the output frame timestamp, and the link switching scheduling instruction is output. According to the link switching scheduling instruction, the backup playlist is indexed and retrieved to obtain the backup bitstream, and the backup transport stream is generated by reconstructing and encoding the backup bitstream.

5. The redundancy hot standby method based on transport stream multicast monitoring according to claim 1, characterized in that, The backup transport stream is input to the display decoding unit to perform link switching and decoding reset processing, and the audiovisual decoding signal is output, including: The backup transport stream is input to the display decoding unit to monitor the stream identifier in real time. When the primary identifier is detected to have switched to the backup identifier, the link is switched to the backup transport stream. The backup stream buffer in the backup transport stream is cleared, and the buffer size is adaptively estimated by combining the current network jitter and the bit rate change of the backup transport stream to obtain the estimated buffer duration. The buffer prediction threshold is obtained by weighting the estimated buffer duration and the encoding parameters of the backup transport stream. The buffer duration is reconfigured based on the buffer prediction threshold, and the audiovisual decoding signal is output.

6. A redundant hot standby system based on transport stream multicast monitoring, characterized in that, include: The acquisition module is used to acquire regional playlist data and audiovisual transmission data; The merging module is used to perform merging and multiplexing processing on the main link transmission end based on the regional broadcast table data and the audio-visual transmission data, and output a stable primary multicast stream. The detection module is used to perform real-time anomaly detection on the stable primary multicast stream based on preset link quality constraints. When an anomaly is detected in the primary link, the backup link processing unit is triggered to retrieve the preset backup broadcast table to reconstruct the transmission stream and generate a backup transmission stream. The switching module is used to input the backup transmission stream into the display decoding unit to perform link switching and decoding reset processing, and output audiovisual decoding signals; The monitoring module is used to continuously monitor the quality of the main link based on the playback status of the audio-visual decoded signal. When the main link meets the link quality constraints, it switches back to the main link and restores the multicast stream output through the main link.

7. The redundant hot standby system based on transport stream multicast monitoring according to claim 6, characterized in that, The merging module includes: The parsing unit is used to parse the timing index of the current playback cycle based on the regional playlist data to determine the audio and video data identifier; A synthesis unit is used to perform phase synthesis with the audio-visual data identifier and the audio-visual transmission data to generate an in-phase baseband signal; The encoding unit is used to perform hierarchical adaptive encoding on the in-phase baseband signal, and to perform weighted multiplexing of the encoding results through a preset priority dynamic switching mechanism to generate a standard transport stream. An encapsulation unit is used to perform layered and fragmented encapsulation of the standard transport stream according to preset multicast addressing information to obtain a multicast encapsulated transport stream. The pre-storage unit is used to perform link pre-storage buffering of encapsulated data packets and listen for exit instructions during the continuous output of the multicast encapsulated transport stream. When no exit instruction is heard, data processing is performed in a loop until an exit instruction is heard, at which point the loop terminates and a stable primary multicast stream is output.

8. The redundant hot standby system based on transport stream multicast monitoring according to claim 6, characterized in that, The judgment conditions for link quality constraints in the detection module include: Based on a preset number of consecutive frame periods as the minimum detection granularity, if the main link processing unit fails to output any valid transmission stream data packet within multiple consecutive frame periods, the main link transmission is determined to be abnormal.

9. The redundant hot standby system based on transport stream multicast monitoring according to claim 6, characterized in that, The detection module includes: The detection unit is used to perform real-time anomaly detection on the stable primary multicast stream based on the link quality constraints. When it is detected that the transmission parameters of the stable primary multicast stream do not meet the link quality constraints, it determines that the primary link has a transmission failure and generates a primary link failure trigger signal. The takeover unit is used to take over the output control after the backup link processing unit receives the main link failure trigger signal, freeze the main link output and mark the current main link output frame timestamp. The replacement unit is used to dynamically replace and update the working weight of the backup link according to the preset priority switching strategy and the output frame timestamp, and output the link switching scheduling instruction. The retrieval unit is used to index and retrieve the backup broadcast table and the backup bitstream according to the link switching scheduling instruction, and to reconstruct and encode the backup bitstream to generate a backup transport stream.

10. The redundant hot standby system based on transport stream multicast monitoring according to claim 6, characterized in that, The switching module includes: The identification unit is used to input the backup transport stream into the display decoding unit to monitor the stream identifier in real time. When the main identifier is detected to switch to the backup identifier, it determines that the link is switched to the backup transport stream. The clearing unit is used to clear the backup stream buffer in the backup transport stream, and to perform adaptive buffer size estimation by combining the current network jitter and the bit rate change of the backup transport stream to obtain the estimated buffer duration. The calculation unit is used to calculate the buffer prediction threshold by weighting the estimated buffer duration and the encoding parameters of the backup transport stream. The configuration unit is used to reconfigure the buffer duration according to the buffer prediction threshold and output the audiovisual decoding signal.