A data transmission method, apparatus, terminal device, and storage medium

By utilizing backup equipment to receive and convert internet media stream data during the switching process of video network devices, the impact of video network device failure switching on internet services was resolved, achieving seamless service continuity and improved user experience.

CN114629969BActive Publication Date: 2025-11-14HAINAN SHILIAN COMM TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210224178.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-07
Publication Date
2025-11-14
Estimated Expiration
2042-03-07

AI Technical Summary

Technical Problem

During the failover process of video network equipment, internet-side services are affected and cannot be executed normally.

Method used

When the backup device detects a failure in the host device, it receives a video network backup command and switches over within a preset time period. It then sends the Internet media stream data to the video network terminal through protocol conversion to ensure the continuity of Internet terminal services.

Benefits of technology

During the device switchover process, the status of internet terminal services remains unchanged, users are unaware of the process, and service continuity is guaranteed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114629969B_ABST
    Figure CN114629969B_ABST
Patent Text Reader

Abstract

This invention provides a data transmission method, apparatus, terminal device, and storage medium. The method includes: receiving a video network backup instruction sent by a backup device when a backup device detects a failure in the host device; starting from the current time of receiving the video network backup instruction, within a preset time period, if a video network handover completion instruction is received from the backup device, sending media stream data to the video network terminal; when the backup device detects a failure in the host device, sending a video network backup instruction to a streaming media server; when the backup device and the host device complete the handover within the preset time period, sending a video network handover completion instruction to the streaming media server; and then the streaming media server sending the media stream data sent by the internet terminal to the video network terminal. During this process, the internet terminal continues to process business operations and does not detect the failure of the host device, thus not affecting normal business operations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a data transmission method, apparatus, terminal equipment, and storage medium. Background Technology

[0002] With the continuous development of video network technology, the number of services between the video network and the internet is also increasing. If a device on the video network side fails, services on the internet side cannot operate. Therefore, backup devices are configured for the video network side. When the original video network device fails, it can switch to the backup device. During the switchover process, due to network interruption, services on the internet side will also be affected and unable to perform normal operations. How to achieve a switchover on the video network side without affecting services on the internet side is a problem that needs to be solved. Summary of the Invention

[0003] In view of the above problems, embodiments of the present invention are proposed to provide a data transmission method, apparatus, terminal device, and storage medium that overcomes or at least partially solves the above problems.

[0004] In a first aspect, embodiments of the present invention provide a data transmission method, the method comprising:

[0005] If the backup device detects a failure in the main device, it receives a video network backup command sent by the backup device.

[0006] Starting from the current time of receiving the video network backup instruction, within a preset time period, if a video network switchover completion instruction is received from the backup device, media stream data is sent to the video network terminal, wherein the media stream data is sent by the Internet terminal to the streaming media server.

[0007] Optionally, the step of sending the media stream to the video network terminal, wherein the media stream data is sent by the internet terminal to the streaming media server, includes:

[0008] Receive internet media stream data sent by internet terminals via virtual terminal number;

[0009] The Internet media stream data is converted into video network media stream data using a protocol.

[0010] Send the video network media stream data to the video network terminal.

[0011] Optionally, the step of converting the Internet media stream data into video Internet media stream data via protocol conversion includes:

[0012] The internet media stream data is parsed to obtain each first video frame;

[0013] If the first video frame is an I-frame video frame, then the I-frame video frame is converted into video network media stream data;

[0014] If the current first video frame is not an I-frame, then the current first video frame is deleted, and the next first video frame is judged until an I-frame is found, and the I-frame is converted into video network media stream data.

[0015] Optionally, the method further includes:

[0016] The media stream data sent by the video network terminal is sent to the Internet terminal bound to the virtual terminal number via the virtual terminal number.

[0017] Optionally, the step of sending the media stream data sent by the video network terminal to the internet terminal bound to the virtual terminal number via a virtual terminal number includes:

[0018] The media stream data sent by the video network terminal is parsed to obtain the second video frame;

