A live streaming transmission method and device, and storage medium

By adding traceability marks to the live stream and recording at the flow node, the problem of low efficiency in the live stream transmission path determination in the prior art is solved, fast and accurate path determination is achieved, and the efficiency of live stream transmission is improved.

CN115866281BActive Publication Date: 2025-05-16JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211468376.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-22
Publication Date
2025-05-16
Estimated Expiration
2042-11-22

AI Technical Summary

Technical Problem

In the prior art, determining the live streaming transmission path is low, mainly because the log files of each node need to be detected one by one, the number of tasks is large and the log files are large, resulting in inefficiency.

Method used

By adding traceability identifiers to the live stream at the push stream application end and recording and transmitting these identifiers in each node flowing through, the live streaming stream carries its information through the node during transmission, thereby quickly determining the transmission path of the live stream at the receiving end.

Benefits of technology

Improve the efficiency of determining live streaming paths, reduce dependence on node log files, and significantly improve the speed and accuracy of path determination.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115866281B_ABST
    Figure CN115866281B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a live streaming transmission method and device, and a storage medium, including: obtaining a first live streaming transmitted by a streaming push application end through at least one first node; the first live streaming carries a traceability mark, and the traceability mark is used to identify at least one node through which the first live streaming flows; the first live streaming is a live streaming obtained after the first node of the at least one first node adds a traceability mark to a second live streaming generated by the streaming push application end; obtaining the traceability mark from the first live streaming, and recording the traceability mark; in the case of receiving a request for obtaining the first live streaming transmitted by a streaming pull application end through at least one second node, transmitting the first live streaming to the streaming pull application end through at least one second node; the traceability mark is also used to identify at least one second node through which the first live streaming flows.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a live streaming transmission method and device, and a storage medium. Background Art

[0002] From the host pushing the stream upstream to the audience pulling the stream downstream for viewing, the live stream will pass through a series of host nodes of different roles (CDN streaming edge node ->…-> CDN viewing edge), where each role is a cluster. Therefore, the specific nodes through which the live stream flows are unclear, and it is necessary to clarify the specific nodes through which the live stream flows.

[0003] In the related technology, in order to improve the service quality of live broadcast services, it is necessary to monitor the service quality of live broadcast services. First of all, it is necessary to understand the specific nodes through which the live broadcast stream flows. The conventional method is to detect in turn whether there is processing information of the live broadcast stream in the log file of each node in each cluster that transmits the live broadcast stream, so as to determine whether the node has transmitted the live broadcast stream. Since each node processes a large amount of tasks and generates many log files, it is inefficient to determine whether the live broadcast stream flows through the node based on the log file, which reduces the efficiency of determining the live broadcast stream transmission path. Summary of the invention

[0004] In order to solve the above technical problems, the embodiments of the present application hope to provide a live streaming transmission method and device, and a storage medium, which can improve the efficiency of determining the live streaming transmission path.

[0005] The technical solution of this application is implemented as follows:

[0006] The present application provides a live streaming transmission method, the live streaming transmission method comprising:

[0007] Acquire a first live stream transmitted by a streaming application end through at least one first node; the first live stream carries a tracing identifier, and the tracing identifier is used to identify the at least one node through which the first live stream flows; the first live stream is a live stream obtained by adding a tracing identifier to a second live stream generated by the streaming application end by a first node among the at least one first node;

[0008] Acquire the traceability identifier from the first live stream, and record the traceability identifier;

[0009] When a request for obtaining a first live stream transmitted by a stream pulling application via at least one second node is received, the first live stream is transmitted to the stream pulling application via the at least one second node; the traceability identifier is also used to identify the at least one second node through which the first live stream flows.

[0010] The embodiment of the present application provides a live streaming transmission device, the device comprising:

[0011] The acquisition unit is used to acquire a first live stream transmitted by a streaming application end through at least one first node; the first live stream carries a tracing mark, and the tracing mark is used to identify the at least one node through which the first live stream flows; the first live stream is a live stream obtained by adding a tracing mark to a second live stream generated by the streaming application end at the first node of the at least one first node; the tracing mark is acquired from the first live stream,

[0012] A recording unit, used to record the traceability identification;

[0013] A transmission unit is used to transmit the first live stream to the streaming application end through the at least one second node upon receiving a request for obtaining the first live stream transmitted by the streaming application end through the at least one second node; the traceability identifier is also used to identify the at least one second node through which the first live stream flows.

[0014] The embodiment of the present application provides a live streaming transmission device, the device comprising:

