Streaming media transmission method, device and electronic device

A handshake process is performed between the client, the source station cluster and the side station cluster through a customized live broadcast transmission protocol (KTMP), which solves the problem of large streaming media transmission delay in the existing technology and achieves fast transmission and high real-time performance.

CN114584800BActive Publication Date: 2024-09-20JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202210260657.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-16
Publication Date
2024-09-20
Estimated Expiration
2042-03-16

AI Technical Summary

Technical Problem

Existing live broadcast protocols (such as RTMP) have large delays during streaming media transmission and cannot meet situations with high real-time requirements.

Method used

A custom live broadcast transmission protocol (KTMP) is adopted, which only performs a handshake process. Through the communication connection between the client, the source station cluster and the side station cluster, it reduces the time of the handshake process and achieves rapid transmission of streaming media data.

Benefits of technology

It effectively reduces the streaming media transmission delay, improves real-time performance, and satisfies occasions with high real-time requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114584800B
    Figure CN114584800B
Patent Text Reader

Abstract

This disclosure provides a streaming media transmission method, apparatus, and electronic device. The method is applied to the client side and includes: generating a live stream and user request information through a first client; sending the live stream and user request information to an origin server cluster through the first client based on a custom live stream transmission protocol, wherein the custom live stream transmission protocol is a one-handshake transmission protocol; receiving a processed stream sent by the origin server cluster through a second client based on the custom live stream transmission protocol, wherein the processed stream is generated by the origin server cluster sending the live stream and user request information to a side server cluster, and the side server cluster processing the live stream according to the user request information; the origin server cluster and the side server cluster are connected for communication through the custom live stream transmission protocol. This achieves streaming media data transmission based on a custom live stream transmission protocol with only one handshake process, reducing the time spent on the handshake process and reducing transmission latency when transmitting streaming media.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of communication technology, and in particular to a streaming media transmission method, device and electronic device. Background Art

[0002] At present, the commonly used live broadcast protocol in China is the Real-time Messaging Protocol. The Real-time Messaging Protocol is the mainstream transmission protocol for live streaming media. Various cloud vendors provide streaming, recording and distribution services based on the Real-time Messaging Protocol. The disadvantage of the Real-time Messaging Protocol is that the Real-time Messaging Protocol requires multiple handshakes, resulting in a large delay when streaming media is transmitted through the Real-time Messaging Protocol, which cannot meet the occasions with high real-time requirements.

[0003] Therefore, reducing transmission delay in the process of transmitting streaming media is an issue that needs to be solved urgently. Summary of the invention

[0004] The present invention provides a streaming media transmission method, device and electronic device, which are used to solve the defects of the prior art that the streaming media transmission has a large delay and cannot meet the occasions with high real-time requirements, and reduce the transmission delay in the process of transmitting the streaming media.

[0005] The present disclosure provides a streaming media transmission method, which is applied to a client side, wherein the client side includes a first client and a second client, and the method includes:

[0006] Generate a live stream and user demand information through the first client;

[0007] The live streaming code stream and the user demand information are sent to the source station cluster by the first client based on a custom live streaming transmission protocol, wherein the custom live streaming transmission protocol is a transmission protocol of a one-handshake process;

[0008] The processed code stream sent by the source station cluster is received through the second client based on the custom live broadcast transmission protocol, wherein the processed code stream is sent by the source station cluster to the edge station cluster by sending the live broadcast code stream and the user demand information to the edge station cluster, and the edge station cluster processes the live broadcast code stream according to the user demand information to generate it, and returns the processed code stream to the source station cluster; the source station cluster and the edge station cluster are connected in communication via the custom live broadcast transmission protocol.

[0009] According to a streaming media transmission method provided by the present disclosure, the first client includes a streaming software development kit;

[0010] The step of sending the live streaming code stream and the user demand information to the source station cluster through the first client based on a custom live streaming transmission protocol includes:

[0011] The live streaming code stream and the user demand information are sent to the source station cluster based on the custom live streaming transmission protocol through the streaming software development kit of the first client.

[0012] The present disclosure also provides a streaming media transmission method, which is applied to a source station cluster, and the method includes:

[0013] Receiving a live streaming code stream and user demand information sent by a first client based on a custom live streaming transmission protocol, wherein the custom live streaming transmission protocol is a transmission protocol of a one-time handshake process;

[0014] Sending the live streaming code stream and the user demand information to the edge station cluster based on the custom live streaming transmission protocol;

[0015] Receiving a processed code stream sent by the edge station cluster based on the custom live broadcast transmission protocol, where the processed code stream is generated by the edge station cluster processing the live broadcast code stream according to the user demand information;

[0016] The processed code stream is sent to the second client based on the custom live broadcast transmission protocol.

[0017] The present disclosure also provides a streaming media transmission method, which is applied to an edge station cluster, and the method includes:

