Live broadcast stream transmission method and device, storage medium and electronic equipment

By acquiring multi-source live streams and determining the target live stream based on the transmission quality, the problem of low transmission efficiency of live streams is solved, and the effect of priority transmission of high-quality live streams is achieved.

CN119676470APending Publication Date: 2025-03-21HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411775142.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

The transmission efficiency of live streams is low, especially when switching live streams is required, which may affect the transmission of other channels and lead to a reduction in overall efficiency.

Method used

By obtaining one multi-source live stream, the target live stream is determined from it according to the transmission quality of at least two live streams and transmitted to the target push address.

Benefits of technology

Priority is given to transmitting live streams with better quality, reducing the need to switch other live streams due to transmission quality, thereby improving the transmission efficiency of live streams.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119676470A_ABST
    Figure CN119676470A_ABST
Patent Text Reader

Abstract

The invention discloses a live broadcast stream transmission method and device, a storage medium and electronic equipment. The method comprises the steps that a path of multi-source live broadcast stream is acquired, the path of multi-source live broadcast stream is a live broadcast stream formed by converging at least two paths of live broadcast streams, and the at least two paths of live broadcast streams are audio and video streams which come from different live broadcast sources and show the same live broadcast content; determining a target live broadcast stream from the at least two live broadcast streams according to the transmission quality of the live broadcast streams in the at least two live broadcast streams; and transmitting the target live stream to a target push address, the target push address being a push address to which at least two live streams belong. The technical problem of low transmission efficiency of the live broadcast stream is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and more specifically, to a method, device, storage medium, and electronic device for transmitting a live stream. Background Art

[0002] In the transmission scenario of live streaming, multiple live streaming channels are usually used for transmission. However, if the quality or availability of the channel signal corresponding to the output live streaming is abnormal, it is necessary to switch to another live streaming output. Since the control algorithm for implementing disaster recovery switching is relatively complex, the switching may affect the transmission of other channels, thereby affecting the overall live streaming transmission efficiency. Therefore, there is a problem of low transmission efficiency of live streaming.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present application provide a method, device, storage medium and electronic device for transmitting a live stream, so as to at least solve the technical problem of low transmission efficiency of the live stream.

[0005] According to one aspect of an embodiment of the present application, a method for transmitting a live stream is provided, comprising: obtaining a multi-source live stream, wherein the multi-source live stream is a live stream formed by the convergence of at least two live streams, and the at least two live streams are audio and video streams from different live sources but showing the same live content; determining a target live stream from the at least two live streams according to the transmission quality of the live streams in the at least two live streams; transmitting the target live stream to a target push address, wherein the target push address is a push address to which the at least two live streams belong.

[0006] According to another aspect of an embodiment of the present application, a live stream transmission device is also provided, including: a first acquisition unit, used to acquire a multi-source live stream, wherein the multi-source live stream is a live stream formed by the convergence of at least two live streams, and the at least two live streams are audio and video streams from different live sources but showing the same live content; a second acquisition unit, used to determine a target live stream from the at least two live streams according to the transmission quality of the live streams in the at least two live streams; a third acquisition unit, used to transmit the target live stream to a target push address, wherein the target push address is a push address to which the at least two live streams belong.

[0007] As an optional solution, the second acquisition unit includes: a first acquisition module, used to determine the target live stream from the at least two live streams according to the signal transmission quality of the track, wherein the track is used to transmit the audio and video signals of the audio and video stream.

[0008] As an optional solution, the above-mentioned first acquisition module includes: a first acquisition sub-module, used to determine the above-mentioned target live stream from the above-mentioned at least two live streams according to the signal transmission quality of each track, wherein the above-mentioned track is a track formed by converging multiple tracks associated with any one of the above-mentioned at least two live streams, and the above-mentioned track is used to transmit audio and video signals of the same live stream.

[0009] As an optional solution, the first acquisition module includes: a second acquisition submodule, used to determine the target live stream from the at least two live streams according to the signal transmission quality of each first-class track, wherein the first-class track is N tracks formed by aggregating multiple tracks associated with the at least two live streams according to the same type, the first-class track is used to transmit the same type of audio and video signals, and the number of types of the multiple tracks is N.

