Data transmission method and device based on network broadcast, and electronic equipment
By dynamically adjusting the bandwidth share and data compression processing in network live broadcast, the problem of bandwidth occupation by network live broadcast is solved, efficient live broadcast transmission and normal operation of other network tasks is achieved, and the overall network stability and user experience are improved.
Patent Information
- Application Number
- CN202411119987.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2044-08-14
AI Technical Summary
During the live broadcast of the network, high bandwidth requirements may lead to the reduction of efficiency of other network tasks, and may even cause economic losses or accidents. How to ensure low-latency normal broadcast without affecting the normal use of other devices or users is an important issue.
By obtaining live network data, determine the bandwidth required for transmission, and perform data compression processing when the bandwidth proportion exceeds the threshold, reduce the bandwidth proportion, ensure that the live broadcast screen meets the preset conditions and transmits it. It uses microwave, dedicated line or cloud transmission Data replacement, and compression processing is carried out in combination with the bit rate adjustment rules.
It effectively ensures the smoothness and user experience of online live broadcasts, while avoiding the impact on other network users or devices, and improving the work efficiency and user experience of other users or devices on the network.
Smart Images

Figure CN119052518A_ABST
Abstract
Description
Technical Field
[0001] The present invention 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 application of streaming media technology brings convenience, it also affects the pressure on network bandwidth in its application scenarios. Take the application scenario of data broadcasting for live broadcasts on the Internet as an example. At present, large-scale cultural and entertainment activities often need to be broadcast online and reprinted during normal operations, and the corresponding live broadcast data often requires a higher rate of network bandwidth for transmission support during the transmission process. If a large amount of bandwidth in the network is used to transmit live broadcast data, users or devices processing other tasks in the network will be affected by the bandwidth rate, which will in turn affect the efficiency of task execution. In serious cases, it may also 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 the network bandwidth required for transmitting the network live broadcast data according to the network live broadcast data;
[0010] In the case where it is determined that the live broadcast picture obtained by transmitting the network live broadcast data based on the network bandwidth meets the preset condition, determining the bandwidth proportion of the network bandwidth in the preset total network bandwidth;
[0011] 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;
[0012] The compressed live broadcast data is transmitted via the reduced network bandwidth.
[0013] Optionally, the step of obtaining network live broadcast data specifically includes:
[0014] The microwave transmission data generated based on the microwave transmission method during the live broadcast on the Internet is obtained as the acquired 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 the dedicated line transmission method and cloud transmission data generated based on the cloud data transmission method, and the network live broadcast contents corresponding to the microwave transmission data, the dedicated line transmission data and the cloud transmission data are the same.
[0017] Optionally, the step of determining whether a live broadcast picture obtained by transmitting the network 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 characterize the 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 according to the network live broadcast data, the network bandwidth and the current network status information, and 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 picture detection model so that the live broadcast picture detection model determines a live broadcast picture detection result for the network live broadcast data according to 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 operation status corresponding to the current network status information according to the network live broadcast data and the network bandwidth, 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, the compression process 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 the compression process is transmitted.
[0027] This specification provides a data transmission device based on network live broadcast, including:
[0028] The acquisition module is used to obtain network live broadcast data;
[0029] A bandwidth determination module, used to determine the network bandwidth required for transmitting the network live broadcast data according to the network live broadcast data;
[0030] A bandwidth proportion determination module, 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, used for performing data compression processing on the network live broadcast data to obtain compressed network live broadcast data and reduce the network bandwidth when the bandwidth ratio is greater than a preset bandwidth ratio threshold;
[0032] The transmission module is used to transmit the compressed network live broadcast data through the reduced network bandwidth.
[0033] The present specification provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the data transmission method based on network live broadcast is implemented.
[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, wherein the processor implements the above-mentioned data transmission method based on network live broadcast when executing the program.
[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 proportion of the network bandwidth in the preset total network bandwidth is determined. Next, when the bandwidth proportion is greater than the preset bandwidth proportion 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] From the above content, it can be seen that the data transmission method based on live broadcast provided in this specification can determine whether it is necessary to compress the live broadcast data according to the acquired live broadcast data, after determining that the corresponding live broadcast screen meets the preset conditions, according to the network bandwidth required for transmission. When data transmission is performed by the method in this specification, the viewing fluency and viewing experience of users when watching live broadcasts can be effectively guaranteed, and at the same time, the use and work of other users or devices in the network will not be affected due to excessive occupation of network bandwidth. That is, the work efficiency of other users or devices in the network is improved, and the normal use of live broadcasts and the network is guaranteed not to be 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 illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on 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 A schematic diagram of a data transmission device based on network live broadcast provided in this specification;
[0042] Figure 4 A method provided in this specification corresponding to Figure 1 Schematic diagram of the structure of an electronic device. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work 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 in conjunction with the accompanying drawings.
[0045] Figure 1 A flowchart of a data transmission method based on network live broadcast provided in this specification includes the following steps:
[0046] S101: Acquire network live broadcast data.
[0047] At present, streaming media technology is becoming more and more mature and has a profound impact on people's daily lives. Live streaming and online video conferencing are all relatively well-known application examples of this technology. While this technology has brought great convenience due to its wide application, it has also affected the network transmission bandwidth in various actual application scenarios in order to meet transmission needs. When broadcasting live streaming in a certain network, if a large amount of network bandwidth is used to transmit live streaming data, the network bandwidth of other users or devices in the network may be affected when processing other tasks, causing unnecessary losses and impacts. Therefore, how to transmit live streaming data normally while ensuring the normal use of other users or devices in the same network is an urgent problem to be solved.
[0048] To this end, this specification provides a data transmission method based on live broadcasting, wherein the execution subject adopted by the method provided in this specification can be a terminal device such as a desktop computer, a laptop computer, or a server, or a network transmission device such as a router, and in addition, the execution subject of this specification can also be a subject in the form of software, such as a client installed in a terminal device. For the sake of convenience, this specification below only takes the server as the execution subject to explain the data transmission method based on live broadcasting.
[0049] Based on this, the data transmission method based on live broadcast provided in this specification can be used to determine whether the network bandwidth for transmitting 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 live broadcast data does not meet the set conditions, the live broadcast data is compressed and the compressed live broadcast data is transmitted.
[0050] Among them, the application scenario of the server transmitting live network data can be determined according to the actual application needs. For example, in the live broadcast scenario of large-scale entertainment activities, when the server transmits the acquired live network data to the network used by the viewing users, it can judge whether the live network data meets the set conditions according to the network bandwidth corresponding to the live network data. Assuming that the bandwidth is too large or the proportion of the total network bandwidth occupied is too high, the server can compress the live network data to reduce the network bandwidth used to transmit the live network data, so that the viewing users in the network can watch the live broadcast smoothly and with low latency, while it will not affect the normal use of other users in the network.
[0051] For another example, in a scenario where a company or organization holds a multi-person online conference discussion, the server can determine whether the network bandwidth ratio required for transmission meets the set conditions based on the acquired live broadcast data, and compress the live broadcast data when the bandwidth ratio is too large. While effectively ensuring the normal live broadcast of the conference, it will not affect the normal work of other users in the network, effectively improving the live broadcast efficiency 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, in order to avoid the phenomenon that the live broadcast is forced to terminate due to an error in a single live broadcast data, the server can 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 scene, and select any one of the transmission data as the live broadcast data, for example, the microwave transmission data is used as the live broadcast data. When it is determined in the subsequent steps that the live broadcast picture 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 picture 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 broadcast data used for replacement should be the same as the live broadcast content corresponding to the replaced live broadcast data. Assuming that in a certain live broadcast scenario, the server simultaneously obtains microwave transmission data, dedicated line transmission data, and cloud transmission data during live broadcast, the live broadcast content corresponding to these three types of data should be the same. In addition, if the data format of the transmission data corresponding to the same live broadcast content is different due to different acquisition methods. The server can perform a unified format conversion on the transmission data obtained by various means during the acquisition phase, so that when there is a need to replace the live broadcast data, it is ensured that the normal broadcast of the live broadcast will not be affected by different data formats during the replacement process.
[0056] S102: Determine the network bandwidth required for transmitting the network live broadcast data according to the network live 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 the network bandwidth required for directly transmitting the unprocessed live broadcast data based on the acquired live broadcast data. Then, the server can determine the bandwidth proportion of the network bandwidth in the preset total network bandwidth when the live broadcast picture obtained by transmitting the unprocessed live broadcast data based on the above network bandwidth meets the preset conditions.
[0059] Specifically, the server can determine the network bandwidth required for directly transmitting the live network data according to the data volume corresponding to the live network data in the unit time, and the specific representation of the network bandwidth can be the size of the data transmitted in the unit time, such as bits per second (bit / s or bps), MB / s, GB / s, etc. The specific representation unit of the determined network bandwidth is associated with the corresponding data size transmitted in the unit time, and the specific representation form of the network bandwidth is not strictly limited in this specification.
[0060] Next, after determining the network bandwidth required for the live broadcast data transmission, the server can obtain the current network status information corresponding to the network to which the above-mentioned total network bandwidth belongs. Among them, the network to which the total network bandwidth belongs can be understood as the network used by the server to transmit the live broadcast data after obtaining the live broadcast data, and the total network bandwidth is used to indicate the maximum limit of the network bandwidth corresponding to the network. The current network status information can represent the network operation status of the network after obtaining the live broadcast data, and specifically can represent whether the network is currently connected normally, whether the operation status is stable, and other status information.
[0061] Then, the server can input the previously acquired live broadcast data, the network bandwidth corresponding to the live broadcast data, and the above-mentioned current network status information into the preset live broadcast picture detection model, so that the live broadcast picture detection model can determine the live broadcast picture detection result for the live broadcast data based on the received live broadcast data, network bandwidth, and current network status information. The live broadcast picture detection result generated above can be used to indicate whether the live broadcast picture corresponding to the live broadcast data meets the preset conditions. In the case of determining that the live broadcast picture detection result generated through the above steps can indicate that the live broadcast picture corresponding to the live broadcast data meets the preset conditions, the server can determine the bandwidth proportion of the network bandwidth corresponding to the live broadcast data in the preset total network bandwidth.
[0062] Regarding the specific determination process of the live broadcast picture detection result, after the server inputs the network live broadcast data, network bandwidth and current network status information into the preset live broadcast picture detection model, the live broadcast picture detection model can simulate the live broadcast picture based on the received network live broadcast data and network bandwidth, and based on the network operation status corresponding to the current network status information, thereby simulating and generating a simulated live broadcast picture corresponding to the network live broadcast data. Then, the server can perform live broadcast picture detection on the generated simulated live broadcast picture through the live broadcast picture detection model, thereby determining the live broadcast picture detection result corresponding to the network 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. Or the preset conditions can also include detection standards for the corresponding quality of the live broadcast picture.
[0064] For example, the resolution size corresponding to the simulated live broadcast image is detected, and the live broadcast image corresponding to the simulated live broadcast image within the preset time period is judged to determine whether the display is coherent, whether there is frame loss, etc. The image quality of the generated simulated live broadcast image is detected according to the preset detection standard or set threshold. This manual does not strictly limit the specific content and standards of the preset conditions. The preset conditions can be flexibly set and adjusted according to the actual application scenario.
[0065] When the generated live screen detection result can indicate that the live screen corresponding to the live broadcast data meets the preset conditions, the server can determine the bandwidth ratio of the live broadcast data in the preset total network bandwidth according to the network bandwidth corresponding to the live broadcast data, and then execute the subsequent steps. If the generated live screen detection result indicates that the live screen corresponding to the live broadcast data does not meet the preset conditions, the server can replace the live broadcast data that does not meet the preset conditions according to the live broadcast data collected in the previous steps for performing the replacement operation, and re-generate the simulated live screen through the live screen detection model for detection. Only when it is determined that the live screen corresponding to the live broadcast 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 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, the live screen detection model may not be able 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 error records to solve the problem.
[0067] S104: When the bandwidth share is greater than a preset bandwidth share threshold, data compression is performed on the live broadcast data to obtain compressed 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 can determine the size relationship between the bandwidth share and the bandwidth share threshold value based on the bandwidth share of the network live broadcast data determined in the above steps based on the total network bandwidth and the preset bandwidth share threshold value. When it is determined that the bandwidth share is greater than the bandwidth share threshold value, the server can perform data compression processing on the corresponding network live broadcast data to obtain compressed network live broadcast data, and at the same time reduce the network bandwidth corresponding to the previously uncompressed network live broadcast 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 do not watch 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, in addition to judging whether the live broadcast data can be directly transmitted based on the bandwidth ratio and the bandwidth ratio threshold, the server can also directly judge whether the live broadcast data needs to be compressed based on the bandwidth size corresponding to the network bandwidth determined in the previous step and the pre-set bandwidth size threshold. Similarly, when it is determined that the network bandwidth exceeds the pre-set bandwidth size threshold, the server can compress the live broadcast data, that is, adjust the bit rate to reduce the bandwidth required for transmission.
[0072] Further, after determining the compressed network live broadcast data, the server can transmit the compressed network live broadcast data to the network corresponding to the total network bandwidth according to the corresponding reduced network bandwidth.
[0073] Among them, 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, that is, perform the above compression process steps on the compressed live broadcast data again. Until the bandwidth ratio between the network bandwidth based on the compressed live broadcast data and the total network bandwidth is not greater than the bandwidth ratio threshold, the server can transmit the live broadcast data whose bandwidth ratio is not 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 select a rate adjustment rule with a larger rate reduction according to the corresponding multiple rate adjustment rules preset in the above steps and then re-compress the network live broadcast data initially obtained. The specific method for 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 process of the live broadcast data in the network, it is transmitted based on the reduced network bandwidth without affecting the normal use of other users in the network who are not watching the live broadcast. The specific transmission process can be multi-line and multi-device distribution based on the compressed live broadcast data, such as live broadcast of company annual meetings, online live broadcast of large-scale entertainment activities, etc., or it can be a single-line broadcast based on the compressed live broadcast data. There are many 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, a structural diagram of the data transmission method based on live broadcast is used as an example. 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 live broadcast data based on the acquired live broadcast data. Then, based on the live broadcast data, it is determined whether the corresponding live broadcast picture meets the preset conditions. If not, the server can replace the live broadcast data that does not meet the preset conditions. After determining that the live broadcast picture corresponding to the live broadcast data meets the preset conditions, the bandwidth ratio corresponding to the previously determined network bandwidth is determined according to the total network bandwidth, and the relationship between the bandwidth ratio and the bandwidth ratio threshold is determined. Next, when it is determined that the bandwidth ratio is greater than the bandwidth ratio threshold, the server can compress the live broadcast data and reduce the corresponding network bandwidth accordingly, so as to obtain the compressed 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 ratio 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 broadcast of live broadcast, while not occupying too much network bandwidth to affect the normal use and work of other users or devices in the network, effectively improving the smoothness and stability of the overall process of live broadcast, and also improving the user experience of users in the network.
[0080] From the above content, it can be seen that the data transmission method based on live broadcast provided in this specification can judge whether the corresponding live broadcast picture is normal according to the acquired live broadcast data, and judge whether compression processing is required according to the network bandwidth required for transmission. In live broadcast scenarios such as online meetings and large-scale online live broadcasts, data transmission through this method can effectively ensure the viewing fluency and viewing experience of users when watching live broadcasts, and at the same time, the use and work of other users or devices in the network will not be affected due to occupying too much network bandwidth, which improves the work efficiency and use experience of other users or devices in 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 A schematic diagram of a data transmission device based on network live broadcast provided in this specification includes:
[0083] The acquisition module 301 is used to acquire network live broadcast data;
[0084] The bandwidth determination module 302 is used to determine the network bandwidth required for transmitting the network live broadcast data according to the network live broadcast data;
[0085] The bandwidth proportion determination module 303 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;
[0086] The bandwidth compression module 304 is used to perform data compression processing on the network live broadcast data when the bandwidth ratio is greater than a preset bandwidth ratio threshold, obtain compressed network live broadcast data, and reduce the network bandwidth;
[0087] The transmission module 305 is used to transmit the compressed network 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 on the Internet 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 the dedicated line transmission method and cloud transmission data generated based on the cloud data transmission method, and the network live broadcast contents 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, wherein 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 according to 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 preset conditions.
[0091] Optionally, the bandwidth share 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 operation 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 after the bit rate value is reduced 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; when the reduced bandwidth proportion is greater than the bandwidth proportion threshold, re-execute compression processing 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 compression processing is no greater than the bandwidth proportion threshold.
[0094] This specification also provides a computer-readable storage medium, which stores a computer program, which 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 A schematic diagram of the electronic device. 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, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, 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 should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0097] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. 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 also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing 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 with 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 smart phone, 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 device is described in 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. Moreover, 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 disk storage, CD-ROM, optical storage, etc.) that contain 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 the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to 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 capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0103] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0104] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0105] The 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. The memory is an example of a computer-readable medium.
[0106] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. 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 disk read-only memory (CD-ROM), digital versatile disk (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 temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0107] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0108] 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. Moreover, 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 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 executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. 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 communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0110] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0111] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A data transmission method based on network live broadcast, characterized in that: include: Get live webcast data; Determining the network bandwidth required for transmitting the network live broadcast data according to the network live broadcast data; In the case where it is determined that the live broadcast picture obtained by transmitting the network live broadcast data based on the network bandwidth meets the preset condition, determining the bandwidth proportion of the network bandwidth in the preset total network bandwidth; 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; The compressed live broadcast data is transmitted via the reduced network bandwidth.
2. The method according to claim 1, characterized in that The step of obtaining network live broadcast data specifically includes: The microwave transmission data generated based on the microwave transmission method during the live broadcast on the Internet is obtained as the acquired live broadcast data.
3. The method according to claim 2, characterized in that 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 the dedicated line transmission method and cloud transmission data generated based on the cloud data transmission method, and the network live broadcast contents corresponding to the microwave transmission data, the dedicated line transmission data and the cloud transmission data are the same.
4. The method according to claim 1, characterized in that The step of determining that the live broadcast picture obtained by transmitting the network live broadcast data based on the network bandwidth meets the preset condition specifically includes: Acquire 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; 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 according to the network live broadcast data, the network bandwidth and the current network status information, and 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.
5. The method according to claim 4, characterized in that The step of inputting 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 determines the live broadcast picture detection result for the network live broadcast data according to 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 operation status corresponding to the current network status information according to the network live broadcast data and the network bandwidth, and performs live broadcast picture detection on the simulated live broadcast picture to determine the live broadcast picture detection result.
6. The method according to claim 1, characterized in that 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.
7. The method according to claim 1, characterized in that 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, the compression process 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 the compression process is transmitted.
8. A data transmission device based on network live broadcast, characterized in that: include: The acquisition module is used to obtain network live broadcast data; A bandwidth determination module, used to determine the network bandwidth required for transmitting the network live broadcast data according to the network live broadcast data; A bandwidth proportion determination module, 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; A bandwidth compression module, used for performing data compression processing on the network live broadcast data to obtain compressed network live broadcast data and reduce the network bandwidth when the bandwidth ratio is greater than a preset bandwidth ratio threshold; The transmission module is used to transmit the compressed network live broadcast data through the reduced network bandwidth.
9. 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 7 is implemented.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Device and method for regulating vedio communication data code ratio
CN101047845A
Adaptive stream media playing method, apparatus, system and mobile terminal
CN101499918A
Camera-based video acquisition realization method and apparatus
CN103607564A
Data downloading method, device and system
CN104618371A
Bandwidth adjusting method and bandwidth server
CN105282051A
Cited By
Video data transmission method and device, storage medium and electronic equipment
CN120455784A
