Video processing method and device, electronic equipment, storage medium and program product

By evaluating and controlling the noise reduction processing and image enhancement processing of the streaming client on the server side, the problem of noise affecting the quality of live video is solved and the video quality is improved and energy consumption is optimized.

CN118660184APending Publication Date: 2024-09-17XIAOHONGSHU TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410701659.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

The loud noise of live video results in poor video quality, which affects the viewing experience of the audience. In the existing technology, there is a problem that the streaming client never reduces noise or always reduces noise, and cannot effectively solve the balance between noise and image quality.

Method used

Perform noise assessment on the server side and send noise reduction instructions to the streaming client to control whether the streaming client performs noise reduction processing before collecting video, and at the same time adjust the parameters of image enhancement processing to optimize video quality.

Benefits of technology

Effectively removes noise in live videos, avoids video quality degradation when noise is high, and prevents texture details from being incorrectly removed when noise is low, improving the viewer experience of the video and reducing energy consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118660184A
    Figure CN118660184A
Patent Text Reader

Abstract

The invention provides a video processing method and device, an electronic device, a storage medium and a program product, the method is applied to a server, and the method comprises the following steps: receiving a first video sent by a plug flow client, the first video being a video collected by the plug flow client in a first time period; pushing the first video to a shared video stream, and performing noise evaluation on the first video to obtain a first noise level; and in response to the condition that the first noise level is greater than a first noise threshold, sending a noise reduction instruction to the stream pushing client, so that the stream pushing client performs noise reduction processing on the video acquired after the first time period and then sends the video to the server. In the application, the server evaluates the noise level in the live video and controls the stream pushing client to perform noise reduction when the noise level is relatively high, so that the situation that the video quality is influenced by relatively high noise in the live video and the watching experience is influenced can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more embodiments of the present application relate to the field of computer software technology, and in particular, to a video processing method and device, electronic equipment, storage medium, and program product. Background Art

[0002] With the development of mobile Internet technology, live streaming has gradually become a popular form of entertainment in people's lives. The anchor can show his talents to the audience, introduce products for sale, etc., thus narrowing the social distance between people. During the live broadcast process, the live video recorded locally by the push streaming client is transmitted to the user client through the cloud. Therefore, the quality of the live video recorded locally by the push streaming client determines the audience's viewing experience.

[0003] However, in the related art, the live video recorded locally by the streaming client is often of poor quality due to factors such as large noise, and the audience's viewing experience needs to be improved. Summary of the invention

[0004] In view of this, one or more embodiments of the present specification provide a video processing method and apparatus, an electronic device, a storage medium, and a program product.

[0005] To achieve the above objectives, one or more embodiments of this specification provide the following technical solutions:

[0006] According to a first aspect of one or more embodiments of this specification, a video processing method is proposed, which is applied to a server. The method includes:

[0007] Receiving a first video sent by a streaming client, wherein the first video is a video collected by the streaming client in a first time period;

[0008] Pushing the first video to a shared video stream, and performing noise evaluation on the first video to obtain a first noise level;

[0009] In response to the first noise level being greater than a first noise threshold, a noise reduction instruction is sent to the streaming client, so that the streaming client performs noise reduction processing on the video collected after the first time period and sends the video to the server.

[0010] In one embodiment of the present disclosure, the method further includes:

[0011] receiving a second video, a first image sequence, and a second image sequence sent by the streaming client, and streaming the second video to a shared video stream, wherein the second video is a video collected by the streaming client in a second time period, the second time period is after the first time period, the first image sequence is extracted from the second video by the streaming client before performing noise reduction processing on the second video, and the second image sequence is extracted from the second video by the streaming client after performing noise reduction processing on the second video;

[0012] Performing noise evaluation on the second video to obtain a second noise level, and performing image quality evaluation on the first image sequence and the second image sequence to obtain a first image quality of the first image sequence and a second image quality of the second image sequence;

[0013] In response to the second noise level being not greater than the first noise threshold and the first image quality being higher than the second image quality, a cancel noise reduction instruction is sent to the streaming client, so that the streaming client determines whether to perform noise reduction processing before sending the captured video to the server after the second time period.

[0014] In one embodiment of the present disclosure, sending a noise reduction cancellation instruction to the streaming client so that the streaming client determines whether to perform noise reduction processing before sending the collected video to the server after the second period, includes:

[0015] A noise reduction cancellation instruction is sent to the streaming client, so that the streaming client determines whether to perform noise reduction processing on the collected video before sending it to the server after the second time period according to a third noise level of the collected video, wherein the third noise level is obtained by performing noise evaluation on the collected video by the streaming client.

[0016] In one embodiment of the present disclosure, the first video is determined by the streaming client to be subjected to noise reduction processing before being sent to the server.

[0017] In one embodiment of the present disclosure, the first video is subjected to noise reduction and image enhancement processing by the streaming client before being sent to the server;

[0018] The method further comprises:

[0019] receiving a third image sequence and a fourth image sequence sent by the streaming client, and performing image quality evaluation on the third image sequence and the fourth image sequence respectively to obtain a third image quality of the third image sequence and a fourth image quality of the fourth image sequence, wherein the third image sequence is extracted from the first video by the streaming client before performing image enhancement processing on the first video, and the fourth image sequence is extracted from the first video by the streaming client after performing noise reduction processing on the first video;

[0020] In response to the first noise level being greater than a first noise threshold and the third image quality being greater than the fourth image quality, a first parameter adjustment instruction is sent to the streaming client so that the streaming client reduces relevant parameters of the image enhancement processing.

[0021] In one embodiment of the present disclosure, the method further includes:

[0022] In response to the second noise level being less than the first noise threshold and the first image quality being higher than the second image quality, a second parameter adjustment instruction is sent to the streaming client so that the streaming client restores relevant parameters of the image enhancement processing.

[0023] In one embodiment of the present disclosure, the relevant parameters of the image enhancement processing include an upper limit value of an adjustment range of a degree parameter, wherein the degree parameter is used to control the processing degree of one or more dimensions of the image enhancement processing.

[0024] In one embodiment of the present disclosure, the method further includes:

[0025] A target value indicated by the first parameter adjustment instruction is determined according to the first noise level.

[0026] According to a second aspect of one or more embodiments of this specification, a video processing method is proposed, which is applied to a streaming client. The method includes:

[0027] Sending a first video collected in a first time period to a server, so that the server pushes the first video to a shared video stream, and performs noise evaluation on the first video to obtain a first noise level;

[0028] Receive a noise reduction instruction sent by the server, and perform noise reduction processing on the video collected after the first time period and send it to the server, wherein the noise reduction instruction is sent by the server to the streaming client in response to the first noise level being greater than a first noise threshold.

[0029] In one embodiment of the present disclosure, the method further includes:

[0030] Sending a second video collected during a second time period to a server, so that the server pushes the second video to a shared video stream, and performing noise evaluation on the second video to obtain a second noise level;

[0031] Extracting a first image sequence from the second video before performing noise reduction processing on the second video, extracting a second image sequence from the second video after performing noise reduction processing on the second video, and sending the first image sequence and the second image sequence to a server, so that the server performs image quality evaluation on the first image sequence and the second image sequence respectively, to obtain a first image quality of the first image sequence and a second image quality of the second image sequence;

[0032] Receive a noise reduction cancellation instruction sent by the server, and determine whether to perform noise reduction processing on the captured video before sending it to the server after the second time period, wherein the noise reduction cancellation instruction is sent by the server to the streaming client in response to the second noise level being less than a first noise threshold and the first image quality being higher than the second image quality.

[0033] In one embodiment of the present disclosure, the method further includes:

[0034] After the second period, a noise evaluation is performed on the collected video to obtain a third noise level, and it is determined according to the third noise level whether to perform noise reduction processing on the collected video before sending it to the server.

[0035] In one embodiment of the present disclosure, determining whether to perform noise reduction processing on the collected video before sending it to the server according to the third noise level includes:

[0036] In response to the third noise level being not greater than the second noise threshold, determining not to perform noise reduction processing on the captured video before sending it to the server;

[0037] In response to the third noise level being greater than the second noise threshold, it is determined to perform noise reduction processing on the captured video before sending it to the server.

[0038] In one embodiment of the present disclosure, before sending the first video collected in the first time period to the server, the method further includes:

[0039] Determine whether to perform noise reduction processing before sending the first video to the server.

[0040] In one embodiment of the present disclosure, the method further includes:

[0041] Before sending the first video collected in the first time period to the server, performing noise reduction and image enhancement processing on the first video;

[0042] Extracting a third image sequence from the first video before performing image enhancement processing on the first video, extracting a fourth image sequence from the first video after performing image enhancement processing on the first video, and sending the third image sequence and the fourth image sequence to a server, so that the server performs image quality evaluation on the third image sequence and the fourth image sequence, respectively, to obtain a third image quality of the third image sequence and a fourth image quality of the fourth image sequence;