[0019] If the second video frame is an I-frame video frame, convert the I-frame video frame into Internet media stream data;

[0020] The internet media stream data is sent to the internet terminal bound to the virtual terminal number via the virtual terminal number.

[0021] Optionally, the method further includes:

[0022] If no video network switching completion instruction is received from the backup device within a preset time period, a stop service instruction is sent to the Internet terminal so that the Internet terminal stops sending media stream data.

[0023] Secondly, embodiments of the present invention provide a data transmission apparatus, the apparatus being applied to:

[0024] The receiving module is used to receive the video network backup command sent by the backup device when the backup device detects a failure in the host device;

[0025] The switching module is used to send media stream data to the video network terminal within a preset time period, starting from the current time of receiving the video network backup instruction, if it receives the video network switching completion instruction sent by the backup device. The media stream data is sent by the Internet terminal to the streaming media server.

[0026] Optionally, the switching module is used to:

[0027] Receive internet media stream data sent by internet terminals via virtual terminal number;

[0028] The Internet media stream data is converted into video network media stream data using a protocol.

[0029] Send the video network media stream data to the video network terminal.

[0030] Optionally, the switching module is used to:

[0031] The internet media stream data is parsed to obtain each first video frame;

[0032] If the first video frame is an I-frame video frame, then the I-frame video frame is converted into video network media stream data;

[0033] If the current first video frame is not an I-frame, then the current first video frame is deleted, and the next first video frame is judged until an I-frame is found, and the I-frame is converted into video network media stream data.

[0034] Optionally, the switching module is further configured to:

[0035] The media stream data sent by the video network terminal is sent to the Internet terminal bound to the virtual terminal number via the virtual terminal number.

[0036] Optionally, the switching module is specifically used for:

[0037] The media stream data sent by the video network terminal is parsed to obtain the second video frame;

[0038] If the second video frame is an I-frame video frame, convert the I-frame video frame into Internet media stream data;

[0039] The internet media stream data is sent to the internet terminal bound to the virtual terminal number via the virtual terminal number.

[0040] Optionally, the switching module is used to:

[0041] If no video network switching completion instruction is received from the backup device within a preset time period, a stop service instruction is sent to the Internet terminal so that the Internet terminal stops sending media stream data.

[0042] Thirdly, embodiments of the present invention provide a terminal device, including: at least one processor and a memory;

[0043] The memory stores a computer program; the at least one processor executes the computer program stored in the memory to implement the data transmission method provided in the first aspect.

[0044] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program that, when executed, implements the data transmission method provided in the first aspect.

[0045] The embodiments of the present invention have the following advantages:

[0046] The data transmission method, apparatus, terminal device, and storage medium provided in this invention receive a video network backup command from the backup device when the backup device detects a failure in the host device. Starting from the current time of receiving the video network backup command, within a preset time period, if a video network handover completion command is received from the backup device, media stream data is sent to the video network terminal. The media stream data is sent from the internet terminal to the streaming media server. When the backup device detects a failure in the host device, it sends a video network backup command to the streaming media server. After the handover between the backup device and the host device is completed within the preset time period, the backup device sends a video network handover completion command to the streaming media server. Then, the streaming media server sends the media stream data sent by the internet terminal to the video network terminal. During this process, the internet terminal continues to process its business and does not detect the failure of the host device, thus not affecting normal business operations. Attached Figure Description

[0047] Figure 1 This is a flowchart illustrating the steps of an embodiment of the data transmission method of the present invention;

[0048] Figure 2 This is a flowchart illustrating the steps of another embodiment of the data transmission method of the present invention;

[0049] Figure 3 This is a schematic diagram of the structure of an embodiment of the data transmission system of the present invention;

[0050] Figure 4 This is a schematic diagram of another embodiment of the data transmission system of the present invention;

[0051] Figure 5 This is a schematic diagram of the structure of another embodiment of the data transmission system of the present invention;

[0052] Figure 6 This is a flowchart illustrating the steps of another embodiment of the data transmission method of the present invention;