[0018] Receive the live streaming code stream and user demand information sent by the source station cluster based on the custom live streaming transmission protocol, where the custom live streaming transmission protocol is a transmission protocol of a one-time handshake process;

[0019] Processing the live stream according to the user demand information to generate a processed stream;

[0020] The processed code stream is sent to the source station cluster based on the custom live broadcast transmission protocol.

[0021] According to a streaming media transmission method provided by the present disclosure, the user demand information includes transcoding demand;

[0022] The step of processing the live stream according to the user demand information to generate a processed stream includes:

[0023] The live stream is transcoded according to the transcoding requirement in the user requirement information to generate a processed stream.

[0024] According to a streaming media transmission method provided by the present disclosure, the user demand information also includes a recording demand;

[0025] The step of processing the live stream according to the user demand information to generate a processed stream also includes:

[0026] The live streaming code stream is saved according to the recording requirement in the user requirement information.

[0027] The present disclosure also provides a streaming media transmission device, which is applied to a client side, wherein the client side includes a first client and a second client, and the device includes:

[0028] A generating unit, configured to generate a live broadcast stream and user demand information through the first client;

[0029] A first sending unit is used to send the live broadcast code stream and the user demand information to a source station cluster through the first client based on a custom live broadcast transmission protocol, wherein the custom live broadcast transmission protocol is a transmission protocol of a one-time handshake process, and the source station cluster is composed of multiple source stations;

[0030] The first receiving unit is used to receive the processed code stream sent by the source station cluster based on the custom live broadcast transmission protocol through the second client, wherein the processed code stream is sent by the source station cluster to the edge station cluster by sending the live broadcast code stream and the user demand information to the edge station cluster, and the edge station cluster processes the live broadcast code stream according to the user demand information to generate it, and returns the processed code stream to the source station cluster; the source station cluster and the edge station cluster are connected through the custom live broadcast transmission protocol.

[0031] The present disclosure also provides a streaming media transmission device, which is applied to a source station cluster, and the device includes:

[0032] A second receiving unit is used to receive a live broadcast code stream and user demand information sent by the first client based on a custom live broadcast transmission protocol, wherein the custom live broadcast transmission protocol is a transmission protocol of a handshake process;

[0033] A second sending unit, configured to send the live broadcast code stream and the user demand information to the edge station cluster based on the custom live broadcast transmission protocol;

[0034] A third receiving unit is used to receive a processed code stream sent by the edge station cluster based on the custom live broadcast transmission protocol, where the processed code stream is generated by the edge station cluster processing the live broadcast code stream according to the user demand information;

[0035] The third sending unit is used to send the processed code stream to the second client based on the custom live broadcast transmission protocol.

[0036] The present disclosure also provides a streaming media transmission device, which is applied to an edge station cluster, and the device includes:

[0037] A fourth receiving unit is used to receive a live stream and user demand information sent by the source station cluster based on a custom live transmission protocol, wherein the custom live transmission protocol is a transmission protocol of a one-time handshake process;

[0038] A processing unit, used to process the live stream according to the user demand information to generate a processed stream;

[0039] The fourth sending unit sends the processed code stream to the source station cluster based on the custom live broadcast transmission protocol.

[0040] The present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above-mentioned streaming media transmission methods when executing the program.

[0041] The present disclosure also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the above-mentioned streaming media transmission methods are implemented.

[0042] The streaming media transmission method, device and electronic device provided by the present disclosure generate a live stream and user demand information through a first client; the live stream and user demand information are sent to a source station cluster by the first client based on a custom live transmission protocol, the custom live transmission protocol is a transmission protocol of a one-time handshake process, and the source station cluster is composed of multiple source stations; the processed stream sent by the source station cluster is received by a second client based on the custom live transmission protocol, the processed stream is the source station cluster sending the live stream and user demand information to the edge station cluster, the edge station cluster processes and generates the live stream according to the user demand information, and then sends it to the source station cluster based on the custom live transmission protocol, and the edge station cluster is composed of multiple edge stations. The streaming media data transmission is completed based on a custom live transmission protocol with only one handshake process, which reduces the time spent on the handshake process and reduces the transmission delay when transmitting streaming media. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the present disclosure or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0044] Figure 1 This is one of the flow charts of the streaming media transmission method provided by the present disclosure;

[0045] Figure 2 It is a schematic diagram of the interactive process based on the custom live broadcast transmission protocol provided by the present disclosure;

[0046] Figure 3 is a schematic diagram of the header data structure provided by the present disclosure;

[0047] Figure 4 is a schematic diagram of a streaming media transmission system provided by the present disclosure;

[0048] Figure 5 This is the second flow chart of the streaming media transmission method provided by the present disclosure;

[0049] Figure 6 This is the third flow chart of the streaming media transmission method provided by the present disclosure;

[0050] Figure 7 It is one of the structural schematic diagrams of the streaming media transmission device provided by the present disclosure;