[0043] In response to receiving a first parameter adjustment instruction sent by the server, reducing the relevant parameters of the image enhancement processing, wherein the first parameter adjustment instruction is sent by the server to the streaming client in response to the first noise level being greater than a first noise threshold and the third image quality being greater than the fourth image quality.

[0044] In one embodiment of the present disclosure, the method further includes:

[0045] In response to receiving a second parameter adjustment instruction sent by the server, the relevant parameters of the image enhancement processing are restored, wherein the second parameter adjustment instruction is sent by the server to the streaming client in response to the second noise level being less than the first noise threshold and the first image quality being higher than the second image quality.

[0046] According to a third aspect of one or more embodiments of this specification, a video processing device is provided, which is applied to a server, and the device includes:

[0047] A first receiving module is used to receive a first video sent by a streaming client, wherein the first video is a video collected by the streaming client in a first period of time;

[0048] A first evaluation module, configured to stream the first video to a shared video stream and perform noise evaluation on the first video to obtain a first noise level;

[0049] The first instruction module is used to send a noise reduction instruction to the streaming client in response to the first noise level being greater than a first noise threshold, so that the streaming client performs noise reduction processing on the video collected after the first time period and sends it to the server.

[0050] In one embodiment of the present disclosure, the device further includes:

[0051] A second receiving module is used to receive a second video, a first image sequence, and a second image sequence sent by the streaming client, and stream the second video to a shared video stream, wherein the second video is a video collected by the streaming client in a second time period, the second time period is after the first time period, the first image sequence is extracted from the second video by the streaming client before performing noise reduction processing on the second video, and the second image sequence is extracted from the second video by the streaming client after performing noise reduction processing on the second video;

[0052] a second evaluation module, configured to perform noise evaluation on the second video to obtain a second noise level, and to perform image quality evaluation on the first image sequence and the second image sequence to obtain a first image quality of the first image sequence and a second image quality of the second image sequence;

[0053] The second instruction module is used to send a cancel noise reduction instruction to the streaming client in response to the second noise level being not greater than the first noise threshold and the first image quality being higher than the second image quality, so that the streaming client determines whether to perform noise reduction processing before sending the collected video to the server after the second time period.

[0054] In one embodiment of the present disclosure, the second instruction module is used to send a noise reduction cancellation instruction to the streaming client, so that the streaming client determines whether to perform noise reduction processing before sending the collected video to the server after the second period, and is specifically used to:

[0055] A noise reduction cancellation instruction is sent to the streaming client, so that the streaming client determines whether to perform noise reduction processing on the collected video before sending it to the server after the second time period according to a third noise level of the collected video, wherein the third noise level is obtained by performing noise evaluation on the collected video by the streaming client.

[0056] In one embodiment of the present disclosure, the first video is determined by the streaming client to be subjected to noise reduction processing before being sent to the server.

[0057] In one embodiment of the present disclosure, the first video is subjected to noise reduction and image enhancement processing by the streaming client before being sent to the server;

[0058] The device also includes a first parameter module, configured to:

[0059] receiving a third image sequence and a fourth image sequence sent by the streaming client, and performing image quality evaluation on the third image sequence and the fourth image sequence respectively to obtain a third image quality of the third image sequence and a fourth image quality of the fourth image sequence, wherein the third image sequence is extracted from the first video by the streaming client before performing image enhancement processing on the first video, and the fourth image sequence is extracted from the first video by the streaming client after performing noise reduction processing on the first video;

[0060] In response to the first noise level being greater than a first noise threshold and the third image quality being greater than the fourth image quality, a first parameter adjustment instruction is sent to the streaming client so that the streaming client reduces relevant parameters of the image enhancement processing.

[0061] In one embodiment of the present disclosure, the device further includes a second parameter module, which is used to:

[0062] In response to the second noise level being less than the first noise threshold and the first image quality being higher than the second image quality, a second parameter adjustment instruction is sent to the streaming client so that the streaming client restores relevant parameters of the image enhancement processing.

[0063] In one embodiment of the present disclosure, the relevant parameters of the image enhancement processing include an upper limit value of an adjustment range of a degree parameter, wherein the degree parameter is used to control the processing degree of one or more dimensions of the image enhancement processing.

[0064] In one embodiment of the present disclosure, the device further includes a target value determination module, which is used to:

[0065] A target value indicated by the first parameter adjustment instruction is determined according to the first noise level.

[0066] According to a fourth aspect of one or more embodiments of this specification, a video processing device is provided, which is applied to a streaming client, and the device includes:

[0067] A first sending module, configured to send a first video collected in a first time period to a server, so that the server pushes the first video to a shared video stream, and performs noise evaluation on the first video to obtain a first noise level;

[0068] The noise reduction module is used to receive the noise reduction instruction sent by the server, and send the noise reduction instruction to the server after performing noise reduction processing on the video collected after the first time period, wherein the noise reduction instruction is sent by the server to the streaming client in response to the first noise level being greater than a first noise threshold.

[0069] In one embodiment of the present disclosure, the device further includes:

[0070] A second sending module is used to send a second video collected in a second time period to a server, so that the server pushes the second video to a shared video stream, performs noise evaluation on the second video, and obtains a second noise level;

[0071] A third sending module is used to extract a first image sequence from the second video before performing noise reduction processing on the second video, extract a second image sequence from the second video after performing noise reduction processing on the second video, and send the first image sequence and the second image sequence to a server, so that the server performs image quality evaluation on the first image sequence and the second image sequence respectively to obtain a first image quality of the first image sequence and a second image quality of the second image sequence;

[0072] A third receiving module is used to receive a noise reduction cancellation instruction sent by the server, and determine whether to perform noise reduction processing on the collected video before sending it to the server after the second time period, wherein the noise reduction cancellation instruction is sent by the server to the streaming client in response to the second noise level being less than the first noise threshold and the first image quality being higher than the second image quality.

[0073] In one embodiment of the present disclosure, the device further includes a third evaluation module, which is used to:

[0074] After the second period, a noise evaluation is performed on the collected video to obtain a third noise level, and it is determined according to the third noise level whether to perform noise reduction processing on the collected video before sending it to the server.

[0075] In one embodiment of the present disclosure, when the third evaluation module is used to determine whether to perform noise reduction processing before sending the collected video to the server according to the third noise level, it is specifically used to:

[0076] In response to the third noise level being not greater than the second noise threshold, determining not to perform noise reduction processing on the captured video before sending it to the server;

[0077] In response to the third noise level being greater than the second noise threshold, it is determined to perform noise reduction processing on the captured video before sending it to the server.

[0078] In one embodiment of the present disclosure, the device further includes a determining module, configured to:

[0079] Before sending the first video collected in the first time period to the server, it is determined whether to perform noise reduction processing before sending the first video to the server.

[0080] In one embodiment of the present disclosure, the device further includes a third parameter module, which is used to:

[0081] Before sending the first video collected in the first time period to the server, performing noise reduction and image enhancement processing on the first video;

[0082] Extracting a third image sequence from the first video before performing image enhancement processing on the first video, extracting a fourth image sequence from the first video after performing image enhancement processing on the first video, and sending the third image sequence and the fourth image sequence to a server, so that the server performs image quality evaluation on the third image sequence and the fourth image sequence, respectively, to obtain a third image quality of the third image sequence and a fourth image quality of the fourth image sequence;

[0083] In response to receiving a first parameter adjustment instruction sent by the server, reducing the relevant parameters of the image enhancement processing, wherein the first parameter adjustment instruction is sent by the server to the streaming client in response to the first noise level being greater than a first noise threshold and the third image quality being greater than the fourth image quality.

[0084] In one embodiment of the present disclosure, the apparatus further includes a fourth parameter module, configured to:

[0085] In response to receiving a second parameter adjustment instruction sent by the server, the relevant parameters of the image enhancement processing are restored, wherein the second parameter adjustment instruction is sent by the server to the streaming client in response to the second noise level being less than the first noise threshold and the first image quality being higher than the second image quality.

[0086] According to a fifth aspect of one or more embodiments of the present specification, a computer program product is proposed, comprising a computer program / instruction, which implements the steps of the method described in the first aspect or the second aspect when executed by a processor.

[0087] According to a sixth aspect of one or more embodiments of this specification, an electronic device is provided, including:

[0088] processor;

[0089] a memory for storing processor-executable instructions;

[0090] The processor implements the method as described in the first aspect or the second aspect by running the executable instructions.

[0091] According to a seventh aspect of one or more embodiments of the present specification, a computer-readable storage medium is provided, on which computer instructions are stored, and when the instructions are executed by a processor, the steps of the method described in the first aspect or the second aspect are implemented.

[0092] The technical solutions provided by the embodiments of this specification may have the following beneficial effects:

[0093] In the video processing method provided in the embodiment of this specification, the push stream client sends the first video collected in the first time period to the server, and after receiving the first video, the server pushes the first video to the shared video stream, and performs a noise evaluation on the first video to obtain a first noise level, and then the server can send a noise reduction instruction to the push stream client in response to the first noise level being greater than the first noise threshold, and after receiving the noise reduction instruction, the push stream client can perform noise reduction processing on the video collected after the first time period and then send it to the server. That is to say, after the push stream client sends the live video collected locally to the server, the server performs a conventional live broadcast operation-pushing the live video to the shared video stream so that the user client can watch the live video, and also performs a noise evaluation on the live video, and when the evaluation result shows that the noise level is large, the push stream client is controlled to perform noise reduction processing before sending the live video to the server to eliminate the noise in the live video. The server evaluates the noise level in the live video and controls the push stream client to perform noise reduction when the noise level is large, so as to avoid the live video from being too noisy and affecting the video quality, thereby affecting the viewing experience. In particular, compared with the related art in which the streaming client never performs noise reduction on the live video, the present application can promptly remove the noise in the live video when it is large; compared with the related art in which the streaming client always performs noise reduction on the live video, the present application can avoid the effective detail information such as texture in the live video being removed as noise when the noise is small, and can reduce energy consumption; compared with the streaming client evaluating the noise of the live video and selectively enabling denoising based on the evaluation result, the computing power of the server in the present application is stronger, and the accuracy of noise evaluation is much greater than that of the streaming client, so the activation of noise reduction is more accurate.

[0094] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0095] Figure 1 It is a structural diagram of a live broadcast system provided by an exemplary embodiment.

[0096] Figure 2 The present invention is a flowchart of a video processing method applied to a server provided by an exemplary embodiment.

[0097] Figure 3It is a flowchart of a video processing method applied to a server provided by another exemplary embodiment.

[0098] Figure 4 It is a flowchart of a video processing method applied to a server provided by yet another exemplary embodiment.

[0099] Figure 5 It is a flowchart of a video processing method applied to a streaming client provided by an exemplary embodiment.

[0100] Figure 6 It is a live broadcast architecture diagram provided by an exemplary embodiment.

[0101] Figure 7 It is a control logic diagram of a server provided by an exemplary embodiment.

[0102] Figure 8 It is a control logic diagram of a server provided by another exemplary embodiment.

[0103] Fig. 9 It is a block diagram of a video processing device applied to a server provided by an exemplary embodiment.

[0104] Fig.10 It is a block diagram of a video processing device applied to a streaming client end provided by an exemplary embodiment.

[0105] Fig.11 It is a structural schematic diagram of a device provided by an exemplary embodiment. DETAILED DESCRIPTION

[0106] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Instead, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.

[0107] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may be combined into a single step for description in other embodiments.

[0108] With the development of mobile Internet technology, live streaming has gradually become a popular form of entertainment in people's lives. The anchor can show his talents to the audience, introduce products for sale, etc. through live streaming, thus narrowing the social distance between people. During the live broadcast process, the live video recorded locally by the push streaming client is transmitted to the user client through the cloud. Therefore, the quality of the live video recorded locally by the push streaming client determines the audience's viewing experience. However, in the related art, the live video recorded locally by the push streaming client is often poor in quality due to reasons such as large noise, and the audience's viewing experience needs to be improved.

[0109] For example, the streaming client does not have a noise reduction function, that is, the live video is never subjected to noise reduction. This can seriously affect the video quality when the noise in the live video is large, affecting the user's live viewing experience.

[0110] For another example, the streaming client has a noise reduction function and always performs noise reduction on the live video. When the noise of the live video is small, the effective detail information such as the texture in the live video will be removed as noise, resulting in the loss of details and reduced quality of the live video, affecting the user's live viewing experience.

[0111] For another example, the streaming client has noise reduction and noise assessment functions, and determines whether the noise reduction function is turned on by performing noise assessment on the live video. That is, the noise reduction function is turned on when the noise assessment result shows that the noise is large, and the noise reduction function is turned off when the noise assessment result shows that the noise is small. However, the computing power of the streaming client is limited, resulting in inaccurate noise assessment results for the video, which in turn causes low-noise videos to be denoised and the details and texture of the video to be destroyed, or high-noise videos to not be denoised and the noise of the video is not eliminated, thereby affecting the live video quality and the audience's viewing experience.

[0112] Based on this, at least one embodiment of the present specification provides a video processing method, which can evaluate the noise level of the live video sent by the streaming client through the server, so as to control the streaming client to reduce the noise of the live video when the noise level is high, thereby avoiding the live video from having a large noise level that affects the video quality and thus affects the viewing experience.

[0113] This method can be applied to Figure 1 The live broadcast system shown includes a server 100, at least one streaming client 200, and at least one user client 300.

[0114] The server 100 may be a program installed in a background device to provide services to users. For example, Figure 1As shown, the background device can be a server, which can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.

[0115] The streaming client 200 may be a program installed in a user terminal to provide services to the anchor user, also known as an anchor client. The streaming client 200 includes but is not limited to an application APP, a web page, a mini-program, a plug-in or a component. Figure 1 As shown, the user terminal includes but is not limited to smart phones, personal digital assistants, tablet computers, personal computers, laptops, virtual reality terminal devices, augmented reality terminal devices, etc.

[0116] The user client 300 may be a program installed in a user terminal to provide services to the audience user, also known as an audience client. The audience client 300 includes but is not limited to an application APP, a web page, a small program, a plug-in or a component, etc. Figure 1 As shown, the user terminal includes but is not limited to smart phones, personal digital assistants, tablet computers, personal computers, laptops, virtual reality terminal devices, augmented reality terminal devices, etc.

[0117] It should be understood that the push stream client 200 and the user client 300 can be two completely independent programs, that is, the anchor user needs to install the push stream client 200 to perform live streaming, and the audience user needs to install the user client 300 to watch the live broadcast. Alternatively, the push stream client 200 and the user client 300 can be two states of the same client, that is, the anchor user can adjust the client to the push stream state or the anchor state to perform live streaming, and the audience user can adjust the client to the audience state to watch the live broadcast. Preferably, the push stream client 200 and the user client 300 can be two states of the same client, so that the same user can use the same client to complete the operation when acting as an anchor and as an audience, which is very convenient.

[0118] The method can be completed by the cooperation of the server and the streaming client in the above data system. Next, the method will be introduced in detail from both the server and the streaming client.

[0119] Please refer to the attached Figure 2 , which exemplarily shows the process of the video processing method applied to the server, including steps S201 to S203.

[0120] In step S201, a first video sent by a streaming client is received, wherein the first video is a video captured by the streaming client in a first period of time.

[0121] In the live broadcast scenario, the streaming client can continuously collect live videos and send local videos to the server. For example, the streaming client can use the camera on the user device to collect live videos. The anchor user can perform talent shows, introduce products, etc. within the field of view of the camera. These behaviors are collected by the camera as live videos and sent to the server by the streaming client.

[0122] The first time period is a certain time period during the live broadcast. The time period can be pre-set to a specific duration, and each specific duration during the live broadcast can be used as the first time period in the method; or, each specific duration after the start of the live broadcast is used as a time period, and each time period can be used as the first time period in the method.

[0123] The streaming client may be provided with a noise reduction unit for performing noise reduction on the live video. Exemplarily, the first video is determined by the streaming client to be subjected to noise reduction processing before being sent to the server, that is, after the streaming client captures the first video, it may be determined whether to perform noise reduction processing using the noise reduction unit, and if it is determined to perform noise reduction processing, the first video is sent to the server after the noise reduction processing, and if it is determined not to perform noise reduction processing, the first video is directly sent to the server.

[0124] For example, when the streaming client does not receive an instruction to start noise reduction from the server, the noise reduction unit is normally turned off, that is, after collecting the first video, the first video is directly sent to the server without performing noise reduction processing.

[0125] For another example, the streaming client has an end-side noise estimation unit, which can evaluate the noise level in the video; then the streaming client can use the end-side noise estimation unit to perform noise estimation on the first video after collecting the first video, and determine whether to perform noise reduction processing before sending the first video to the server based on the result of the noise evaluation. If it is determined to perform noise reduction processing, the first video is sent to the server after the noise reduction processing; if it is determined not to perform noise reduction processing, the first video is directly sent to the server. For example, after the end-side noise estimation unit of the streaming client performs noise estimation on the first video, it will output the noise level noise_level1 of the first video within the noise level range of 0-1. If noise_level1 is not greater than the preset noise threshold th1, it is determined that the noise reduction processing will not be performed before the collected video is sent to the server; if noise_level1 is greater than the preset noise threshold th1, it is determined that the noise reduction processing will be performed before the collected video is sent to the server.

