Live streaming data processing method, device and storage medium
By detecting the performance parameters of live streaming equipment, enhancing image quality, and adjusting the streaming bitrate, the problem of increased bandwidth and server costs in live streaming data transmission is solved, achieving cost savings without sacrificing image quality.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-27
- Publication Date
- 2026-03-20
AI Technical Summary
With the upgrading of live streaming equipment, the amount of live streaming data is increasing, leading to increased bandwidth and server costs. Existing technologies make it difficult to reduce the streaming bitrate to save costs without sacrificing picture quality.
By detecting the current performance parameters of the live streaming equipment, the target image quality enhancement information is determined and image quality enhancement is performed. Then, the streaming bitrate is adjusted according to the image quality enhancement information to reduce the streaming bitrate and save bandwidth and server costs.
Without sacrificing image quality, bandwidth and server costs were reduced, enabling efficient transmission of live stream data.
Smart Images

Figure CN116320523B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present disclosure relate to the technical field of computer, and particularly, to a live streaming data processing method and device, and a storage medium. BACKGROUND
[0002] The data source of the live streaming overall process is at the push streaming end. The data pushed by the push streaming end to the streaming server has a great influence on the user experience of the watching end. With the continuous upgrading of live streaming devices, the live streaming data is getting larger and larger, and the transmission of the live streaming data greatly increases the bandwidth cost and server cost. SUMMARY
[0003] Embodiments of the present disclosure provide a live streaming data processing method, device and storage medium to save bandwidth cost and server cost without losing picture quality.
[0004] In a first aspect, embodiments of the present disclosure provide a live streaming data processing method, comprising:
[0005] detecting a current performance parameter of a live streaming device during recording of live streaming data by the live streaming device;
[0006] determining target picture quality enhancement information of the live streaming data according to the current performance parameter, and performing picture quality enhancement on the live streaming data according to the target picture quality enhancement information;
[0007] determining a target push streaming code rate according to the target picture quality enhancement information, and pushing the live streaming data after picture quality enhancement to a server according to the target push streaming code rate.
[0008] In a second aspect, embodiments of the present disclosure provide a live streaming data processing device, comprising:
[0009] a detection unit configured to detect a current performance parameter of a live streaming device during recording of live streaming data by the live streaming device;
[0010] a picture quality enhancement unit configured to determine target picture quality enhancement information of the live streaming data according to the current performance parameter, and perform picture quality enhancement on the live streaming data according to the target picture quality enhancement information;
[0011] a code rate determination unit configured to determine a target push streaming code rate according to the target picture quality enhancement information;
[0012] a communication unit configured to push the live streaming data after picture quality enhancement to a server according to the target push streaming code rate.
[0013] In a third aspect, embodiments of the present disclosure provide an electronic device, comprising at least one processor and a memory.
[0014] The memory stores computer-executable instructions;
[0015] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the live streaming data processing method as described in the first aspect and various possible designs of the first aspect.
[0016] In a fourth aspect, the embodiments of the present disclosure provide a computer-readable storage medium, which stores computer-executable instructions. When a processor executes the computer-executable instructions, the live streaming data processing method as described in the first aspect and various possible designs of the first aspect is implemented.
[0017] In a fifth aspect, the embodiments of the present disclosure provide a computer program product, which includes computer-executable instructions. When a processor executes the computer-executable instructions, the live streaming data processing method as described in the first aspect and various possible designs of the first aspect is implemented.
[0018] The live streaming data processing method, device and storage medium provided by the embodiments of the present disclosure detect the current performance parameter of the live streaming device in the process of recording the live streaming data by the live streaming device, determine the target quality enhancement information of the live streaming data according to the current performance parameter, and perform quality enhancement on the live streaming data according to the target quality enhancement information. The target push streaming code rate is determined according to the target quality enhancement information, and the live streaming data after quality enhancement is pushed to the server according to the target push streaming code rate. The embodiments of the present disclosure first perform appropriate quality enhancement on the live streaming data according to the current performance of the live streaming device, and then reduce the push streaming code rate of the live streaming data to push to the server, so as to save the bandwidth cost and the server cost on the basis of not losing the picture quality. BRIEF DESCRIPTION OF DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure or the prior art, the drawings needed in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative labor.
[0020] Figure 1 An application scenario example diagram of the live streaming data processing method provided by an embodiment of the present disclosure is shown in the figure.
[0021] Figure 2 A flowchart of the live streaming data processing method provided by an embodiment of the present disclosure is shown in the figure.
[0022] Figure 3 A flowchart of the live streaming data processing method provided by another embodiment of the present disclosure is shown in the figure.
[0023] Figure 4 A live streaming data processing method flowchart is provided for another embodiment of the present disclosure.
[0024] Figure 5 A structural block diagram of a live streaming data processing device is provided for an embodiment of the present disclosure.
[0025] Figure 6 A hardware structure schematic diagram of an electronic device is provided for an embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] To make the objectives, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be described clearly and completely below with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are some, but not all, of the embodiments of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of the present disclosure.
[0027] The link of live streaming data transmission in the prior art is roughly divided into three parts, a push streaming end (a host end), a streaming service end and a pull streaming end (a viewer end). The push streaming end obtains video and audio data through live streaming devices such as a camera and a microphone, and obtains live streaming data by compression and packaging, and pushes the live streaming data to the streaming service end (a server). The streaming service end is responsible for transcoding and distribution. The pull streaming end decompresses the live streaming data pulled from the streaming service end, restores the video and audio data, and plays the video and audio data.
[0028] The data source of the whole live streaming process is at the push streaming end. The data quality of the live streaming data pushed by the push streaming end to the streaming service end has a great influence on the user experience of the viewer end. With the continuous updating and upgrading of live streaming devices, the live streaming data is getting larger and larger. The transmission of the live streaming data causes a great increase in bandwidth cost and server cost.
[0029] To solve the above technical problems, the present disclosure considers that reducing the push streaming code rate can reduce the bandwidth cost and the server cost. The push streaming code rate represents the number of bits of audio and video data transmitted per second at the push streaming end. The push streaming code rate is proportional to the video picture quality. Reducing the push streaming code rate will cause the picture quality to decrease. In order to not lose the picture quality, the live streaming data can be first enhanced in picture quality, and then the push streaming code rate is reduced after the picture quality is enhanced. The decrease in picture quality caused by reducing the push streaming code rate can be offset. The picture quality enhancement will occupy the performance of the live streaming device. Therefore, the live streaming data can be enhanced in picture quality to an appropriate degree according to the current performance of the live streaming device, and then the push streaming code rate of the live streaming data is reduced to push the live streaming data to the service end, so as to save the bandwidth cost and the server cost on the basis of not losing the picture quality.
[0030] Specifically, the live stream data processing method disclosed herein involves detecting the current performance parameters of the live stream device during the recording of live stream data; determining target image quality enhancement information for the live stream data based on the current performance parameters; enhancing the image quality of the live stream data based on the target image quality enhancement information; determining a target streaming bitrate based on the target image quality enhancement information; and pushing the enhanced live stream data to the server based on the target streaming bitrate.
[0031] The live stream data processing method disclosed herein is applicable to, for example, Figure 1 The live streaming system shown includes a live streaming device 101 (pushing end) for the broadcaster, a server 102, and a terminal device 103 (pulling end) for the viewer. The live streaming device 101 records live stream data. During the recording process, the live stream data processing method described above is executed, and the live stream data is finally pushed to the server 102. The server 102 is responsible for transcoding and distributing the data to the viewer's terminal device 103. The live streaming device 101 includes, but is not limited to, mobile phones, tablets, and other electronic devices capable of recording and pushing live stream data.
[0032] It should be noted that the user information and data involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.
[0033] The live stream data processing method disclosed herein will be described in detail below with reference to specific embodiments.
[0034] refer to Figure 2 , Figure 2 This is a schematic flowchart of a live stream data processing method according to an embodiment of the present disclosure. The method of this embodiment can be applied to live streaming devices, and the live stream data processing method includes:
[0035] S201. During the process of recording live stream data on the live streaming device, detect the current performance parameters of the live streaming device.
[0036] Optionally, the live streaming device may start a detection sub-thread to detect the performance parameters.
[0037] S202. Determine the target image quality enhancement information for the live stream data based on the current performance parameters, and enhance the image quality of the live stream data based on the target image quality enhancement information.
[0038] In the embodiment, the quality enhancement of the live streaming data can run the quality enhancement algorithm in the live streaming device, and the quality enhancement algorithm needs to consume the performance of the live streaming device. The better the quality enhancement effect of the live streaming data is, the more performance of the live streaming device needs to be consumed.
[0039] Optionally, the quality enhancement effect can be divided into levels. Different quality enhancement levels run the quality enhancement algorithm capable of achieving the corresponding quality enhancement effect of the level, and correspondingly, the performance of the live streaming device consumed is also different. For example, the quality enhancement levels are divided into three quality enhancement levels: a first quality enhancement level, a second quality enhancement level, and a third quality enhancement level. The first quality enhancement level is higher than the second quality enhancement level, and the second quality enhancement level is higher than the third quality enhancement level. The higher quality enhancement level (such as the first quality enhancement level) in the three quality enhancement levels needs to consume more device performance, and can output higher quality images. The higher level quality enhancement algorithm is suitable for being applied in live streaming rooms that meet certain conditions and have higher performance live streaming devices. The lower quality enhancement level (such as the third quality enhancement level) in the three quality enhancement levels consumes less device performance, and the output image quality is not as good as that of the higher quality enhancement level, but is suitable for more live streaming devices.
[0040] In order to ensure the stability of the performance of the live streaming device, the target quality enhancement information of the live streaming data can be determined according to the current performance parameter of the live streaming device. The target quality enhancement information is a target quality enhancement level. Specifically, the better the performance reflected by the current performance parameter of the live streaming device is, the higher level quality enhancement algorithm the live streaming device currently allows to run, and therefore the higher the target quality enhancement level is.
[0041] After the target quality enhancement level is determined, the quality enhancement can be performed according to the target quality enhancement level, so that the quality of the live streaming data reaches the effect corresponding to the target quality enhancement level. Specifically, the quality enhancement algorithm corresponding to the target quality enhancement level can be used to perform quality enhancement on the live streaming data. The higher the target quality enhancement level is, the higher the quality enhancement quality of the corresponding quality enhancement algorithm is. Optionally, the quality enhancement algorithms corresponding to different quality enhancement levels can differ in data processing granularity, and achieve different quality enhancement qualities. For example, the quality enhancement algorithm corresponding to the low quality enhancement level performs quality enhancement with a granularity of 4x4 pixel points, the quality enhancement algorithm corresponding to the medium quality enhancement level performs quality enhancement with a granularity of 2x2 pixel points, and the quality enhancement algorithm corresponding to the high quality enhancement level performs quality enhancement with a granularity of a single pixel point. The quality enhancement algorithm can be any algorithm capable of achieving quality enhancement, such as a neural network model.
[0042] S203, determine a target push stream code rate according to the target picture quality enhancement information, and push the live stream data after picture quality enhancement to the server according to the target push stream code rate.
[0043] In this embodiment, in order to save bandwidth cost and reduce server cost, the push stream code rate of the live stream data can be reduced, wherein the push stream code rate represents the number of bits of live stream data (audio and video data) transmitted per second by the push stream end, the lower the push stream code rate, the lower the bandwidth cost and server cost, but the push stream code rate is proportional to the picture quality, the lower the push stream code rate, the lower the picture quality, and since the live stream data has been enhanced in picture quality, the push stream code rate is reduced on the basis of picture quality enhancement, which can ensure that the bandwidth cost and server cost are reduced without loss of picture quality.
[0044] In the case that the live stream data has been enhanced in different levels of picture quality, in order to ensure that the picture quality is not lost, the push stream code rate also needs to be adjusted according to the level of picture quality enhancement, that is, the target push stream code rate is determined according to the target picture quality enhancement level, and the live stream data is pushed to the server according to the target push stream code rate. Optionally, the higher the picture quality enhancement level, the greater the push stream code rate can be reduced, so that the bandwidth cost and server cost are reduced on the basis of not losing picture quality.
[0045] The live stream data processing method of this embodiment detects the current performance parameter of the live device during the process of recording live stream data by the live device; determines the target picture quality enhancement level of the live stream data according to the current performance parameter, and enhances the picture quality of the live stream data according to the target picture quality enhancement level; determines the target push stream code rate according to the target picture quality enhancement level, and pushes the live stream data after picture quality enhancement to the server according to the target push stream code rate. This embodiment first enhances the picture quality of the live stream data to an appropriate degree according to the current performance of the live device, and then reduces the push stream code rate of the live stream data to push to the server, so as to save the bandwidth cost and server cost without loss of picture quality.
[0046] On the basis of any of the above embodiments, the target picture quality enhancement information of the live stream data is determined according to the current performance parameter, which can specifically include:
[0047] According to the mapping relationship between the preset performance parameter and the picture quality enhancement level, the target picture quality enhancement level corresponding to the current performance parameter is determined; wherein in the mapping relationship between the performance parameter and the picture quality enhancement level, the better the performance reflected by the performance parameter, the higher the corresponding picture quality enhancement level.
[0048] In the embodiment, the mapping relationship between the performance parameter and the picture quality enhancement level can be preconfigured. For example, the picture quality enhancement level is divided into three picture quality enhancement levels: a first picture quality enhancement level, a second picture quality enhancement level, and a third picture quality enhancement level. The performance parameter range corresponding to each picture quality enhancement level can be configured. The higher the picture quality enhancement level, the better the performance required, in other words, the better the performance reflected by the performance parameter, the higher the corresponding picture quality enhancement level.
[0049] In determining the target picture quality enhancement level, the current performance parameter can be matched with the performance parameter range corresponding to each picture quality enhancement level according to the preconfigured mapping relationship between the performance parameter and the picture quality enhancement level, so as to determine the target picture quality enhancement level corresponding to the current performance parameter.
[0050] Correspondingly, the mapping relationship between the performance parameter and the picture quality enhancement level in the above embodiment includes the preconfigured range of each performance parameter corresponding to each picture quality enhancement level.
[0051] For example, the picture quality enhancement level is divided into three picture quality enhancement levels: a first picture quality enhancement level, a second picture quality enhancement level, and a third picture quality enhancement level. The current performance parameter includes four performance parameters: performance parameter 1, performance parameter 2, performance parameter 3, and performance parameter 4. The preconfigured range of each performance parameter corresponding to each picture quality enhancement level is as follows:
[0052] The performance parameter 1 corresponding to the first picture quality enhancement level, the second picture quality enhancement level, and the third picture quality enhancement level is respectively: less than or equal to a%, greater than a% and less than or equal to b%, and greater than b% and less than or equal to c%. If it exceeds c%, the picture quality enhancement function will be turned off. The critical values a, b, and c of the performance parameter 1 are all in the range of 0-100, and a < b < c;
[0053] The performance parameter 2 corresponding to the first picture quality enhancement level, the second picture quality enhancement level, and the third picture quality enhancement level is respectively: less than or equal to d%, greater than d% and less than or equal to e%, and greater than e% and less than or equal to f%. If it exceeds f%, the picture quality enhancement function will be turned off. The critical values d, e, and f of the performance parameter 2 are all in the range of 0-100, and d < e < f;
[0054] The performance parameter 3 corresponding to the first picture quality enhancement level, the second picture quality enhancement level, and the third picture quality enhancement level is less than or equal to g, greater than g and less than or equal to h, and greater than h and less than or equal to i. If it exceeds i, the picture quality enhancement function will be turned off. The critical values g, h, and i of the performance parameter 2 are all in the range of 0-1000, and g < h < i;
[0055] The performance parameter 4 case can also be divided into four levels: a first level, a second level, a third level, and a fourth level. The performance corresponding to the first level is better than the performance corresponding to the second level, the performance corresponding to the second level is better than the performance corresponding to the third level, and the performance corresponding to the third level is better than the performance corresponding to the fourth level. The first picture quality enhancement level corresponds to the first level of the performance parameter 4, the second picture quality enhancement level corresponds to the second level of the performance parameter 4, the third picture quality enhancement level corresponds to the third level of the performance parameter 4, and the fourth level of the performance parameter 4 will turn off the picture quality enhancement function.
[0056] On the basis of the above embodiment, the target picture quality enhancement level corresponding to the current performance parameter is determined according to the mapping relationship between the preset performance parameters and the picture quality enhancement levels, and specifically can include:
[0057] If at least one of the current performance parameters is within the preset range of the performance parameter corresponding to a picture quality enhancement level, and all performance parameters in the current performance parameters do not exceed the upper limit of the preset range of each performance parameter corresponding to the picture quality enhancement level, the picture quality enhancement level is determined as the target picture quality enhancement level corresponding to the current performance parameter.
[0058] In the present embodiment, when comparing each performance parameter in the current performance parameter with the preset range of each performance parameter corresponding to each picture quality enhancement level, a mode similar to the bucket effect is adopted. As long as any performance parameter falls within the preset range of the performance parameter corresponding to a lower level of picture quality enhancement level and does not exceed the upper limit of the preset range, the target picture quality enhancement level is determined as the lower level of picture quality enhancement level.
[0059] For example, in the above embodiment, if the performance parameter 1≤a%, the performance parameter 2≤d%, the performance parameter 3≤g, and the performance parameter 4 is in the first level are simultaneously satisfied, all performance parameters in the current performance parameter are within the preset range of each performance parameter corresponding to the first picture quality enhancement level, and the target picture quality enhancement level is determined as the first picture quality enhancement level.
[0060] If at least one of the performance parameter 1, the performance parameter 2, the performance parameter 3, and the performance parameter 4 does not satisfy the preset range of each performance parameter corresponding to the first picture quality enhancement level, but the performance parameter that does not satisfy satisfies the preset range of each performance parameter corresponding to the second picture quality enhancement level: a%<performance parameter 1≤b%, d%<performance parameter 2≤e%, g<performance parameter 3≤h, and the performance parameter 4 is in the second level, that is, at least one of the current performance parameters is within the preset range of the performance parameter corresponding to the second picture quality enhancement level, and all performance parameters do not exceed the upper limit of the preset range of each performance parameter corresponding to the second picture quality enhancement level, the target picture quality enhancement level is determined as the second picture quality enhancement level.
[0061] If at least one of the performance parameter 1, the performance parameter 2, the performance parameter 3, and the performance parameter 4 exceeds the upper limit of the preset range of each performance parameter corresponding to the second picture quality enhancement level, but the performance parameter meets the preset range of each performance parameter corresponding to the third picture quality enhancement level: b% < performance parameter 1 < c%, e% < performance parameter 2 < f%, h < performance parameter 3 < i, and the performance parameter 4 is in the third level, that is, at least one of the current performance parameters is in the preset range of the performance parameter corresponding to the third picture quality enhancement level, and all performance parameters do not exceed the upper limit of the preset range of each performance parameter corresponding to the third picture quality enhancement level, it is determined that the target picture quality enhancement level is the third picture quality enhancement level.
[0062] If at least one of the performance parameter 1, the performance parameter 2, the performance parameter 3, and the performance parameter 4 exceeds the upper limit of the preset range of each performance parameter corresponding to the third picture quality enhancement level, that is, at least one of the performance parameters meets performance parameter 1 > c%, performance parameter 2 > f%, performance parameter 3 > i, and the performance parameter 4 is in the fourth level, the picture quality enhancement is turned off, that is, the picture quality enhancement level is the lowest.
[0063] On the basis of any of the above embodiments, considering that the current live mode is a certain special live mode, for example, a multi-person live mode (such as a PK mode), which consumes more device performance, in order to ensure the normal operation of the current live mode, the picture quality enhancement needs to be turned off to avoid performance problems caused by the picture quality enhancement. Therefore, before determining the target picture quality enhancement level of the live stream data according to the current performance parameters, the picture quality enhancement level of the live stream data can be determined according to the current performance parameters as shown in the following formula: Figure 3
[0064] S301, it is judged whether the current live mode is a target live mode.
[0065] The target live mode includes but is not limited to a multi-person live mode.
[0066] S302, if it is determined that the current live mode is not the target live mode, the target picture quality enhancement information of the live stream data can be determined according to the current performance parameters.
[0067] S303, if it is determined that the current live mode is the target live mode, the determination of the target picture quality enhancement information of the live stream data according to the current performance parameters is stopped, and the live stream data is pushed to the server at an initial picture quality and an initial stream pushing rate.
[0068] In this embodiment, if the current live streaming mode is the target live streaming mode, in order to avoid performance problems caused by image quality enhancement, the execution of the target image quality enhancement information for determining the live stream data based on the current performance parameters is stopped. That is, the image quality is still the initial image quality at this time. In order to ensure that the image quality is not lost, the push bitrate is no longer reduced. That is, the live stream data is pushed to the server with the initial image quality and the initial push bitrate, thereby ensuring the smooth operation of the target live streaming mode.
[0069] Based on any of the above embodiments, such as Figure 4 As shown, the determination of the target streaming bitrate based on the target image quality enhancement information described in S203 may specifically include:
[0070] S401. Determine the reduction range of the streaming bitrate based on the target image quality enhancement level;
[0071] S402. Determine the target streaming bitrate based on the initial streaming bitrate of the live stream data and the decrease in the streaming bitrate.
[0072] In this embodiment, since the live stream data has undergone image quality enhancement, the streaming bitrate can be reduced, ensuring reduced bandwidth and server costs without sacrificing image quality. The higher the image quality enhancement level, the greater the reduction in streaming bitrate. Therefore, the reduction range can be determined based on the target image quality enhancement level. Then, based on the initial streaming bitrate of the live stream data, the streaming bitrate is reduced by the determined reduction range to determine the target streaming bitrate. For example, the initial streaming bitrate is m Mbps, and the target streaming bitrate is n*m Mbps, where 0 < n < 1.
[0073] Specifically, a pre-configured mapping relationship between image quality enhancement levels and the reduction in streaming bitrate can be established. In this mapping relationship, the higher the image quality enhancement level, the greater the reduction in streaming bitrate. For example, the reduction in streaming bitrate is expressed as a coefficient, with high, medium, and low image quality enhancement levels corresponding to coefficients x, y, and z, respectively. Here, x, y, and z are floating-point numbers in the range of 0 to 1, and x < y < z. That is, the streaming bitrates corresponding to high, medium, and low image quality enhancement levels are x times, y times, and z times the initial streaming bitrate, respectively, with the reduction in streaming bitrate decreasing from large to small.
[0074] Therefore, when determining the target streaming bitrate, the streaming bitrate reduction range corresponding to the target image quality enhancement level can be determined based on the preset mapping relationship between the image quality enhancement level and the streaming bitrate reduction range; then, based on the initial streaming bitrate, the streaming bitrate is reduced by the determined streaming bitrate reduction range to determine the target streaming bitrate.
[0075] On the basis of the above-mentioned embodiments, when the mapping relationship between the preset quality enhancement level and the reduction amplitude of the push stream code rate is pre-configured, for any preset quality enhancement level, the corresponding multiple qualities of the preset quality enhancement level under different reduction amplitudes of the push stream code rate can be obtained, that is, different qualities after the quality enhancement of the preset quality enhancement level and the reduction of the push stream code rate at different reduction amplitudes, the multiple qualities and the original quality (without quality enhancement and without reduction of the push stream code rate) are compared, and if the quality under a certain reduction amplitude of the push stream code rate is equivalent to the original quality, it is determined that the reduction amplitude of the push stream code rate is the optimal reduction amplitude of the push stream code rate of the preset quality enhancement level. By performing the above process on different preset quality enhancement levels, the reduction amplitude of the push stream code rate corresponding to each preset quality enhancement level can be obtained, so as to construct the mapping relationship between the quality enhancement level and the reduction amplitude of the push stream code rate, and based on the mapping relationship between the quality enhancement level and the reduction amplitude of the push stream code rate, the maximum bandwidth cost and server cost can be saved.
[0076] Of course, if the quality under the reduction amplitude of the push stream code rate is better than the original quality, that is, the degree of quality enhancement of the preset quality enhancement level is greater than the quality degradation caused by the reduction of the push stream code rate, the bandwidth cost and server cost can be saved while the quality is improved, and the balance between saving the bandwidth cost and server cost and improving the quality can be achieved by adjusting the reduction amplitude of the push stream code rate.
[0077] Corresponding to the live streaming data processing method of the above embodiment, Figure 5 The structure block diagram of the live streaming data processing device provided by the embodiment of the present disclosure is shown. For ease of illustration, only the part related to the embodiment of the present disclosure is shown. For details, refer to Figure 5 The live streaming data processing device 500 includes a detection unit 501, a quality enhancement unit 502, a code rate determination unit 503, and a communication unit 504.
[0078] The detection unit 501 is configured to detect the current performance parameter of the live device during the process of recording the live streaming data by the live device.
[0079] The quality enhancement unit 502 is configured to determine the target quality enhancement level of the live streaming data according to the current performance parameter, and perform quality enhancement on the live streaming data according to the target quality enhancement level.
[0080] The code rate determination unit 503 is configured to determine the target push stream code rate according to the target quality enhancement level.
[0081] The communication unit 504 is configured to push the quality-enhanced live streaming data to the server according to the target push stream code rate.
[0082] In one or more embodiments of the present disclosure, the target picture quality enhancement information is a target picture quality enhancement level.
[0083] In one or more embodiments of the present disclosure, the code rate determination unit 503 is configured to:
[0084] determine a push stream code rate reduction amplitude according to the target picture quality enhancement level;
[0085] determine the target push stream code rate according to the initial push stream code rate of the live streaming data and the push stream code rate reduction amplitude.
[0086] In one or more embodiments of the present disclosure, the code rate determination unit 503 is configured to:
[0087] determine the push stream code rate reduction amplitude corresponding to the target picture quality enhancement level according to a preset mapping relationship between picture quality enhancement levels and push stream code rate reduction amplitudes;
[0088] In the mapping relationship between the picture quality enhancement levels and the push stream code rate reduction amplitudes, the higher the picture quality enhancement level, the greater the corresponding push stream code rate reduction amplitude.
[0089] In one or more embodiments of the present disclosure, the code rate determination unit 503 is further configured to:
[0090] obtain a plurality of pictures corresponding to a preset picture quality enhancement level under different push stream code rate reduction amplitudes;
[0091] compare the plurality of pictures with an original picture to determine a push stream code rate reduction amplitude corresponding to a picture comparable to the original picture as the push stream code rate reduction amplitude corresponding to the preset picture quality enhancement level, and construct a mapping relationship between picture quality enhancement levels and push stream code rate reduction amplitudes.
[0092] In one or more embodiments of the present disclosure, the picture quality enhancement unit 502 is configured to:
[0093] determine the target picture quality enhancement level corresponding to the current performance parameter according to a preset mapping relationship between performance parameters and picture quality enhancement levels.
[0094] In one or more embodiments of the present disclosure, the current performance parameter includes at least two performance parameters.
[0095] The mapping relationship between the performance parameters and the picture quality enhancement levels includes a preset range of each performance parameter corresponding to each picture quality enhancement level.
[0096] In one or more embodiments of the present disclosure, the picture quality enhancement unit 502 is configured to:
[0097] If at least one of the current performance parameters is within a preset range of a performance parameter corresponding to a picture quality enhancement level, and all of the current performance parameters do not exceed an upper limit of the preset range of each performance parameter corresponding to the picture quality enhancement level, the picture quality enhancement level is determined as the target picture quality enhancement level corresponding to the current performance parameters.
[0098] In one or more embodiments of the present disclosure, before determining the target picture quality enhancement information of the live streaming data according to the current performance parameters, the picture quality enhancement unit 502 is further configured to:
[0099] determine whether the current live mode is a target live mode.
[0100] The determining the target picture quality enhancement information of the live streaming data according to the current performance parameters comprises:
[0101] If it is determined that the current live mode is not the target live mode, the target picture quality enhancement information of the live streaming data is determined according to the current performance parameters.
[0102] In one or more embodiments of the present disclosure, the picture quality enhancement unit 502 is further configured to:
[0103] If it is determined that the current live mode is the target live mode, the determination of the target picture quality enhancement information of the live streaming data according to the current performance parameters is stopped, and the live streaming data is pushed to the server at an initial picture quality and an initial stream pushing code rate.
[0104] In one or more embodiments of the present disclosure, the target live mode comprises a multi-person live streaming mode.
[0105] The device provided in the embodiment can be used to execute the technical solutions of the above-mentioned method embodiments, and has similar principles and technical effects, which will not be described here again.
[0106] Reference Figure 6The diagram illustrates a structural schematic of an electronic device 600 suitable for implementing embodiments of the present disclosure. The electronic device 600 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, personal digital assistants (PDAs), portable Android devices (PADs), portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.
[0107] like Figure 6 As shown, electronic device 600 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 602 or a program loaded from storage device 608 into random access memory (RAM) 603. RAM 603 also stores various programs and data required for the operation of electronic device 600. The processing unit 601, ROM 602, and RAM 603 are interconnected via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.
[0108] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 An electronic device 600 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.
[0109] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer readable medium, the computer program comprising program code for performing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.
[0110] Note that the computer readable medium described above in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination thereof. The computer readable storage medium may, for example, be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any suitable combination of the above. More specific examples of the computer readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus or device. In the present disclosure, the computer readable signal medium can include a data signal carried in a baseband or as part of a carrier wave, in which the computer readable program code is carried. Such a propagated data signal can take any of a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium can also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate or transport a program for use by or in connection with an instruction execution system, apparatus or device. The program code contained on the computer readable medium can be transmitted by any suitable medium, including but not limited to wire, cable, RF (radio frequency), or the like, or any suitable combination of the above.
[0111] The computer readable medium described above can be included in the electronic device described above; or can exist separately from the electronic device and be not assembled in the electronic device.
[0112] The computer readable medium described above carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods illustrated by the embodiments described above.
[0113] Computer program code for carrying out operations of the present disclosure can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0114] The flow diagrams and the block diagrams in the drawings are meant as possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flow diagrams and the block diagrams can represent a module, a segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks can sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flow diagrams, and combinations thereof, can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or combinations of special purpose hardware and computer instructions.
[0115] The units described in the embodiments of the present disclosure can be implemented by software, or by hardware. In some cases, the name of the unit does not constitute a limitation on the unit itself. For example, the first obtaining unit can also be described as a unit for obtaining at least two Internet protocol addresses.
[0116] The functions described in this specification can be implemented in part or in whole by one or more hardware logic components. For example, and without limitation, illustrative types of hardware logic components that can be used include Field-programmable Gate Arrays (FPGAs), Program-specific Integrated Circuits (ASICs), Program-specific Standard Products (ASSPs), System-on-a-chip systems (SOCs), Complex Programmable Logic Devices (CPLDs), etc.
[0117] In the context of this disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium will include one or more of: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0118] In a first aspect, according to one or more embodiments of the present disclosure, a live streaming data processing method is provided, comprising:
[0119] In the process of recording live streaming data by a live device, a current performance parameter of the live device is detected;
[0120] Target quality enhancement information of the live streaming data is determined according to the current performance parameter, and the live streaming data is quality enhanced according to the target quality enhancement information;
[0121] A target push streaming code rate is determined according to the target quality enhancement information, and the live streaming data after quality enhancement is pushed to a server according to the target push streaming code rate.
[0122] According to one or more embodiments of the present disclosure, the target quality enhancement information is a target quality enhancement level.
[0123] According to one or more embodiments of the present disclosure, the target push streaming code rate is determined according to the target quality enhancement information, comprising:
[0124] A push streaming code rate reduction amplitude is determined according to the target quality enhancement level;
[0125] The target push streaming code rate is determined according to an initial push streaming code rate of the live streaming data and the push streaming code rate reduction amplitude.
[0126] According to one or more embodiments of the present disclosure, the target push streaming code rate is determined according to the target quality enhancement level, comprising:
[0127] A push streaming code rate reduction amplitude corresponding to the target quality enhancement level is determined according to a preset mapping relationship between quality enhancement levels and push streaming code rate reduction amplitudes;
[0128] In the mapping relationship between the picture quality enhancement level and the push stream code rate reduction amplitude, the higher the picture quality enhancement level is, the greater the corresponding push stream code rate reduction amplitude is.
[0129] According to one or more embodiments of the present disclosure, the method further comprises:
[0130] obtaining a plurality of pictures corresponding to different push stream code rate reduction amplitudes for a preset picture quality enhancement level;
[0131] comparing the plurality of pictures with an original picture to determine a push stream code rate reduction amplitude corresponding to a picture equivalent to the original picture as a push stream code rate reduction amplitude corresponding to the preset picture quality enhancement level, and constructing a mapping relationship between picture quality enhancement levels and push stream code rate reduction amplitudes.
[0132] According to one or more embodiments of the present disclosure, the determining of the target picture quality enhancement level of the live streaming data according to the current performance parameter comprises:
[0133] determining the target picture quality enhancement level corresponding to the current performance parameter according to a preset mapping relationship between performance parameters and picture quality enhancement levels.
[0134] According to one or more embodiments of the present disclosure, the current performance parameter comprises at least two performance parameters.
[0135] The mapping relationship between the performance parameters and the picture quality enhancement levels comprises a preset range of each performance parameter corresponding to each picture quality enhancement level.
[0136] According to one or more embodiments of the present disclosure, the determining of the target picture quality enhancement level corresponding to the current performance parameter according to a preset mapping relationship between performance parameters and picture quality enhancement levels comprises:
[0137] if at least one performance parameter in the current performance parameter is within a preset range of the performance parameter corresponding to a certain picture quality enhancement level, and all performance parameters in the current performance parameter do not exceed the upper limit of the preset range of each performance parameter corresponding to the picture quality enhancement level, then the picture quality enhancement level is determined as the target picture quality enhancement level corresponding to the current performance parameter.
[0138] According to one or more embodiments of the present disclosure, before the determining of the target picture quality enhancement information of the live streaming data according to the current performance parameter, the method further comprises:
[0139] judging whether a current live mode is a target live mode.
[0140] The determining of the target picture quality enhancement information of the live streaming data according to the current performance parameter comprises:
[0141] If it is determined that the current live mode is not the target live mode, target quality enhancement information of the live stream data is determined according to the current performance parameter.
[0142] According to one or more embodiments of the present disclosure, the method further includes:
[0143] If it is determined that the current live mode is the target live mode, determining target quality enhancement information of the live stream data according to the current performance parameter is stopped, and the live stream data is pushed to the server at an initial quality and an initial push stream code rate.
[0144] According to one or more embodiments of the present disclosure, the target live mode includes a multi-person live streaming mode.
[0145] In a second aspect, according to one or more embodiments of the present disclosure, a live stream data processing device is provided, including:
[0146] A detection unit is configured to detect a current performance parameter of a live device during recording of live stream data by the live device.
[0147] A quality enhancement unit is configured to determine target quality enhancement information of the live stream data according to the current performance parameter, and perform quality enhancement on the live stream data according to the target quality enhancement information.
[0148] A code rate determination unit is configured to determine a target push stream code rate according to the target quality enhancement information.
[0149] A communication unit is configured to push the quality-enhanced live stream data to a server according to the target push stream code rate.
[0150] According to one or more embodiments of the present disclosure, the target quality enhancement information is a target quality enhancement level.
[0151] According to one or more embodiments of the present disclosure, when determining the target push stream code rate according to the target quality enhancement information, the code rate determination unit is configured to:
[0152] determine a push stream code rate reduction amplitude according to the target quality enhancement level;
[0153] determine the target push stream code rate according to an initial push stream code rate of the live stream data and the push stream code rate reduction amplitude.
[0154] According to one or more embodiments of the present disclosure, when determining the push stream code rate reduction amplitude according to the target quality enhancement level, the code rate determination unit is configured to:
[0155] determine, according to a preset mapping relationship between the preset quality enhancement level and the push stream code rate reduction amplitude, a push stream code rate reduction amplitude corresponding to the target quality enhancement level;
[0156] In the mapping relationship between the quality enhancement level and the push stream code rate reduction amplitude, the higher the quality enhancement level is, the greater the corresponding push stream code rate reduction amplitude is.
[0157] According to one or more embodiments of the present disclosure, the code rate determination unit is further configured to:
[0158] obtain a plurality of qualities corresponding to the preset quality enhancement level under different push stream code rate reduction amplitudes;
[0159] compare the plurality of qualities with the original quality, determine a push stream code rate reduction amplitude corresponding to a quality equivalent to the original quality as the push stream code rate reduction amplitude corresponding to the preset quality enhancement level, and construct the mapping relationship between the quality enhancement level and the push stream code rate reduction amplitude.
[0160] According to one or more embodiments of the present disclosure, when determining the target quality enhancement level of the live streaming data according to the current performance parameter, the quality enhancement unit is configured to:
[0161] determine the target quality enhancement level corresponding to the current performance parameter according to a preset mapping relationship between the performance parameter and the quality enhancement level.
[0162] According to one or more embodiments of the present disclosure, the current performance parameter includes at least two performance parameters.
[0163] The mapping relationship between the performance parameter and the quality enhancement level includes a preset range of each performance parameter corresponding to each quality enhancement level.
[0164] According to one or more embodiments of the present disclosure, when determining the target quality enhancement level corresponding to the current performance parameter according to the preset mapping relationship between the performance parameter and the quality enhancement level, the quality enhancement unit is configured to:
[0165] If at least one performance parameter in the current performance parameter is within a preset range of the performance parameter corresponding to a certain quality enhancement level, and all performance parameters in the current performance parameter do not exceed the upper limit of the preset range of each performance parameter corresponding to the quality enhancement level, the quality enhancement unit determines that the quality enhancement level is the target quality enhancement level corresponding to the current performance parameter.
[0166] According to one or more embodiments of the present disclosure, before determining the target quality enhancement information of the live streaming data according to the current performance parameter, the quality enhancement unit is further configured to:
[0167] Determine if the current live streaming mode is the target live streaming mode;
[0168] The step of determining the target image quality enhancement information for the live stream data based on the current performance parameters includes:
[0169] If it is determined that the current live streaming mode is not the target live streaming mode, then the target image quality enhancement information of the live streaming data is determined based on the current performance parameters.
[0170] According to one or more embodiments of this disclosure, the image enhancement unit is further configured to:
[0171] If the current live streaming mode is determined to be the target live streaming mode, then the execution of the target image quality enhancement information for the live stream data determined based on the current performance parameters is stopped, and the live stream data is pushed to the server with the initial image quality and the initial push bitrate.
[0172] According to one or more embodiments of this disclosure, the target live streaming mode includes a multi-person live streaming mode.
[0173] Thirdly, according to one or more embodiments of the present disclosure, an electronic device is provided, comprising: at least one processor and a memory;
[0174] The memory stores computer-executed instructions;
[0175] The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the live stream data processing method as described in the first aspect and various possible designs of the first aspect.
[0176] Fourthly, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein computer-executable instructions are stored therein, and when a processor executes the computer-executable instructions, the live stream data processing method described in the first aspect and various possible designs of the first aspect is implemented.
[0177] Fifthly, according to one or more embodiments of this disclosure, a computer program product is provided, including computer execution instructions that, when executed by a processor, implement the live stream data processing method as described in the first aspect and various possible designs of the first aspect.
[0178] The above description merely illustrates the preferred embodiments of the disclosure and a principle for applying the technologies. It is understood by those skilled in the art that the disclosed scope of the disclosure is not limited to the technical solutions formed by the specific combinations of the technical features described above, and should also cover other technical solutions formed by the combinations of the technical features described above or their equivalent features without departing from the disclosed concept. For example, the technical solutions formed by the mutual replacement of the above-described features and the technical features with similar functions disclosed in the disclosure (but not limited to) can be formed.
[0179] Further, although operations are depicted in a particular, sequential order, this should not be understood as requiring or implying that the operations are performed in the order illustrated or sequentially. In certain circumstances, multitasking and parallel processing can be advantageous. Likewise, although specific implementation details are included for the purpose of providing a thorough disclosure, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable sub-combination.
[0180] Although the subject matter has been described in language specific to structural features and / or methodological acts, it is to be understood that the subject defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims
1. A method for processing live stream data, characterized in that, include: During the recording of live stream data by the live streaming device, the current performance parameters of the live streaming device are detected; Based on the current performance parameters, the target image quality enhancement information of the live stream data is determined, and the target image quality enhancement information includes the target image quality enhancement level. The live stream data is enhanced with the target image quality enhancement level. The target streaming bitrate is determined based on the target image quality enhancement information, and the enhanced live stream data is pushed to the server based on the target streaming bitrate. The step of determining the target streaming bitrate based on the target image quality enhancement information includes: Based on the preset mapping relationship between image quality enhancement level and streaming bitrate reduction, the streaming bitrate reduction corresponding to the target image quality enhancement level is determined; wherein any image quality enhancement level and corresponding streaming bitrate reduction included in the mapping relationship between image quality enhancement level and streaming bitrate reduction can make the image quality of the live stream data at the image quality enhancement level and the streaming bitrate reduction equivalent to the original image quality of the live stream data. The target streaming bitrate is determined based on the initial streaming bitrate of the live stream data and the rate of decrease in the streaming bitrate.
2. The method according to claim 1, characterized in that, In the mapping relationship between the image quality enhancement level and the reduction in streaming bitrate, the higher the image quality enhancement level, the greater the reduction in the corresponding streaming bitrate.
3. The method according to claim 2, characterized in that, The method further includes: Get multiple image quality levels corresponding to preset image quality enhancement levels under different streaming bitrate reductions; The multiple image quality levels are compared with the original image quality to determine the reduction in streaming bitrate corresponding to the image quality equivalent to the original image quality. This reduction is used as the reduction in streaming bitrate corresponding to the preset image quality enhancement level, and a mapping relationship between the image quality enhancement level and the reduction in streaming bitrate is constructed.
4. The method according to any one of claims 1-3, characterized in that, The step of determining the target image quality enhancement information for the live stream data based on the current performance parameters includes: Based on the preset mapping relationship between performance parameters and image quality enhancement levels, the target image quality enhancement level corresponding to the current performance parameters is determined.
5. The method according to claim 4, characterized in that, The current performance parameters include at least two performance parameters; The mapping relationship between the performance parameters and the image enhancement levels includes a preset range for each performance parameter corresponding to each image enhancement level.
6. The method according to claim 5, characterized in that, The step of determining the target image quality enhancement level corresponding to the current performance parameter based on the preset mapping relationship between performance parameters and image quality enhancement levels includes: If at least one of the current performance parameters is within a preset range corresponding to a certain image enhancement level, and none of the current performance parameters exceed the upper limit of the preset range for each performance parameter corresponding to that image enhancement level, then the image enhancement level is determined to be the target image enhancement level corresponding to the current performance parameter.
7. The method according to claim 1, characterized in that, Before determining the target image quality enhancement information for the live stream data based on the current performance parameters, the method further includes: Determine if the current live streaming mode is the target live streaming mode; The step of determining the target image quality enhancement information for the live stream data based on the current performance parameters includes: If it is determined that the current live streaming mode is not the target live streaming mode, then the target image quality enhancement information of the live streaming data is determined based on the current performance parameters.
8. The method according to claim 7, characterized in that, Also includes: If the current live streaming mode is determined to be the target live streaming mode, then the execution of the target image quality enhancement information for the live stream data determined based on the current performance parameters is stopped, and the live stream data is pushed to the server with the initial image quality and the initial push bitrate.
9. The method according to claim 7 or 8, characterized in that, The target live streaming mode includes a multi-person live streaming mode.
10. A live stream data processing device, characterized in that, include: The detection unit is used to detect the current performance parameters of the live streaming device during the recording of live stream data. The image quality enhancement unit is used to determine the target image quality enhancement information of the live stream data based on the current performance parameters, wherein the target image quality enhancement information includes the target image quality enhancement level. The live stream data is enhanced with the target image quality enhancement level. A bitrate determination unit is used to determine the target streaming bitrate based on the target image quality enhancement information. The communication unit is used to push the enhanced live stream data to the server according to the target push bitrate; When determining the target streaming bitrate based on the target image quality enhancement information, the bitrate determination unit is used for: Based on the preset mapping relationship between image quality enhancement level and streaming bitrate reduction, the streaming bitrate reduction corresponding to the target image quality enhancement level is determined; wherein any image quality enhancement level and corresponding streaming bitrate reduction included in the mapping relationship between image quality enhancement level and streaming bitrate reduction can make the image quality of the live stream data at the image quality enhancement level and the streaming bitrate reduction equivalent to the original image quality of the live stream data. The target streaming bitrate is determined based on the initial streaming bitrate of the live stream data and the rate of decrease in the streaming bitrate.
11. An electronic device, characterized in that, include: At least one processor and memory; The memory stores computer-executed instructions; The at least one processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the method as described in any one of claims 1-9.
12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the method as described in any one of claims 1-9.
13. A computer program product, characterized in that, Includes computer execution instructions, which, when executed by a processor, implement the method as described in any one of claims 1-9.
Citation Information
Patent Citations
Image quality enhancement method and device, terminal and readable storage medium
CN114390307A
Video picture optimization method and device, storage medium and video terminal
CN115665485A