[0015] A memory, a processor and a communication bus, wherein the memory communicates with the processor via the communication bus, and the memory stores a live streaming transmission program executable by the processor. When the live streaming transmission program is executed, the live streaming transmission method described above is executed by the processor.

[0016] An embodiment of the present application provides a storage medium on which a computer program is stored, which is applied to a live streaming transmission device, and is characterized in that when the computer program is executed by a processor, the above-mentioned live streaming transmission method is implemented.

[0017] The embodiments of the present application provide a live streaming transmission method and device, and a storage medium. The live streaming transmission method includes: obtaining a first live streaming transmitted by a streaming push application end through at least one first node; the first live streaming carries a traceability mark, and the traceability mark is used to identify at least one node through which the first live streaming flows; the first live streaming is a live streaming obtained by adding a traceability mark to a second live streaming generated by a streaming push application end by a first node among the at least one first node; obtaining the traceability mark from the first live streaming, and recording the traceability mark; in the case of receiving a request for obtaining the first live streaming transmitted by a streaming pull application end through at least one second node, transmitting the first live streaming to the streaming pull application end through at least one second node; the traceability mark is also used to identify at least one second node through which the first live streaming flows. By adopting the above-mentioned method implementation scheme, when the first live stream flows through at least one first node, a live stream transmission device and at least one second node, by writing the traceability identifier carried in the first live stream into at least one first node, the live stream transmission device and at least one second node, that is, using the traceability identifier to mark the nodes passed by when the first live stream is transmitted from the push application end to the pull application end, when tracing the first live stream, the node transmitting the first live stream can be quickly determined directly according to the traceability identifier in the node, so as to quickly determine the transmission path of the first live stream according to the node transmitting the first live stream, that is, the efficiency of determining the live stream transmission path is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A schematic diagram of a live streaming transmission process provided in an embodiment of the present application;

[0019] Figure 2 An exemplary live streaming transmission block diagram provided for an embodiment of the present application;

[0020] Figure 3 A schematic diagram of related information of a connect of an exemplary NetConnection provided in an embodiment of the present application;

[0021] Figure 4 A schematic diagram of the structure of a live streaming transmission device provided in an embodiment of the present application Figure 1 ;

[0022] Figure 5 A schematic diagram of the structure of a live streaming transmission device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.

[0024] The embodiment of the present application provides a live streaming transmission method, which is applied to a live streaming transmission device. Figure 1 A flow chart of a live streaming transmission method provided in an embodiment of the present application is as follows: Figure 1 As shown, the live streaming transmission method may include:

[0025] S101, obtaining a first live stream transmitted by a streaming application end through at least one first node; the first live stream carries a tracing identifier, and the tracing identifier is used to identify at least one node through which the first live stream flows; the first live stream is a live stream obtained by adding a tracing identifier to a second live stream generated by a first node among the at least one first node.

[0026] A live streaming transmission method provided in an embodiment of the present application is suitable for a scenario in which transmission fault detection of a live streaming is performed.

[0027] In the embodiments of the present application, the live streaming transmission device can be implemented in various forms. For example, the live streaming transmission device described in the present application may include devices such as mobile phones, cameras, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, and devices such as digital TVs, desktop computers, and servers.

[0028] In the embodiment of the present application, the streaming application end is an application end used by the anchor for live broadcasting. The streaming application end may be an application program (Application, APP).

[0029] It should be noted that the second live stream is the live stream collected by the anchor during the live broadcast.

[0030] It should be noted that the streaming application end is an application end used by viewers when watching live broadcasts. The streaming application end may also be an APP.

[0031] In the embodiment of the present application, from the host's upstream streaming to the audience's downstream streaming, a live stream (such as the first live stream) will pass through a series of host nodes including: Content Delivery Network (CDN) streaming edge node -> source station forwarding -> transcoding / recording / screenshot -> CDN transit -> CDN secondary cache -> CDN viewing edge. Among them, each role is a cluster, that is, the CDN streaming edge node is a cluster, including multiple CDN streaming edge nodes; source station forwarding is also a cluster, including multiple source station forwarding nodes; transcoding / recording / screenshot is a cluster, including multiple transcoding / recording / screenshot nodes; CDN transit is a cluster, including multiple CDN transit nodes; CDN secondary cache is a cluster, including multiple CDN secondary cache nodes; CDN viewing edge is a cluster, including multiple CDN viewing edge nodes.

[0032] It should be noted that the live streaming transmission device can be any CDN transit node in the CDN transit cluster.

