Data transmission method, device and electronic device based on network live broadcast
By dynamically adjusting bandwidth and data compression during live streaming, the problem of excessive network bandwidth usage affecting other devices is solved, and efficient, stable transmission and user experience of live streaming are achieved.
Patent Information
- Application Number
- CN202411119987.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2044-08-14
AI Technical Summary
During live streaming, excessive network bandwidth usage will affect the normal use of other users or devices, resulting in reduced network efficiency and potential economic losses.
By obtaining live broadcast data from the Internet, the network bandwidth and bandwidth ratio required for transmission are determined. If the threshold is exceeded, the data is compressed and the bandwidth is reduced to ensure that the live broadcast picture quality meets the preset conditions before transmission.
It achieves smooth transmission of live broadcasts, ensuring users' viewing experience without affecting the normal use of other network users or devices, thereby improving the overall efficiency of the network.
Smart Images

Figure CN119052518B_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of network data transmission, and in particular to a data transmission method, device and electronic device based on network live broadcast. Background Art
[0002] With the continuous advancement of science and technology, streaming media technology has become increasingly mature, and this technology is gradually affecting people's daily lives. For example, practical cases such as live streaming and online meetings have provided a certain degree of convenience and diversity for people's work, study and entertainment activities.
[0003] While the widespread use of streaming media technology brings convenience, it also puts pressure on network bandwidth in its application scenarios. For example, large-scale cultural and entertainment events often require online live broadcasts and reprints during normal operation. The transmission of these live broadcast data often requires high-speed network bandwidth. If a large amount of network bandwidth is dedicated to transmitting live broadcast data, users or devices performing other tasks on the network will be affected by the bandwidth, which in turn affects the efficiency of the tasks. In serious cases, it may even cause irreparable economic losses or accidents.
[0004] Therefore, how to ensure that live streaming can be broadcasted normally with low latency while not affecting the normal use of other devices or users in the network is a crucial issue. Summary of the Invention
[0005] This specification provides a data transmission method, device and electronic device based on network live broadcast to partially solve the above-mentioned problems existing in the prior art.
[0006] This manual adopts the following technical solutions:
[0007] This specification provides a data transmission method based on network live broadcast, including:
[0008] Get live webcast data;
[0009] Determining, based on the live network broadcast data, a network bandwidth required for transmitting the live network broadcast data;
[0010] When it is determined that a live broadcast image obtained by transmitting the network live broadcast data based on the network bandwidth meets a preset condition, determining a bandwidth ratio of the network bandwidth in a preset total network bandwidth;
[0011] When the bandwidth ratio is greater than a preset bandwidth ratio threshold, performing data compression processing on the network live broadcast data to obtain compressed network live broadcast data, and reducing the network bandwidth;
[0012] The compressed live broadcast data is transmitted via the reduced network bandwidth.
[0013] Optionally, the step of obtaining live network broadcast data specifically includes:
[0014] The microwave transmission data generated based on the microwave transmission method during the live broadcast is obtained as the obtained live broadcast data.
[0015] Optionally, the method further includes:
[0016] When it is determined that the live broadcast picture obtained by transmitting the network live broadcast data based on the network bandwidth does not meet the preset conditions, the network live broadcast data used to replace the microwave transmission data is determined, and the replaced network live broadcast data is transmitted, wherein the replaced network live broadcast data includes: dedicated line transmission data generated based on a dedicated line transmission method and cloud transmission data generated based on a cloud data transmission method, and the network live broadcast content corresponding to the microwave transmission data, the dedicated line transmission data and the cloud transmission data is the same.
[0017] Optionally, the step of determining whether a live broadcast image obtained by transmitting the live broadcast data based on the network bandwidth meets a preset condition specifically includes:
[0018] Acquire current network status information, where the current network status information is used to represent a network operation status of the network to which the total network bandwidth belongs;
[0019] The network live broadcast data, the network bandwidth and the current network status information are input into a preset live broadcast picture detection model, so that the live broadcast picture detection model determines the live broadcast picture detection result for the network live broadcast data based on the network live broadcast data, the network bandwidth and the current network status information. The live broadcast picture detection result is used to indicate whether the live broadcast picture corresponding to the network live broadcast data meets the preset conditions.
[0020] Optionally, the step of inputting the network live broadcast data, the network bandwidth, and the current network status information into a preset live broadcast image detection model, so that the live broadcast image detection model determines a live broadcast image detection result for the network live broadcast data based on the network live broadcast data, the network bandwidth, and the current network status information, specifically includes:
[0021] The network live broadcast data, the network bandwidth and the current network status information are input into a preset live broadcast picture detection model, so that the live broadcast picture detection model generates a simulated live broadcast picture of the network live broadcast data based on the network live broadcast data and the network bandwidth and the network operation status corresponding to the current network status information, and performs live broadcast picture detection on the simulated live broadcast picture to determine the live broadcast picture detection result.
[0022] Optionally, the step of performing data compression processing on the live network broadcast data to obtain compressed live network broadcast data specifically includes:
[0023] According to the preset bit rate adjustment rule, the bit rate value corresponding to the live broadcast data is reduced, and the live broadcast data after the bit rate value is reduced is used as the compressed live broadcast data.
[0024] Optionally, the step of transmitting the compressed live broadcast data through the reduced network bandwidth specifically includes:
[0025] Determine the proportion of the reduced network bandwidth in the total network bandwidth;
[0026] When the reduced bandwidth ratio is greater than the bandwidth ratio threshold, compression processing is re-executed until the bandwidth ratio between the network bandwidth on which the compressed live broadcast data is based and the total network bandwidth is no greater than the bandwidth ratio threshold, and the live broadcast data with a bandwidth ratio no greater than the bandwidth ratio threshold obtained after compression processing is transmitted.
[0027] This specification provides a data transmission device based on network live broadcast, including:
[0028] Acquisition module, used to obtain network live broadcast data;
[0029] A bandwidth determination module, configured to determine the network bandwidth required to transmit the network live broadcast data based on the network live broadcast data;
[0030] A bandwidth proportion determination module is used to determine the bandwidth proportion of the network bandwidth in the preset total network bandwidth when it is determined that the live broadcast picture obtained by transmitting the network live broadcast data based on the network bandwidth meets the preset conditions;
[0031] a bandwidth compression module, configured to perform data compression processing on the network live broadcast data when the bandwidth ratio is greater than a preset bandwidth ratio threshold, to obtain compressed network live broadcast data, and to reduce the network bandwidth;
[0032] The transmission module is used to transmit the compressed network live broadcast data through the reduced network bandwidth.
[0033] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the above-mentioned data transmission method based on network live broadcast.
[0034] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the above-mentioned data transmission method based on network live broadcast is implemented.
[0035] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:
[0036] It can be seen from the above method that in the data transmission method based on live broadcast provided in this specification, the network bandwidth required for transmitting live broadcast data can be determined based on the acquired live broadcast data. Then, when it is determined that the live broadcast picture obtained by transmitting live broadcast data based on the network bandwidth meets the preset conditions, the bandwidth ratio of the network bandwidth in the preset total network bandwidth is determined. Then, when the bandwidth ratio is greater than the preset bandwidth ratio threshold, the live broadcast data is compressed to obtain compressed live broadcast data, and the corresponding network bandwidth is reduced at the same time. Finally, the compressed live broadcast data is transmitted to the network corresponding to the total network bandwidth through the reduced network bandwidth.
[0037] As can be seen from the above, the data transmission method based on live broadcast provided in this specification can determine whether the live broadcast data needs to be compressed based on the network bandwidth required for transmission after determining that the corresponding live broadcast image meets preset conditions based on the acquired live broadcast data. When data transmission is performed using the method described in this specification, the viewing fluency and viewing experience of users when watching live broadcasts can be effectively guaranteed, while the use and operation of other users or devices on the network will not be affected by excessive network bandwidth occupation. This improves the work efficiency of other users or devices on the network, and also ensures that the live broadcast and normal network use are not affected. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The exemplary embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation of this specification. In the drawings:
[0039] Figure 1 A flowchart of a data transmission method based on network live broadcast provided in this specification;
[0040] Figure 2 This is a schematic diagram of the overall structure of a data transmission method based on network live broadcast provided in this specification;
[0041] Figure 3 This is a schematic diagram of a data transmission device based on network live broadcast provided in this specification;
[0042] Figure 4 This specification provides a corresponding Figure 1 Schematic diagram of the structure of the electronic equipment. DETAILED DESCRIPTION
[0043] To make the objectives, technical solutions, and advantages of this specification more clear, the following will clearly and completely describe the technical solutions of this specification in conjunction with the specific embodiments of this specification and the corresponding drawings. Obviously, the embodiments described are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this specification.
[0044] The technical solutions provided by the embodiments of this specification are described in detail below with reference to the accompanying drawings.
[0045] Figure 1 This is a flowchart of a data transmission method based on network live broadcast provided in this specification, which includes the following steps:
[0046] S101: Obtaining live broadcast data.
[0047] Streaming media technology is maturing and profoundly impacting people's daily lives. Live streaming and online video conferencing are well-known examples of this technology. While its widespread adoption brings significant convenience, it also impacts network transmission bandwidth in various practical scenarios to meet transmission needs. When broadcasting live streams on a network, using a large amount of network bandwidth to transmit live data can impact the bandwidth of other users or devices on the network while they are processing other tasks, causing unnecessary losses and impacts. Therefore, how to ensure the normal transmission of live streaming data while ensuring the normal use of other users or devices on the same network is an urgent problem that needs to be solved.
[0048] To this end, this specification provides a data transmission method based on live streaming. The execution entity employed by this specification can be a terminal device such as a desktop computer or laptop computer, a server, or a network transmission device such as a router. Furthermore, this specification can also be implemented in the form of software, such as a client installed on a terminal device. For ease of explanation, this specification will only describe the data transmission method based on live streaming using a server as the execution entity.
[0049] Based on this, the live broadcast-based data transmission method provided in this specification can determine whether the network bandwidth for transmitting the live broadcast data needs to be reduced based on the acquired live broadcast data. When it is determined that the network bandwidth required for transmitting the live broadcast data does not meet the set conditions, the live broadcast data is compressed and transmitted.
[0050] The application scenario in which the server transmits live broadcast data can be determined based on actual application requirements. For example, in the live broadcast of a large-scale entertainment event, when the server transmits the acquired live broadcast data to the network used by the viewing users, it can determine whether the live broadcast data meets the set conditions based on the network bandwidth corresponding to the live broadcast data. If the bandwidth is too large or the proportion of the total network bandwidth occupied is too high, the server can compress the live broadcast data to reduce the network bandwidth used to transmit the live broadcast data, so that the viewing users on the network can watch the live broadcast smoothly and with low latency, while not affecting the normal use of other users on the network.
[0051] For example, in a company or organization holding a multi-person online conference, the server can determine whether the network bandwidth usage meets the set requirements based on the acquired live broadcast data. If the bandwidth usage is too high, the live broadcast data will be compressed. This effectively ensures that the live broadcast proceeds smoothly without affecting the work of other users on the network, effectively improving the efficiency of the live broadcast and avoiding abnormal situations.
[0052] In this specification, the server can obtain the live broadcast data corresponding to the live broadcast scene.
[0053] Specifically, the server can obtain the live broadcast data corresponding to the live broadcast scenario in a variety of ways. For example, the server can obtain the microwave transmission data generated by the microwave transmission method during the live broadcast, and use the received microwave transmission data as the target live broadcast data. In addition to the above methods, the server can also obtain the dedicated line transmission data generated by the dedicated line transmission method during the live broadcast, or obtain the cloud transmission data generated by the cloud data transmission method. The specific method of how to obtain the live broadcast data corresponding to the live broadcast scenario is not strictly limited in this manual. Any means or method that can obtain complete live broadcast data in the current technology can be selected and set, and can be flexibly set according to the actual application scenario.
[0054] In addition, to ensure that the live broadcast is not forced to terminate due to errors in a single live broadcast data, the server can simultaneously obtain multiple transmission data such as microwave transmission data generated by microwave transmission, dedicated line transmission data generated by dedicated line transmission, and cloud transmission data generated by cloud data transmission in a pre-set live broadcast scenario, and select any one of the transmission data as the live broadcast data. For example, the microwave transmission data can be used as the live broadcast data. If it is determined in a subsequent step that the live broadcast image corresponding to the live broadcast data does not meet the preset conditions, in order to ensure the stability and continuity of the live broadcast, the server can replace the live broadcast data whose live broadcast image does not meet the preset conditions with the transmission data corresponding to other transmission methods previously obtained, and use the replaced live broadcast data to perform the transmission process in the subsequent steps.
[0055] It should be noted that the live streaming data used for replacement should be identical to the live streaming content corresponding to the data being replaced. For example, in a live streaming scenario, if the server simultaneously obtains microwave transmission data, dedicated line transmission data, and cloud transmission data during the live streaming, the live streaming content corresponding to these three types of data should be identical. Furthermore, if different acquisition methods result in different data formats for the transmission data corresponding to the same live streaming content, the server can perform a unified format conversion on the transmission data obtained through various methods during the acquisition phase. This ensures that, when the live streaming data needs to be replaced, the replacement process will not affect the normal broadcast of the live streaming due to different data formats.
[0056] S102: Determine the network bandwidth required for transmitting the live network broadcast data according to the live network broadcast data.
[0057] S103: When it is determined that the live broadcast image obtained by transmitting the network live broadcast data based on the network bandwidth meets a preset condition, determine the bandwidth ratio of the network bandwidth in the preset total network bandwidth.
[0058] In this specification, the server can determine, based on the acquired live streaming data, the network bandwidth required for directly transmitting the unprocessed live streaming data. Subsequently, the server can determine the proportion of the network bandwidth within the preset total network bandwidth when it is determined that the live streaming image obtained by transmitting the unprocessed live streaming data based on the network bandwidth meets preset conditions.
[0059] Specifically, the server can determine the network bandwidth required for directly transmitting the live broadcast data based on the acquired data volume corresponding to the live broadcast data per unit time. The network bandwidth can be specifically expressed as the size of the data transmitted per unit time, such as bits per second (bit / s or bps), MB / s, GB / s, etc. The specific unit of expression of the determined network bandwidth is associated with the corresponding data size transmitted per unit time. This specification does not strictly limit the specific expression of the network bandwidth.
[0060] Next, after determining the network bandwidth required for live streaming data transmission, the server can obtain the current network status information corresponding to the network to which the aforementioned total network bandwidth belongs. The network to which the total network bandwidth belongs can be understood as the network used by the server to transmit the live streaming data after obtaining it, while the total network bandwidth is used to indicate the maximum network bandwidth limit corresponding to that network. The current network status information can represent the network operating status of the network after obtaining the live streaming data, specifically indicating whether the network is currently connected normally and whether the operating status is stable.
[0061] Then, the server can input the previously acquired network live broadcast data, the network bandwidth corresponding to the network live broadcast data, and the above-mentioned current network status information into a preset live broadcast image detection model, so that the live broadcast image detection model can determine the live broadcast image detection result for the network live broadcast data based on the received network live broadcast data, network bandwidth, and current network status information. The above-mentioned generated live broadcast image detection result can be used to indicate whether the live broadcast image corresponding to the network live broadcast data meets the preset conditions. When it is determined that the live broadcast image detection result generated by the above steps can indicate that the live broadcast image corresponding to the network live broadcast data meets the preset conditions, the server can determine the bandwidth ratio of the network bandwidth corresponding to the network live broadcast data in the preset total network bandwidth.
[0062] Regarding the specific process of determining the live broadcast image detection result, after the server inputs the live broadcast data, network bandwidth, and current network status information into a preset live broadcast image detection model, the live broadcast image detection model can simulate the live broadcast image based on the received live broadcast data and network bandwidth, and based on the network operating status corresponding to the current network status information, thereby simulating and generating a simulated live broadcast image corresponding to the live broadcast data. The server can then perform live broadcast image detection on the generated simulated live broadcast image using the live broadcast image detection model to determine the live broadcast image detection result corresponding to the live broadcast data.
[0063] In this specification, considering that errors or anomalies may occur in the data transmission process of live broadcast data, preset conditions will be set to determine whether the live broadcast picture corresponding to the live broadcast data is normal. The detection content of the simulated live broadcast picture of the live broadcast data mainly includes the above-mentioned judgment of whether the simulated live broadcast picture meets the preset conditions. Among them, the preset conditions can specifically include judgment conditions for the content of the live broadcast image, such as detecting whether the overall image display of the simulated live broadcast picture is complete and normal, whether there is blurred display or abnormal screen in the simulated live broadcast picture, detecting whether the display color of the simulated live broadcast picture is normal, etc., and performing image content detection on the generated simulated live broadcast picture according to the preset detection standard or set threshold. Alternatively, the preset conditions can also include detection standards for the corresponding quality of the live broadcast picture.
[0064] For example, the system can detect the resolution of the simulated live broadcast image, determine whether the live broadcast image is displayed coherently, and whether there is frame dropout based on the simulated live broadcast image within a preset time period. The system can also perform image quality testing on the generated simulated live broadcast image based on preset detection standards or set thresholds. This manual does not strictly define the specific content and standards of the preset conditions. The preset conditions can be flexibly set and adjusted according to actual application scenarios.
[0065] When the generated live screen detection result indicates that the live screen corresponding to the network live data meets the preset conditions, the server can determine its bandwidth share in the preset total network bandwidth based on the network bandwidth corresponding to the network live data, and then execute the subsequent steps. If the generated live screen detection result indicates that the live screen corresponding to the network live data does not meet the preset conditions, the server can replace the live screen that does not meet the preset conditions based on the network live data collected in the previous steps for performing the replacement operation, and re-generate a simulated live screen through the live screen detection model for detection. Only when it is determined that the live screen corresponding to the network live data meets the preset conditions can the server continue to execute the subsequent steps. This detection method can effectively ensure the data integrity and live screen quality of the network live broadcast during the screen broadcast, thereby ensuring that users can watch normally while improving the user experience.
[0066] It should be noted that the current network status information mentioned in the above process may also directly affect the live screen detection results. If the network operation status corresponding to the network to which the total network bandwidth belongs is not stable or disconnected, it may cause the live screen detection model to be unable to normally simulate and generate the simulated live screen corresponding to the network live data, and then obtain a live screen detection result indicating that the live screen does not meet the preset conditions. However, in this case, the server does not necessarily replace the network live data whose live screen does not meet the preset conditions, but first tries to determine the network operation status of the network again and re-simulates the generation. When a simulated live screen that meets the preset conditions still cannot be generated after determining the preset number of times, the server can actively prompt the relevant responsible personnel or developers, or report errors and record errors to solve the problem.
[0067] S104: When the bandwidth ratio is greater than a preset bandwidth ratio threshold, data compression is performed on the network live broadcast data to obtain compressed network live broadcast data, and the network bandwidth is reduced.
[0068] S105: Transmitting the compressed live broadcast data via the reduced network bandwidth.
[0069] In this specification, the server may determine the relationship between the bandwidth share and the bandwidth share threshold based on the bandwidth share of the live streaming data determined in the above steps and the bandwidth share threshold. When it is determined that the bandwidth share is greater than the bandwidth share threshold, the server may perform data compression on the corresponding live streaming data to obtain compressed live streaming data, while simultaneously reducing the network bandwidth corresponding to the previously uncompressed live streaming data.
[0070] Specifically, in order to ensure the smoothness of the transmission of live broadcast data and avoid affecting the normal use and operation of other users or devices in the network that are not watching live broadcasts, the server can adjust the bit rate of live broadcast data whose bandwidth share is greater than the bandwidth share threshold to reduce bandwidth pressure. The bandwidth share threshold is used to indicate the limited bandwidth share of the total network bandwidth in the corresponding network that can be used to transmit live broadcasts. In order to ensure the normal use and operation of other users or devices in the network, the other bandwidth of the total network bandwidth except the bandwidth share threshold cannot be used for live broadcasts. The server can reduce the bit rate value corresponding to the live broadcast data according to the preset bit rate adjustment rules, thereby reducing the data volume corresponding to the live broadcast data, and then use the live broadcast data with the reduced bit rate value as the compressed live broadcast data. Based on the compressed live broadcast data, the server can determine the network bandwidth required for transmitting the compressed live broadcast data.
[0071] In addition to determining whether live streaming data can be directly transmitted based on the bandwidth usage and bandwidth usage threshold, the server can also determine whether to compress the live streaming data based on the bandwidth size corresponding to the network bandwidth determined in the previous step and a pre-set bandwidth size threshold. Similarly, if the server determines that the network bandwidth exceeds the pre-set bandwidth size threshold, it can compress the live streaming data, namely, adjust the bit rate to reduce the bandwidth required for transmission.
[0072] Furthermore, after determining the compressed live broadcast data, the server can transmit the compressed live broadcast data to the network corresponding to the total network bandwidth according to the corresponding reduced network bandwidth.
[0073] Before directly transmitting the compressed live broadcast data, the server can once again determine the bandwidth ratio of the reduced network bandwidth corresponding to the compressed live broadcast data in the total network bandwidth. If the reduced network bandwidth is still greater than the preset bandwidth ratio threshold, the server can re-execute the compression process, i.e., perform the above compression process steps on the compressed live broadcast data again. Only when the bandwidth ratio between the network bandwidth based on the compressed live broadcast data and the total network bandwidth is no greater than the bandwidth ratio threshold can the server transmit the live broadcast data with a bandwidth ratio no greater than the bandwidth ratio threshold to the network corresponding to the total network bandwidth.
[0074] In addition, when re-executing the compression process, the server can also choose to directly re-compress the uncompressed network live broadcast data obtained in the initial step in order to avoid data loss caused by multiple compression processes. In this method, the server can preset a plurality of corresponding bit rate adjustment rules according to the above steps, select the bit rate adjustment rule with a larger bit rate reduction, and then re-compress the network live broadcast data obtained initially. The specific method of re-compressing network live broadcast data whose network bandwidth after reduction is still greater than the preset bandwidth share threshold is not strictly limited in this manual and can be flexibly adjusted and set according to the application scenario and actual needs.
[0075] Regarding the subsequent transmission of live streaming data within the network, transmission is performed based on the reduced network bandwidth without affecting the normal use of other users on the network who are not watching the live streaming. The specific transmission process can be multi-line and multi-device distribution based on the compressed live streaming data, such as the live broadcast of a company's annual meeting or the online live broadcast of a large-scale entertainment event, or it can be a single-line broadcast based solely on the compressed live streaming data. There are many different specific transmission methods, which are not strictly limited in this manual and can be flexibly selected according to the actual application scenario.
[0076] In order to facilitate understanding of the overall data transmission method based on live broadcast, the following is a structural diagram of the data transmission method based on live broadcast to illustrate, as shown in FIG. Figure 2 As shown in .
[0077] Figure 2 This is a schematic diagram of the overall structure of a data transmission method based on network live broadcast provided in this specification.
[0078] like Figure 2 As shown in , the server can determine the network bandwidth required to transmit the network live broadcast data based on the acquired network live broadcast data. Then, based on the network live broadcast data, it is determined whether the corresponding live broadcast picture meets the preset conditions. If not, the server can replace the network live broadcast data that does not meet the preset conditions. After determining that the live broadcast picture corresponding to the network live broadcast data meets the preset conditions, the bandwidth ratio corresponding to the previously determined network bandwidth is determined based on the total network bandwidth, and the relationship between the bandwidth ratio and the bandwidth ratio threshold is determined. Then, when it is determined that the bandwidth ratio is greater than the bandwidth ratio threshold, the server can compress the network live broadcast data and reduce the corresponding network bandwidth accordingly, thereby obtaining the compressed network live broadcast data and the reduced network bandwidth, as shown in FIG. Figure 2 As shown in .
[0079] Finally, the live broadcast data whose network bandwidth meets the bandwidth usage threshold requirement is transmitted to the network corresponding to the total network bandwidth. It is not difficult to see that the method in this specification can effectively ensure the smooth transmission of live broadcasts without occupying too much network bandwidth and thus affecting the normal use and operation of other users or devices on the network. This effectively improves the smoothness and stability of the overall live broadcast process and enhances the user experience of users on the network.
[0080] As can be seen from the above, the data transmission method based on live broadcast provided in this specification can determine whether the corresponding live broadcast image is normal based on the acquired live broadcast data, and determine whether compression processing is required based on the network bandwidth required for transmission. In live broadcast scenarios such as online meetings and large-scale online live broadcasts, data transmission using this method can effectively ensure the user's viewing fluency and viewing experience when watching live broadcasts, while also preventing the use and work of other users or devices on the network from being affected by excessive network bandwidth consumption, thereby improving the work efficiency and user experience of other users or devices on the network to a certain extent.
[0081] The above are one or more implementation methods of this specification. Based on the same idea, this specification also provides a corresponding data transmission device based on network live broadcast, such as Figure 3 shown.
[0082] Figure 3 This is a schematic diagram of a data transmission device based on network live broadcast provided in this specification, including:
[0083] Acquisition module 301, used to acquire network live broadcast data;
[0084] The bandwidth determination module 302 is configured to determine the network bandwidth required to transmit the live network broadcast data according to the live network broadcast data;
[0085] The bandwidth proportion determining module 303 is configured to determine the bandwidth proportion of the network bandwidth in the preset total network bandwidth when it is determined that the live broadcast image obtained by transmitting the network live broadcast data based on the network bandwidth meets the preset conditions;
[0086] The bandwidth compression module 304 is configured to perform data compression processing on the live broadcast data to obtain compressed live broadcast data and reduce the network bandwidth when the bandwidth ratio is greater than a preset bandwidth ratio threshold;
[0087] The transmission module 305 is used to transmit the compressed live broadcast data through the reduced network bandwidth.
[0088] Optionally, the acquisition module 301 is specifically used to acquire microwave transmission data generated based on a microwave transmission method during live broadcast as acquired live broadcast data.
[0089] Optionally, the acquisition module 301 is specifically used to determine the network live broadcast data used to replace the microwave transmission data when it is determined that the live broadcast picture obtained by transmitting the network live broadcast data based on the network bandwidth does not meet the preset conditions, and transmit the replaced network live broadcast data, wherein the replaced network live broadcast data includes: dedicated line transmission data generated based on a dedicated line transmission method and cloud transmission data generated based on a cloud data transmission method, and the network live broadcast content corresponding to the microwave transmission data, the dedicated line transmission data and the cloud transmission data are the same.
[0090] Optionally, the bandwidth proportion determination module 303 is specifically used to obtain current network status information, where the current network status information is used to characterize the network operation status of the network to which the total network bandwidth belongs; input the network live broadcast data, the network bandwidth and the current network status information into a preset live broadcast screen detection model, so that the live broadcast screen detection model determines the live broadcast screen detection result for the network live broadcast data based on the network live broadcast data, the network bandwidth and the current network status information, and the live broadcast screen detection result is used to indicate whether the live broadcast screen corresponding to the network live broadcast data meets the preset conditions.
[0091] Optionally, the bandwidth proportion determination module 303 is specifically used to input the network live broadcast data, the network bandwidth and the current network status information into a preset live broadcast screen detection model, so that the live broadcast screen detection model generates a simulated live broadcast screen of the network live broadcast data based on the network operating status corresponding to the current network status information according to the network live broadcast data and the network bandwidth, and performs live broadcast screen detection on the simulated live broadcast screen to determine the live broadcast screen detection result.
[0092] Optionally, the bandwidth compression module 304 is specifically used to reduce the bit rate value corresponding to the live broadcast data according to a preset bit rate adjustment rule, and use the live broadcast data with the reduced bit rate value as the compressed live broadcast data.
[0093] Optionally, the transmission module 305 is specifically used to determine the proportion of the reduced bandwidth in the total network bandwidth after the reduction; when the proportion of the reduced bandwidth is greater than the bandwidth proportion threshold, re-execute the compression process until the bandwidth proportion between the network bandwidth on which the compressed live broadcast data is based and the total network bandwidth is no greater than the bandwidth proportion threshold, and transmit the live broadcast data whose bandwidth proportion obtained after the compression process is no greater than the bandwidth proportion threshold.
[0094] This specification also provides a computer-readable storage medium, which stores a computer program that can be used to execute the above Figure 1 A data transmission method based on network live broadcast is provided.
[0095] This manual also provides Figure 4 The one shown corresponds to Figure 1 Schematic diagram of the electronic equipment. Figure 4 As shown, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 The data transmission method based on network live broadcast.
[0096] In the 1990s, technological improvements could be clearly distinguished as either hardware improvements (for example, improvements to circuit structures like diodes, transistors, and switches) or software improvements (improvements to process flows). However, with the advancement of technology, many process flow improvements today can now be considered direct improvements to hardware circuit structures. Designers almost always create the corresponding hardware circuit structure by programming the improved process flow into the hardware circuit. Therefore, it cannot be said that a process flow improvement cannot be implemented using hardware modules. For example, a programmable logic device (PLD), such as a field programmable gate array (FPGA), is an integrated circuit whose logical function is determined by user programming. Designers can "integrate" a digital system on a PLD through their own programming, without having to hire a chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly done using "logic compiler" software. This is similar to the software compiler used when developing programs. Before compilation, the original code must also be written in a specific programming language, called a hardware description language (HDL). There is not just one HDL, but many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art will also understand that by simply programming the method flow in one of these hardware description languages and then programming it into an integrated circuit, a hardware circuit that implements the logic method flow can be easily obtained.
[0097] The controller can be implemented in any suitable manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that in addition to implementing the controller in a purely computer-readable program code format, the controller can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules that implement the method and structures within the hardware component.
[0098] The systems, devices, modules, or units described in the above embodiments may be implemented by computer chips or entities, or by products having certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0099] For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0100] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0101] This specification 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 this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of 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 produce 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.
[0102] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work 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 The function specified in one or more boxes.
[0103] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device 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.
[0104] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0105] Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0106] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0107] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0108] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Thus, this specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0109] This specification may be described in the general context of computer-executable instructions, such as program modules, executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media, including storage devices.
[0110] The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.
[0111] The foregoing is merely an example of the present invention and is not intended to limit the present invention. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present invention are intended to be included within the scope of the claims of the present invention.
Claims
1. A data transmission method based on network live broadcast, characterized in that: include: Get live webcast data; Determining, based on the live network broadcast data, a network bandwidth required for transmitting the live network broadcast data; If it is determined that a live broadcast image obtained by transmitting the network live broadcast data based on the network bandwidth meets a preset condition, determining a bandwidth ratio of the network bandwidth in a preset total network bandwidth, wherein the preset condition is used to determine whether the live broadcast image is normal; When the bandwidth ratio is greater than a preset bandwidth ratio threshold, performing data compression processing on the network live broadcast data to obtain compressed network live broadcast data, and reducing the network bandwidth; Transmitting the compressed live broadcast data via the reduced network bandwidth; Whether the live broadcast image meets the preset conditions is determined in the following manner: Acquire current network status information, where the current network status information is used to represent a network operation status of the network to which the total network bandwidth belongs; The network live broadcast data, the network bandwidth and the current network status information are input into a preset live broadcast picture detection model, so that the live broadcast picture detection model performs live broadcast picture simulation to simulate the live broadcast picture corresponding to the network live broadcast data, and performs image content detection and image quality detection on the live broadcast picture according to the preset detection standard, so as to determine the live broadcast picture detection result, and the live broadcast picture detection result is used to indicate whether the live broadcast picture meets the preset conditions.
2. The method according to claim 1, wherein The step of obtaining live network broadcast data specifically includes: The microwave transmission data generated based on the microwave transmission method during the live broadcast is obtained as the obtained live broadcast data.
3. The method according to claim 2, wherein The method further comprises: When it is determined that the live broadcast picture obtained by transmitting the network live broadcast data based on the network bandwidth does not meet the preset conditions, the network live broadcast data used to replace the microwave transmission data is determined, and the replaced network live broadcast data is transmitted, wherein the replaced network live broadcast data includes: dedicated line transmission data generated based on a dedicated line transmission method and cloud transmission data generated based on a cloud data transmission method, and the network live broadcast content corresponding to the microwave transmission data, the dedicated line transmission data and the cloud transmission data is the same.
4. The method according to claim 1, wherein The step of inputting the network live broadcast data, the network bandwidth, and the current network status information into a preset live broadcast image detection model so that the live broadcast image detection model determines a live broadcast image detection result for the network live broadcast data based on the network live broadcast data, the network bandwidth, and the current network status information, specifically includes: The network live broadcast data, the network bandwidth and the current network status information are input into a preset live broadcast picture detection model, so that the live broadcast picture detection model generates a simulated live broadcast picture of the network live broadcast data based on the network live broadcast data and the network bandwidth and the network operation status corresponding to the current network status information, and performs live broadcast picture detection on the simulated live broadcast picture to determine the live broadcast picture detection result.
5. The method according to claim 1, wherein The step of performing data compression processing on the live broadcast data to obtain compressed live broadcast data specifically includes: According to the preset bit rate adjustment rule, the bit rate value corresponding to the live broadcast data is reduced, and the live broadcast data after the bit rate value is reduced is used as the compressed live broadcast data.
6. The method according to claim 1, wherein The step of transmitting the compressed live broadcast data through the reduced network bandwidth specifically includes: Determine the proportion of the reduced network bandwidth in the total network bandwidth; When the reduced bandwidth ratio is greater than the bandwidth ratio threshold, compression processing is re-executed until the bandwidth ratio between the network bandwidth on which the compressed live broadcast data is based and the total network bandwidth is no greater than the bandwidth ratio threshold, and the live broadcast data with a bandwidth ratio no greater than the bandwidth ratio threshold obtained after compression processing is transmitted.
7. A data transmission device based on network live broadcast, characterized in that: include: Acquisition module, used to obtain network live broadcast data; A bandwidth determination module, configured to determine the network bandwidth required to transmit the network live broadcast data based on the network live broadcast data; a bandwidth proportion determination module, configured to determine a bandwidth proportion of the network bandwidth in a preset total network bandwidth when it is determined that a live broadcast image obtained by transmitting the network live broadcast data based on the network bandwidth satisfies a preset condition, wherein the preset condition is used to determine whether the live broadcast image is normal; a bandwidth compression module, configured to perform data compression processing on the network live broadcast data when the bandwidth ratio is greater than a preset bandwidth ratio threshold, to obtain compressed network live broadcast data, and to reduce the network bandwidth; A transmission module, configured to transmit the compressed live broadcast data via the reduced network bandwidth; The bandwidth proportion determination module is specifically used to obtain current network status information, where the current network status information is used to characterize the network operation status of the network to which the total network bandwidth belongs; input the network live broadcast data, the network bandwidth and the current network status information into a preset live broadcast picture detection model, so that the live broadcast picture detection model performs a live broadcast picture simulation to simulate the live broadcast picture corresponding to the network live broadcast data, and performs image content detection and image quality detection on the live broadcast picture according to a preset detection standard, so as to determine a live broadcast picture detection result, and the live broadcast picture detection result is used to indicate whether the live broadcast picture meets the preset conditions.
8. A computer-readable storage medium, characterized in that The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Adaptive stream media playing method, apparatus, system and mobile terminal
CN101499918A
Data downloading method, device and system
CN104618371A
Video lag prediction method and device, equipment and medium
CN114401447A