[0010] As an optional solution, the first acquisition module includes: a third acquisition submodule, which is used to determine the track to which each of the audio and video signals belongs according to the pre-configured tags of each of the audio and video signals.

[0011] As an optional solution, the second acquisition unit includes: a second acquisition module, used to determine the transmission quality of the live stream according to the freeze or interruption duration of the at least two live streams.

[0012] As an optional scheme, the above-mentioned second acquisition module includes: a first determination submodule, used to determine the first live stream from the above-mentioned at least two live streams according to the queue preset for the above-mentioned at least two live streams; the second determination submodule, also used to determine the above-mentioned first live stream as the above-mentioned target live stream when the freeze or interruption duration of the above-mentioned first live stream is less than or equal to the preset threshold; the third determination submodule, also used to determine the second live stream after the above-mentioned first live stream from the above-mentioned at least two live streams when the freeze or interruption duration of the above-mentioned first live stream is greater than the above-mentioned preset threshold; the fourth determination submodule, also used to determine the above-mentioned second live stream as the above-mentioned target live stream when the freeze or interruption duration of the above-mentioned second live stream is less than or equal to the above-mentioned preset threshold.

[0013] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device performs the above live streaming transmission method.

[0014] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the live stream transmission method through the computer program.

[0015] In an embodiment of the present application, a multi-source live stream is obtained, wherein the multi-source live stream is a live stream formed by the convergence of at least two live streams, and the at least two live streams are audio and video streams from different live sources but showing the same live content; according to the transmission quality of the live streams in the at least two live streams, a target live stream is determined from the at least two live streams; the target live stream is transmitted to a target push address, wherein the target push address is a push address to which the at least two live streams belong. By converging multiple multi-track live streams into a multi-source live stream, and determining the target live stream according to the transmission quality of the live stream, the purpose of giving priority to the live stream with better transmission quality is achieved, thereby improving the transmission efficiency of the live stream, and further solving the technical problem of low transmission efficiency of the live stream. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0017] Figure 1 is a schematic diagram of an application environment of an optional live streaming transmission method according to an embodiment of the present application;

[0018] Figure 2 It is a schematic diagram of a process of an optional live streaming transmission method according to an embodiment of the present application;

[0019] Figure 3 is a schematic diagram of an optional live streaming transmission method according to an embodiment of the present application;

[0020] Figure 4 is a schematic diagram of another optional live streaming transmission method according to an embodiment of the present application;

[0021] Figure 5 is a schematic diagram of an optional live streaming transmission device according to an embodiment of the present application;

[0022] Figure 6 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0025] According to one aspect of the embodiments of the present application, a method for transmitting a live stream is provided. Optionally, as an optional implementation, the method for transmitting a live stream can be applied to, but is not limited to, Figure 1 In the environment shown, the environment may include, but is not limited to, a user device 102 and a server 112 . The user device 102 may include, but is not limited to, a display 104 , a processor 106 , and a memory 108 . The server 112 includes a database 114 and a processing engine 116 .

[0026] The specific process can be as follows:

[0027] Step S102, the user device 102 obtains a multi-source live stream;

[0028] Step S104, sending a multi-source live stream to the server 112 via the network 110;

[0029] Step S106, the server 112 determines a target live stream from the at least two live streams through the processing engine 116 according to the transmission quality of the live streams in the at least two live streams, and obtains live broadcast indication information;

[0030] Step S108, the live broadcast indication information is sent to the user device 102 through the network 110, the user device 102 displays the live broadcast indication information on the display 104 through the processor 106, and transmits the target live stream to the target push address according to the instructions of the live broadcast indication information, and stores the live broadcast indication information in the memory 108.