[0033] For example, Figure 2 As shown, when the anchor is broadcasting live, the second live stream is generated on the push stream application end, and the CDN push stream edge node adds a traceability mark in the second live stream to obtain the first live stream, and transmits the first live stream to the CDN transit node (live stream transmission device) through the live source station forwarding node and transcoding / recording / screenshot node (live source station screenshot recording node, live source station transcoding node, transcoding script). When watching the anchor's live broadcast, the audience needs to obtain the first live stream in the CDN transit node through the CDN pull stream edge node and the CDN secondary cache node, and transmit the first live stream to the pull stream application end for users to watch the live broadcast.

[0034] In the embodiment of the present application, the traceability mark can be a mark in character form, or a mark in digital form; the traceability mark can also be a mark in other forms; the specific traceability mark can be determined according to actual conditions, and the embodiment of the present application does not limit this.

[0035] Exemplarily, the traceability identifier may be TraceId. The data type of the access and mobility management function (AMF) is number.

[0036] In the embodiment of the present application, the traceability identifier is a unique identifier that identifies the first live stream.

[0037] In the embodiment of the present application, the first node is any node in the CDN streaming edge node cluster.

[0038] In the embodiment of the present application, the traceability identifier is an identifier determined according to the target connection identifier of the first node.

[0039] It should be noted that the target connection identifier of the first node may be an identifier of the connection relationship between the first node and the streaming application end, that is, the connection relationship identifier of the left connection of the first node.

[0040] It should be noted that the connection relationship between any two nodes corresponds to the connection identifier one by one, that is, one connection relationship corresponds to one connection identifier.

[0041] Exemplarily, the live stream s is transmitted from node A to node C via node B, and the left connection of node B is the connection relationship between node A and node B, and the connection relationship between node A and node B has one and only one connection identifier.

[0042] In the embodiment of the present application, the method for the live streaming transmission device to determine the traceability identifier according to the target connection identifier can be to use the target connection identifier as the traceability identifier; or it can be to use the configuration relationship between the preset connection identifier and the preset traceability identifier to determine the traceability identifier corresponding to the target connection identifier; the specific method for determining the traceability identifier according to the target connection identifier can be determined according to actual conditions, and the embodiment of the present application is not limited to this.

[0043] It should be noted that the configuration relationship between the preset connection identifier and the preset traceability identifier can be a relationship configured in the live streaming transmission device; the configuration relationship between the preset connection identifier and the preset traceability identifier can also be a relationship transmitted from other devices to the live streaming transmission device; the specific way in which the live streaming transmission device obtains the configuration relationship between the preset connection identifier and the preset traceability identifier can be determined according to actual conditions, and the embodiments of the present application do not limit this.

[0044] It can be understood that by determining the target connection identifier of the first node, the target connection identifier is an identifier that uniquely identifies the connection relationship between nodes. A tracing identifier can be uniquely determined using the target connection identifier, and the first live stream is identified using the unique tracing identifier, so that the nodes through which the first live stream passes can be traced throughout according to the tracing identifier, that is, the nodes through which the first live stream passes can be determined, so that the transmission path of the first live stream can be quickly determined according to the nodes through which the first live stream passes, thereby improving the efficiency of determining the transmission path of the live stream.

[0045] In an embodiment of the present application, the live stream transmission device obtains a traceability identifier from the first live stream and records the traceability identifier, which also includes: when the live stream transmission device has a connection identifier acquisition request and a parent connection identifier acquisition request in the first live stream, the live stream transmission device obtains the first connection identifier of the live stream transmission device and the first parent connection identifier corresponding to the first connection identifier; writes the first connection identifier and the first parent connection identifier into the first live stream to obtain a third live stream.

[0046] It should be noted that the first live stream includes at least one second connection identifier and at least one second parent connection identifier corresponding to at least one first node.

[0047] In the embodiment of the present application, the first connection identifier can be a connection ID or session ID that identifies the first live stream in the CDN transit node (live stream transmission device), which is used to uniquely locate a connection session of the first live stream in a host (node). The first parent connection identifier is a connection identifier that identifies the parent node of the first live stream, and is mainly used to draw a topological trend diagram of the first live stream.

[0048] It should be noted that if live stream a is transmitted from host A (node) to host B (node), the connection identifier of host A will be adjusted to the parent connection identifier of host B, and the topology diagram will show that live stream a is transmitted from host A to host B.

[0049] It should be noted that if a live stream flows through two hosts, there will be a corresponding connection identifier at both ends of the two hosts.

[0050] Exemplarily, the connection identifier may be NodeId, and the AMF data type may be number. The parent connection identifier may be ParentNodeId, and the AMF data type may be number.