[0126] It should be understood that if the noise threshold th1 is set to a small value, the accuracy of determining that the first video needs noise reduction processing is low, and the recall rate is high. The impact is that denoising is started for many low-noise videos, resulting in the loss of detail information such as texture; if the noise threshold th1 is set to a large value, the accuracy of determining that the first video needs noise reduction processing is high, and the recall rate is low. The impact is that denoising is not started for many high-noise videos. Preferably, in this method, the noise threshold th1 is set to a large value, such as 0.4, so that denoising can be avoided from being mistakenly started for low-noise videos. As for the fact that denoising is not started for some high-noise videos, the server will detect and compensate for it in this method.

[0127] The streaming client may be provided with an image processing unit for performing image enhancement processing on the live video, and the image enhancement processing may be what is commonly referred to as beauty processing, including global brightness enhancement, texture detail enhancement, etc. Exemplarily, the first video is subjected to image enhancement processing by the streaming client before being sent to the server. That is, the streaming client may perform image enhancement processing after collecting the first video and then send it to the server. It should be understood that while image enhancement processing significantly enhances the picture quality of the live video, such as clarity, texture details, etc., it will also significantly amplify or enhance the noise in the live video. Therefore, if the noise level in the live video is high, the image enhancement processing of the live video will cause significant degradation of the picture quality, so that the video picture presents a high definition but unnatural result; in other words, when the streaming client performs image enhancement processing on the live video, the noise requirement for the live video is higher, that is, the noise level in the live video before image enhancement processing needs to be lower.

[0128] Preferably, if the streaming client determines to perform noise reduction processing on the first video before sending it to the server, the streaming client can collect the first video, perform noise reduction processing and image enhancement processing on it in sequence, and then send it to the server.

[0129] It should be understood that the streaming client may be an encoding unit for encoding live video. Exemplarily, the first video is encoded by the streaming client before being sent to the server to form a code stream.

[0130] In step S202, the first video is pushed to a shared video stream, and noise evaluation is performed on the first video to obtain a first noise level.

[0131] The shared video stream is a live video stream provided by the server to the user client. The user client can continuously obtain the shared video stream and play it locally so that the audience can watch the live video recorded by the streaming client, thereby realizing the live broadcast of the live broadcaster to the audience in real time. After receiving the first video, the server adds it to the shared video stream to continue the live video.

[0132] The server may be provided with a cloud-based noise estimation unit for performing noise estimation on the live video. For example, the server may use the cloud-based noise estimation unit to perform noise estimation on the first video. For example, after the cloud-based noise estimation unit of the server performs noise estimation on the first video, it outputs the noise level noise_level2 of the first video within the noise level range of 0-1.

[0133] It should be understood that if the first video is encoded by the streaming client to form a code stream before being sent to the server, the first video can be decoded in this step to restore the first video to the data format before encoding, and then the first video can be streamed and noise estimated. It should also be understood that the first video can be transcoded before being streamed to the shared video stream to make it in a data format suitable for the shared video stream.

[0134] Optionally, after the first video is decoded, noise estimation may be performed on the first video, and then the first video may be transcoded and streamed to a shared video stream, that is, various operations on the first video in this step may be performed in a serial manner.

[0135] Optionally, after the first video is decoded, a copy can be copied, and then the first video is transcoded and pushed to a shared video stream, and noise estimation is performed on the copy at the same time, that is, various operations on the first video in this step are performed in parallel.

[0136] In step S203, in response to the first noise level being greater than a first noise threshold, a noise reduction instruction is sent to the streaming client, so that the streaming client performs noise reduction processing on the video collected after the first period and sends the video to the server.

[0137] Among them, the first noise threshold is used to measure whether the noise level in the live video needs to be denoised, that is, if the noise level in the live video is greater than the first noise threshold, it means that there is a lot of noise and denoising is needed. If the noise level in the live video is not greater than the first noise threshold, it means that there is less noise and denoising is not needed. If the cloud noise estimation unit of the server outputs the noise level noise_level2 (i.e., the first noise level) of the first video within the noise level range of 0-1, then when noise_level2 is not greater than the preset noise threshold th2 (i.e., the first noise threshold), no noise reduction instruction is generated. When noise_level2 is greater than the preset noise threshold th2, a noise reduction instruction is generated and sent to the streaming client.

[0138] The noise reduction command is used to force the streaming client to perform noise reduction on the collected live video. In other words, the server cancels the control of the noise reduction processing by sending the noise reduction command, and forces it to perform noise reduction on the collected live video; at this time, the client can choose not to perform noise evaluation on the collected video, but if it continues to perform noise evaluation on the collected video, the evaluation result will no longer affect whether the noise reduction processing is started or not.

[0139] Exemplarily, the noise reduction instruction has a time limit, such as a preset duration; after the preset duration, the noise reduction instruction becomes invalid, and the client regains control over the noise reduction process, and can determine whether the collected video is subjected to noise reduction before being sent to the server. In other words, after receiving the noise reduction instruction, the streaming client can perform noise reduction on the collected video within the preset duration and then send it to the server, and determine whether the collected video is subjected to noise reduction before being sent to the server after the preset duration.

[0140] In another exemplary embodiment, if the noise reduction instruction is still valid, after the server sends the noise reduction instruction again to control the streaming client to start the noise reduction process, it can continue to determine whether the noise reduction instruction is canceled based on the live video initiated by the streaming client, and notify the streaming client to restore the control authority over the noise reduction process when it is determined that the noise reduction instruction needs to be canceled, so that it can be determined whether the collected video is subjected to noise reduction processing before being sent to the server. As for how the server determines whether to cancel the noise reduction instruction, this manual does not intend to limit this, and there is an exemplary introduction later, which will not be repeated here.

[0141] In the video processing method provided in the embodiments of this specification, after the streaming client sends the locally collected live video to the server, the server will perform a conventional live operation - streaming the live video to a shared video stream so that the user client can watch the live video, and will also perform a noise assessment on the live video, and when the assessment result shows that the noise level is high, control the streaming client to perform noise reduction before sending the live video to the server to eliminate the noise in the live video. The server assesses the noise level in the live video and controls the streaming client to perform noise reduction when the noise level is high, thereby avoiding the high noise in the live video affecting the video quality and thus affecting the viewing experience. In particular, compared with the related art in which the streaming client never performs noise reduction on the live video, the present application can promptly remove the noise in the live video when it is large; compared with the related art in which the streaming client always performs noise reduction on the live video, the present application can avoid the effective detail information such as texture in the live video being removed as noise when the noise is small, and can reduce energy consumption; compared with the streaming client evaluating the noise of the live video and selectively enabling denoising based on the evaluation result, the computing power of the server in the present application is stronger, and the accuracy of noise evaluation is much greater than that of the streaming client, so the activation of noise reduction is more accurate.

[0142] In some embodiments of the present disclosure, the process of the video processing method applied to the server is as shown in the attached Figure 3 As shown, it includes steps S301 to S306. It should be understood that steps S301 to S303 are the same as steps S201 to S203 in the above embodiment. In other words, the above embodiment Figure 3 The video processing method shown adds a step of how the server determines whether to cancel the noise reduction instruction, namely, step S304 to step S306, based on the above embodiment.

[0143] In step S301, a first video sent by a streaming client is received, wherein the first video is a video collected by the streaming client in a first period of time. The details of this step have been described in detail in the above embodiment and will not be repeated here.

[0144] In step S302, the first video is pushed to a shared video stream, and a noise evaluation is performed on the first video to obtain a first noise level. The details of this step have been described in detail in the above embodiment and will not be repeated here.

[0145] In step S303, in response to the first noise level being greater than the first noise threshold, a noise reduction instruction is sent to the streaming client, so that the streaming client performs noise reduction processing on the video collected after the first period and sends it to the server. The details of this step have been described in detail in the above embodiment and will not be repeated here.

[0146] In step S304, a second video, a first image sequence, and a second image sequence sent by the streaming client are received, and the second video is streamed to a shared video stream, wherein the second video is a video captured by the streaming client in a second time period, the second time period is after the first time period, the first image sequence is extracted from the second video by the streaming client before performing noise reduction processing on the second video, and the second image sequence is extracted from the second video by the streaming client after performing noise reduction processing on the second video.

[0147] Among them, the second time period is a time period after the first time period during the live broadcast process. The second time period can be the same length as the first time period. For example, after the streaming client receives the noise reduction instruction sent by the server, each specific time length is regarded as a time period, and each time period can be used as the second time period in this method. After the streaming client turns on the noise reduction processing for the collected video, it can extract image sequences before and after the noise reduction processing for the video collected in each time period, that is, extract a certain number of video frames from the video to form an image sequence, as the first image sequence and the second image sequence in the corresponding time period; and in addition to sending the video collected in each time period to the server, the first image sequence and the second image sequence in the corresponding time period are also sent to the server.

[0148] After receiving the first video, the server adds it to the shared video stream to continue the live video.

[0149] In step S305, noise is evaluated on the second video to obtain a second noise level, and image quality is evaluated on the first image sequence and the second image sequence to obtain a first image quality of the first image sequence and a second image quality of the second image sequence.