[0051] Figure 8 This is the second structural diagram of the streaming media transmission device provided by the present disclosure;

[0052] Fig. 9 This is the third structural diagram of the streaming media transmission device provided by the present disclosure;

[0053] Fig.10 It is a schematic diagram of the structure of an electronic device provided by the present disclosure. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present disclosure.

[0055] At present, the commonly used live broadcast protocols in China include RTMP, HLS / DASH and HTTP_FLV. RTMP refers to the Real-time Message Transport Protocol, a private protocol developed for audio and video data transmission between Flash players and servers, based on TCP. The HLS protocol is essentially a HTTP request or response, with a relatively large delay. HTTP-FLV is a long connection request. The live broadcast service uses RTMP as the streaming media push protocol, and generally HLS / DASH and HTTP-FLV are used as the playback protocol.

[0056] RTMP is currently the mainstream transmission protocol for live streaming media. Based on the above solutions, various cloud vendors provide streaming, recording, and distribution services.

[0057] RTMP is a protocol developed specifically for streaming media. The disadvantage of RTMP is that it requires multiple handshakes, which leads to large delays when streaming media is transmitted through the RTMP protocol and cannot meet the occasions with high real-time requirements.

[0058] Therefore, reducing transmission delay in the process of transmitting streaming media is an issue that needs to be solved urgently.

[0059] To solve the above problems, the present disclosure provides a streaming media transmission method, which is applied to a client side, wherein the client side includes a first client and a second client. Figure 1 As shown, the method includes:

[0060] S11, generating a live broadcast stream and user demand information through the first client;

[0061] Specifically, the first client may generate a live broadcast stream and user demand information in a local live broadcast platform.

[0062] S12, sending the live streaming code stream and the user demand information to the source station cluster based on the custom live streaming transmission protocol KTMP through the first client;

[0063] Specifically, the first client can send the live streaming code stream and user demand information to the source station cluster based on the custom live transmission protocol KTMP, wherein the KTMP is a transmission protocol of a handshake process, and the source station cluster is composed of multiple source stations.

[0064] KTMP is a transmission protocol for a handshake process. Figure 2 As shown, the following is an example of two network devices, which is not limiting. The transmission of data between two network devices through KTMP is divided into two stages: the handshake stage and the data transmission stage. In the handshake stage, the first header data is sent by the first network device, and the second network device receives the first header and returns the second header to the first network device to complete the handshake.

[0065] like Figure 3 As shown, Figure 3 The following is a schematic diagram of the header data structure. The first line of data in the header includes a 1-byte fixed protocol identifier and a 3-byte payload length. The second line of data includes a 1-byte payload length and payload data. All subsequent lines of data are payload data. The fixed protocol identifier can be set according to actual needs, and the number of header lines can be set according to actual needs, and there is no limit on this.

[0066] In one example, the fixed protocol identifier may be 0x1d.

[0067] The payload data is specifically a key-value pair encoded in the form of Flash Object. The key-value pair is self-explanatory and adopts the AMF0 format.

[0068] The first header is Figure 3 The header structure diagram shown is based on the structure, and the payload content includes the handshake request data packet payload content shown in Table 1:

[0069] Table 1 Handshake request packet payload content

[0070]

[0071] The Command Object specifically includes the Command Object sub-contents shown in Table 2:

[0072] Table 2 Command Object sub-content

[0073]

[0074]

[0075] The second header is Figure 3 The header structure diagram shown is based on the structure, and the payload content includes the handshake response data packet payload content shown in Table 3:

[0076] Table 3 Handshake response packet payload content

[0077]

[0078] After the handshake phase is completed, the first network device and the second network device can perform data transmission.

[0079] S13. Receive, through the second client based on KTMP, a processed code stream sent by the source station cluster.

[0080] The processed code stream is generated by sending the live code stream and the user demand information to the edge station cluster through the source station cluster, and the live code stream is processed and generated by the edge station cluster according to the user demand information, and the processed code stream is returned to the source station cluster; the source station cluster and the edge station cluster are connected by the custom live transmission protocol; the edge station cluster is composed of multiple edge stations;

[0081] Specifically, the second client can receive the processed code stream sent by the source station cluster based on KTMP. The processed code stream is the source station cluster sending the live code stream and user demand information to the edge station cluster, and the edge station cluster processes the live code stream according to the user demand information and sends it to the source station cluster based on KTMP. Among them, the edge station cluster is composed of multiple edge stations.

[0082] The above-mentioned processing code stream and user demand information are all data, and sending and receiving are both transmission steps. For information on data transmission based on KTMP, please refer to Figure 2-Figure 3 The descriptions of the relevant contents of Tables 1 to 3 will not be repeated here.

[0083] In one example, the above streaming media transmission method can be applied to Figure 4 The streaming media transmission system shown.