[0051] In an embodiment of the present application, the live stream transmission device transmits the first live stream to the stream pulling application end through at least one second node, and the live stream transmission device transmits the third live stream to the stream pulling application end through at least one second node.

[0052] It should be noted that the third live stream at the stream pulling application end includes at least one third connection identifier and at least one third parent connection identifier corresponding to at least one second node.

[0053] In an embodiment of the present application, the live streaming transmission device can also determine the first target second node that receives the first live streaming acquisition request transmitted by the streaming application end through at least one second node, determine the target third connection identifier of the target second node, and determine the first tracing identifier based on the target third connection identifier; and write the first tracing identifier into the first live streaming acquisition request to obtain a second request. The second request obtains the third live streaming from the CDN transit node in the CDN transit cluster that stores the third live streaming through any CDN secondary cache node in the CDN secondary cache cluster. The third live streaming is transmitted from the CDN transit node in the CDN transit cluster that stores the third live streaming to the streaming application end through any CDN secondary cache node in the CDN secondary cache cluster and any CDN viewing edge node in the CDN viewing edge cluster.

[0054] It should be noted that the target second node may be the first node among the at least one second node that receives the first live stream acquisition request. Specifically, the target second node is any node in the CDN viewing edge cluster.

[0055] It should be noted that the first connection identifier of the target second node may be an identifier of the connection relationship between the target second node and the stream pulling application end, that is, the connection relationship identifier of the right connection of the target second node.

[0056] Exemplarily, the first live stream acquisition request s' is transmitted from node A to node C via node B, and the right connection of node B is the connection relationship between node B and node C. Moreover, the connection relationship between node B and node C has one and only one connection identifier.

[0057] It should be noted that if the target second node generates a first tracing identifier when receiving a request to obtain the first live stream transmitted by the pull stream application end, and the first node among at least one first node generates a tracing identifier when receiving the first live stream transmitted by the push stream application end, then in the node (live stream transmission device) storing the first live stream in the CDN transit cluster, the first tracing identifier carried in the second request will be associated with the tracing identifier in the first live stream (i.e., a corresponding relationship between the first tracing identifier and the tracing identifier will be established). Or in the node storing the first live stream in the CDN secondary cache cluster, the first tracing identifier carried in the second request will be associated with the tracing identifier in the first live stream.

[0058] It should also be noted that the upstream trace id (traceability identifier) ​​and the downstream trace id (first traceability identifier) ​​are associated in the three stages of "RTMP Send Meta", "RTMP Send Audio Header" and "RTMP Send Video Header" of the Real Time Messaging Protocol (RTMP). Normally, only "RTMP Send Meta" needs to be matched, but there are also cases where some surveillance cameras do not send meta information when pushing streams. In this case, it is necessary to match "RTMP Send Audio Header" or "RTMP Send Video Header", that is, to associate the traceability identifier and the first traceability identifier in the "RTMP SendAudio Header" or "RTMP Send Video Header" stages.

[0059] In the embodiment of the present application, the live streaming transmission device also includes an RTMP module. The RTMP module is provided with various interaction stages of the RTMP protocol. In the RTMP protocol, the most suitable stage for introducing the trace id is the connect stage of NetConnction. The trace id and other information are added to the Command Object (AMF data), thereby passing the newly added trace id and other parameters to the server through the AMF sub-object. The RTMP protocol document describes the relevant information about the connect of NetConnction, such as Figure 3 As shown in the figure: If a trace id sub-object is added in the parsing of the AMF Connect phase, a sub-object with the same trace id is also added in the encapsulation of the RelaySend Connect phase. In this way, the relevant information about the trace id can be transmitted in each service, thereby realizing the trace tracking function.

[0060] In an embodiment of the present application, the live streaming transmission device also includes an RTMP module, and the RTMP module is provided with an HTTP protocol. The trace function of the HTTP protocol is mainly implemented through the header field of the http header, and servers at all levels transmit trace id information through the trace header field in the http header.

[0061] In an embodiment of the present application, the live stream transmission device writes the first connection identifier and the first parent connection identifier into the first live stream to obtain the third live stream. When the third live stream is transmitted to the first node of at least one second node, the first third connection identifier and the first third parent connection identifier are obtained in the first node of at least one second node according to the connection identifier acquisition request and the parent connection identifier acquisition request in the third live stream; and the first third connection identifier and the first third parent connection identifier are written into the third live stream until the third live stream flows through each node of at least one second node, and the corresponding at least one third connection identifier and at least one third parent connection identifier are obtained from each node, and the at least one third connection identifier and the at least one third parent connection identifier are written into the third live stream, and the third live stream is transmitted to the stream pulling application end.