[0150] The server may be provided with a cloud-side noise estimation unit for performing noise estimation on the live video. For example, the server may use the cloud-side noise estimation unit to perform noise estimation on the second video.

[0151] The server may be provided with an image quality assessment unit for assessing the quality of images in the image sequence. For example, the server may use the image quality assessment unit to assess the quality of the first image sequence and the second image sequence respectively.

[0152] It should be understood that the first image quality of the first image sequence can be used to characterize the picture quality of the second video before noise reduction processing, and the second image quality of the second image sequence can be used to characterize the picture quality of the second video after noise reduction processing. By characterizing the picture quality of the second video before and after noise reduction processing by the first image sequence and the second image sequence respectively, the picture quality of the live video before and after noise reduction processing can be determined by sampling, which reduces the amount of data that needs to be transmitted between the server and the client, as well as the amount of calculation for picture quality evaluation. In addition, the image quality of the first image sequence and the second image sequence determined by the server can be more accurate than the client's evaluation.

[0153] In step S306, in response to the second noise level being not greater than the first noise threshold and the first image quality being higher than the second image quality, a noise reduction cancellation instruction is sent to the streaming client, so that the streaming client determines whether to perform noise reduction processing before sending the captured video to the server after the second time period.

[0154] Among them, the second noise level is not greater than the first noise threshold, which can characterize that the noise level in the video collected by the streaming client is low. However, if the second noise level is not greater than the first noise threshold as the condition for canceling the noise reduction instruction issued in step S303, the issuance and cancellation of the noise reduction instruction will fluctuate frequently, resulting in unstable picture quality of the live video sent by the streaming client to the server. This is because, when the noise level in the live video (i.e., the first video) sent by the client to the server is high, the server forces the client to perform noise reduction processing on the live video before sending it to the server by issuing a noise reduction instruction. At this time, the live video (i.e., the second video) received by the server is a video that has been processed with noise reduction, and its noise level is often low, but the live video is likely to still have a large noise before being processed with noise reduction.

[0155] Among them, the first image quality is higher than the second image quality, which indicates that the picture quality of the second video before noise reduction is better than the picture quality after noise reduction, that is, the noise reduction process causes the picture quality of the second video to deteriorate. At this time, the noise reduction process is often redundantly enabled, and its side effects outweigh its positive effects. Therefore, by combining the two conditions that the second noise level is not greater than the first noise threshold and the first image quality is higher than the second image quality, it can be accurately determined whether the noise reduction instruction needs to be canceled, that is, whether the live video collected by the streaming client needs to continue the forced noise reduction process.

[0156] It should be understood that after step S306 is executed, the live video collected by the streaming client can be used as the first video in step S301, that is, the first video is determined by the streaming client to determine whether to perform noise reduction processing before sending it to the server. In other words, the video processing method provided in this embodiment can perform step S301 after step S306 to form a loop.

[0157] In this embodiment, when the server does not issue a noise reduction instruction to force the streaming client to start noise reduction processing on the live video, it determines whether to force the streaming client to start noise reduction processing on the live video by judging whether the noise level of the live video is high. Then, after canceling the streaming client's control authority over the noise reduction processing and forcing the streaming client to start noise reduction processing on the live video, it can determine whether to cancel the forced start of the noise reduction processing on the streaming client by judging whether the noise level of the live video is low and whether the noise reduction processing causes the picture quality of the live video to deteriorate, so that the streaming client can restore the control authority over the noise reduction processing and independently determine whether to start noise reduction processing on the collected video.

[0158] In some embodiments of the present disclosure, the first video is subjected to noise reduction and image enhancement processing by the streaming client before being sent to the server. The video processing method applied to the server may further include steps S401 to S402 based on any of the above embodiments.

[0159] In step S401, a third image sequence and a fourth image sequence sent by the streaming client are received, and image quality evaluation is performed on the third image sequence and the fourth image sequence respectively to obtain a third image quality of the third image sequence and a fourth image quality of the fourth image sequence, wherein the third image sequence is extracted from the first video by the streaming client before performing image enhancement processing on the first video, and the fourth image sequence is extracted from the first video by the streaming client after performing noise reduction processing on the first video.

[0160] Among them, if the streaming client has the control authority of noise reduction processing, and performs noise reduction processing and image enhancement processing on the first video in sequence before sending it to the server, the streaming client can extract image sequences from the first video before and after performing image enhancement processing on the first video, that is, extract a certain number of video frames from the first video to form an image sequence, as the third image sequence and the fourth image sequence in the first time period; and in addition to sending the first video to the server, the third image sequence and the fourth image sequence in the first time period are also sent to the server.

[0161] The server may be provided with an image quality assessment unit for assessing the quality of images in the image sequence. For example, the server may use the image quality assessment unit to assess the quality of the third image sequence and the fourth image sequence respectively.

[0162] It should be understood that the third image quality of the third image sequence can be used to characterize the picture quality of the first video before image enhancement processing, and the fourth image quality of the fourth image sequence can be used to characterize the picture quality of the first video after image enhancement processing. By characterizing the picture quality of the first video before and after image enhancement processing by the third image sequence and the fourth image sequence respectively, the picture quality of the live video before and after image enhancement processing can be determined by sampling, thereby reducing the amount of data that needs to be transmitted between the server and the client, as well as the amount of calculation for picture quality evaluation. In addition, the image quality of the third image sequence and the fourth image sequence determined by the server can be more accurate than the evaluation by the client.

[0163] In step S402, in response to the first noise level being greater than a first noise threshold and the third image quality being greater than the fourth image quality, a first parameter adjustment instruction is sent to the streaming client so that the streaming client reduces relevant parameters of the image enhancement processing.

[0164] As described in the above embodiment, the first noise threshold is used to measure whether the noise level in the live video needs to be denoised, that is, if the noise level in the live video is greater than the first noise threshold, it indicates that there is more noise and denoising is required, and if the noise level in the live video is not greater than the first noise threshold, it indicates that there is less noise and denoising is not required. The third image quality is greater than the fourth image quality, indicating that the picture quality of the first video before image enhancement processing is better than the picture quality after image enhancement processing, that is, the image enhancement processing reduces the picture quality of the first video. It can be further known that if the first noise level of the first video that has been processed by denoising and image enhancement in sequence is greater than the first noise threshold, and the third image quality is greater than the fourth image quality, then the image enhancement processing is often too high at this time, resulting in some details or tiny noises in the video picture (that is, the noise remaining from the denoising processing) being over-amplified into larger noises, thereby making the noise level of the first video sent to the server higher; therefore, the degree of image enhancement processing can be reduced by reducing the relevant parameters of the image enhancement processing of the streaming client, thereby avoiding excessive amplification of details or tiny noises in the video picture, thereby reducing the noise level of the live video sent to the server.

[0165] As described in the above embodiment, when the server determines that the noise reduction instruction needs to be canceled, it can also send a second parameter adjustment instruction to the streaming client so that the streaming client restores the relevant parameters of the image enhancement processing. For example, in response to the second noise level being less than the first noise threshold and the first image quality being higher than the second image quality, the server sends a second parameter adjustment instruction to the streaming client so that the streaming client restores the relevant parameters of the image enhancement processing.

[0166] Exemplarily, the related parameters of the image enhancement processing include a degree parameter. The degree parameter may be a parameter for measuring the degree of processing of one or more dimensions of the image enhancement processing. For example, the degree parameter is one parameter for measuring the degree of processing of one dimension of the enhancement processing or for uniformly measuring the degree of processing of multiple dimensions of the enhancement processing; or the degree parameter is multiple parameters for respectively measuring the degree of processing of multiple dimensions of the enhancement processing. For example, if the anchor user currently sets the degree parameter of the image enhancement processing to 0.7, this step may reduce it to 0.5.

[0167] As another example, the relevant parameters of the image enhancement processing include an upper limit value of the adjustment range of the degree parameter, wherein the degree parameter is used to control the processing degree of one or more dimensions of the image enhancement processing. For example, the degree parameter is a parameter used to measure the processing degree of one dimension of the enhancement processing or to uniformly measure the processing degrees of multiple dimensions of the enhancement processing; or the degree parameter is a plurality of parameters used to separately measure the processing degrees of multiple dimensions of the enhancement processing. For example, the degree parameter has a certain adjustment range, and the user can select a specific value of the degree parameter within the adjustment range to adjust the processing degree of one or more dimensions of the image enhancement processing, and the upper limit of the adjustment range is the maximum value within the adjustment range, that is, the maximum processing degree of the image enhancement processing that the user can adjust.