[0084] In the implementation of the present disclosure, a live broadcast stream and user demand information are generated by the first client; the live broadcast stream and the user demand information are sent to the source station cluster by the first client based on a custom live broadcast transmission protocol KTMP, the KTMP is a transmission protocol for a one-time handshake process, and the source station cluster is composed of multiple source stations; the processed stream sent by the source station cluster is received by the second client based on the KTMP, the processed stream is the source station cluster sending the live broadcast stream and the user demand information to the edge station cluster based on the KTMP, the edge station cluster processes the live broadcast stream according to the user demand information and generates it, and then sends it to the source station cluster based on the KTMP, and the edge station cluster is composed of multiple edge stations. The process in which the first client sends the live stream and user demand information to the source station cluster through KTMP, the source station cluster sends the live stream and user demand information to the edge station cluster through KTMP, the edge station cluster sends the processed stream to the source station cluster through KTMP, and the second client receives the processed stream sent by the source station cluster through KTMP reduces the number of handshakes in the data transmission handshake stage through KTMP, and completes streaming media data transmission based on KTMP with only one handshake process, reduces the time spent on the handshake process, and reduces transmission delay when transmitting streaming media.

[0085] According to a streaming media transmission method provided by the present disclosure, the first client includes a streaming software development kit SDK; step S12 specifically comprises:

[0086] S121, sending the live streaming code stream and the user demand information to the source station cluster based on the KTMP through the streaming SDK of the first client;

[0087] Specifically, the first client has a built-in streaming SDK, and the live streaming code stream and user demand information can be sent to the source station cluster based on KTMP through the streaming SDK.

[0088] The above-mentioned processing code stream and user demand information are all data. For information about transmitting and / or receiving data based on KTMP, please refer to Figure 2-Figure 3 The descriptions of the relevant contents of Tables 1 to 3 will not be repeated here.

[0089] The present disclosure also provides a streaming media transmission method, which is applied to a source station cluster, wherein the source station cluster is composed of multiple source stations, such as Figure 5 As shown, the method includes:

[0090] S51, receiving a live broadcast code stream and user demand information sent by a first client based on a custom live broadcast transmission protocol KTMP;

[0091] Specifically, the source station cluster can receive the live broadcast stream and user demand information sent by the first client based on KTMP, where KTMP is a transmission protocol for a handshake process.

[0092] S52: Send the live stream and the user demand information to the edge station cluster based on the KTMP;

[0093] Specifically, the source station cluster can send the live stream and user demand information to the edge station cluster based on KTMP, so as to reduce the load of the source station cluster, where the edge station cluster is composed of multiple edge stations.

[0094] S53, receiving a processed code stream sent by the edge station cluster based on the KTMP, where the processed code stream is generated by the edge station cluster processing the live code stream according to the user demand information;

[0095] Specifically, the source station cluster can receive the processed code stream sent by the edge station cluster based on KTMP, and the processed code stream is generated by the edge station cluster by processing the live code stream according to user demand information.

[0096] S54, sending the processed code stream to the second client based on the KTMP;

[0097] Specifically, the source station cluster may send the processed code stream to the second client based on KTMP.

[0098] The above-mentioned processing code stream and user demand information are all data, and sending and receiving are both transmission steps. For information on data transmission based on KTMP, please refer to Figure 2-Figure 3 The descriptions of the relevant contents of Tables 1 to 3 will not be repeated here.

[0099] In the disclosed embodiment, a live stream and user demand information are received from a first client based on a custom live transmission protocol KTMP, the live stream and the user demand information are sent to a side station cluster based on the KTMP, a processed stream is received from the side station cluster based on the KTMP, the processed stream is generated by the side station cluster processing the live stream according to the user demand information, and the processed stream is sent to a second client based on the KTMP. KTMP reduces the number of handshakes in the data transmission handshake phase, and streaming media data transmission is completed based on KTMP with only one handshake process, which reduces the time spent on the handshake process and reduces transmission delays when transmitting streaming media.

[0100] The present disclosure also provides a streaming media transmission method, which is applied to an edge station cluster, wherein the edge station cluster is composed of multiple edge stations, such as Figure 6 As shown, the method includes:

[0101] S61, receiving the live streaming code stream and user demand information sent by the source station cluster based on the custom live streaming transmission protocol KTMP;

[0102] Specifically, the edge station cluster can receive the live stream and user demand information sent by the source station cluster based on KTMP. Wherein, the KTMP is a transmission protocol of a handshake process, and the source station cluster is composed of multiple source stations.

[0103] S62, processing the live stream according to the user demand information to generate a processed stream;

[0104] Specifically, the edge station cluster can process the live stream according to user demand information and generate a processed stream.

[0105] S63, sending the processed code stream to the source station cluster based on the KTMP;

[0106] Specifically, the edge station cluster can send the processed code stream to the source station cluster based on KTMP.