[0062] It can be understood that since the first live stream carries a connection identifier acquisition request and a parent connection identifier acquisition request, the corresponding connection identifiers and parent connection identifiers of these nodes can be obtained from at least one first node transmitting the first live stream, a live stream transmission device, and at least one second node according to the connection identifier acquisition request and the parent connection identifier acquisition request, so that the third live stream flowing to the stream pulling application end carries at least one second connection identifier and at least one second parent connection identifier corresponding to at least one first node, a first connection identifier and a first parent connection identifier corresponding to the first connection identifier, at least one third connection identifier and at least one third parent connection identifier corresponding to at least one second node, so that the transmission path of the first live stream can be quickly determined according to multiple connection identifiers (at least one second connection identifier, a first connection identifier, and at least one third connection identifier) ​​and multiple parent connection identifiers (at least one second parent connection identifier, a first parent connection identifier, and at least one third parent connection identifier) ​​in the third live stream, thereby improving the efficiency of determining the live stream transmission path.

[0063] In the embodiment of the present application, the traceability identifier is a traceability identifier generated by using a preset traceability identifier generation strategy to generate a unique traceability identifier corresponding to the first live stream.

[0064] In an embodiment of the present application, the preset traceability identification generation strategy may be a strategy that can be configured in the live streaming transmission device; the preset traceability identification generation strategy may also be a strategy transmitted from other devices to the live streaming transmission device; the specific way in which the live streaming transmission device obtains the preset traceability identification generation strategy may be determined based on actual conditions, and the embodiment of the present application does not limit this.

[0065] It should be noted that the preset traceability identification generation strategy can be a strategy for generating traceability identification in the prior art; the preset traceability identification generation strategy can also be a strategy for generating traceability identification that does not exist in the prior art and is configured for the live streaming transmission device; the specific preset traceability identification generation strategy can be determined according to actual conditions, and the embodiments of the present application are not limited to this.

[0066] Exemplarily, the preset traceability identifier generation strategy may be a TraceId generation strategy.

[0067] In an embodiment of the present application, when the first node among at least one first node receives the second live stream transmitted by the streaming application end, it directly uses the preset traceability identifier generation strategy to generate a traceability identifier that uniquely identifies the second live stream, and then adds the traceability identifier to the second live stream to obtain the first live stream. Alternatively, when the first node among at least one first node receives the second live stream transmitted by the streaming application end, it obtains the target connection identifier of the first node, and uses the target connection identifier as the traceability identifier, and then adds the traceability identifier to the second live stream to obtain the first live stream. Wherein, before receiving the first live stream, if other traceability identifiers have been determined based on the target connection identifier of the first node, it is considered that the target connection identifier is unavailable, and the target connection identifier is no longer used to determine the traceability identifier; the preset traceability identifier generation strategy can be used to generate a traceability identifier that uniquely identifies the second live stream, and then the traceability identifier is added to the second live stream to obtain the first live stream.

[0068] In an embodiment of the present application, the target second node can also generate a first tracing identifier that uniquely identifies the first live stream acquisition request by using a preset tracing identifier generation strategy when receiving the first live stream acquisition request transmitted by the stream pulling application end; and write the first tracing identifier into the first live stream acquisition request to obtain a second request. The second request obtains the third live stream from the node storing the third live stream in the CDN transit cluster through any node in the CDN secondary cache cluster. The third live stream is transmitted from the node storing the third live stream in the CDN transit cluster to the stream pulling application end through any node in the CDN secondary cache cluster.

[0069] It can be understood that a preset traceability identifier generation strategy is used to generate a traceability identifier that uniquely identifies the first live stream, and the first live stream is identified by using the unique traceability identifier, so that the nodes through which the first live stream passes can be traced throughout according to the traceability identifier, that is, the nodes through which the first live stream passes can be determined, so that the transmission path of the first live stream can be quickly determined according to the nodes through which the first live stream passes, thereby improving the efficiency of determining the transmission path of the live stream.

[0070] In an embodiment of the present application, when the first node among at least one first node receives an instruction to track and sample the second live stream, it adds a sampling identifier to the second live stream, where the identifier value of the sampling identifier is a first preset value, and then adds a tracing identifier to the information header of the second live stream to obtain the first live stream.

[0071] In the embodiment of the present application, before adding the sampling identifier to the second live stream, the first node of the at least one first node also obtains the sampling identifier.