[0168] In this example, when adjusting the upper limit value of the adjustment range of the degree parameter, if the adjustment result of the upper limit value is not less than the specific value currently set by the degree parameter (the specific value may be a default value or a value adjusted by the user), the specific value currently set by the degree parameter is not adjusted; if the adjustment result of the upper limit value is less than the specific value currently set by the degree parameter (the specific value may be a default value or a value adjusted by the user), the specific value currently set by the degree parameter is reduced to the adjustment result of the upper limit value. It should be understood that after the specific value currently set by the degree parameter is reduced, the processing degree of the image enhancement processing is reduced, which can avoid the details or tiny noise in the first video being over-amplified during the image enhancement processing, resulting in a high noise level in the first video.

[0169] It should be pointed out in particular that when the user adjusts the specific value of the degree parameter currently set too large, for example, adjusting the specific value currently set to the upper limit of the adjustment range, the details or tiny noise in the first video will be over-amplified during the image enhancement process, resulting in a high noise level in the first video. In this example, the specific value currently set will be further adjusted synchronously only when the adjustment result of the upper limit value is less than the specific value currently set, which can solve the problem of excessive amplification of details and tiny noise in the image enhancement process in a targeted manner, so as to avoid unavoidable adjustments to the user's setting results and affect the user's experience.

[0170] Preferably, the server can determine the target value indicated by the first parameter adjustment instruction according to the first noise level, so that the target value indicated by the first parameter adjustment instruction is adapted to the noise level in the first video, thereby specifically solving the problem of excessive amplification of details and tiny noises by the image enhancement processing, so as to avoid making unavoidable adjustments to the user's setting results and affecting the user's experience. For example, the relevant parameters of the image enhancement processing include the upper limit of the adjustment range of the degree parameter, and the target value indicated by the first parameter adjustment instruction can be determined in the following manner:

[0171] T m =T max-old -(T max-old -T max-new )*N 1

[0172] In the above formula, T m is the target value indicated by the first parameter adjustment instruction, T max-old is the default upper limit of the adjustment range of the degree parameter, T max-new When the first noise level is the upper limit of the noise range, the target value of the upper limit of the adjustment range of the adjustment degree parameter is adjusted. The noise range is the upper limit of the reference range when the server performs noise assessment on the video, that is, the maximum noise level that can be assessed. N1 is the first noise level.

[0173] By the above attachment Figure 3 The embodiments shown and the attached Figure 4 It can be seen from the illustrated embodiment that after the streaming client receives the noise reduction instruction sent by the server and starts denoising the collected live video, the first image sequence and the second image sequence can be extracted from the live video before and after the denoising process and sent to the server. When the streaming client performs denoising and image enhancement on the live video before sending it to the server, the third image sequence and the fourth image sequence can be extracted from the live video before and after the image enhancement process and sent to the server. It should be understood that when the streaming client sends the first image sequence, the second image sequence, the third image sequence and the fourth image sequence to the server, an image sequence can be extracted from the live video after the noise reduction process and before the image enhancement process, and used as the second image sequence and the third image sequence at the same time. This can reduce the amount of data transmitted between the streaming client and the server, and can also reduce the amount of calculation for the server to evaluate the quality of the image sequence.

[0174] Please refer to the attached Figure 5 , which exemplarily shows the process of the video processing method applied to the streaming client, including steps S501 to S502.

[0175] In step S501, a first video collected in a first time period is sent to a server, so that the server pushes the first video to a shared video stream, and performs noise evaluation on the first video to obtain a first noise level.

[0176] In step S502, a noise reduction instruction sent by the server is received, and the video collected after the first time period is subjected to noise reduction processing and then sent to the server, wherein the noise reduction instruction is sent by the server to the streaming client in response to the first noise level being greater than a first noise threshold.

[0177] In some embodiments of the present disclosure, the method further includes:

[0178] Sending a second video collected during a second time period to a server, so that the server pushes the second video to a shared video stream, and performing noise evaluation on the second video to obtain a second noise level;

[0179] Extracting a first image sequence from the second video before performing noise reduction processing on the second video, extracting a second image sequence from the second video after performing noise reduction processing on the second video, and sending the first image sequence and the second image sequence to a server, so that the server performs image quality evaluation on the first image sequence and the second image sequence respectively, to obtain a first image quality of the first image sequence and a second image quality of the second image sequence;

[0180] Receive a noise reduction cancellation instruction sent by the server, and determine whether to perform noise reduction processing on the captured video before sending it to the server after the second time period, wherein the noise reduction cancellation instruction is sent by the server to the streaming client in response to the second noise level being less than a first noise threshold and the first image quality being higher than the second image quality.

[0181] In some embodiments of the present disclosure, the method further includes:

[0182] After the second period, a noise evaluation is performed on the collected video to obtain a third noise level, and it is determined according to the third noise level whether to perform noise reduction processing on the collected video before sending it to the server.

[0183] In some embodiments of the present disclosure, determining whether to perform noise reduction processing on the collected video before sending it to the server according to the third noise level includes:

[0184] In response to the third noise level being not greater than the second noise threshold, determining not to perform noise reduction processing on the captured video before sending it to the server;

[0185] In response to the third noise level being greater than the second noise threshold, it is determined to perform noise reduction processing on the captured video before sending it to the server.

[0186] In some embodiments of the present disclosure, before sending the first video collected in the first time period to the server, the method further includes:

[0187] Determine whether to perform noise reduction processing before sending the first video to the server.

[0188] In some embodiments of the present disclosure, the method further includes:

[0189] Before sending the first video collected in the first time period to the server, performing noise reduction and image enhancement processing on the first video;

[0190] Extracting a third image sequence from the first video before performing image enhancement processing on the first video, extracting a fourth image sequence from the first video after performing image enhancement processing on the first video, and sending the third image sequence and the fourth image sequence to a server, so that the server performs image quality evaluation on the third image sequence and the fourth image sequence, respectively, to obtain a third image quality of the third image sequence and a fourth image quality of the fourth image sequence;

[0191] In response to receiving a first parameter adjustment instruction sent by the server, reducing the relevant parameters of the image enhancement processing, wherein the first parameter adjustment instruction is sent by the server to the streaming client in response to the first noise level being greater than a first noise threshold and the third image quality being greater than the fourth image quality.

[0192] In some embodiments of the present disclosure, the method further includes:

[0193] In response to receiving a second parameter adjustment instruction sent by the server, the relevant parameters of the image enhancement processing are restored, wherein the second parameter adjustment instruction is sent by the server to the streaming client in response to the second noise level being less than the first noise threshold and the first image quality being higher than the second image quality.

[0194] The details of the above embodiments have been described in detail in the various embodiments of the video processing method applied to the server, and will not be repeated here.

[0195] Please refer to the attached Figure 6, which exemplarily shows a live broadcast architecture diagram obtained by combining the above-mentioned embodiments applied to a server and a streaming client. The streaming client includes a terminal noise estimation unit, a video noise reduction unit, an image enhancement processing unit and an encoding unit; the server includes a cloud-side noise estimation unit, an image quality assessment unit and a parameter adjustment feedback unit.

[0196] The steps of the streaming client in the live broadcast scenario are as follows: use the end-side noise estimation unit to evaluate the noise of the collected live video A to obtain noise_level1; if noise_level1 is not greater than the preset threshold th1, no noise reduction is performed on the live video A; if noise_level1 is greater than the preset threshold th1, the video noise reduction unit is used to perform noise reduction on the live video A to obtain live video B; then use the image enhancement processing unit to perform image enhancement on the live video A or B to obtain live video C; finally, use the encoding unit to encode the live video C and send it to the server. In addition, if the live video A is subjected to noise reduction, the image sequences A', B', and C' are extracted from the live videos A, B, and C respectively and sent to the server; if the live video A is not subjected to noise reduction, the image sequences A' and C' are extracted from the live videos A and C respectively and sent to the server.

[0197] The steps of the server in the live broadcast scenario are as follows: receive the encoded live video D sent by the streaming client and push it into the shared video stream; and use the cloud-side noise estimation unit to perform noise evaluation on the live video D to obtain noise_level2. Receive the image sequences A', B', C' sent by the streaming client and use the image quality evaluation unit to perform quality evaluation on the image sequences A', B', C' respectively to obtain quality(A'), quality(B'), quality(C'), or receive the image sequences A', C' sent by the streaming client and use the image quality evaluation unit to perform quality evaluation on the image sequences A', C' respectively to obtain quality(A'), quality(C'). The parameter adjustment feedback unit uses noise_level2, quality(A'), quality(B'), quality(C'), etc. to control the noise reduction processing, image enhancement processing, etc. of the streaming client. Its control logic is as shown in the attached figure. Figure 7 and attached Figure 8 shown.

[0198] Attached Figure 7 In the process, the parameter adjustment feedback unit is not in the cloud feedback state, that is, the server does not control the noise reduction processing, image enhancement processing, etc. of the streaming client. The control logic includes the following steps:

[0199] Step S701: Determine whether noise_level2>th2. If not, continue to determine; if yes, execute step S702.

[0200] Step S702: Check whether video noise reduction is turned on. That is, whether the streaming client performs noise reduction processing on live video A to obtain live video B. For example, if the received image sequence is A', B', C', video noise reduction is turned on; if the received image sequence is A', C', video noise reduction is not turned on. If not, execute step S703; if yes, execute step S704.