[0031] remove Figure 1 In addition to the examples shown, the terminal device can be a terminal device configured with a target client, which can include but is not limited to at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, etc. The target client can be a video client, an instant messaging client, a browser client, an education client, etc. The network can include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network and a wide area network, and the wireless network includes: Bluetooth, WIFI and other networks that realize wireless communication. The server can be a single server, or a server cluster composed of multiple servers, or a cloud server. The above is only an example, and no limitation is made to this in this embodiment.

[0032] Optionally, as an optional implementation, as Figure 2 As shown, the method for transmitting the live stream may be performed by an electronic device, which may be, for example, Figure 1 The user device or server shown in the figure comprises:

[0033] S202, obtaining a multi-source live stream, wherein the multi-source live stream is a live stream formed by converging at least two live streams, and the at least two live streams are audio and video streams from different live sources but showing the same live content;

[0034] S204, determining a target live stream from the at least two live streams according to the transmission quality of the live streams in the at least two live streams;

[0035] S206, transmitting the target live stream to a target push address, wherein the target push address is a push address to which at least two live streams belong.

[0036] Optionally, in this embodiment, a multi-source live stream can be obtained by acquiring at least two live streams at the access point of the live stream, and then aggregating the at least two live streams into one multi-source live stream for transmission of the aggregated live stream.

[0037] Optionally, in this embodiment, a live stream formed by the convergence of at least two live streams can be converged in a manner that each live stream is converged into a multi-track video stream, and each track is used to transmit the audio and video of the live stream; the convergence method can also be that each live stream is converged into a multi-track video stream, and each track is used to transmit a specific signal, such as a video signal, an audio signal, a text signal, etc.

[0038] Optionally, in this embodiment, at least two live streams may be audio and video streams from different live sources but showing the same live content. For example, in the same live broadcast, live streams acquired by audio and video capture devices broadcasting the same content but at different positions.

[0039] Optionally, in this embodiment, the streaming address of at least two live streams belonging to the same channel can be an address to which at least two live streams are pushed together. For example, when a user uses a mobile terminal to issue a request to obtain a certain live content, the streaming address of at least two live streams belonging to the same channel is the mobile terminal used by the user.

[0040] As an optional scheme, a target live stream is determined from at least two live streams according to the transmission quality of the live streams in the at least two live streams, including: determining the target live stream from the at least two live streams according to the signal transmission quality of each track, wherein the track is a track formed by converging multiple tracks associated with any live stream of the at least two live streams, and the track is used to transmit audio and video signals of the same live stream.

[0041] Optionally, in this embodiment, the audio and video signals of the same live stream may include all signals in the original live stream, such as: video signal, audio signal, text signal, etc.

[0042] To further illustrate, when a user sends a request to obtain a certain live broadcast content through a mobile terminal, there are at least two audio and video acquisition devices for the live broadcast content, and one audio and video acquisition device can generate one live broadcast stream, and ultimately at least two live broadcast streams will be generated. After the at least two live broadcast streams are aggregated into one multi-source live broadcast stream, the at least two tracks of the aggregated multi-source live broadcast stream are used to transmit the original at least two live streams, and the audio and video signals that are finally pushed to the user's mobile terminal are selected based on the quality of the tracks transmitting the at least two live broadcast streams.

[0043] It should be noted that after obtaining a multi-source live stream formed by the convergence of at least two live streams, it is necessary to confirm the transmission quality of the at least two live streams, determine the target live stream based on the transmission quality of the live streams, and push the target live stream to the streaming address to which the at least two live streams belong.

[0044] To further illustrate, the optional Figure 3 As shown, a multi-source live stream 302 is obtained, wherein the multi-source live stream is a live stream formed by the convergence of at least two live streams, and the at least two live streams are audio and video streams from different live sources but showing the same live content; according to the transmission quality of the live streams in the at least two live streams, a target live stream (live stream B) is determined from the at least two live streams; the target live stream is transmitted to a target push address 304, wherein the target push address is a push address to which at least two live streams belong.

[0045] Through the solution provided in the embodiment of the present application, the purpose of giving priority to the transmission of live streams with better quality is achieved, and the need to switch other live streams for transmission during the transmission of live streams due to transmission quality is reduced, thereby reducing the negative impact on the transmission of live streams caused by switching live streams, thereby achieving the technical effect of improving the transmission efficiency of live streams, and further solving the technical problem of low transmission efficiency of live streams.

