A data processing method and system

By sending request information in the streaming media system to allocate target streaming media servers and synchronize addresses, it solves the problem of difficulty in using the sender and receiver synchronously when multiple streaming media servers are selected, and improves the efficiency and stability of data transmission.

CN112637258BActive Publication Date: 2024-09-17XIAN WANXIANG ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011042396.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-28
Publication Date
2024-09-17
Estimated Expiration
2040-09-28

AI Technical Summary

Technical Problem

When multiple streaming media servers are available, it is difficult for the sender and the receiving end to simultaneously use the same streaming media server for data transmission, resulting in a decrease in data transmission efficiency and stability.

Method used

By sending request information to the business control server, the target streaming media server is allocated, and the streaming media server synchronization between the sending end and the receiving end is realized through the target address to ensure that the same media server is used for data transmission. Specific steps include sending request information, receiving the target address of the target streaming media server, sending receiving address information, and sending the target address to the sending end to establish a connection.

Benefits of technology

It realizes the synchronous use of the sender and the receiver when multiple streaming media servers are optional, improves the efficiency and stability of data transmission, and ensures the synchronization of the streaming media servers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112637258B
    Figure CN112637258B
Patent Text Reader

Abstract

The present disclosure provides a data processing method and system, which relates to the field of computer technology, and can enable both the sending and receiving ends to use the same media server for data transmission when there are multiple streaming media servers to choose from. The specific technical scheme is: first, a request message is sent to the service control server, and the request message is used to instruct the service control server to allocate a corresponding target streaming media server to the target receiving end; then, the target address of the target streaming media server sent by the service control server is received; according to the target address of the target streaming media server, information requesting the receiving address is sent to the target streaming media server; the receiving address sent by the target streaming media server is received; finally, the target address of the target streaming media server is sent to the target sending end, so that the target sending end sends information requesting the sending address to the target streaming media server through the target address, and receives the sending address sent by the target streaming media server. The present disclosure is used for data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a data processing method and system. Background Art

[0002] Streaming media refers to a media format that transmits audio, video and multimedia files in a streaming manner over the network. The main function of a streaming media server is to transmit video files to the client using a streaming protocol (RTP / RTSP, MMS, RTMP, etc.) for users to watch online.

[0003] Compared with the online playback form of downloading and watching, the typical feature of streaming media is that continuous audio and video information is compressed and put on the network server, so that users can watch while downloading, without having to wait for the entire file to be downloaded. Due to the superiority of streaming media technology, this technology is widely used in video on demand, video conferencing, distance education, telemedicine and online live broadcast systems.

[0004] At present, streaming media servers are usually deployed on cloud platforms, such as Amazon Cloud Service AWS, Alibaba Cloud, etc. When the business volume is large, the number of streaming media servers deployed will be relatively large. When the audio and video streams pulled by the receiving end from the sending end need to be transferred through the streaming media server, the sending end and the receiving end must use the same streaming media server to provide the transfer service. Therefore, the synchronization of the streaming media servers of the sending end and the receiving end is a very important issue. Summary of the invention

[0005] The disclosed embodiment provides a data processing method and system, which enables both the sending and receiving ends to use the same media server for data transmission when there are multiple streaming media servers to choose from. The technical solution is as follows:

[0006] According to a first aspect of an embodiment of the present disclosure, a data processing method is provided, the method comprising:

[0007] Sending request information to a service control server, wherein the request information is used to instruct the service control server to allocate a corresponding target streaming media server to the target receiving terminal;

[0008] Receiving the target address of the target streaming media server sent by the service control server;

[0009] According to the target address of the target streaming media server, sending information of the request receiving address to the target streaming media server;

[0010] Receiving a receiving address sent by the target streaming media server;

[0011] The target address of the target streaming media server is sent to the target sending end, so that the target sending end sends information requesting a sending address to the target streaming media server through the target address, and receives the sending address sent by the target streaming media server.