[0053] Figure 7 This is a structural block diagram of an embodiment of a data transmission device according to the present invention;

[0054] Figure 8 This is a schematic diagram of the structure of a terminal device according to the present invention. Detailed Implementation

[0055] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0056] The video network is a significant milestone in network development. It is a real-time network that enables real-time transmission of high-definition video, pushing many internet applications towards high-definition video and enabling high-definition face-to-face interaction.

[0057] The video network adopts real-time high-definition video switching technology, which can integrate dozens of services such as high-definition video conferencing, video surveillance, intelligent monitoring and analysis, emergency command, digital broadcasting, time-delayed television, online teaching, live broadcasting, VOD, TV mail, personalized recording (PVR), intranet (self-operated) channels, intelligent video broadcast control, information release, etc., into a single system platform, enabling high-definition video playback through televisions or computers.

[0058] One embodiment of the present invention provides a data transmission method for transmitting data to a hot standby device. The execution entity in this embodiment is a data transmission device, which is installed on a streaming media server.

[0059] Reference Figure 1 The diagram illustrates a flowchart of an embodiment of a data transmission method according to the present invention. The method may specifically include the following steps:

[0060] S101. When the backup device detects a failure in the host device, it receives a video network backup command sent by the backup device.

[0061] Specifically, this invention is applied to a dual-machine hot standby device, including a primary device and a backup device. The primary device and the backup device can communicate with each other, and both are connected to a streaming media server. Either the primary device or the backup device is also connected to a video network terminal, and the streaming media server is connected to an internet terminal. The primary device and the backup device maintain their connection via heartbeat data packets. If the backup device does not receive a heartbeat data packet from the primary device within a preset time period, it indicates a failure in the primary device. In this case, the backup device needs to be activated, switching between the primary and backup devices. The backup device sends a video network backup command to the streaming media server.

[0062] Among them, the video network terminals include at least the Aurora series video network terminals, the Qiming series video network terminals, and the decoder series video network terminals;

[0063] Internet terminals include at least mobile phone applications (APPs), computer applications (PC software), 4G image transmission devices, and drones.

[0064] S102. Starting from the current time of receiving the video network backup instruction, within a preset time period, if a video network switchover completion instruction is received from the standby device, media stream data is sent to the video network terminal. The media stream data is sent from the internet terminal to the streaming media server. The preset time period can be set as needed.

[0065] Specifically, after receiving the video network backup instruction from the backup device, the streaming media server obtains the current time of receiving the instruction and starts a timer. From this time, the host device and the backup device switch over within a preset time period. If the switchover is complete, the backup device sends a video network switchover completion instruction to the streaming media server within the preset time period. During this process, the streaming media server continues to receive media stream data from the internet terminal but does not send media stream data to the video network terminal. Upon receiving the video network switchover completion instruction, it sends the media stream data received from the internet terminal within the preset time period to the video network terminal. Throughout this process, the internet terminal and the streaming media server maintain a continuous link and remain in a business execution state, unaware that a device switchover has occurred on the video network side.

[0066] The data transmission method provided in this embodiment of the invention involves receiving a video network backup command from a backup device when the backup device detects a failure in the host device. Starting from the time the backup command is received, within a preset time period, if a video network handover completion command is received from the backup device, media stream data is sent to the video network terminal. This media stream data is sent from the internet terminal to the streaming media server. When the backup device detects a failure in the host device, it sends a video network backup command to the streaming media server. After the backup device and host device complete the handover within the preset time period, the backup device sends a video network handover completion command to the streaming media server. Then, the streaming media server sends the media stream data sent by the internet terminal to the video network terminal. During this process, the internet terminal continues to process its services and is unaware of the host device failure, thus not affecting normal business operations.

[0067] Another embodiment of the present invention further supplements the data transmission method provided in the above embodiments.

[0068] like Figure 2 The diagram illustrates a flowchart of another embodiment of the data transmission method of the present invention, which includes:

[0069] S201. When the backup device detects a failure in the host device, it receives a video network backup command sent by the backup device.