[0046] As an optional scheme, the target live stream is determined from at least two live streams according to the signal transmission quality of the track, including: determining the target live stream from the at least two live streams according to the signal transmission quality of each first-class track, wherein the first-class track is N tracks formed by aggregating multiple tracks associated with the at least two live streams according to the same type, the first-class track is used to transmit the same type of audio and video signals, and the number of types of the multiple tracks is N.

[0047] Optionally, in this embodiment, the audio and video signals may be different signal components of a live stream, such as a video signal, an audio signal, a text signal, etc., and each signal of each live stream has a live stream mark to mark which live stream the signal belongs to.

[0048] To further illustrate, when a user sends a request to obtain a certain live content through a mobile terminal, there are at least two audio and video acquisition devices for the live content, and one audio and video acquisition device can generate one live stream, and ultimately at least two live streams will be generated, and each live stream has multiple signals, and the multiple signals of at least two live streams are gathered together by type, and the signals are pushed through tracks, for example, track A is used to push video signals, track B is used to push audio signals, and track C is used to push text signals.

[0049] Through the solution provided by the embodiment of the present application, when receiving multiple live streaming signals, the audio and video of the live streaming are separated and aggregated according to type, and the aggregated tracks are transmitted through tracks, thereby improving the transmission efficiency of the live streaming.

[0050] As an optional solution, before determining a target stream from at least two live streams based on the signal transmission quality of the track, where the track is used to transmit the audio and video signals of the audio and video stream, the method also includes: determining the track described by each audio and video signal according to the pre-configured tags of each audio and video stream signal.

[0051] Optionally, in this embodiment, the preconfigured mark may be a mark indicating which track all audio and video signals corresponding to an original live stream are transmitted by, or a mark indicating which track a certain type of audio and video signal is transmitted by.

[0052] Through the solution provided by the embodiment of the present application, after the audio and video signals corresponding to the live stream are obtained, the obtained audio and video signals are marked, and then the audio and video signals are transmitted through the tracks corresponding to the marks, thereby achieving correct transmission of new video signals.

[0053] As an optional solution, before determining a target live stream from at least two live streams based on the transmission quality of the live streams in at least two live streams, the method also includes: determining the transmission quality of the live stream based on the freeze or interruption duration of the at least two live streams.

[0054] Optionally, in this embodiment, the freeze or interruption duration of the two live streams may be a single freeze or interruption duration or a cumulative freeze or interruption duration generated during the transmission of the audio and video signals corresponding to the live streams.

[0055] To further illustrate, when track A is used to transmit all audio and video signals corresponding to live stream a, the duration of freeze or interruption in the stream is shorter than that when track B is used to transmit all audio and video signals corresponding to live stream b, then the transmission quality of live stream a is considered to be better than that of live stream b.

[0056] Through the solution provided in this embodiment, the transmission quality of the live stream is determined by the duration of freezing or interruption, thereby improving the efficiency of transmitting the live stream.

[0057] As an optional solution, after determining the transmission quality of the live stream according to the freeze or interruption duration of at least two live streams, the method further includes:

[0058] S1-1, determining a first live stream from at least two live streams according to a queue preset for at least two live streams;

[0059] S1-2, when the freeze or interruption duration of the first live stream is less than or equal to a preset threshold, determining the first live stream as the target live stream;

[0060] S1-3, when the freeze or interruption duration of the first live stream is greater than a preset threshold, determining a second live stream after the first live stream from at least two live streams;

[0061] S1-4, when the freeze or interruption duration of the second live stream is less than or equal to a preset threshold, the second live stream is determined as the target live stream.

[0062] Optionally, in this embodiment, according to the queues preset for the at least two live streams, the first live stream is determined from the at least two live streams. The live stream at the front of the queue can be determined as the first live stream according to the queues preset for the two live streams. The queues preset for the two live streams can be a queue in which the live streams are arranged in the order in which they start transmission, or can also be a manually determined queue.