[0012] The data processing method provided by the embodiment of the present disclosure first sends request information to the service control server, the request information is used to instruct the service control server to allocate the corresponding target streaming media server to the target receiving end; then receives the target address of the target streaming media server sent by the service control server; according to the target address of the target streaming media server, sends the information of the request receiving address to the target streaming media server; receives the receiving address sent by the target streaming media server; finally, sends the target address of the target streaming media server to the target sending end, so that the target sending end sends the information of the request sending address to the target streaming media server through the target address, and receives the sending address sent by the target streaming media server. The present disclosure can ensure that the sending end and the receiving end use the same media server for data transmission when there are multiple streaming media servers to choose from, and realizes the synchronization of the streaming media servers between the sending end and the receiving end.

[0013] In one embodiment, sending the target address of the target streaming media server to the target sending end includes:

[0014] The target address of the target streaming media server is sent to the target sending end through a signaling server.

[0015] According to the disclosed embodiment, through the above method, the receiving end can send the target address of the target streaming media server to the sending end through the signaling server, which is conducive to the subsequent establishment of a connection between the sending end and the target streaming media server.

[0016] In one embodiment, the method further includes:

[0017] Receive target data sent by the target streaming media server through the receiving address, where the target data is sent by the target sending end to the target streaming media server through the sending address.

[0018] Through the above method, the embodiment of the present disclosure can enable the sending end and the receiving end to send and receive media stream data through the sending address and the receiving address of the streaming media server.

[0019] According to a second aspect of an embodiment of the present disclosure, a data processing method is provided, the method comprising:

[0020] The service control server obtains request information sent by the target receiving terminal, wherein the request information is used to indicate allocation of a corresponding target streaming media server to the target receiving terminal;

[0021] Determine a target streaming media server from at least one streaming media server;

[0022] The target address of the target streaming media server is obtained, and the target address of the target streaming media server is sent to the target receiving end, so that the target receiving end obtains the receiving address of the target streaming media server through the target address of the target streaming media server.

[0023] The disclosed embodiment, through the above method, enables the service control server to determine a target streaming media server among multiple streaming media servers, and the target streaming media server establishes a connection with the receiving end.

[0024] In one embodiment, determining a target streaming media server from at least one streaming media server comprises:

[0025] Acquire parameter information of at least one streaming media server, wherein the parameter information includes at least one of network card throughput information, cost performance of the streaming media server, heartbeat time, IP address, and port number;

[0026] Calculate the weight of each streaming media server according to the parameter information of each streaming media server;

[0027] The streaming media server with the largest weight is determined as the target streaming media server.

[0028] Through the above method, the service control server of the embodiment of the present disclosure can calculate a streaming media server that matches the current sending end according to the parameter information of the streaming media server.

[0029] In one embodiment, according to the parameter information of each streaming media server, calculating the weight of each streaming media server includes:

[0030] According to the parameter information of each streaming media server, the weight of each streaming media server is calculated using the first formula, wherein the first formula is:

[0031] result = a × (1-v net )+b×cost+c×N+d×(1-f 调用失败 )

[0032] Among them, result is the weight of the streaming media server; v net is the ratio of network card throughput; cost is the cost performance of the streaming media server; N indicates whether there is a normal heartbeat. If there is a normal heartbeat, N is 0, and if there is no normal heartbeat, N is 1; f 调用失败 is the call failure rate of the streaming media server; a, b, c, d are v net , cost, N, and f 调用失败 The weight of , a+b+c+d=1.

[0033] The embodiment of the present disclosure provides a specific method for calculating the weight of a streaming media server through the above method.

[0034] In one embodiment, when the parameter information is a call failure rate of a streaming media server, obtaining the parameter information of at least one streaming media server includes:

[0035] Recording success information and / or failure information of a receiving terminal pulling a media stream from at least one streaming media server within a preset first time period;

[0036] The proportion of failures of the at least one streaming media server in pulling the media stream is counted, and the call failure rate of the streaming media server is calculated.

[0037] In one embodiment, determining whether the streaming media server has a normal heartbeat includes:

[0038] If the information of the streaming media server is received within the preset second time period, it is determined that the streaming media server has a normal heartbeat;

[0039] If no information from the streaming media server is received within the preset second time period, it is determined that the streaming media server has no normal heartbeat.

[0040] According to a third aspect of an embodiment of the present disclosure, there is provided a data processing system, including a service control server, a target receiving end, a target sending end and a target streaming media server;