[0072] In an embodiment of the present application, the sampling identifier may be an identifier configured in the first node of at least one first node; the sampling identifier may also be an identifier received before receiving an instruction to track and sample the first live stream; the specific manner in which the first node of at least one first node obtains the sampling identifier may be determined based on actual conditions, and the embodiment of the present application does not limit this.

[0073] In the embodiment of the present application, the sampling identifier may be an identifier in the form of characters; the sampling identifier may also be an identifier in the form of numbers; the sampling identifier may also be an identifier in other forms; the specific sampling identifier is determined according to actual conditions, and the embodiment of the present application does not limit this.

[0074] Exemplarily, the sampling flag may be Sampled, and the AMF data type may be Boolean.

[0075] In an embodiment of the present application, the second live stream may also be a live stream configured with a sampling identifier. The first node of at least one first node adds a tracing identifier in the second live stream to obtain the first live stream. The process may also be that upon receiving an instruction to track and sample the second live stream, the identification value of the sampling identifier in the second live stream is set to a first preset value; and then the tracing identifier is added to the second live stream to obtain the first live stream.

[0076] It should be noted that the first preset value is 1.

[0077] It should also be noted that before the live streaming transmission device adjusts the identification value of the sampling identification to the first preset value, the identification value of the sampling identification is 1.

[0078] In an embodiment of the present application, when the first node among at least one first node receives an instruction to debug the second live stream, it adds a debugging identifier to the second live stream, sets the identifier value of the debugging identifier in the second live stream to a first preset value, and then adds a tracing identifier to the second live stream information header to obtain the first live stream.

[0079] In an embodiment of the present application, the live stream transmission device adds a debugging identifier to the second live stream, and the live stream transmission device also obtains the debugging identifier.

[0080] In an embodiment of the present application, the debugging identifier may be an identifier configured in the first node of at least one first node; the debugging identifier may also be an identifier transmitted by other devices to the first node of at least one first node; the specific manner in which the first node of at least one first node obtains the debugging identifier may be determined based on actual conditions, and the embodiment of the present application does not limit this.

[0081] In the embodiments of the present application, the debugging identifier can be an identifier in character form; the debugging identifier can also be an identifier in digital form; the debugging identifier can also be an identifier in other forms; the specific debugging identifier is determined based on actual conditions, and the embodiments of the present application do not limit this.

[0082] Exemplarily, the debugging flag may be Flags, and the AMF data type is Boolean.

[0083] In an embodiment of the present application, the second live stream may also be a live stream configured with a debugging identifier. The first node of at least one first node adds a tracing identifier in the second live stream to obtain the first live stream. The process may also be that when a debugging instruction for the second live stream is received, the identifier value of the debugging identifier in the second live stream is set to a first preset value, and then a tracing identifier is added to the second live stream to obtain the first live stream.

[0084] It should be noted that, before the live streaming transmission device adjusts the identification value of the debugging identification to the first preset value, the identification value of the debugging identification is 0.

[0085] In the embodiment of the present application, the process in which the live stream transmission device adds a tracing mark in the second live stream to obtain the first live stream can also be: when the live stream transmission device receives a tracking sampling instruction for the second live stream and a debugging instruction for the second live stream, the sampling mark is added to the second live stream to obtain the first updated live stream; and the tracing mark and the debugging mark are added to the first updated live stream to obtain the first live stream. It can also be that when the live stream transmission device receives a tracking sampling instruction for the second live stream and a debugging instruction for the second live stream, the debugging mark is added to the first live stream to obtain the second updated live stream; and the sampling mark and the tracing mark are added to the second updated live stream to obtain the first live stream. The specific process can be determined according to the actual situation, and the embodiment of the present application does not limit this.

[0086] S102: Obtain a traceability identifier from the first live stream, and record the traceability identifier.

[0087] In an embodiment of the present application, after the live stream transmission device obtains the first live stream transmitted by the streaming application terminal through at least one first node, the live stream transmission device can obtain a traceability identifier from the first live stream and record the traceability identifier.

[0088] In an embodiment of the present application, the live streaming transmission device may record the traceability identifier in a memory, or the live streaming transmission device may record the traceability identifier in a disk. The specific location where the live streaming transmission device records the traceability identifier may be determined based on actual conditions, and the embodiment of the present application does not limit this.

[0089] S103: upon receiving a request for obtaining a first live stream transmitted by a stream pulling application terminal through at least one second node, transmitting the first live stream to the stream pulling application terminal through at least one second node; the traceability identifier is also used to identify at least one second node through which the first live stream flows.

[0090] In an embodiment of the present application, after the live stream transmission device records the traceability identifier, upon receiving a first live stream acquisition request transmitted by the stream pulling application end through at least one second node, the live stream transmission device transmits the first live stream to the stream pulling application end through at least one second node.