[0063] Optionally, in this embodiment, the duration of the freeze or interruption is less than or equal to the preset threshold, which means that the duration of a single freeze or interruption is less than or equal to a first preset threshold and the cumulative duration of the freeze or interruption is less than or equal to a second preset threshold.

[0064] Optionally, in this embodiment, when the duration of freeze or interruption of the first live stream is less than or equal to a preset threshold, the first live stream can be determined as the target live stream and transmitted through the track.

[0065] Optionally, in this embodiment, when the duration of freeze or interruption of the first live stream is greater than a preset threshold, a second live stream after the first live stream is determined from at least two live streams, and when the duration of freeze or interruption of the first live stream is greater than the preset threshold, the backup signal is set to the second live stream.

[0066] Optionally, when the cumulative freeze or interruption duration of the second live stream is less than or equal to a preset threshold, the second live stream is determined as the target live stream. Alternatively, when the target live stream is the first live stream, and the freeze or interruption duration is greater than the preset threshold, and the single freeze or interruption duration of the second live stream is less than or equal to the preset threshold, the target live stream is switched to the second live stream, and the cumulative freeze or interruption duration of the first live stream is cleared.

[0067] Optionally, the target live stream may be specified through a manually specified mode.

[0068] It should be noted that if there are at least three live streams that converge into one multi-source live stream, the switching queue of the target live stream is a ring queue.

[0069] To further illustrate, when the target live stream is the first live stream, the target live stream switching is triggered, and the target live stream is switched to the second live stream; when the target live stream is the second live stream, the target live stream switching is triggered, and the target live stream is switched to the third live stream; when the target live stream is the third live stream, the target live stream switching is triggered, and the target live stream is switched to the first live stream.

[0070] Through the solution provided in this embodiment, by timely switching the target live stream, it is possible to switch in time when a long freeze occurs, and the effect of timely solving the live freeze after the live freeze occurs is achieved.

[0071] It should be noted that after obtaining a multi-source live stream formed by the convergence of at least two live streams, it is necessary to confirm the transmission quality of the at least two live streams, determine the target live stream based on the transmission quality of the live streams, and push the target live stream to the streaming address to which the at least two live streams belong.

[0072] To further illustrate, the optional Figure 3 As shown, a multi-source live stream 302 is obtained, wherein the multi-source live stream is a live stream formed by the convergence of at least two live streams, and the at least two live streams are audio and video streams from different live sources but showing the same live content; according to the transmission quality of the live streams in the at least two live streams, a target live stream (live stream B) is determined from the at least two live streams; the target live stream is transmitted to a target push address 304, wherein the target push address is a push address to which at least two live streams belong.

[0073] Through the solution provided in the embodiment of the present application, the purpose of giving priority to the transmission of live streams with better quality is achieved, and the need to switch other live streams for transmission during the transmission of live streams due to transmission quality is reduced, thereby reducing the negative impact on the transmission of live streams caused by switching live streams, thereby achieving the technical effect of improving the transmission efficiency of live streams, and further solving the technical problem of low transmission efficiency of live streams.

[0074] As an optional solution, for ease of understanding, the above live streaming transmission method is applied to a live video broadcast scenario as an example:

[0075] In the existing live streaming transmission, if there are multiple different audio and video acquisition devices, for example, when there are multiple cameras in the same live broadcast, one camera corresponds to one live stream, but the status of each stream needs to be detected and controlled in real time. If the signal quality or availability of the currently transmitted live stream is abnormal, the algorithm for implementing disaster recovery switching control is complex and prone to errors.

[0076] Optionally, in this embodiment, the transmission of the live stream can be, but is not limited to, converging multiple live streams corresponding to multiple cameras of the same live broadcast into a multi-track live stream at the streaming boarding point, and marking the correspondence between the multiple live streams and each track in the multi-track live stream. After the multi-track live stream is transmitted to the central source station, the central source station associates the multi-track stream with a certain track filter. When it is detected that the transmission of the live stream corresponding to a certain track triggers the switching track condition of the track filter, the track is switched from the track transmitting the live stream to the track transmitting the next live stream, and the live stream transmission of the next live stream is performed.