[0041] The service control server is configured to receive request information sent by a target receiving terminal, wherein the request information is used to indicate allocation of a corresponding target streaming media server to the target receiving terminal; determine a target streaming media server from at least one streaming media server; obtain a target address of the target streaming media server, and send the target address of the target streaming media server to the target receiving terminal;

[0042] The target receiving end is used to send information requesting a receiving address to the target streaming media server according to the target address of the target streaming media server, and receive the receiving address sent by the target streaming media server;

[0043] The target receiving end is further used to send the target address of the target streaming media server to the target sending end;

[0044] The target sending end is used to send information requesting a sending address to the target streaming media server according to the target address of the target streaming media server, and receive the sending address sent by the target streaming media server;

[0045] The target sending end is also used to send target data to the target streaming media server;

[0046] The target streaming media server is also used to send the target data to the target receiving end.

[0047] The data processing system provided by the embodiment of the present disclosure includes a service control server, a target receiving end, a target sending end and a target streaming media server; the service control server receives request information sent by the target receiving end, the request information is used to indicate the allocation of a corresponding target streaming media server to the target receiving end; the target streaming media server is determined from at least one streaming media server; the target address of the target streaming media server is obtained, and the target address of the target streaming media server is sent to the target receiving end; the target receiving end sends information requesting the receiving address to the target streaming media server according to the target address of the target streaming media server, and receives the receiving address sent by the target streaming media server; the target receiving end also sends the target address of the target streaming media server to the target sending end; the target sending end sends information requesting the sending address to the target streaming media server according to the target address of the target streaming media server, and receives the sending address sent by the target streaming media server; the target sending end also sends target data to the target streaming media server; the target streaming media server also sends the target data to the target receiving end. The present disclosure can ensure that the sending end and the receiving end use the same media server for data transmission when there are multiple streaming media servers to be selected, and realizes the synchronization of streaming media servers between the sending end and the receiving end.

[0048] In one embodiment, the system further comprises a signaling server, wherein the signaling server is configured to receive a target address of the target streaming media server sent by the target receiving end, and send the target address to the target sending end.

[0049] According to a fourth aspect of an embodiment of the present disclosure, a data processing device is provided, which includes a processor and a memory, wherein the memory stores at least one computer instruction, and the instruction is loaded and executed by the processor to implement the steps performed in any of the above-mentioned data processing methods.

[0050] According to a fifth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein at least one computer instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement the steps performed in any of the above-mentioned data processing methods.

[0051] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0053] Figure 1 is a structural diagram of an example streaming media system provided by an embodiment of the present disclosure;

[0054] Figure 2 is a flow chart of a data processing method provided by an embodiment of the present disclosure;

[0055] Figure 3 is a schematic diagram of an implementation principle of a streaming media server provided in an embodiment of the present disclosure;

[0056] Figure 4 is a flow chart of a data processing method provided by an embodiment of the present disclosure;

[0057] Figure 5 is a flow chart of a data processing method provided by an embodiment of the present disclosure;

[0058] Figure 6 It is a structural diagram of a data processing system provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0059] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure. Instead, they are merely examples of systems and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0060] The structure of the streaming media system is as follows Figure 1 As shown in the figure, the streaming media server mainly pulls the streaming media content from the sending end and publishes the pulled streaming media content. The user accesses the streaming media server online through the receiving end to obtain the streaming media content. The sending end here refers to the device that can send streaming media data, such as computers, servers, cameras, etc.; the receiving end refers to the device that can receive streaming media data, such as computers, mobile phones, tablets, etc.

[0061] Since there are usually more than one streaming media servers deployed in the cloud when the business volume is large, when the sender needs to transfer data through the streaming media server, it is necessary to ensure that the sender and the receiver use the same streaming media server for data transfer, that is, to ensure the synchronization of the streaming media servers.

[0062] To this end, the present disclosure provides a data processing method, such as Figure 2 As shown, the following steps are included:

[0063] Step 201: Send a request message to a service control server, where the request message is used to instruct the service control server to allocate a corresponding target streaming media server to a target receiving terminal;