[0091] In an embodiment of the present application, based on a method of determining a transmission path of the first live stream according to at least one first node, a live stream transmission device, and at least one second node, the transmission path of the first live stream can be drawn for the live stream transmission device according to a node cluster to which at least one first node, the live stream transmission device, and at least one second node belong.

[0092] It can be understood that when the first live stream flows through at least one first node, a live stream transmission device and at least one second node, by writing the traceability identifier carried in the first live stream into at least one first node, the live stream transmission device and at least one second node, that is, using the traceability identifier to mark the nodes passed by when the first live stream is transmitted from the push application end to the pull application end, when tracing the first live stream, the node transmitting the first live stream can be quickly determined directly according to the traceability identifier in the node, so as to quickly determine the transmission path of the first live stream according to the node transmitting the first live stream, that is, the efficiency of determining the live stream transmission path is improved.

[0093] Based on the same inventive concept as the above-mentioned live streaming transmission method, the embodiment of the present application provides a live streaming transmission device 1, corresponding to a live streaming transmission method; Figure 4 A schematic diagram of the structure of a live streaming transmission device provided in an embodiment of the present application Figure 1 , the live streaming transmission device 1 may include:

[0094] The acquisition unit 11 is used to acquire a first live stream transmitted by a streaming application end through at least one first node; the first live stream carries a tracing mark, and the tracing mark is used to identify the at least one node through which the first live stream flows; the first live stream is a live stream obtained by adding a tracing mark to a second live stream generated by the streaming application end at the first node of the at least one first node; the tracing mark is acquired from the first live stream,

[0095] A recording unit 12, used to record the traceability identification;

[0096] The transmission unit 13 is used to transmit the first live stream to the streaming application end through the at least one second node upon receiving a request for obtaining the first live stream transmitted by the streaming application end through the at least one second node; the traceability identifier is also used to identify the at least one second node through which the first live stream flows.

[0097] In some embodiments of the present application, the device further includes a writing unit;

[0098] The acquisition unit 11 is used to acquire a first connection identifier of the live stream transmission device and a first parent connection identifier corresponding to the first connection identifier when a connection identifier acquisition request and a parent connection identifier acquisition request are present in the first live stream;

[0099] The writing unit is used to write the first connection identifier and the first parent connection identifier into the first live stream to obtain a third live stream; the first live stream includes at least one second connection identifier and at least one second parent connection identifier corresponding to the at least one first node.

[0100] In some embodiments of the present application, the transmission unit 13 is used to transmit the third live stream to the streaming application end through the at least one second node; the third live stream at the streaming application end includes at least one third connection identifier and at least one third parent connection identifier corresponding to the at least one second node.

[0101] In some embodiments of the present application, the traceability identifier is an identifier determined according to the target connection identifier of the first node.

[0102] In some embodiments of the present application, the traceability identifier is generated by using a preset traceability identifier generation strategy to generate the traceability identifier uniquely corresponding to the first live stream.

[0103] In some embodiments of the present application, the first live stream is a live stream obtained by adding the traceability identifier to the information header of the second live stream by the first node when the identification value of the sampling identifier in the second live stream is a first preset value.

[0104] In some embodiments of the present application, the first live stream is a live stream obtained by adding the traceability identifier to the second live stream information header by the first node when the identifier value of the debug identifier in the second live stream is a first preset value.

[0105] It should be noted that, in actual applications, the above-mentioned acquisition unit 11, recording unit 12 and transmission unit 13 can be implemented by a processor 14 on the live streaming transmission device 1, specifically a CPU (Central Processing Unit), an MPU (Microprocessor Unit), a DSP (Digital Signal Processing) or a field programmable gate array (FPGA); the above-mentioned data storage can be implemented by a memory 15 on the live streaming transmission device 1.

[0106] The present application also provides a live streaming transmission device 1, such as Figure 5 As shown, the live streaming transmission device 1 includes: a processor 14, a memory 15 and a communication bus 16. The memory 15 communicates with the processor 14 through the communication bus 16. The memory 15 stores a program executable by the processor 14. When the program is executed, the live streaming transmission method described above is executed by the processor 14.

[0107] In practical applications, the memory 15 may be a volatile memory, such as a random access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the processor 14.

[0108] An embodiment of the present application provides a computer-readable storage medium having a computer program thereon, and when the program is executed by the processor 14, the live streaming transmission method as described above is implemented.