[0107] The above-mentioned processing code stream and user demand information are all data, and sending and receiving are both transmission steps. For information on data transmission based on KTMP, please refer to Figure 2-Figure 3 The descriptions of the relevant contents of Tables 1 to 3 will not be repeated here.

[0108] In the disclosed embodiment, the edge station cluster receives the live stream and user demand information sent by the source station cluster based on KTMP, processes the live stream according to the user demand information, generates a processed stream, and sends the processed stream to the source station cluster based on KTMP. KTMP reduces the number of handshakes in the data transmission handshake phase, and completes streaming media data transmission based on KTMP with only one handshake process, which reduces the time spent on the handshake process and reduces transmission delay when transmitting streaming media.

[0109] According to a streaming media transmission method provided by the present disclosure, the user demand information includes transcoding demand; step S62 may be specifically the following steps:

[0110] S621. Transcode the live stream according to the transcoding requirement in the user requirement information to generate a processed stream.

[0111] Specifically, the edge station cluster can transcode the live stream according to the transcoding requirements in the user demand information to generate a processed stream.

[0112] According to a streaming media transmission method provided by the present disclosure, the user demand information includes a recording demand; step S62 may also include:

[0113] S622: Save the live stream according to the recording requirement in the user requirement information.

[0114] Specifically, the edge station cluster can save the live stream according to the recording requirement in the user requirement information. Step S622 can be performed before step S621 or after step S621.

[0115] The streaming media transmission device provided by the embodiment of the present disclosure is described below. The streaming media transmission device described below and the streaming media transmission method described above can be referred to each other.

[0116] The present disclosure also provides a streaming media transmission device, which is applied to a client side, wherein the client side includes a first client and a second client. Figure 7 Said device comprises:

[0117] A generating unit 71, configured to generate a live broadcast stream and user demand information through the first client;

[0118] A first sending unit 72 is used to send the live broadcast stream and the user demand information to the source station cluster through the first client based on a custom live broadcast transmission protocol KTMP, where the KTMP is a transmission protocol for a one-time handshake process, and the source station cluster is composed of multiple source stations;

[0119] The first receiving unit 73 is used to receive the processed code stream sent by the source station cluster based on the KTMP through the second client.

[0120] Among them, the processed code stream is sent by the source station cluster to the edge station cluster by sending the live code stream and the user demand information, and the edge station cluster processes and generates the live code stream according to the user demand information, and returns the processed code stream to the source station cluster; the source station cluster and the edge station cluster are connected by the custom live broadcast transmission protocol; the edge station cluster is composed of multiple edge stations.

[0121] In the implementation of the present disclosure, a live broadcast stream and user demand information are generated by the first client; the live broadcast stream and the user demand information are sent to the source station cluster by the first client based on a custom live broadcast transmission protocol KTMP, the KTMP is a transmission protocol for a one-time handshake process, and the source station cluster is composed of multiple source stations; the processed stream sent by the source station cluster is received by the second client based on the KTMP, the processed stream is the source station cluster sending the live broadcast stream and the user demand information to the edge station cluster based on the KTMP, the edge station cluster processes the live broadcast stream according to the user demand information and generates it, and then sends it to the source station cluster based on the KTMP, and the edge station cluster is composed of multiple edge stations. The process in which the first client sends the live stream and user demand information to the source station cluster through KTMP, the source station cluster sends the live stream and user demand information to the edge station cluster through KTMP, the edge station cluster sends the processed stream to the source station cluster through KTMP, and the second client receives the processed stream sent by the source station cluster through KTMP reduces the number of handshakes in the data transmission handshake stage through KTMP, and completes streaming media data transmission based on KTMP with only one handshake process, reduces the time spent on the handshake process, and reduces transmission delay when transmitting streaming media.

[0122] According to a streaming media transmission device provided by the present disclosure, the first client includes a streaming software development kit SDK;

[0123] The first sending unit 72 is specifically configured to send the live streaming code stream and the user demand information to the source station cluster based on the KTMP through the streaming SDK of the first client.

[0124] The present disclosure also provides a streaming media transmission device, which is applied to a source station cluster, wherein the source station cluster is composed of multiple source stations, such as Figure 8 Said device comprises:

[0125] The second receiving unit 81 is used to receive the live broadcast stream and user demand information sent by the first client based on the custom live broadcast transmission protocol KTMP, where the KTMP is a transmission protocol for a handshake process;

[0126] A second sending unit 82 is used to send the live broadcast stream and the user demand information to a side station cluster based on the KTMP, where the side station cluster consists of multiple side stations;

[0127] A third receiving unit 83 is used to receive a processed code stream sent by the edge station cluster based on the KTMP, where the processed code stream is generated by the edge station cluster processing the live code stream according to the user demand information;

[0128] The third sending unit 84 is used to send the processed code stream to the second client based on the KTMP.