[0064] Step 202: Receive the target address of the target streaming media server sent by the service control server;

[0065] Step 203: Sending information of a request receiving address to the target streaming media server according to the target address of the target streaming media server;

[0066] Step 204: receiving a receiving address sent by a target streaming media server;

[0067] Step 205: Send the target address of the target streaming media server to the target sending end, so that the target sending end sends information requesting the sending address to the target streaming media server through the target address, and receives the sending address sent by the target streaming media server.

[0068] Specifically, the target receiving end encapsulates the target address of the target streaming media server into an SDP format and sends it to the target sending end.

[0069] In one embodiment, sending the target address of the target streaming media server to the target sending end includes:

[0070] The target address of the target streaming media server is sent to the target sending end through the signaling server.

[0071] According to the disclosed embodiment, through the above method, the receiving end can send the target address of the target streaming media server to the sending end through the signaling server, which is conducive to the subsequent establishment of a connection between the sending end and the target streaming media server.

[0072] In one embodiment, before sending the target address of the target streaming media server to the target sending end via the signaling server, the method further includes:

[0073] The target receiving end sends a registration request to the signaling server and receives a registration response sent by the signaling server.

[0074] In one embodiment, the method further includes:

[0075] Receive target data sent by the target streaming media server through the receiving address, where the target data is sent by the target sending end to the target streaming media server through the sending address.

[0076] Through the above method, the embodiment of the present disclosure can enable the sending end and the receiving end to send and receive media stream data through the sending address and the receiving address of the streaming media server.

[0077] In the present disclosure, Figure 3 As shown, the principle of data transmission between the sender and the receiver is: the sender sends data to the sending IP and port, and then the target streaming media server pushes it to the receiver through the receiving IP and port.

[0078] The data processing method provided by the embodiment of the present disclosure first sends request information to the service control server, the request information is used to instruct the service control server to allocate the corresponding target streaming media server to the target receiving end; then receives the target address of the target streaming media server sent by the service control server; according to the target address of the target streaming media server, sends the information of the request receiving address to the target streaming media server; receives the receiving address sent by the target streaming media server; finally, sends the target address of the target streaming media server to the target sending end, so that the target sending end sends the information of the request sending address to the target streaming media server through the target address, and receives the sending address sent by the target streaming media server. The present disclosure can ensure that the sending end and the receiving end use the same media server for data transmission when there are multiple streaming media servers to choose from, and realizes the synchronization of the streaming media servers between the sending end and the receiving end.

[0079] Based on the above Figure 2 Corresponding to the data processing method provided in the embodiment, another embodiment of the present disclosure proposes a data processing method, such as Figure 4 As shown, the following steps are included:

[0080] Step 401: The service control server obtains request information sent by a target receiving terminal, where the request information is used to indicate allocation of a corresponding target streaming media server to the target receiving terminal;

[0081] Step 402: determining a target streaming media server from at least one streaming media server;

[0082] In one embodiment, determining a target streaming media server from at least one streaming media server includes:

[0083] Acquire parameter information of at least one streaming media server, the parameter information including at least one of network card throughput information, cost performance of the streaming media server, heartbeat time, IP address, and port number;

[0084] Calculate the weight of each streaming media server according to the parameter information of each streaming media server;

[0085] The streaming media server with the largest weight is determined as the target streaming media server.

[0086] Specifically, after receiving the request from the receiving end, the service control server obtains the information of the media server from the database. Each streaming media server regularly reports its own network card throughput (network card I / O information), the cost performance of the streaming media server, the heartbeat time and other information to the database; in addition, after the streaming media service is started, the model and configuration information of the running host (public network IP, private network IP, port number, etc.) are obtained, and this information is sent to the specified database, which is usually set up separately in the service control server.

[0087] Through the above method, the service control server of the embodiment of the present disclosure can calculate a streaming media server that matches the current sending end according to the parameter information of the streaming media server.

[0088] In one embodiment, according to the parameter information of each streaming media server, calculating the weight of each streaming media server includes:

[0089] According to the parameter information of each streaming media server, the weight of each streaming media server is calculated using the first formula, wherein the first formula is:

[0090] result = a × (1-v net )+b×cost+c×N+d×(1-f 调用失败 )