[0070] S202. Starting from the current time of receiving the video network backup instruction, within a preset time period, if a video network switchover completion instruction is received from the standby device, the Internet media stream data sent by the Internet terminal is received through the virtual terminal number.

[0071] Specifically, multiple virtual terminals are installed on the streaming media server. Each virtual terminal has a unique virtual terminal number and is bound to an internet terminal for data transmission. When the streaming media server receives a video network switching completion command, it receives the internet media stream data sent by the internet terminal bound to that virtual terminal through the virtual terminal.

[0072] S203. Parse the Internet media stream data to obtain each first video frame;

[0073] Specifically, the streaming media server parses the internet media stream data to obtain the first video frame.

[0074] S204. If the first video frame is an I-frame video frame, then convert the I-frame video frame into video network media stream data.

[0075] Specifically, the streaming media server determines the first video frame. If the first video frame is an I-frame, it sends the I-frame to the video network terminal; if the first video frame is a P-frame or a B-frame, it does not send it. The first video frame is then encapsulated using the video network protocol to obtain the video network media stream data.

[0076] S205. If the current first video frame is not an I-frame video frame, delete the current first video frame, judge the next first video frame until an I-frame video frame is found, and convert the I-frame video frame into video network media stream data.

[0077] Specifically, when the streaming media server judges the first video frame, if the detected first video frame is not an I-frame video frame, it deletes the current video frame and continues to judge the next first video frame until the next I-frame video frame is found. Then, the I-frame video frame is converted into video network media stream data.

[0078] S206. Send the video network media stream data to the video network terminal.

[0079] Specifically, after receiving the instruction that the video network switching is complete, the streaming media server simultaneously receives the video network media stream data sent by the video network terminal, and then converts the video network media stream data to obtain Internet media stream data.

[0080] S207. The media stream data sent by the video network terminal is sent to the Internet terminal bound to the virtual terminal number via the virtual terminal number.

[0081] Specifically, it includes:

[0082] Step A1: Parse the media stream data sent by the video network terminal to obtain the second video frame;

[0083] Step A2: If the second video frame is an I-frame video frame, convert the I-frame video frame into Internet media stream data;

[0084] Step A3: Send the Internet media stream data to the Internet terminal bound to the virtual terminal number via the virtual terminal number.

[0085] Specifically, after receiving the video network media stream data, the streaming media server parses the video network media stream data to obtain the second video frame; if the second video frame is an I-frame video frame, the I-frame video frame is converted into internet media stream data, and the internet media stream data is sent to the internet terminal bound to the virtual terminal number through the virtual terminal number.

[0086] S208. If no video network handover completion instruction is received from the backup device within a preset time period, a stop service instruction is sent to the Internet terminal so that the Internet terminal stops sending media stream data.

[0087] Specifically, if the streaming media server does not receive a video network switching completion instruction from the backup device within the preset time period, it means that the switch between the host device and the backup device has not been successful. The streaming media server then sends a stop service instruction to the internet terminal. After receiving the stop service instruction, the internet terminal stops sending media stream data to the streaming media server.

[0088] Figure 3 This is a schematic diagram of the structure of an embodiment of the data transmission system of the present invention, as shown below. Figure 3 As shown, this invention relates to the automatic recovery function of internet-side devices in conferencing services within the context of dual-machine hot standby functionality in video networking. Assuming that the video networking host and standby devices perfectly implement hot standby recovery functionality in the event of a failure, this embodiment focuses on how the devices on the streaming media internet side preserve the original meeting state during the video networking recovery process, without canceling the meeting or experiencing any anomalies. Once the video networking hot standby device completes its operation, the internet devices actively restore the video networking conferencing function.

[0089] In the original hot standby, if a virtual terminal goes offline, it means that the virtual terminal is unavailable. The related services will be cleared and the device will restore the services. After the hot standby is completed, the previous services will be pulled back, which also realizes the service recovery. However, in the middle, network or service abnormalities will be clearly perceived. The signaling logic will be re-run (clearing and then binding), which increases the time delay.