[0129] In the disclosed embodiment, a live stream and user demand information are received from a first client based on a custom live transmission protocol KTMP, the live stream and the user demand information are sent to a side station cluster based on the KTMP, a processed stream is received from the side station cluster based on the KTMP, the processed stream is generated by the side station cluster processing the live stream according to the user demand information, and the processed stream is sent to a second client based on the KTMP. KTMP reduces the number of handshakes in the data transmission handshake phase, and streaming media data transmission is completed based on KTMP with only one handshake process, which reduces the time spent on the handshake process and reduces transmission delays when transmitting streaming media.

[0130] The present disclosure also provides a streaming media transmission device, which is applied to an edge station cluster, wherein the edge station cluster is composed of multiple edge stations, such as Fig. 9 Said device comprises:

[0131] A fourth receiving unit 91 is used to receive a live stream and user demand information sent by a source station cluster based on a custom live transmission protocol KTMP, wherein the KTMP is a transmission protocol of a one-time handshake process, and the source station cluster is composed of multiple source stations;

[0132] The processing unit 92 is used to process the live stream according to the user demand information to generate a processed stream;

[0133] The fourth sending unit 93 sends the processed code stream to the source station cluster based on the KTMP.

[0134] In the disclosed embodiment, the edge station cluster receives the live stream and user demand information sent by the source station cluster based on KTMP, processes the live stream according to the user demand information, generates a processed stream, and sends the processed stream to the source station cluster based on KTMP. KTMP reduces the number of handshakes in the data transmission handshake phase, and completes streaming media data transmission based on KTMP with only one handshake process, which reduces the time spent on the handshake process and reduces transmission delay when transmitting streaming media.

[0135] According to a streaming media transmission device provided by the present disclosure, the user demand information includes transcoding demand;

[0136] The processing unit 92 is specifically configured to transcode the live stream according to the transcoding requirement in the user requirement information to generate a processed stream.

[0137] According to a streaming media transmission device provided by the present disclosure, the user demand information also includes a recording demand;

[0138] The processing unit 92 is further configured to save the live stream according to the recording requirement in the user requirement information.

[0139] Fig.10 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.10 As shown, the electronic device may include: a processor (processor) 1010, a communication interface (Communications Interface) 1020, a memory (memory) 830 and a communication bus 1040, wherein the processor 1010, the communication interface 1020, and the memory 1030 communicate with each other through the communication bus 1040. The processor 1010 can call the logic instructions in the memory 1030 to execute the streaming media transmission method, which is applied to the client side, and the client side includes a first client and a second client. The method includes: generating a live broadcast stream and user demand information through the first client; sending the live broadcast stream and the user demand information to the source station cluster based on a custom live broadcast transmission protocol KTMP through the first client, and the KTMP is a transmission protocol for a handshake process; receiving the processed stream sent by the source station cluster based on the KTMP through the second client, wherein the processed stream is sent by the source station cluster to the edge station cluster by sending the live broadcast stream and the user demand information to the edge station cluster by the source station cluster, and the live broadcast stream is processed and generated by the edge station cluster according to the user demand information, and the processed stream is returned to the source station cluster; the source station cluster and the edge station cluster are connected in communication through the custom live broadcast transmission protocol.

[0140] The processor 1010 can also call the logic instructions in the memory 1030 to execute the streaming media transmission method, which is applied to the source station cluster. The method includes: receiving the live broadcast stream and user demand information sent by the first client based on the custom live broadcast transmission protocol KTMP, and the KTMP is a transmission protocol for a handshake process; sending the live broadcast stream and the user demand information to the edge station cluster based on the KTMP; receiving the processed stream sent by the edge station cluster based on the KTMP, and the processed stream is generated by the edge station cluster processing the live broadcast stream according to the user demand information; sending the processed stream to the second client based on the KTMP.

[0141] The processor 1010 can also call the logic instructions in the memory 1030 to execute the streaming media transmission method, which is applied to the edge station cluster. The method includes: receiving the live broadcast stream and user demand information sent by the source station cluster based on the custom live broadcast transmission protocol KTMP, where the KTMP is a transmission protocol for a handshake process; processing the live broadcast stream according to the user demand information to generate a processed stream; and sending the processed stream to the source station cluster based on the KTMP.

[0142] In addition, the logic instructions in the above-mentioned memory 1030 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the embodiment of the present disclosure is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0143] On the other hand, the present disclosure also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the streaming media transmission method provided by the above methods, which is applied to the client side, and the client side includes a first client and a second client. The method includes: generating a live stream and user demand information through the first client; sending the live stream and the user demand information to the source station cluster based on a custom live transmission protocol KTMP through the first client, and the KTMP is a transmission protocol for a handshake process; receiving a processed stream sent by the source station cluster through the second client based on the KTMP, and the processed stream is sent by the source station cluster through the source station cluster. The live stream and the user demand information are sent to the edge station cluster, and the edge station cluster processes the live stream according to the user demand information to generate it, and returns the processed stream to the source station cluster; the source station cluster and the edge station cluster are connected in communication through the custom live transmission protocol.