[0091] Among them, result is the weight of the streaming media server; v net is the ratio of network card throughput; cost is the cost performance of the streaming media server; N indicates whether there is a normal heartbeat. If there is a normal heartbeat, N is 0, and if there is no normal heartbeat, N is 1; f 调用失败 is the call failure rate of the streaming media server; a, b, c, d are v net , cost, N, and f 调用失败 The weight of , a+b+c+d=1.

[0092] In practical applications, the values ​​of a, b, c, and d can be set according to actual needs. In a preferred embodiment, a=0.6, b=0.1, c=0.2, and d=0.1.

[0093] The embodiment of the present disclosure provides a specific method for calculating the weight of a streaming media server through the above method.

[0094] In one embodiment, when the parameter information is a call failure rate of a streaming media server, obtaining the parameter information of at least one streaming media server includes:

[0095] Recording success information and / or failure information of a receiving terminal pulling a media stream from at least one streaming media server within a preset first time period;

[0096] The proportion of at least one streaming media server failing to pull the media stream is counted, and the calling failure rate of the streaming media server is calculated.

[0097] In one embodiment, determining whether the streaming media server has a normal heartbeat includes:

[0098] If the information of the streaming media server is received within the preset second time period, it is determined that the streaming media server has a normal heartbeat;

[0099] If no information from the streaming media server is received within the preset second time period, it is determined that the streaming media server has no normal heartbeat.

[0100] Specifically, the streaming media server will report information to the business control server periodically (for example, 2 seconds) and will continuously update the heartbeat time in the database. If the time obtained by the business control server is greater than a certain time threshold (for example, 5 seconds), it means that the streaming media server is working abnormally (no normal heartbeat) because the heartbeat time is not updated in time; otherwise, it is considered to have a normal heartbeat.

[0101] Step 403: Obtain the target address of the target streaming media server, and send the target address of the target streaming media server to the target receiving end, so that the target receiving end obtains the receiving address of the target streaming media server through the target address of the target streaming media server.

[0102] In this embodiment, the service control server calculates the target address of the streaming media server with the largest weight, encapsulates it into SDP format and sends it to the target receiving end. It should be noted that in this disclosure, the addresses in the target address, receiving address and sending address all refer to Internet Protocol addresses (IP addresses), which all include port numbers.

[0103] Among them, sdp (Session Description Protocol) is a standard session description protocol, which is encapsulated in this way to connect to the standard protocol. For example, if the IP address of the media server receiving the video is 192.168.0.1 and the port number is 6666, it can be written in the following format:

[0104] c=IN IP4 192.168.0.1

[0105] m=video 6666

[0106] After the target receiving end obtains the target address of the target streaming media server from the service control server, it requests the receiving address from the target streaming media server, and the target streaming media server sends the receiving address to the receiving end.

[0107] The data processing method provided by the present disclosure enables a service control server to determine a target streaming media server among multiple streaming media servers, and the target streaming media server establishes a connection with a receiving end.

[0108] Based on the above Figure 2 and Figure 4 Corresponding to the data processing method provided in the embodiment, another embodiment of the present disclosure proposes a data processing method, such as Figure 5 As shown, the following steps are included:

[0109] 0.1. The sender / receiver registers on the signaling server;

[0110] Specifically, the sending end / receiving end sends a registration request to the signaling server.

[0111] 0.2. The signaling server returns a registration response to the sender / receiver;

[0112] When the signaling server agrees to the registration request of the sender / receiver, it returns a registration response to the sender / receiver.

[0113] 1.1. The receiving end requests the service control server to obtain the streaming media server IP (including port);

[0114] 1.2. The service control server obtains the media server information from the database;

[0115] After receiving the request from the receiving end, the service control server obtains the media server information from the database.

[0116] Each streaming media server regularly reports its own network card I / O information, streaming media server cost performance, heartbeat time and other information to the database; specifically, after the streaming media service is started, it obtains the model and configuration information of the running host (public network IP, private network IP, port number, etc.), and sends this information to the designated database, which is usually set up separately in the business server. In addition, the streaming media server will also regularly report its own network I / O, streaming media server cost performance and heartbeat time to the database.