[0090] Video network hot standby addresses single-point-of-failure issues by deploying dual machines. However, a streaming media server, acting as an external device (or a special endpoint) in a video network conference, cannot achieve hot standby functionality through dual-machine deployment like video network servers. This special endpoint, the streaming media server, can actually contain a series of virtual terminals. Each virtual terminal can connect to multiple real devices on the streaming media side (e.g., mobile apps / PC software). This results in a structure like... Figure 3 The framework pattern.

[0091] During the dual-machine hot standby process of the video network, the virtual terminals under the streaming media server are affected in terms of network access and services. However, the APP / PC, being internet devices connected to the streaming media server, maintains a heartbeat connection with the server during the hot standby process. Under this premise, the virtual terminal can be considered a channel connecting various video network devices and internet devices, with the streaming media server acting merely as a gateway. During the dual-machine hot standby process, this channel is temporarily interrupted, but for the internet devices, the transition from primary to backup for the video network device is indistinguishable. Therefore, the original state relationships and business operations can be maintained.

[0092] Figure 4 This is a schematic diagram of another embodiment of the data transmission system of the present invention; Figure 5 This is a schematic diagram of the structure of another embodiment of the data transmission system of the present invention. Figure 4 and Figure 5 These represent different operating states of the equipment. Figure 4 This indicates that the video network host is active. Figure 5 This indicates that the backup device for the video network is active. Figure 4 In this context, under normal circumstances, both the video network terminal and the virtual terminal within the streaming media exchange interact with the video network host. Solid black lines represent active video network interactions, while dashed lines represent active internet interactions. Correspondingly, the link channels for the streaming media side's device resources consist of both solid and dashed lines. Video network terminals are represented by solid lines.

[0093] exist Figure 5 During the process, after the dual-machine hot standby is completed, the standby machine in the video network becomes active and turns into a solid line. Therefore, the channel is unobstructed before and after the dual-machine hot standby. Figure 4 and Figure 5 In this context, the connection between the streaming media server and the internet terminal has remained unchanged.

[0094] This invention addresses how to quickly restore service to the corresponding streaming media devices during the interval T between the moment of switching when the video network host loses contact and the backup host has not yet established contact. During time interval T, the streaming media devices are unaware of this, as they are not directly connected to the video network. Only the streaming media server is aware that its virtual terminal has gone offline. During this time interval T, the streaming media devices continue to transmit media streams (uplink) while waiting for the virtual terminal to send media streams (downlink). When the virtual terminal transmits data, it checks if the uplink is an I-frame. If not, it filters it until the nearest I-frame is received, marked as an IDR, and sent to the virtual terminal. Simultaneously, it checks the downlink media stream to determine if it is the first I-frame (IDR). If not, it filters it; if so, it is transmitted to the corresponding streaming media device.

[0095] In a video network conference, a series of internet devices are brought into the conference. The streaming media server binds these internet devices to their virtual devices, establishing a data transmission channel. Uplink and downlink transmissions occur during the conference. If a virtual terminal goes offline during a dual-machine hot standby, the transmission channel becomes blocked. At this time, each internet device maintains its conference mode, recording the current time and status changes. It continuously sends its own data media stream to the offline bound virtual terminal. Simultaneously, it continuously receives media streams from the virtual terminal, even though no media data is currently being sent. Superficially, the internet devices appear to be in a static frame state (the image is frozen in one frame, without change). When the dual-machine hot standby is complete, the virtual device reconnects to the network under the streaming media server, and the video network resumes its original conference services: ① On the streaming media side, signaling control logic interaction is omitted, and media stream interaction is performed directly. ② At the moment the virtual terminal connects to the network, it checks whether the media stream sent from the streaming media device to the virtual terminal is an I-frame. If not, it filters it until the nearest I-frame is found, which is then marked as an IDR (I-frame identifier) ​​and sent to the virtual terminal. Simultaneously, the media stream from the virtual terminal is detected to determine if it is the first I-frame (IDR). If not, it is filtered; if so, it is transmitted to the corresponding streaming media device. This ensures the fastest decoder reset and the fastest picture rendering. ③ Anomaly Handling: A set time is set when the connection drops, and the duration of the disconnection is recorded. If the disconnection exceeds a certain time, it indicates that the dual-machine hot standby has failed and the service cannot be restored. In this case, the streaming media no longer needs to maintain the current service state, the binding relationship between the virtual terminal and the device is deleted, and the virtual terminal and the device are restored to idle state.