[0144] The computer program includes program instructions. When the program instructions are executed by the computer, the computer can also execute the streaming media transmission method provided by the above-mentioned methods, which is applied to the source station cluster. The method includes: receiving a live broadcast stream and user demand information sent by a first client based on a custom live broadcast transmission protocol KTMP, wherein the KTMP is a transmission protocol for a one-time handshake process; sending the live broadcast stream and the user demand information to the edge station cluster based on the KTMP; receiving a processed stream sent by the edge station cluster based on the KTMP, wherein the processed stream is generated by the edge station cluster processing the live broadcast stream according to the user demand information; and sending the processed stream to the second client based on the KTMP.

[0145] The computer program includes program instructions. When the program instructions are executed by the computer, the computer can also execute the streaming media transmission method provided by the above methods, which is applied to the edge station cluster. The method includes: receiving the live broadcast code stream and user demand information sent by the source station cluster based on the custom live broadcast transmission protocol KTMP, where the KTMP is a transmission protocol for a one-time handshake process; processing the live broadcast code stream according to the user demand information to generate a processed code stream; and sending the processed code stream to the source station cluster based on the KTMP.

[0146] On the other hand, the present disclosure also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it is implemented to execute the above-mentioned streaming media transmission methods, which are applied to the client side, and the client side includes a first client and a second client. The method includes: generating a live broadcast stream and user demand information through the first client; sending the live broadcast stream and the user demand information to the source station cluster based on a custom live broadcast transmission protocol KTMP through the first client, and the KTMP is a transmission protocol for a handshake process; receiving a processed stream sent by the source station cluster through the second client based on the KTMP, and the processed stream is sent by the source station cluster to the edge station cluster through the source station cluster, and the live broadcast stream and the user demand information are processed and generated by the edge station cluster according to the user demand information, and the processed stream is returned to the source station cluster; the source station cluster and the edge station cluster are connected through the custom live broadcast transmission protocol.

[0147] When the computer program is executed by the processor, it can also be implemented to execute the above-mentioned streaming media transmission methods, which are applied to the source station cluster. The method includes: receiving a live broadcast stream and user demand information sent by a first client based on a custom live broadcast transmission protocol KTMP, wherein the KTMP is a transmission protocol for a one-time handshake process; sending the live broadcast stream and the user demand information to the edge station cluster based on the KTMP; receiving a processed stream sent by the edge station cluster based on the KTMP, wherein the processed stream is generated by the edge station cluster processing the live broadcast stream according to the user demand information; and sending the processed stream to the second client based on the KTMP.

[0148] When the computer program is executed by the processor, it can also be implemented to execute the above-mentioned streaming media transmission methods, which are applied to the edge station cluster. The method includes: receiving the live broadcast code stream and user demand information sent by the source station cluster based on the custom live broadcast transmission protocol KTMP, wherein the KTMP is a transmission protocol for a handshake process; processing the live broadcast code stream according to the user demand information to generate a processed code stream; and sending the processed code stream to the source station cluster based on the KTMP.

[0149] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0150] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0151] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure.

Claims

1. A streaming media transmission method, characterized in that: Applied to a client side, the client side includes a first client and a second client, and the method includes: Generate a live stream and user demand information through the first client; The live stream and the user demand information are sent to the source station cluster through the first client based on the custom live transmission protocol; the processed stream sent by the source station cluster is received through the second client based on the custom live transmission protocol, wherein the processed stream is generated by sending the live stream and the user demand information to the edge station cluster through the source station cluster, and the live stream is processed and generated by the edge station cluster according to the user demand information, and the processed stream is returned to the source station cluster; the source station cluster and the edge station cluster are connected by communication through the custom live transmission protocol; The custom live broadcast transmission protocol is a transmission protocol of a handshake process. In the handshake stage, the first header data is sent through the first network device, and the second network device receives the first header data and returns the second header data to the first network device to complete the handshake; the first network device and the second network device are devices at both ends of the network that perform data transmission based on the custom live broadcast transmission protocol.

2. The streaming media transmission method according to claim 1, characterized in that: The first client includes a streaming software development kit; The step of sending the live streaming code stream and the user demand information to the source station cluster through the first client based on a custom live streaming transmission protocol includes: The live streaming code stream and the user demand information are sent to the source station cluster based on the custom live streaming transmission protocol through the streaming software development kit of the first client.