[0117] 1.3. The database returns the media server information to the service control server;

[0118] 1.4. The service control server calculates the scheduled streaming media server IP (including port) according to the load balancing algorithm, encapsulates it into SDP format and sends it to the receiving end;

[0119] SDP (Session Description Protocol) is a standard session description protocol, which is encapsulated in this way to connect to the standard protocol. For example, if the IP address of the media server receiving the video is 192.168.0.1 and the port number is 6666, it can be written in the following format:

[0120] c=IN IP4 192.168.0.1

[0121] m=video 6666

[0122] In actual implementation, the service control server may calculate a streaming media server that matches the current sending end according to various load balancing algorithms. In an optional implementation of the present invention, the streaming media server that matches the current sending end may be calculated according to the following load balancing algorithm:

[0123] After receiving the use application, the service control server obtains the corresponding parameters of the streaming media server from the database and calculates the result values ​​of all available streaming media servers according to the following formula;

[0124] Specifically, the service control server calculates the result value of each streaming media server according to the following formula:

[0125] result = a × (1-v net )+b×cost+c×N+d×(1-f 调用失败 )

[0126] Among them, result is the weight; a, b, c, d are the weights of each item, a+b+c+d=1; v net is the ratio of network card throughput; cost is the cost performance of the streaming media server; N indicates whether there is a normal heartbeat. If there is a normal heartbeat, N is 0, and if there is no normal heartbeat, N is 1; f 调用失败 The call failure rate of the streaming media server.

[0127] The call failure rate of the streaming media server is calculated by the service control server. Specifically, when the receiving end pulls the media stream from each streaming media server, the service control server will record the information of success or failure. Based on this information, the service control server can count the proportion of failed pulls within a period of time, which is the f to be calculated. 调用失败 .

[0128] In addition, the method for judging whether there is a normal heartbeat is as follows: the streaming media server will report information to the business control server regularly (for example, 2s) and will continuously update the heartbeat time in the database. If the time obtained by the business control server is greater than a certain time threshold (for example, 5s), it means that the server is working abnormally (no normal heartbeat) because the heartbeat time is not updated in time; otherwise, it is considered that there is a normal heartbeat.

[0129] In practical applications, the values ​​of a, b, c, and d can be set according to actual needs. In a preferred embodiment, a=0.6, b=0.1, c=0.2, and d=0.1.

[0130] The service control server determines the streaming media server with the largest calculated result value as the streaming media server allocated to the current sending end and receiving end, and sends the IP address (including port) information of the streaming media server to the current receiving end.

[0131] 2.1. The receiving end requests the receiving IP (including port) from the streaming media server;

[0132] Specifically, the receiving end obtains the IP address of the streaming media server from the service control server and requests the streaming media server to receive the IP and port number;

[0133] 2.2. The streaming media server returns the receiving IP (including port) to the receiving end;

[0134] 2.3. The receiving end encapsulates the streaming server IP (including port) and the receiving IP (including port) into SDP format and sends it to the signaling server;

[0135] 2.4. The signaling server sends the receiving end sdp information to the sending end;

[0136] 2.5. The sender requests the send IP (including port) from the same streaming media server as the receiver;

[0137] 2.6. The streaming media server encapsulates the sending IP (including port) on the server into SDP format and returns it to the sender;

[0138] 2.7. The sender encapsulates the sending IP (including port) into SDP format and sends it to the signaling server;

[0139] 2.8. The signaling server sends the sender's sdp information to the receiver;

[0140] 3.1. The sender sends data to the sending IP (including port) on the streaming media server;

[0141] Specifically, according to the time sequence Figure 3After step 2.6, the sender can start sending media data to the sending IP (including port) on the streaming media server.

[0142] 3.2. The receiving end receives media data from the receiving IP (including port) on the streaming media server.

[0143] The data processing method provided by the embodiment of the present disclosure can ensure that the sending end and the receiving end use the same media server for data transmission when there are multiple streaming media servers to choose from, thereby realizing the synchronization of streaming media servers between the sending end and the receiving end. In addition, the information in the present disclosure adopts the SDP format, while the existing streaming media communication architecture mostly adopts the SIP protocol, which enables the method of the present disclosure to be expanded on the existing SIP architecture, and is very convenient to implement.