[0201] Step S703: Set force_denoise=1 (cloud-side forced noise reduction), that is, the cloud-side forced streaming client to enable video noise reduction. Executing step S603 will put the parameter adjustment feedback unit in the cloud-side feedback state.

[0202] Step S704: Determine whether quality(C') < quality(B'). If not, directly execute step S703; if yes, execute step S705.

[0203] Step S705: adjust the upper limit of the adjustment range of the degree parameter of the image enhancement processing, and execute step S703.

[0204] Attached Figure 8 In the process, the parameter adjustment feedback unit is in the cloud feedback state, that is, the server is in the attached Figure 7 In the state after executing step S703, the control logic includes the following steps:

[0205] Step S801: Determine whether quality(B')<quality(A') and noise_level2≤th2, if so, exit the cloud feedback state, otherwise continue in the cloud feedback state.

[0206] In some embodiments, an embodiment of the present application further provides an electronic device, comprising: a processor; a memory for storing processor executable instructions; wherein the processor implements any of the above methods by running the executable instructions.

[0207] According to a third aspect of one or more embodiments of this specification, a video processing device is provided, which is applied to a server. Fig. 9 , the device comprises:

[0208] The first receiving module 901 is used to receive a first video sent by a streaming client, wherein the first video is a video collected by the streaming client in a first period of time;

[0209] A first evaluation module 902 is used to push the first video to a shared video stream, and perform noise evaluation on the first video to obtain a first noise level;

[0210] The first instruction module 903 is used to send a noise reduction instruction to the streaming client in response to the first noise level being greater than a first noise threshold, so that the streaming client performs noise reduction processing on the video collected after the first time period and sends it to the server.

[0211] In one embodiment of the present disclosure, the device further includes:

[0212] A second receiving module is used to receive a second video, a first image sequence, and a second image sequence sent by the streaming client, and stream the second video to a shared video stream, wherein the second video is a video collected by the streaming client in a second time period, the second time period is after the first time period, the first image sequence is extracted from the second video by the streaming client before performing noise reduction processing on the second video, and the second image sequence is extracted from the second video by the streaming client after performing noise reduction processing on the second video;

[0213] a second evaluation module, configured to perform noise evaluation on the second video to obtain a second noise level, and to perform image quality evaluation on the first image sequence and the second image sequence to obtain a first image quality of the first image sequence and a second image quality of the second image sequence;

[0214] The second instruction module is used to send a cancel noise reduction instruction to the streaming client in response to the second noise level being not greater than the first noise threshold and the first image quality being higher than the second image quality, so that the streaming client determines whether to perform noise reduction processing before sending the collected video to the server after the second time period.

[0215] In one embodiment of the present disclosure, the second instruction module is used to send a noise reduction cancellation instruction to the streaming client, so that the streaming client determines whether to perform noise reduction processing before sending the collected video to the server after the second period, and is specifically used to:

[0216] A noise reduction cancellation instruction is sent to the streaming client, so that the streaming client determines whether to perform noise reduction processing on the collected video before sending it to the server after the second time period according to a third noise level of the collected video, wherein the third noise level is obtained by performing noise evaluation on the collected video by the streaming client.

[0217] In one embodiment of the present disclosure, the first video is determined by the streaming client to be subjected to noise reduction processing before being sent to the server.

[0218] In one embodiment of the present disclosure, the first video is subjected to noise reduction and image enhancement processing by the streaming client before being sent to the server;

[0219] The device also includes a first parameter module, configured to:

[0220] receiving a third image sequence and a fourth image sequence sent by the streaming client, and performing image quality evaluation on the third image sequence and the fourth image sequence respectively to obtain a third image quality of the third image sequence and a fourth image quality of the fourth image sequence, wherein the third image sequence is extracted from the first video by the streaming client before performing image enhancement processing on the first video, and the fourth image sequence is extracted from the first video by the streaming client after performing noise reduction processing on the first video;

[0221] In response to the first noise level being greater than a first noise threshold and the third image quality being greater than the fourth image quality, a first parameter adjustment instruction is sent to the streaming client so that the streaming client reduces relevant parameters of the image enhancement processing.

[0222] In one embodiment of the present disclosure, the device further includes a second parameter module, which is used to:

[0223] In response to the second noise level being less than the first noise threshold and the first image quality being higher than the second image quality, a second parameter adjustment instruction is sent to the streaming client so that the streaming client restores relevant parameters of the image enhancement processing.

[0224] In one embodiment of the present disclosure, the relevant parameters of the image enhancement processing include an upper limit value of an adjustment range of a degree parameter, wherein the degree parameter is used to control the processing degree of one or more dimensions of the image enhancement processing.

[0225] In one embodiment of the present disclosure, the device further includes a target value determination module, which is used to:

[0226] A target value indicated by the first parameter adjustment instruction is determined according to the first noise level.

[0227] According to a fourth aspect of one or more embodiments of this specification, a video processing device is provided, which is applied to a streaming client. Fig.10 , the device comprises:

[0228] A first sending module 1001 is used to send a first video collected in a first time period to a server, so that the server pushes the first video to a shared video stream, and performs noise evaluation on the first video to obtain a first noise level;

[0229] The noise reduction module 1002 is used to receive the noise reduction instruction sent by the server, and send the noise reduction instruction to the server after performing noise reduction processing on the video collected after the first time period, wherein the noise reduction instruction is sent by the server to the streaming client in response to the first noise level being greater than a first noise threshold.

[0230] In one embodiment of the present disclosure, the device further includes:

[0231] A second sending module is used to send a second video collected in a second time period to a server, so that the server pushes the second video to a shared video stream, performs noise evaluation on the second video, and obtains a second noise level;

[0232] A third sending module is used to extract a first image sequence from the second video before performing noise reduction processing on the second video, extract a second image sequence from the second video after performing noise reduction processing on the second video, and send the first image sequence and the second image sequence to a server, so that the server performs image quality evaluation on the first image sequence and the second image sequence respectively to obtain a first image quality of the first image sequence and a second image quality of the second image sequence;

[0233] A third receiving module is used to receive a noise reduction cancellation instruction sent by the server, and determine whether to perform noise reduction processing on the collected video before sending it to the server after the second time period, wherein the noise reduction cancellation instruction is sent by the server to the streaming client in response to the second noise level being less than the first noise threshold and the first image quality being higher than the second image quality.

[0234] In one embodiment of the present disclosure, the device further includes a third evaluation module, which is used to:

[0235] After the second period, a noise evaluation is performed on the collected video to obtain a third noise level, and it is determined according to the third noise level whether to perform noise reduction processing on the collected video before sending it to the server.

[0236] In one embodiment of the present disclosure, when the third evaluation module is used to determine whether to perform noise reduction processing before sending the collected video to the server according to the third noise level, it is specifically used to:

[0237] In response to the third noise level being not greater than the second noise threshold, determining not to perform noise reduction processing on the captured video before sending it to the server;

[0238] In response to the third noise level being greater than the second noise threshold, it is determined to perform noise reduction processing on the captured video before sending it to the server.

[0239] In one embodiment of the present disclosure, the device further includes a determining module, configured to:

[0240] Before sending the first video collected in the first time period to the server, it is determined whether to perform noise reduction processing before sending the first video to the server.

[0241] In one embodiment of the present disclosure, the device further includes a third parameter module, which is used to:

[0242] Before sending the first video collected in the first time period to the server, performing noise reduction and image enhancement processing on the first video;

[0243] Extracting a third image sequence from the first video before performing image enhancement processing on the first video, extracting a fourth image sequence from the first video after performing image enhancement processing on the first video, and sending the third image sequence and the fourth image sequence to a server, so that the server performs image quality evaluation on the third image sequence and the fourth image sequence, respectively, to obtain a third image quality of the third image sequence and a fourth image quality of the fourth image sequence;

[0244] In response to receiving a first parameter adjustment instruction sent by the server, reducing the relevant parameters of the image enhancement processing, wherein the first parameter adjustment instruction is sent by the server to the streaming client in response to the first noise level being greater than a first noise threshold and the third image quality being greater than the fourth image quality.

[0245] In one embodiment of the present disclosure, the apparatus further includes a fourth parameter module, configured to:

[0246] In response to receiving a second parameter adjustment instruction sent by the server, the relevant parameters of the image enhancement processing are restored, wherein the second parameter adjustment instruction is sent by the server to the streaming client in response to the second noise level being less than the first noise threshold and the first image quality being higher than the second image quality.

[0247] In some embodiments, the embodiments of the present application further provide a computer program product, including a computer program, which implements the steps of any of the methods described above when executed by a processor.

[0248] In some embodiments, the present application also provides an electronic device, including:

[0249] processor;

[0250] a memory for storing processor-executable instructions;