3. A streaming media transmission method, characterized in that: Applied to a source station cluster, the method includes: Receiving a live streaming code stream and user demand information sent by a first client based on a custom live streaming transmission protocol; Sending the live streaming code stream and the user demand information to the edge station cluster based on the custom live streaming transmission protocol; Receiving a processed code stream sent by the edge station cluster based on the custom live broadcast transmission protocol, wherein the processed code stream is generated by the edge station cluster processing the live broadcast code stream according to the user demand information; Sending the processed code stream to a second client based on the custom live broadcast transmission protocol; The custom live broadcast transmission protocol is a transmission protocol of a handshake process. In the handshake stage, the first header data is sent through the first network device, and the second network device receives the first header data and returns the second header data to the first network device to complete the handshake; the first network device and the second network device are devices at both ends of the network that perform data transmission based on the custom live broadcast transmission protocol.

4. A streaming media transmission method, characterized in that: Applied to the edge station cluster, the method includes: Receive the live stream and user demand information sent by the source station cluster based on the custom live transmission protocol; Processing the live stream according to the user demand information to generate a processed stream; Sending the processed code stream to the source station cluster based on the custom live broadcast transmission protocol; The custom live broadcast transmission protocol is a transmission protocol of a handshake process. In the handshake stage, the first header data is sent through the first network device, and the second network device receives the first header data and returns the second header data to the first network device to complete the handshake; the first network device and the second network device are devices at both ends of the network that perform data transmission based on the custom live broadcast transmission protocol.

5. The streaming media transmission method according to claim 4, characterized in that: The user demand information includes transcoding demand; The step of processing the live stream according to the user demand information to generate a processed stream includes: The live stream is transcoded according to the transcoding requirement in the user requirement information to generate a processed stream.

6. The streaming media transmission method according to claim 5, characterized in that: The user demand information also includes recording demand; The step of processing the live stream according to the user demand information to generate a processed stream also includes: The live streaming code stream is saved according to the recording requirement in the user requirement information.

7. A streaming media transmission device, characterized in that: Applied to a client side, the client side includes a first client and a second client, and the device includes: A generating unit, configured to generate a live broadcast stream and user demand information through the first client; A first sending unit, configured to send the live broadcast code stream and the user demand information to a source station cluster through the first client based on a custom live broadcast transmission protocol; A first receiving unit is used to receive a processed code stream sent by the source station cluster based on the custom live broadcast transmission protocol through the second client, wherein the processed code stream is generated by sending the live broadcast code stream and the user demand information to the edge station cluster through the source station cluster, and the edge station cluster processes the live broadcast code stream according to the user demand information, and returns the processed code stream to the source station cluster; the source station cluster and the edge station cluster are connected by communication through the custom live broadcast transmission protocol; The custom live broadcast transmission protocol is a transmission protocol of a handshake process. In the handshake stage, the first header data is sent through the first network device, and the second network device receives the first header data and returns the second header data to the first network device to complete the handshake; the first network device and the second network device are devices at both ends of the network that perform data transmission based on the custom live broadcast transmission protocol.

8. A streaming media transmission device, characterized in that: Applied to a source station cluster, the device includes: The second receiving unit is used to receive the live broadcast code stream and user demand information sent by the first client based on the custom live broadcast transmission protocol; A second sending unit, configured to send the live broadcast code stream and the user demand information to the edge station cluster based on the custom live broadcast transmission protocol; A third receiving unit is used to receive a processed code stream sent by the edge station cluster based on the custom live broadcast transmission protocol, where the processed code stream is generated by the edge station cluster processing the live broadcast code stream according to the user demand information; A third sending unit, configured to send the processed code stream to a second client based on the custom live broadcast transmission protocol; The custom live broadcast transmission protocol is a transmission protocol of a handshake process. In the handshake stage, the first header data is sent through the first network device, and the second network device receives the first header data and returns the second header data to the first network device to complete the handshake; the first network device and the second network device are devices at both ends of the network that perform data transmission based on the custom live broadcast transmission protocol.

9. A streaming media transmission device, characterized in that: Applied to edge station cluster, the device includes: A fourth receiving unit, configured to receive a live streaming code stream and user demand information sent by the source station cluster based on a custom live streaming transmission protocol; A processing unit, used to process the live stream according to the user demand information to generate a processed stream; A fourth sending unit, sending the processed code stream to the source station cluster based on the custom live broadcast transmission protocol; The custom live broadcast transmission protocol is a transmission protocol of a handshake process. In the handshake stage, the first header data is sent through the first network device, and the second network device receives the first header data and returns the second header data to the first network device to complete the handshake. The first network device and the second network device are devices at both ends of the network that perform data transmission based on the custom live broadcast transmission protocol.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the streaming media transmission method according to any one of claims 1 to 6 are implemented.

11. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the streaming media transmission method as claimed in any one of claims 1 to 6 are implemented.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the streaming media transmission method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Transcoding method, server and computer readable storage medium

    CN109963169A

  • Connection establishment method and device, electronic equipment and storage medium

    CN110830460A

  • Live broadcast system for online and offline synchronous teaching

    CN111669606A

  • Virtual live broadcast data transmission method and device, and storage medium

    CN112004101A

  • Transcoding method and device, electronic equipment and storage medium

    CN112073727A