[0144] Based on the above Figure 2 , Figure 4 and Figure 5 The data processing method described in the corresponding embodiment is as follows: an embodiment of the system of the present disclosure, which can be used to execute the embodiment of the method of the present disclosure.

[0145] The present disclosure provides a data processing system. Figure 6 As shown, the data processing system 60 includes: a service control server 601, a target receiving end 602, a target sending end 603 and a target streaming media server 604;

[0146] The service control server 601 is used to receive the request information sent by the target receiving terminal 602, where the request information is used to indicate the allocation of the corresponding target streaming media server 604 to the target receiving terminal 602; determine the target streaming media server 604 from at least one streaming media server; obtain the target address of the target streaming media server 604, and send the target address of the target streaming media server 604 to the target receiving terminal 602;

[0147] The target receiving end 602 is used to send information requesting a receiving address to the target streaming media server 604 according to the target address of the target streaming media server 604, and receive the receiving address sent by the target streaming media server 604;

[0148] The target receiving end 602 is also used to send the target address of the target streaming media server 604 to the target sending end 603;

[0149] The target sending end 603 is used to send information requesting a sending address to the target streaming media server 604 according to the target address of the target streaming media server 604, and receive the sending address sent by the target streaming media server 604;

[0150] The target sending end 603 is also used to send target data to the target streaming media server 604;

[0151] The target streaming media server 604 is also used to send target data to the target receiving end 602.

[0152] The data processing system provided by the embodiment of the present disclosure includes a service control server 601, a target receiving end 602, a target sending end 603 and a target streaming media server 604; the service control server 601 receives request information sent by the target receiving end 602, and the request information is used to indicate that a corresponding target streaming media server 604 is allocated to the target receiving end 602; the target streaming media server 604 is determined from at least one streaming media server; a target address of the target streaming media server 604 is obtained, and the target address of the target streaming media server 604 is sent to the target receiving end 602; the target receiving end 602 allocates a corresponding target streaming media server 604 to the target receiving end 602 according to the target streaming media server 604; The target receiving end 602 sends the target address of the target streaming media server 604, sends the information of the request receiving address to the target streaming media server 604, and receives the receiving address sent by the target streaming media server 604; the target receiving end 602 also sends the target address of the target streaming media server 604 to the target sending end 603; the target sending end 603 sends the information of the request sending address to the target streaming media server 604 according to the target address of the target streaming media server 604, and receives the sending address sent by the target streaming media server 604; the target sending end 603 also sends the target data to the target streaming media server 604; the target streaming media server 604 also sends the target data to the target receiving end 602. The present disclosure can ensure that the sending end and the receiving end use the same media server for data transmission when there are multiple streaming media servers to be selected, and realizes the synchronization of the streaming media servers between the sending end and the receiving end.

[0153] In one embodiment, the system further includes a signaling server 605 for receiving a target address of a target streaming media server 604 sent by the target receiving end 602 , and sending the target address to the target sending end 603 .

[0154] Based on the above Figure 2 , Figure 3 and Figure 5 Corresponding to the data processing method described in the embodiment, another embodiment of the present disclosure further provides a data processing device, the data processing device includes a processor and a memory, the memory stores at least one computer instruction, the instruction is loaded and executed by the processor to implement the above Figure 2 , Figure 3 and Figure 5 The data processing method described in the corresponding embodiment.

[0155] Based on the above Figure 2 , Figure 3 and Figure 5 Corresponding to the data processing method described in the embodiment, the embodiment of the present disclosure also provides a computer-readable storage medium, for example, a non-temporary computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device. The storage medium stores at least one computer instruction, which is loaded by a processor and used to execute the above Figure 2 , Figure 3 and Figure 5 The data processing method described in the corresponding embodiment will not be repeated here.