[0096] Figure 6 This is a flowchart illustrating the steps of another embodiment of the data transmission method of the present invention, as follows: Figure 6 As shown, the data transmission method includes:

[0097] S601. Start the streaming media server.

[0098] S602, Virtual terminal access: Internet terminal and streaming media server establish heartbeat, and can receive video network signaling to conduct business;

[0099] S603, the streaming media server receives video network signaling and pulls in APP / PC members.

[0100] S604 establishes a binding relationship between the APP / PC and the virtual terminal, and sends the received video network media stream to the corresponding APP / PC, or sends the Internet media stream sent by the APP / PC to the video network.

[0101] S605, the streaming media server received the video network backup signaling.

[0102] S606, the streaming media server records the current moment, starts a timer, marks the current state as hot standby, and maintains the status and services of the Internet-side devices.

[0103] S607. If the streaming media server receives the video network completion instruction within the time range set by the timer.

[0104] S608, the streaming media server determines whether the timer is still on, shuts it down, detects the uplink and downlink media streams, filters I-frames, and marks the hot standby status as complete.

[0105] S609. If the streaming media server does not receive the video network completion instruction within the time range set by the timer.

[0106] S610: Determine if the timer is still on, then turn it off, unbind it, stop the service, and close the uplink and downlink channels.

[0107] The embodiments of the present invention can solve the problem of how to quickly restore conference services on Internet devices after a single point of failure in video networking services. Once solved, it will greatly improve the user experience and enhance user stickiness.

[0108] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0109] The data transmission method provided in this embodiment of the invention involves receiving a video network backup command from a backup device when the backup device detects a failure in the host device. Starting from the time the backup command is received, within a preset time period, if a video network handover completion command is received from the backup device, media stream data is sent to the video network terminal. This media stream data is sent from the internet terminal to the streaming media server. When the backup device detects a failure in the host device, it sends a video network backup command to the streaming media server. After the backup device and host device complete the handover within the preset time period, the backup device sends a video network handover completion command to the streaming media server. Then, the streaming media server sends the media stream data sent by the internet terminal to the video network terminal. During this process, the internet terminal continues to process its services and is unaware of the host device failure, thus not affecting normal business operations.

[0110] Another embodiment of the present invention provides a data transmission apparatus for performing the data transmission method provided in the above embodiments.

[0111] Reference Figure 7 The diagram illustrates a structural block diagram of an embodiment of a data transmission device according to the present invention. The device may specifically include the following modules: a receiving module 701 and a switching module 702, wherein:

[0112] The receiving module 701 is used to receive a video network backup command sent by the backup device when the backup device detects a failure in the host device;

[0113] The switching module 702 is used to send media stream data to the video network terminal from the current time of receiving the video network backup instruction, within a preset time period, if it receives a video network switching completion instruction from the standby device. The media stream data is sent from the Internet terminal to the streaming media server.

[0114] The data transmission device provided in this embodiment of the invention receives a video network backup command sent by the backup device when the backup device detects a failure in the host device. Starting from the current time of receiving the video network backup command, within a preset time period, if a video network handover completion command is received from the backup device, media stream data is sent to the video network terminal. The media stream data is sent from the internet terminal to the streaming media server. When the backup device detects a failure in the host device, it sends a video network backup command to the streaming media server. After the backup device and the host device complete the handover within the preset time period, the backup device sends a video network handover completion command to the streaming media server. Then, the streaming media server sends the media stream data sent by the internet terminal to the video network terminal. During this process, the internet terminal continues to process business and does not notice the failure of the host device, thus not affecting normal business operations.