[0077] Optionally, in this embodiment, the track filter is used to set preset values ​​for freeze and interruption durations, and is also used to detect track quality and availability.

[0078] To further illustrate, the optional Figure 4 As shown, the specific steps are as follows:

[0079] S402, the edge node sends a request for obtaining live content;

[0080] It should be noted that the live content acquisition request sent by the edge node includes: the live content acquisition request sent by the user when using the terminal or device.

[0081] S404, in response to the live content acquisition request, acquiring multiple live streams corresponding to the live content;

[0082] S406, aggregating multiple live streams into one multi-track live stream at the streaming loading point;

[0083] S408, transmitting a multi-track stream to a central source station;

[0084] S410, setting a track filter for a multi-track stream at a central source station;

[0085] S412, determining a main signal live stream and a backup signal live stream according to the track quality of one multi-track stream obtained by the track filter;

[0086] S414, the track filter determines the target live stream as the main signal live stream;

[0087] S416, if the duration of freezing or interruption of the target live stream is less than or equal to the target threshold, execute step S418, otherwise execute S420;

[0088] S418, transmitting the target live stream from the central source station to the regional central node;

[0089] S420, confirming the target live stream as the next live stream according to the order of the ring queue, and returning to S416;

[0090] S422, transmit the target live stream to the edge node.

[0091] Through the solution provided in the embodiment of the present application, multiple live streams showing the same content are aggregated into one multi-track live stream, and if an abnormality occurs in the current live stream during the live broadcast, it is only necessary to switch the track of the same channel to switch other live streams without switching other channels, thereby achieving the purpose of signal transmission of multiple live streams through one multi-track live stream, thereby achieving the technical effect of easily monitoring the transmission quality of the live stream and switching the live stream.

[0092] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0093] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0094] According to another aspect of the embodiment of the present application, a live streaming transmission device for implementing the live streaming transmission method is also provided. Figure 5 As shown, the device comprises:

[0095] A first acquisition unit 502 is used to acquire a multi-source live stream, wherein the multi-source live stream is a live stream formed by converging at least two live streams, and the at least two live streams are audio and video streams from different live sources but showing the same live content;

[0096] A second acquisition unit 504 is configured to determine a target live stream from the at least two live streams according to the transmission quality of the live streams in the at least two live streams;

[0097] The third acquisition unit 506 is used to transmit the target live stream to a target push address, wherein the target push address is a push address to which the at least two live streams belong.

[0098] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for transmitting a live stream, which will not be described in detail in this example.

[0099] As an optional solution, the second acquisition unit 502 includes: a first acquisition module, used to determine a target live stream from at least two live streams according to the signal transmission quality of the track, wherein the track is used to transmit audio and video signals of the audio and video stream.

[0100] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for transmitting a live stream, which will not be described in detail in this example.

[0101] As an optional solution, the first acquisition module includes: a first acquisition sub-module, used to determine a target live stream from at least two live streams based on the signal transmission quality of each track, wherein one track is a track formed by converging multiple tracks associated with any one of the at least two live streams, and one track is used to transmit audio and video signals of the same live stream.

[0102] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for transmitting a live stream, which will not be described in detail in this example.

[0103] As an optional solution, the first acquisition module includes: a second acquisition sub-module, used to determine a target live stream from at least two live streams according to the signal transmission quality of each first-class track, wherein the first-class track is a plurality of tracks associated with at least two live streams, and the first-class track is N tracks formed by the same type, and the first-class track is used to transmit the same type of audio and video signals, and the number of types of the multiple tracks is N.

[0104] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for transmitting a live stream, which will not be described in detail in this example.

[0105] As an optional solution, the first acquisition module includes: a third acquisition submodule, which is used to determine the track to which each audio and video signal belongs according to the pre-configured mark of each audio and video signal.

[0106] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for transmitting a live stream, which will not be described in detail in this example.