[0156] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0157] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A data processing method, characterized in that: Applied to a target receiving end, the method comprises: Sending request information to a service control server, wherein the request information is used to instruct the service control server to allocate a corresponding target streaming media server to the target receiving terminal; Receiving the target address of the target streaming media server sent by the service control server; According to the target address of the target streaming media server, sending information of the request receiving address to the target streaming media server; Receiving a receiving address sent by the target streaming media server; The target address of the target streaming media server is sent to the target sending end, so that the target sending end sends information requesting a sending address to the target streaming media server through the target address, and receives the sending address sent by the target streaming media server.

2. The data processing method according to claim 1, characterized in that: The sending of the target address of the target streaming media server to the target sending end comprises: The target address of the target streaming media server is sent to the target sending end through a signaling server.

3. The data processing method according to claim 1, characterized in that: The method further comprises: Receive target data sent by the target streaming media server through the receiving address, where the target data is sent by the target sending end to the target streaming media server through the sending address.

4. A data processing method, characterized in that: The method comprises: The service control server obtains request information sent by the target receiving terminal, wherein the request information is used to indicate allocation of a corresponding target streaming media server to the target receiving terminal; Determine a target streaming media server from at least one streaming media server; The target address of the target streaming media server is obtained, and the target address of the target streaming media server is sent to the target receiving end, so that the target receiving end sends information requesting the receiving address to the target streaming media server after receiving the target address of the target streaming media server, so as to obtain the receiving address of the target streaming media server.

5. The data processing method according to claim 4, characterized in that: Determining a target streaming media server from at least one streaming media server comprises: Acquire parameter information of at least one streaming media server, wherein the parameter information includes at least one of network card throughput information, cost performance of the streaming media server, heartbeat time, IP address, and port number; Calculate the weight of each streaming media server according to the parameter information of each streaming media server; The streaming media server with the largest weight is determined as the target streaming media server.

6. The data processing method according to claim 5, characterized in that: Calculating the weight of each streaming media server according to the parameter information of each streaming media server includes: According to the parameter information of each streaming media server, the weight of each streaming media server is calculated using the first formula, wherein the first formula is: result=a×(1-v net )+b×cost+c×N+d×(1-f 调用失败 ) Among them, result is the weight of the streaming media server; v net is the ratio of network card throughput; cost is the cost performance of the streaming media server; N indicates whether there is a normal heartbeat. If there is a normal heartbeat, N is 0, and if there is no normal heartbeat, N is 1; f 调用失败 is the call failure rate of the streaming media server; a, b, c, d are v net , cost, N, and f 调用失败 The weight of , a+b+c+d=1.

7. The data processing method according to claim 5, characterized in that: When the parameter information is a call failure rate of a streaming media server, the acquiring the parameter information of at least one streaming media server includes: Recording success information and / or failure information of a receiving terminal pulling a media stream from at least one streaming media server within a preset first time period; The proportion of failures of the at least one streaming media server in pulling the media stream is counted, and the call failure rate of the streaming media server is calculated.

8. The data processing method according to claim 5, characterized in that: Determining whether the streaming media server has a normal heartbeat includes: If the information of the streaming media server is received within the preset second time period, it is determined that the streaming media server has a normal heartbeat; If no information from the streaming media server is received within the preset second time period, it is determined that the streaming media server has no normal heartbeat.

9. A data processing system, characterized in that: include: A service control server, a target receiving end, a target sending end and a target streaming media server; The service control server is configured to receive request information sent by a target receiving terminal, wherein the request information is used to indicate allocation of a corresponding target streaming media server to the target receiving terminal; determine a target streaming media server from at least one streaming media server; obtain a target address of the target streaming media server, and send the target address of the target streaming media server to the target receiving terminal; The target receiving end is used to send information requesting a receiving address to the target streaming media server according to the target address of the target streaming media server, and receive the receiving address sent by the target streaming media server; The target receiving end is further used to send the target address of the target streaming media server to the target sending end; The target sending end is used to send information requesting a sending address to the target streaming media server according to the target address of the target streaming media server, and receive the sending address sent by the target streaming media server; The target sending end is also used to send target data to the target streaming media server; The target streaming media server is also used to send the target data to the target receiving end.

10. The data processing system according to claim 9, characterized in that: The system further comprises a signaling server, wherein the signaling server is used for receiving a target address of the target streaming media server sent by the target receiving end, and sending the target address to the target sending end.