[0115] Another embodiment of the present invention further provides a description of the data transmission device provided in the above embodiments.

[0116] Optionally, the switching module is used for:

[0117] Receive internet media stream data sent by internet terminals via virtual terminal number;

[0118] Convert internet media stream data into video network media stream data using protocols;

[0119] Send the video network media stream data to the video network terminal.

[0120] Optionally, the switching module is used for:

[0121] The internet media stream data is parsed to obtain each first video frame;

[0122] If the first video frame is an I-frame, then the I-frame is converted into video network media stream data.

[0123] If the current first video frame is not an I-frame, then the current first video frame is deleted, and the next first video frame is judged until an I-frame is found, and the I-frame is converted into video network media stream data.

[0124] Optionally, the switching module is also used for:

[0125] The media stream data sent by the video network terminal is sent to the Internet terminal bound to the virtual terminal number through the virtual terminal number.

[0126] Optionally, the switching module is specifically used for:

[0127] The media stream data sent by the video network terminal is parsed to obtain the second video frame;

[0128] If the second video frame is an I-frame video frame, convert the I-frame video frame into Internet media stream data;

[0129] Internet media stream data is sent to the Internet terminal bound to the virtual terminal number via the virtual terminal number.

[0130] Optionally, the switching module is used for:

[0131] If no video network handover completion instruction is received from the backup device within a preset time period, a stop service instruction is sent to the Internet terminal to cause the Internet terminal to stop sending media stream data.

[0132] It should be noted that each of the implementable methods in this embodiment can be implemented individually or in any combination without conflict. This application does not limit this.

[0133] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0134] The data transmission device provided in this embodiment of the invention receives a video network backup command sent by the backup device when the backup device detects a failure in the host device. Starting from the current time of receiving the video network backup command, within a preset time period, if a video network handover completion command is received from the backup device, media stream data is sent to the video network terminal. The media stream data is sent from the internet terminal to the streaming media server. When the backup device detects a failure in the host device, it sends a video network backup command to the streaming media server. After the backup device and the host device complete the handover within the preset time period, the backup device sends a video network handover completion command to the streaming media server. Then, the streaming media server sends the media stream data sent by the internet terminal to the video network terminal. During this process, the internet terminal continues to process business and does not notice the failure of the host device, thus not affecting normal business operations.

[0135] In another embodiment of the present invention, a terminal device is provided for executing the data transmission method provided in the above embodiments.

[0136] Figure 8 This is a schematic diagram of the structure of a terminal device according to the present invention, such as... Figure 8 As shown, the terminal device includes: at least one processor 801 and a memory 802;

[0137] The memory stores a computer program; at least one processor executes the computer program stored in the memory to implement the data transmission method provided in the above embodiments.

[0138] The terminal device provided in this embodiment receives a video network backup command from the backup device when the backup device detects a failure in the host device. Starting from the time the video network backup command is received, within a preset time period, if a video network handover completion command is received from the backup device, media stream data is sent to the video network terminal. The media stream data is sent from the internet terminal to the streaming media server. When the backup device detects a failure in the host device, it sends a video network backup command to the streaming media server. After the backup device and the host device complete the handover within the preset time period, the backup device sends a video network handover completion command to the streaming media server. Then, the streaming media server sends the media stream data sent by the internet terminal to the video network terminal. During this process, the internet terminal continues to process business operations and does not notice the failure of the host device, thus not affecting normal business operations.

[0139] Another embodiment of this application provides a computer-readable storage medium storing a computer program, which, when executed, implements the data transmission method provided in any of the above embodiments.

[0140] According to the computer-readable storage medium of this embodiment, when the backup device detects a failure in the host device, it receives a video network backup instruction sent by the backup device. Starting from the current time of receiving the video network backup instruction, within a preset time period, if a video network handover completion instruction is received from the backup device, media stream data is sent to the video network terminal. The media stream data is sent from the internet terminal to the streaming media server. When the backup device detects a failure in the host device, it sends a video network backup instruction to the streaming media server. After the switchover between the backup device and the host device is completed within the preset time period, the backup device sends a video network handover completion instruction to the streaming media server. Then, the streaming media server sends the media stream data sent by the internet terminal to the video network terminal. During this process, the internet terminal continues to process business operations and does not notice the failure of the host device, thus not affecting normal business operations.