[0107] As an optional solution, the second acquisition unit 502 includes: a second acquisition module, which is used to determine the transmission quality of the live stream according to the freeze or interruption duration of at least two live streams.

[0108] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for transmitting a live stream, which will not be described in detail in this example.

[0109] As an optional scheme, the second acquisition module includes: a first determination submodule, used to determine the first live stream from at least two live streams according to the queue preset for the at least two live streams; a second determination submodule, also used to determine the first live stream as the target live stream when the freeze or interruption duration of the first live stream is less than or equal to a preset threshold; a third determination submodule, also used to determine the second live stream after the first live stream from at least two live streams when the freeze or interruption duration of the first live stream is greater than the preset threshold; a fourth determination submodule, also used to determine the second live stream as the target live stream when the freeze or interruption duration of the second live stream is less than or equal to the preset threshold.

[0110] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for transmitting a live stream, which will not be described in detail in this example.

[0111] According to another aspect of the embodiment of the present application, an electronic device for implementing the above-mentioned live streaming transmission method is also provided. The electronic device can be but is not limited to Figure 1 The user device 102 or the server 112 shown in FIG. 1 is used as an example to illustrate the electronic device as the user device 102. Figure 6 As shown, the electronic device includes a memory 602 and a processor 604. The memory 602 stores a computer program, and the processor 604 is configured to execute the steps in any of the above method embodiments through the computer program.

[0112] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0113] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0114] S1, obtaining a multi-source live stream, wherein the multi-source live stream is a live stream formed by the convergence of at least two live streams, and the at least two live streams are audio and video streams from different live sources but showing the same live content;

[0115] S2, determining a target live stream from the at least two live streams according to the transmission quality of the live streams in the at least two live streams;

[0116] S3, transmitting the target live stream to a target push address, wherein the target push address is a push address to which the at least two live streams belong.

[0117] Alternatively, a person skilled in the art may understand that: Figure 6 The structure shown is for illustration only. Figure 6The structure of the electronic device is not limited. Figure 6 More or fewer components (such as network interfaces, etc.) as shown in, or with Figure 6 Different configurations are shown.

[0118] Among them, the memory 602 can be used to store software programs and modules, such as the program instructions / modules corresponding to the live streaming transmission method and device in the embodiment of the present application. The processor 604 executes various functional applications and data processing by running the software programs and modules stored in the memory 602, that is, realizing the above-mentioned live streaming transmission method. The memory 602 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 602 may further include a memory remotely arranged relative to the processor 604, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned networks include but are not limited to the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 602 can be specifically used, but not limited to, to store information such as a multi-source live stream, the transmission quality of the live stream, the target live stream, and the push address of the live stream. As an example, if Figure 6 As shown, the memory 602 may include, but is not limited to, the first acquisition unit 502, the second acquisition unit 504, and the third acquisition unit 506 in the live stream transmission device. In addition, other module units in the live stream transmission device may also be included but are not limited to, which will not be repeated in this example.

[0119] Optionally, the transmission device 606 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 606 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 606 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0120] In addition, the above-mentioned electronic device also includes: a display 608, which is used to display information such as the above-mentioned multi-source live stream, the transmission quality of the live stream, the target live stream and the push address of the live stream; and a connection bus 610, which is used to connect the various module components in the above-mentioned electronic device.

[0121] In other embodiments, the user device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. Among them, a peer-to-peer network may be formed between the nodes, and any form of computing device, such as a server, user device, or other electronic device, may become a node in the blockchain system by joining the peer-to-peer network.

[0122] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions provided by the embodiments of the present application are executed.

[0123] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0124] It should be noted that the computer system of the electronic device is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0125] The computer system includes a central processing unit (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) or the program loaded from the storage part to the random access memory (RAM). In the random access memory, various programs and data required for system operation are also stored. The central processing unit, the read-only memory and the random access memory are connected to each other through a bus. The input / output interface (I / O interface) is also connected to the bus.

[0126] The following components are connected to the input / output interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a local area network card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the input / output interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.