[0251] The processor implements the steps of any of the above methods by running the executable instructions.

[0252] For example, Fig.11 is a schematic structural diagram of a device provided by an exemplary embodiment. Fig.11 At the hardware level, the device includes a processor 1102, an internal bus 1104, a network interface 1106, a memory 1108, and a non-volatile memory 1110, and may also include hardware required for other scenarios. One or more embodiments of the present application can be implemented based on software, such as the processor 1102 reading the corresponding computer program from the non-volatile memory 1110 into the memory 1808 and then running it. Of course, in addition to the software implementation, one or more embodiments of the present application do not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0253] In some embodiments, the embodiments of the present application further provide a computer-readable storage medium on which computer instructions are stored, and when the instructions are executed by a processor, the steps of any of the methods described above are implemented.

[0254] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, graphene-based storage media 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.

[0255] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0256] 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.

[0257] The terms used in one or more embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present application. The singular forms of "a", "said" and "the" used in one or more embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0258] The above description is only a preferred embodiment of one or more embodiments of the present application and is not intended to limit one or more embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present application shall be included in the scope of protection of one or more embodiments of the present application.

Claims

1. A video processing method, characterized in that: Applied to the server, the method includes: Receiving a first video sent by a streaming client, wherein the first video is a video collected by the streaming client in a first time period; Pushing the first video to a shared video stream, and performing noise evaluation on the first video to obtain a first noise level; In response to the first noise level being greater than a first noise threshold, a noise reduction instruction is sent to the streaming client, so that the streaming client performs noise reduction processing on the video collected after the first time period and sends the video to the server.

2. The video processing method according to claim 1, characterized in that: The method further comprises: receiving a second video, a first image sequence, and a second image sequence sent by the streaming client, and streaming the second video to a shared video stream, wherein the second video is a video collected by the streaming client in a second time period, the second time period is after the first time period, the first image sequence is extracted from the second video by the streaming client before performing noise reduction processing on the second video, and the second image sequence is extracted from the second video by the streaming client after performing noise reduction processing on the second video; Performing noise evaluation on the second video to obtain a second noise level, and performing image quality evaluation on the first image sequence and the second image sequence to obtain a first image quality of the first image sequence and a second image quality of the second image sequence; In response to the second noise level being not greater than the first noise threshold and the first image quality being higher than the second image quality, a cancel noise reduction instruction is sent to the streaming client, so that the streaming client determines whether to perform noise reduction processing before sending the captured video to the server after the second time period.

3. The video processing method according to claim 2, characterized in that: The sending of a noise reduction cancellation instruction to the streaming client so that the streaming client determines whether to perform noise reduction processing before sending the collected video to the server after the second period, includes: A noise reduction cancellation instruction is sent to the streaming client, so that the streaming client determines whether to perform noise reduction processing on the collected video before sending it to the server after the second time period according to a third noise level of the collected video, wherein the third noise level is obtained by performing noise evaluation on the collected video by the streaming client.

4. The video processing method according to claim 2, characterized in that: The first video is determined by the streaming client whether to perform noise reduction processing before being sent to the server.

5. The video processing method according to claim 2, characterized in that: The first video is subjected to noise reduction and image enhancement processing by the streaming client before being sent to the server; The method further comprises: receiving a third image sequence and a fourth image sequence sent by the streaming client, and performing image quality evaluation on the third image sequence and the fourth image sequence respectively to obtain a third image quality of the third image sequence and a fourth image quality of the fourth image sequence, wherein the third image sequence is extracted from the first video by the streaming client before performing image enhancement processing on the first video, and the fourth image sequence is extracted from the first video by the streaming client after performing noise reduction processing on the first video; In response to the first noise level being greater than a first noise threshold and the third image quality being greater than the fourth image quality, a first parameter adjustment instruction is sent to the streaming client so that the streaming client reduces relevant parameters of the image enhancement processing.

6. The video processing method according to claim 5, characterized in that: The method further comprises: In response to the second noise level being less than the first noise threshold and the first image quality being higher than the second image quality, a second parameter adjustment instruction is sent to the streaming client so that the streaming client restores relevant parameters of the image enhancement processing.

7. The video processing method according to claim 5 or 6, characterized in that: The relevant parameters of the image enhancement processing include an upper limit value of an adjustment range of a degree parameter, wherein the degree parameter is used to control the processing degree of one or more dimensions of the image enhancement processing.

8. The video processing method according to claim 5 or 6, characterized in that: The method further comprises: A target value indicated by the first parameter adjustment instruction is determined according to the first noise level.

9. A video processing method, characterized in that: Applied to a streaming client, the method includes: Sending a first video collected in a first time period to a server, so that the server pushes the first video to a shared video stream, and performs noise evaluation on the first video to obtain a first noise level; Receive a noise reduction instruction sent by the server, and perform noise reduction processing on the video collected after the first time period and send it to the server, wherein the noise reduction instruction is sent by the server to the streaming client in response to the first noise level being greater than a first noise threshold.

10. The video processing method according to claim 9, characterized in that: The method further comprises: Sending a second video collected during a second time period to a server, so that the server pushes the second video to a shared video stream, and performing noise evaluation on the second video to obtain a second noise level; Extracting a first image sequence from the second video before performing noise reduction processing on the second video, extracting a second image sequence from the second video after performing noise reduction processing on the second video, and sending the first image sequence and the second image sequence to a server, so that the server performs image quality evaluation on the first image sequence and the second image sequence respectively, to obtain a first image quality of the first image sequence and a second image quality of the second image sequence; Receive a noise reduction cancellation instruction sent by the server, and determine whether to perform noise reduction processing on the captured video before sending it to the server after the second time period, wherein the noise reduction cancellation instruction is sent by the server to the streaming client in response to the second noise level being less than a first noise threshold and the first image quality being higher than the second image quality.

11. The video processing method according to claim 10, characterized in that: The method further comprises: After the second period, a noise evaluation is performed on the collected video to obtain a third noise level, and it is determined according to the third noise level whether to perform noise reduction processing on the collected video before sending it to the server.

12. The video processing method according to claim 11, characterized in that: The determining, according to the third noise level, whether to perform noise reduction processing before sending the collected video to the server includes: In response to the third noise level being not greater than the second noise threshold, determining not to perform noise reduction processing on the captured video before sending it to the server; In response to the third noise level being greater than the second noise threshold, it is determined to perform noise reduction processing on the captured video before sending it to the server.

13. The video processing method according to claim 10, characterized in that: Before sending the first video collected in the first time period to the server, the method further includes: Determine whether to perform noise reduction processing before sending the first video to the server.

14. The video processing method according to claim 10, characterized in that: The method further comprises: Before sending the first video collected in the first time period to the server, performing noise reduction and image enhancement processing on the first video; Extracting a third image sequence from the first video before performing image enhancement processing on the first video, extracting a fourth image sequence from the first video after performing image enhancement processing on the first video, and sending the third image sequence and the fourth image sequence to a server, so that the server performs image quality evaluation on the third image sequence and the fourth image sequence, respectively, to obtain a third image quality of the third image sequence and a fourth image quality of the fourth image sequence; In response to receiving a first parameter adjustment instruction sent by the server, reducing the relevant parameters of the image enhancement processing, wherein the first parameter adjustment instruction is sent by the server to the streaming client in response to the first noise level being greater than a first noise threshold and the third image quality being greater than the fourth image quality.

15. The video processing method according to claim 10, characterized in that: The method further comprises: In response to receiving a second parameter adjustment instruction sent by the server, the relevant parameters of the image enhancement processing are restored, wherein the second parameter adjustment instruction is sent by the server to the streaming client in response to the second noise level being less than the first noise threshold and the first image quality being higher than the second image quality.

16. A video processing device, characterized in that: Applied to the server, the device comprises: A first receiving module is used to receive a first video sent by a streaming client, wherein the first video is a video collected by the streaming client in a first period of time; A first evaluation module, configured to stream the first video to a shared video stream and perform noise evaluation on the first video to obtain a first noise level; The first instruction module is used to send a noise reduction instruction to the streaming client in response to the first noise level being greater than a first noise threshold, so that the streaming client performs noise reduction processing on the video collected after the first time period and sends it to the server.

17. A video processing device, characterized in that: Applied to a streaming client, the device comprises: A first sending module, configured to send a first video collected in a first time period to a server, so that the server pushes the first video to a shared video stream, and performs noise evaluation on the first video to obtain a first noise level; The noise reduction module is used to receive the noise reduction instruction sent by the server, and send the noise reduction instruction to the server after performing noise reduction processing on the video collected after the first time period, wherein the noise reduction instruction is sent by the server to the streaming client in response to the first noise level being greater than a first noise threshold.

18. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 15 are implemented.

19. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor implements the method according to any one of claims 1 to 15 by running the executable instructions.

20. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instruction is executed by a processor, the steps of the method according to any one of claims 1 to 15 are implemented.