[0141] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0142] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0143] Embodiments of the present invention are described with reference to flowchart illustrations and / or block diagrams of methods, electronic devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable packet processing electronic device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable packet processing electronic device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0144] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data packet processing electronic device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0145] These computer program instructions can also be loaded onto a computer or other programmable data packet processing electronic device, causing a series of operational steps to be performed on the computer or other programmable electronic device to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable electronic device for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0146] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.

[0147] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or electronic device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or electronic device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or electronic device that includes said element.

[0148] The present invention has provided a detailed description of a data transmission method and a data transmission device. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will know that there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A data transmission method, characterized in that, The method is applied to a streaming media server and includes: If the backup device detects a failure in the main device, it receives a video network backup command sent by the backup device. Starting from the current time of receiving the video network backup instruction, within a preset time period, if a video network switching completion instruction is received from the backup device, media stream data is sent to the video network terminal, wherein the media stream data is sent from the Internet terminal to the streaming media server.

2. The data transmission method according to claim 1, characterized in that, The step of sending the media stream to the video network terminal, wherein the media stream data is sent by the internet terminal to the streaming media server, includes: Receive internet media stream data sent by internet terminals via virtual terminal number; The Internet media stream data is converted into video network media stream data using a protocol. Send the video network media stream data to the video network terminal.

3. The data transmission method according to claim 2, characterized in that, The step of converting the Internet media stream data into video Internet media stream data via protocol conversion includes: The internet media stream data is parsed to obtain each first video frame; If the first video frame is an I-frame video frame, then the I-frame video frame is converted into video network media stream data; If the current first video frame is not an I-frame, then the current first video frame is deleted, and the next first video frame is judged until an I-frame is found, and the I-frame is converted into video network media stream data.

4. The data transmission method according to claim 1, characterized in that, The method further includes: The media stream data sent by the video network terminal is sent to the Internet terminal bound to the virtual terminal number via the virtual terminal number.

5. The data transmission method according to claim 4, characterized in that, The step of sending the media stream data sent by the video network terminal to the internet terminal bound to the virtual terminal number via the virtual terminal number includes: The media stream data sent by the video network terminal is parsed to obtain the second video frame; If the second video frame is an I-frame video frame, convert the I-frame video frame into Internet media stream data; The internet media stream data is sent to the internet terminal bound to the virtual terminal number via the virtual terminal number.

6. The data transmission method according to claim 1, characterized in that, The method further includes: If no video network switching completion instruction is received from the backup device within a preset time period, a stop service instruction is sent to the Internet terminal so that the Internet terminal stops sending media stream data.

7. A data transmission device, characterized in that, The device is used in a streaming media server and includes: The receiving module is used to receive the video network backup command sent by the backup device when the backup device detects a failure in the host device; The switching module is used to send media stream data to the video network terminal within a preset time period, starting from the current time of receiving the video network backup instruction, if it receives the video network switching completion instruction sent by the backup device. The media stream data is sent from the Internet terminal to the streaming media server.

8. The data transmission device according to claim 7, characterized in that, The switching module is used for: Receive internet media stream data sent by internet terminals via virtual terminal number; The Internet media stream data is converted into video network media stream data using a protocol. Send the video network media stream data to the video network terminal.

9. A terminal device, characterized in that, include: At least one processor and memory; The memory stores computer programs; The at least one processor executes the computer program stored in the memory to implement the data transmission method according to any one of claims 1-6.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the data transmission method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Data transmission method and device, electronic device and storage medium

    CN110995517A

  • Video data transmission / reception system in which compressed image data is transmitted from a transmission-side apparatus to a reception-side apparatus

    US20040073936A1