[0109] It can be understood that when the first live stream flows through at least one first node, a live stream transmission device and at least one second node, by writing the traceability identifier carried in the first live stream into at least one first node, the live stream transmission device and at least one second node, that is, using the traceability identifier to mark the nodes passed by when the first live stream is transmitted from the push application end to the pull application end, when tracing the first live stream, the node transmitting the first live stream can be quickly determined directly according to the traceability identifier in the node, so as to quickly determine the transmission path of the first live stream according to the node transmitting the first live stream, that is, the efficiency of determining the live stream transmission path is improved.

[0110] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.

[0111] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0112] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0113] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0114] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. A live streaming transmission method, the method is applied to the scenario of performing transmission fault detection on the live streaming, characterized in that: The method comprises: Acquire a first live stream transmitted by a streaming application end through at least one first node; the first live stream carries a tracing mark, and the tracing mark is used to identify the at least one node through which the first live stream flows; the first live stream is a live stream obtained by adding a tracing mark to a second live stream generated by the streaming application end by the first node of the at least one first node; the streaming application end is an application end used by the anchor when broadcasting live; In the case where there is a connection identifier acquisition request and a parent connection identifier acquisition request in the first live stream, a first connection identifier of a live stream transmission device and a first parent connection identifier corresponding to the first connection identifier are acquired; the live stream transmission device is any CDN transit node in a content delivery network CDN transit cluster; Writing the first connection identifier and the first parent connection identifier into the first live stream to obtain a third live stream; the first live stream includes at least one second connection identifier and at least one second parent connection identifier corresponding to the at least one first node; When a request for obtaining a first live stream transmitted by a streaming application end through at least one second node is received, the first live stream is transmitted to the streaming application end through the at least one second node; the traceability identifier is also used to identify the at least one second node through which the first live stream flows, and the streaming application end is the application end used by viewers when watching live broadcasts.

2. The method according to claim 1, characterized in that The transmitting the first live stream to the stream pulling application end through the at least one second node includes: The third live stream is transmitted to the stream pulling application end through the at least one second node; the third live stream at the stream pulling application end contains at least one third connection identifier and at least one third parent connection identifier corresponding to the at least one second node.

3. The method according to claim 1, characterized in that The traceability identifier is an identifier determined according to the target connection identifier of the first node.

4. The method according to claim 1, characterized in that: The traceability identifier is generated by using a preset traceability identifier generation strategy to generate the traceability identifier uniquely corresponding to the first live stream.

5. The method according to claim 1, characterized in that: The first live stream is a live stream obtained after the first node adds the traceability identifier to the information header of the second live stream when the identification value of the sampling identifier in the second live stream is a first preset value.

6. The method according to claim 1, characterized in that The first live stream is a live stream obtained after the first node adds the traceability identifier to the second live stream information header when the identifier value of the debugging identifier in the second live stream is a first preset value.

7. A live streaming transmission device, the device is applied to the scenario of performing transmission fault detection on the live streaming, characterized in that: The device comprises: An acquisition unit is used to acquire a first live stream transmitted by a streaming application end through at least one first node; the first live stream carries a traceability mark, and the traceability mark is used to identify the at least one node through which the first live stream flows; the first live stream is a live stream obtained by adding a traceability mark to the second live stream generated by the streaming application end after the first node among the at least one first node adds a traceability mark; in the case that there is a connection mark acquisition request and a parent connection mark acquisition request in the first live stream, the first connection mark of the live stream transmission device and the first parent connection mark corresponding to the first connection mark are acquired; the live stream transmission device is any CDN transit node in the CDN transit cluster; the streaming application end is an application end used by the anchor when broadcasting live; A recording unit, used to record the traceability identification; a writing unit, configured to write the first connection identifier and the first parent connection identifier into the first live stream to obtain a third live stream; the first live stream includes at least one second connection identifier and at least one second parent connection identifier corresponding to the at least one first node; The transmission unit is used to transmit the first live stream to the streaming application end through the at least one second node upon receiving a request for obtaining the first live stream transmitted by the streaming application end through the at least one second node; the traceability identifier is also used to identify the at least one second node through which the first live stream flows, and the streaming application end is the application end used by the audience when watching the live broadcast.

8. A live streaming transmission device, characterized in that: The device comprises: A memory, a processor and a communication bus, wherein the memory communicates with the processor via the communication bus, the memory stores a live streaming program executable by the processor, and when the live streaming program is executed, the method according to any one of claims 1 to 6 is executed by the processor.

9. A storage medium having a computer program stored thereon, applied to a live streaming transmission device, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Video live broadcast method and device

    CN110012300A

  • Live broadcast source returning method and device

    CN114760482A