[0127] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions defined in the system of the present application are executed.

[0128] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.

[0129] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0130] S1, obtaining a multi-source live stream, wherein the multi-source live stream is a live stream formed by the convergence of at least two live streams, and the at least two live streams are audio and video streams from different live sources but showing the same live content;

[0131] S2, determining a target live stream from the at least two live streams according to the transmission quality of the live streams in the at least two live streams;

[0132] S3, transmitting the target live stream to a target push address, wherein the target push address is a push address to which the at least two live streams belong.

[0133] Optionally, in the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0134] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the electronic device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0135] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0136] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to execute all or part of the steps of the methods of each embodiment of the present application.

[0137] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0138] In the several embodiments provided in the present application, it should be understood that the disclosed user equipment can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the above-mentioned units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0139] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0140] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0141] The above are only preferred implementations of the present application. It should be pointed out that ordinary technicians in this technical field can make several improvements and modifications without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for transmitting a live stream, characterized in that: include: Obtaining a multi-source live stream, wherein the multi-source live stream is a live stream formed by converging at least two live streams, and the at least two live streams are audio and video streams from different live sources but showing the same live content; Determine a target live stream from the at least two live streams according to the transmission quality of the live streams in the at least two live streams; The target live stream is transmitted to a target push address, wherein the target push address is a push address to which the at least two live streams belong.

2. The method according to claim 1, characterized in that The step of determining a target live stream from the at least two live streams according to the transmission quality of the live streams in the at least two live streams comprises: The target live stream is determined from the at least two live streams according to the signal transmission quality of the track, wherein the track is used to transmit the audio and video signals of the audio and video stream.

3. The method according to claim 2, characterized in that The step of determining the target live stream from the at least two live streams according to the signal transmission quality of the track includes: According to the signal transmission quality of each track, the target live stream is determined from the at least two live streams, wherein the track is a track formed by converging multiple tracks associated with any one of the at least two live streams, and the track is used to transmit the audio and video signals of the same live stream.

4. The method according to claim 2, characterized in that The step of determining the target live stream from the at least two live streams according to the signal transmission quality of the track includes: According to the signal transmission quality of each first-class track, the target live stream is determined from the at least two live streams, wherein the first-class track is N tracks formed by a plurality of tracks associated with the at least two live streams, and the first-class track is used to transmit the same type of audio and video signals, and the number of types of the plurality of tracks is N.

5. The method according to claim 2, characterized in that: In determining the target live stream from the at least two live streams according to the signal transmission quality of the track, wherein before the track is used to transmit the audio and video signals of the audio and video stream, the method further includes: According to the pre-configured tags of each of the audio and video signals, the track to which each of the audio and video signals belongs is determined.

6. The method according to any one of claims 1 to 5, characterized in that Before determining a target live stream from the at least two live streams according to the transmission quality of the live streams in the at least two live streams, the method further includes: The transmission quality of the live stream is determined according to the freeze or interruption duration of the at least two live streams.

7. The method according to claim 6, characterized in that After determining the transmission quality of the live stream according to the freeze or interruption duration of the at least two live streams, the method further includes: Determine a first live stream from the at least two live streams according to a queue preset for the at least two live streams; When the freeze or interruption duration of the first live stream is less than or equal to a preset threshold, determining the first live stream as the target live stream; When the freeze or interruption duration of the first live stream is greater than the preset threshold, determining a second live stream after the first live stream from the at least two live streams; When the freeze or interruption duration of the second live stream is less than or equal to the preset threshold, the second live stream is determined as the target live stream.

8. A live streaming transmission device, characterized in that: include: A first acquisition unit is used to acquire a multi-source live stream, wherein the multi-source live stream is a live stream formed by converging at least two live streams, and the at least two live streams are audio and video streams from different live sources but showing the same live content; A second acquisition unit is used to determine a target live stream from the at least two live streams according to the transmission quality of the live streams in the at least two live streams; The third acquisition unit is used to transmit the target live stream to a target push address, wherein the target push address is a push address to which the at least two live streams belong.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.