CN111541942A - Wheat connecting method, device, equipment and storage medium - Google Patents

Wheat connecting method, device, equipment and storage medium Download PDF

Info

Publication number
CN111541942A
CN111541942A CN202010467157.0A CN202010467157A CN111541942A CN 111541942 A CN111541942 A CN 111541942A CN 202010467157 A CN202010467157 A CN 202010467157A CN 111541942 A CN111541942 A CN 111541942A
Authority
CN
China
Prior art keywords
picture
replacing
replacement
wheat
video stream
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010467157.0A
Other languages
Chinese (zh)
Other versions
CN111541942B (en
Inventor
岑焕成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Cubesili Information Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN202010467157.0A priority Critical patent/CN111541942B/en
Publication of CN111541942A publication Critical patent/CN111541942A/en
Application granted granted Critical
Publication of CN111541942B publication Critical patent/CN111541942B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23424Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for inserting or substituting an advertisement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42203Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS] sound input device, e.g. microphone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The application discloses a wheat connecting method, a wheat connecting device, wheat connecting equipment and a storage medium, and belongs to the technical field of live broadcast. The method comprises the following steps: in the process of connecting the first main broadcasting and the second main broadcasting, whether the current wheat connecting state meets a first picture replacing condition is detected; if so, performing picture replacement processing on at least one of a first connecting video stream corresponding to the first main broadcast and a second connecting video stream corresponding to the second main broadcast according to a preset replacement strategy; the preset replacement strategy comprises a first strategy or a second strategy; the first policy includes: replacing a second picture in a target area in a second continuous microphone video stream by using a first picture in the target area in the first continuous microphone video stream, and keeping the picture of the first continuous microphone video stream unchanged; the second policy includes: a portion of the second picture is replaced with a portion of the first picture and/or a portion of the first picture is replaced with a portion of the second picture. The technical scheme provided by the embodiment of the application can improve the flexibility of connecting the wheat.

Description

Wheat connecting method, device, equipment and storage medium
Technical Field
The present application relates to the field of live broadcast technologies, and in particular, to a method, an apparatus, a device, and a storage medium for connecting to a wheat.
Background
With the popularization of computer equipment and the development of networks, live webcasts relying on the internet are more and more common in daily life of people, wherein live webcasts are an important form of live webcasts. In the process of connecting the wheat, different anchor broadcasters can interact, and the wheat connecting interface can simultaneously display the wheat connecting video streams respectively corresponding to the different anchor broadcasters so as to be watched by wheat connecting audiences, so that the wheat connecting audiences can enjoy the interaction between the anchor broadcasters.
At present, the display effect of the connected wheat is single, so that the flexibility of the connected wheat is low.
Disclosure of Invention
Based on this, the embodiments of the present application provide a method, an apparatus, a device, and a storage medium for connecting a microphone, which can improve flexibility of connecting a microphone.
In a first aspect, a wheat connecting method is provided, which comprises:
in the process of connecting the first main broadcasting and the second main broadcasting, whether the current wheat connecting state meets a first picture replacing condition is detected; if the current connecting state meets the first picture replacing condition, performing picture replacing processing on at least one of a first connecting video stream corresponding to the first main broadcast and a second connecting video stream corresponding to the second main broadcast according to a preset replacing strategy; the preset replacement strategy comprises one of a first strategy and a second strategy; the first policy includes: replacing a second picture in a target area in the second continuous microphone video stream by using a first picture in the target area in the first continuous microphone video stream, and keeping the picture of the first continuous microphone video stream unchanged; the second policy includes: and replacing a portion of the second frame with a portion of the first frame, and/or replacing a portion of the first frame with a portion of the second frame.
In one embodiment, the preset replacement policy is the first policy, and detecting whether the current microphone connecting state meets a first picture replacement condition includes:
respectively acquiring a first virtual value of the virtual gift accumulatively received by the first anchor in the wheat connecting process till the current moment, and a second virtual value of the virtual gift accumulatively received by the second anchor in the wheat connecting process till the current moment; and if the difference value obtained by subtracting the second virtual value from the first virtual value is larger than a preset difference value threshold value, determining that the current wheat connecting state meets the first picture replacing condition.
In one embodiment, the preset replacement policy is the first policy, and after performing picture replacement processing on at least one of the first continuous playing video stream corresponding to the first main broadcast and the second continuous playing video stream corresponding to the second main broadcast according to the preset replacement policy, the method further includes:
detecting whether the current wheat connecting state meets a picture resetting condition or not; if the current connecting state meets the picture resetting condition, keeping the picture of the first connecting video stream unchanged, and stopping replacing the second picture by the first picture.
In one embodiment, detecting whether the current microphone connecting state meets the picture resetting condition includes:
respectively acquiring a first virtual value of the virtual gift accumulatively received by the first anchor in the wheat connecting process till the current moment, and a second virtual value of the virtual gift accumulatively received by the second anchor in the wheat connecting process till the current moment; and if the difference value obtained by subtracting the second virtual value from the first virtual value is smaller than a preset difference value threshold value, determining that the current microphone connecting state meets the picture resetting condition.
In one embodiment, the preset replacement policy is the first policy, and after performing picture replacement processing on at least one of the first continuous playing video stream corresponding to the first main broadcast and the second continuous playing video stream corresponding to the second main broadcast according to the preset replacement policy, the method further includes:
detecting whether the current wheat connecting state meets a second picture replacing condition or not; and if the current microphone connecting state meets the second picture replacing condition, stopping replacing the second picture by the first picture and replacing the first picture by the second picture.
In one embodiment, detecting whether the current microphone connecting state meets the second picture replacing condition comprises:
respectively acquiring a first virtual value of the virtual gift accumulatively received by the first anchor in the wheat connecting process till the current moment, and a second virtual value of the virtual gift accumulatively received by the second anchor in the wheat connecting process till the current moment; and if the difference value obtained by subtracting the first virtual value from the second virtual value is larger than a preset difference value threshold value, determining that the current wheat connecting state meets the second picture replacing condition.
In one embodiment, the preset replacement policy is the second policy, and detecting whether the current microphone connecting state meets the first picture replacement condition includes:
detecting whether a first virtual value of a virtual gift which is received by the first main broadcasting in the process of connecting to the wheat by the current moment is larger than a preset value threshold value or not; detecting whether a second virtual value of the virtual gift accumulatively received by the second anchor in the process of connecting the wheat at the current moment is greater than the preset value threshold value or not; and if the first virtual value is greater than the preset value threshold value or the second virtual value is greater than the preset value threshold value, determining that the current wheat connecting state meets the first picture replacing condition.
In one embodiment, performing picture replacement processing on at least one of a first live telecast video stream corresponding to a first main broadcast and a second live telecast video stream corresponding to a second main broadcast according to a preset replacement policy includes:
if the first virtual value is greater than the preset value threshold, replacing a part of the first picture with a part of the second picture; and if the second virtual value is larger than the preset value threshold value, replacing a part of the second picture by a part of the first picture.
In one embodiment, replacing a portion of the first picture with a portion of the second picture comprises:
acquiring a first replacement proportion according to the first virtual value; and replacing a part of the first picture with a part of the second picture based on the first replacement proportion, wherein the proportion of the replaced part of the first picture in the first picture is equal to the first replacement proportion.
In one embodiment, replacing a portion of the second picture with a portion of the first picture comprises:
acquiring a second replacement proportion according to the second virtual value; and replacing a part of the second picture with a part of the first picture based on the second replacement proportion, wherein the proportion of the replaced part of the second picture in the second picture is equal to the second replacement proportion.
In one embodiment, the target area is an area where a human face is located.
In a second aspect, there is provided a wheat connecting device, comprising:
the first detection module is used for detecting whether the current wheat connecting state meets a first picture replacing condition or not in the process of connecting the first main broadcast and the second main broadcast;
the first replacing module is used for carrying out image replacing processing on at least one of a first continuous microphone video stream corresponding to the first main broadcast and a second continuous microphone video stream corresponding to the second main broadcast according to a preset replacing strategy under the condition that the current continuous microphone state meets the first image replacing condition;
the preset replacement strategy comprises one of a first strategy and a second strategy; the first policy includes: replacing a second picture in a target area in the second continuous microphone video stream by using a first picture in the target area in the first continuous microphone video stream, and keeping the picture of the first continuous microphone video stream unchanged; the second policy includes: and replacing a portion of the second frame with a portion of the first frame, and/or replacing a portion of the first frame with a portion of the second frame.
In one embodiment, the preset replacement policy is the first policy, and the first detection module is specifically configured to:
respectively acquiring a first virtual value of the virtual gift accumulatively received by the first anchor in the wheat connecting process till the current moment, and a second virtual value of the virtual gift accumulatively received by the second anchor in the wheat connecting process till the current moment; and if the difference value obtained by subtracting the second virtual value from the first virtual value is larger than a preset difference value threshold value, determining that the current wheat connecting state meets the first picture replacing condition.
In one embodiment, the preset replacement policy is the first policy, and the apparatus further includes a second detection module and a reset module;
the second detection module is used for detecting whether the current microphone connecting state meets the picture resetting condition;
the reset module is used for keeping the picture of the first connecting microphone video stream unchanged and stopping replacing the second picture by the first picture under the condition that the current connecting microphone state meets the picture reset condition.
In one embodiment, the second detection module is specifically configured to: respectively acquiring a first virtual value of the virtual gift accumulatively received by the first anchor in the wheat connecting process till the current moment, and a second virtual value of the virtual gift accumulatively received by the second anchor in the wheat connecting process till the current moment; and if the difference value obtained by subtracting the second virtual value from the first virtual value is smaller than a preset difference value threshold value, determining that the current microphone connecting state meets the picture resetting condition.
In one embodiment, the preset replacement policy is the first policy, and the apparatus further includes a third detecting module and a second replacing module;
the third detection module is used for detecting whether the current wheat connecting state meets a second picture replacing condition or not;
the second replacing module is used for stopping replacing the second picture by the first picture and replacing the first picture by the second picture under the condition that the current microphone connecting state meets the second picture replacing condition.
In one embodiment, the third detection module is specifically configured to: respectively acquiring a first virtual value of the virtual gift accumulatively received by the first anchor in the wheat connecting process till the current moment, and a second virtual value of the virtual gift accumulatively received by the second anchor in the wheat connecting process till the current moment; and if the difference value obtained by subtracting the first virtual value from the second virtual value is larger than a preset difference value threshold value, determining that the current wheat connecting state meets the second picture replacing condition.
In one embodiment, the preset replacement policy is the second policy, and the first detection module is specifically configured to:
detecting whether a first virtual value of a virtual gift which is received by the first main broadcasting in the process of connecting to the wheat by the current moment is larger than a preset value threshold value or not; detecting whether a second virtual value of the virtual gift accumulatively received by the second anchor in the process of connecting the wheat at the current moment is greater than the preset value threshold value or not; and if the first virtual value is greater than the preset value threshold value or the second virtual value is greater than the preset value threshold value, determining that the current wheat connecting state meets the first picture replacing condition.
In one embodiment, the first replacement module comprises a first replacement submodule and a second replacement submodule;
the first replacing submodule is specifically configured to replace a part of the first picture with a part of the second picture when the first virtual value is greater than the preset value threshold;
the second replacement sub-module is specifically configured to replace a portion of the second frame with a portion of the first frame when the second virtual value is greater than the preset value threshold.
In one embodiment, the first replacement sub-module is specifically configured to: acquiring a first replacement proportion according to the first virtual value; and replacing a part of the first picture with a part of the second picture based on the first replacement proportion, wherein the proportion of the replaced part of the first picture in the first picture is equal to the first replacement proportion.
In one embodiment, the second replacement submodule is specifically configured to: acquiring a second replacement proportion according to the second virtual value; and replacing a part of the second picture with a part of the first picture based on the second replacement proportion, wherein the proportion of the replaced part of the second picture in the second picture is equal to the second replacement proportion.
In one embodiment, the target area is an area where a human face is located.
In a third aspect, a computer device is provided, comprising a memory and a processor, the memory storing a computer program, the computer program implementing the microphone connecting method according to any one of the first aspect when executed by the processor.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, is adapted to carry out the method of connecting wheat as defined in any one of the above first aspects.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
detecting whether the current wheat connecting state meets a first picture replacing condition or not in the process of connecting the first main player and the second main player, and carrying out picture replacing processing on at least one of a first wheat connecting video stream corresponding to the first main player and a second wheat connecting video stream corresponding to the second main player according to a preset replacing strategy when the current wheat connecting state meets the first picture replacing condition, wherein the preset replacing strategy can comprise a strategy of replacing a second picture in a target area in the second wheat connecting video stream by using a first picture in the target area in the first wheat connecting video stream and keeping the picture of the first wheat connecting video stream unchanged, a strategy of replacing a part of the second picture by using a part of the first picture and/or a strategy of replacing a part of the first picture by using a part of the second picture, so that the pictures of the first wheat connecting video stream and the second wheat connecting video stream can be changed by using the preset replacing strategy in the wheat connecting process, therefore, the display effect of the connected wheat can be enriched, and the flexibility of the connected wheat is improved.
Drawings
FIG. 1 is a schematic diagram of an exemplary Lian-Mai interface;
FIG. 2 is a schematic diagram of an implementation environment to which embodiments of the present application relate;
fig. 3 is a flowchart of a wheat connecting method according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of an exemplary miked invitation interface provided in an embodiment of the present application;
FIG. 5 is a schematic view of an exemplary virtual gift-giving interface provided by an embodiment of the present application;
fig. 6 is a schematic diagram of a first connected video stream and a second connected video stream after a server performs picture replacement processing according to a first policy according to an embodiment of the present application;
fig. 7 is a schematic diagram of a first microphone video stream after a server performs picture replacement processing according to a second policy according to an embodiment of the present application;
fig. 8 is a flowchart of a technical process of detecting, by a server, whether a current barley connecting state meets a first picture replacement condition when a preset replacement policy is a first policy according to an embodiment of the present application;
fig. 9 is a flowchart of a technical process executed by a server after performing a picture replacement process according to a first policy according to an embodiment of the present application;
fig. 10 is a flowchart of another technical process executed by the server after the picture replacement process is performed according to the first policy according to the embodiment of the present application;
fig. 11 is a flowchart of a technical process of detecting, by a server, whether a current barley connecting state meets a first picture replacement condition when a preset replacement policy is a second policy according to an embodiment of the present application;
fig. 12 is a flowchart of a technical process of performing, by a server, a picture replacement process according to a second policy according to an embodiment of the present application;
fig. 13 is a block diagram of a microphone connecting device according to an embodiment of the present disclosure;
fig. 14 is a block diagram of another microphone connecting device provided in the embodiment of the present application;
fig. 15 is a block diagram of a computer device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The network live broadcast refers to audio and video live broadcast through the internet. In the network live broadcast process, a terminal (hereinafter referred to as a main broadcast terminal) held by the main broadcast can shoot the main broadcast to obtain a live broadcast video stream corresponding to the main broadcast, then the main broadcast terminal can send the live broadcast video stream to a server, and the server can distribute the live broadcast video stream to terminals (hereinafter referred to as audience terminals) held by audiences after receiving the live broadcast video stream so as to enable the audiences to watch the live broadcast video stream.
In practical application, the continuous wheat is an important form of network live broadcasting, in the process of connecting the wheat, all the main broadcasting terminals (hereinafter, called main broadcasting terminals) held by each main broadcasting participating in the continuous wheat (hereinafter, called main broadcasting terminals) can send live video streams (the live video streams related to the continuous wheat process are collectively called continuous wheat video streams) to the server, and after receiving the continuous wheat video streams sent by the main broadcasting terminals, the server can distribute the received continuous wheat video streams to audience terminals (hereinafter, called continuous wheat audience terminals) held by audiences watching the continuous wheat (hereinafter, called continuous wheat audiences), so that the continuous wheat audience terminals can simultaneously display the continuous wheat video streams corresponding to the main broadcasting in the continuous wheat interface, and the continuous wheat audiences can enjoy the interaction between the main broadcasting.
Please refer to fig. 1, which is a schematic diagram of an exemplary linkman interface, as shown in fig. 1, the linkman interface includes two areas, where an area 1 is used to display a linkman video stream corresponding to a linkman a, and an area 2 is used to display a linkman video stream corresponding to a linkman b, and a linkman viewer can enjoy an interaction between the linkman a and the linkman b by viewing the linkman interface.
In practical application, the display effect of the connected wheat is generally single, which results in poor flexibility of the connected wheat.
In view of this, an embodiment of the present application provides a method for connecting a microphone, in which, during a process of connecting a microphone by a first main broadcaster and a second main broadcaster, it may be detected whether a current microphone connecting state satisfies a first picture replacement condition, and when the current microphone connecting state satisfies the first picture replacement condition, picture replacement processing may be performed on at least one of a first microphone connecting video stream corresponding to the first main broadcaster and a second microphone connecting video stream corresponding to the second main broadcaster according to a preset replacement policy, where the preset replacement policy may include a policy of replacing a second picture in a target area in the second microphone connecting video stream with a first picture in the target area in the first microphone connecting video stream and keeping a picture of the first microphone connecting video stream unchanged, and a policy of replacing a part of the second picture with a part of the first picture, and/or a policy of replacing a part of the first picture with a part of the second picture, therefore, in the process of connecting the microphone, the preset replacement strategy can be utilized to change the pictures of the first connecting microphone video stream and the second connecting microphone video stream, so that the display effect of connecting the microphone can be enriched, and the flexibility of connecting the microphone can be improved.
In the following, a brief description will be given of an implementation environment related to the wheat connecting method provided in the embodiments of the present application.
As shown in fig. 2, the implementation environment may include at least two anchor terminals 201 (only two anchor terminals 201 are shown in fig. 2 for simplicity of illustration), a server 202, and at least one audience terminal 203 (only one audience terminal 203 is shown in fig. 2 for simplicity of illustration). Each of the arcade terminals 201 may communicate with the server 202 via a network, and each of the arcade viewer terminals 203 may communicate with the server 202 via a network.
In practical applications, the barley-connecting anchor terminal 201 and the barley-connecting audience terminal 203 may be a personal computer, a notebook computer, a media player, an intelligent television, an intelligent mobile phone, a tablet computer, a portable wearable device, and the like, and the types of the barley-connecting anchor terminal 201 and the barley-connecting audience terminal 203 are not specifically limited in the embodiment of the present application; the server 202 may be a single server or a server cluster composed of multiple servers, where the server 202 may be a tower server, a rack server, a blade server, a high-density server, a single-path server, a two-path server, or a multi-path server, and the type of the server 202 is not specifically limited in this embodiment of the present application.
Referring to fig. 3, a flowchart of a method for connecting to a wheat according to an embodiment of the present application is shown, where the method for connecting to a wheat can be applied to a server in the implementation environment shown in fig. 2. As shown in fig. 3, the wheat connecting method may include the following steps:
step 301, in the process of connecting the first main broadcasting and the second main broadcasting, the server detects whether the current wheat connecting state meets the first picture replacing condition.
Wherein, the first main broadcast and the second main broadcast are both the above-mentioned connected wheat main broadcast. In an optional embodiment of the present application, one of the first and second anchor may initiate a wheat-connecting invitation to the other anchor, and if the other anchor accepts the wheat-connecting invitation, the first and second anchor may perform wheat-connecting.
In the following, the embodiments of the present application will briefly describe a technical process of initiating a mic connection invitation and accepting the mic connection invitation by taking a first anchor as an anchor initiating the mic connection invitation, and a second anchor as an anchor accepting the mic connection invitation.
A contact-to-live-broadcasting terminal (hereinafter referred to as a first contact-to-live-broadcasting terminal) held by the first anchor may provide a contact-to-live-broadcasting invitation interface, as shown in fig. 4, where the contact-to-live-broadcasting invitation interface may include an input box a and a query option b, and the first anchor may input an identifier of the second anchor in the input box a, where the identifier of the second anchor may be a nickname of the second anchor or a live broadcasting room number of a live broadcasting room where the second anchor is located.
After the identifier of the second anchor is input, the first anchor may trigger the query option b, and after the trigger operation on the query option b is detected, the first connected anchor terminal may send a query request to the server, where the query request carries the identifier of the second anchor. The server may return, to the first connected-to-multipoint anchor terminal, anchor information of the second anchor based on the query request, wherein the anchor information may include an avatar, a nickname, a level, and the like of the second anchor.
After receiving the anchor information of the second anchor, the first affiliate terminal may present a content item c corresponding to the second anchor in the affiliate invitation interface based on the anchor information of the second anchor, and the content item c may include an invitation option c 1. In an optional embodiment of the present application, if the first anchor and the second anchor are in a friend relationship, the content item c may be directly displayed on the connect-to-mark invitation interface without inputting an identifier of the second anchor in the input box a by the first anchor or sending a query request to the server by the first connect-to-mark anchor terminal.
The first anchor may trigger the invitation option c1, the first anchor terminal may send an invitation request to the server after detecting the triggering operation on the invitation option c1, the invitation request may carry an identifier of the second anchor, and the server may forward the invitation request to an anchor terminal (hereinafter referred to as a second anchor terminal) held by the second anchor based on the identifier of the second anchor.
The second anchor terminal may display an invitation acceptance option after receiving the invitation request, the second anchor may trigger the invitation acceptance option, and the second anchor terminal may send invitation acceptance information to the server after detecting a trigger operation for the invitation acceptance option. After receiving the invitation accepting message, the server may forward the invitation accepting message to the first connected-to-multicast terminal. And then, the first main broadcasting and the second main broadcasting can be connected with the wheat.
In the process of connecting the first main broadcast and the second main broadcast, the first main broadcast connecting terminal can send a first connecting video stream corresponding to the first main broadcast to the server, the second main broadcast connecting terminal can send a second connecting video stream corresponding to the second main broadcast to the server, and the server can distribute the first connecting video stream and the second connecting video stream to the connecting audience terminal.
In the embodiment of the application, in the process of connecting the first main broadcasting and the second main broadcasting, the server can detect whether the current wheat connecting state meets the first picture replacing condition in real time. In an alternative embodiment of the present application, the online status may be characterized by a virtual value of a virtual gift received by at least one of the first main broadcast and the second main broadcast during the online process, where the virtual gift refers to a gift that may be transmitted via the internet using data as a carrier.
In practical applications, the wheat-connected audience terminal may provide a virtual gift giving interface, as shown in fig. 5, the virtual gift giving interface may include a plurality of virtual gift icons d, each virtual gift icon d corresponds to a different virtual gift, and during the wheat connection, the wheat-connected audience may give a virtual gift to the first main broadcast or the second main broadcast by triggering the virtual gift icon d.
In an optional embodiment of the present application, the server may determine whether the current online state satisfies the first screen replacement condition according to a virtual value of the virtual gift received by at least one of the first main broadcast and the second main broadcast during the online process.
In an optional embodiment of the present application, the virtual gift-giving interface described above may include a screen replacement virtual gift icon, where the screen replacement virtual gift icon corresponds to a screen replacement virtual gift, in the process of connecting to the wheat, the wheat-connecting audience may present a screen replacement virtual gift to the first main broadcast or the second main broadcast by triggering the screen replacement virtual gift icon, and the server may determine whether the current wheat-connecting state meets the first screen replacement condition according to a virtual value of the screen replacement virtual gift received by at least one of the first main broadcast and the second main broadcast in the process of connecting to the wheat.
Step 302, if the current microphone connecting state meets the first picture replacing condition, the server performs picture replacing processing on at least one of the first microphone connecting video stream and the second microphone connecting video stream according to a preset replacing strategy.
In an optional embodiment of the present application, the preset replacement policy may include one of a first policy and a second policy, where the first policy includes: replacing a second picture in a target area in a second continuous microphone video stream by using a first picture in the target area in the first continuous microphone video stream, and keeping the picture of the first continuous microphone video stream unchanged, wherein the second strategy comprises the following steps: a portion of the second picture is replaced with a portion of the first picture and/or a portion of the first picture is replaced with a portion of the second picture.
Taking a main broadcast initiating a wheat-connecting invitation as a first main broadcast as an example, in an optional embodiment of the present application, the first wheat-connecting main broadcast terminal may provide a policy selection interface, where the policy selection interface may be provided with an identifier of a first policy and an identifier of a second policy, and after detecting a selection operation on an identifier of a certain policy, the first wheat-connecting main broadcast terminal may send the identifier of the selected policy to a server, so that the server performs picture replacement processing according to the selected policy.
Taking the target area as the area where the face is located as an example, in the first policy, the server may replace the second picture in the area where the face is located in the second linting video stream with the first picture in the area where the face is located in the first linting video stream, and at the same time, keep the picture of the first linting video stream unchanged, that is, in the first policy, the server may replace the face of the second anchor in the second linting video stream with the face of the first anchor in the first linting video stream, and at the same time, keep the picture of the first linting video stream unchanged.
Referring to fig. 6, which is a schematic diagram of the first and second connected-microphone video streams after the server performs the frame replacement processing according to the first policy, as shown in fig. 6, the frame of the first connected-microphone video stream remains unchanged, that is, the first connected-microphone video stream still displays the face of the first anchor a, and the second connected-microphone video stream replaces the face of the second anchor a in the first connected-microphone video stream.
Still taking the target area as the area where the face is located as an example, in the second policy, the server may replace a part of a second picture in the area where the face is located in the second linkman video stream with a part of a first picture in the area where the face is located in the first linkman video stream, or the server may replace a part of a first picture in the area where the face is located in the first linkman video stream with a part of a second picture in the area where the face is located in the second linkman video stream, that is, in the second policy, the server may replace a part of a face of a second anchor in the second linkman video stream with a part of a face of a first anchor in the first linkman video stream, or the server may replace a part of a face of the first anchor in the first linkman video stream with a part of a face of the second anchor in the second linkman video stream.
Please refer to fig. 7, which is a schematic diagram of the first linkman video stream after the server performs the frame replacement processing according to the second policy, and as shown in fig. 7, half of the first anchor's face in the first linkman video stream is replaced by half of the second anchor's face.
In the method for connecting wheat provided by the embodiment of the application, in the process of connecting wheat by a first main broadcasting and a second main broadcasting, whether the current wheat connecting state meets a first picture replacing condition is detected, and when the current wheat connecting state meets the first picture replacing condition, picture replacing processing is performed on at least one of a first wheat connecting video stream corresponding to the first main broadcasting and a second wheat connecting video stream corresponding to the second main broadcasting according to a preset replacing strategy, wherein the preset replacing strategy can include a strategy of replacing a second picture in a target area in the second wheat connecting video stream by using a first picture in the target area in the first wheat connecting video stream and keeping the picture of the first wheat connecting video stream unchanged, a strategy of replacing a part of the second picture by using a part of the first picture, and/or a strategy of replacing a part of the first picture by using a part of the second picture, so that, in the process of connecting the microphone, the preset replacement strategy can be utilized to change the pictures of the first connecting microphone video stream and the second connecting microphone video stream, so that the display effect of connecting the microphone can be enriched, and the flexibility of connecting the microphone can be improved.
As described above, the preset replacement policy may be one of the first policy and the second policy, and in the following, in the embodiment of the present application, some technical processes in the wheat connecting method provided in the embodiment of the present application will be briefly described in the case that the preset replacement policy is the first policy:
referring to fig. 8, in a case that the preset replacement policy is the first policy, the technical process of the server detecting whether the current microphone connecting state meets the first screen replacement condition may include the following steps:
step 401, the server respectively obtains a first virtual value of the virtual gift received by the first anchor in the course of connecting to the wheat by the current time, and a second virtual value of the virtual gift received by the second anchor in the course of connecting to the wheat by the current time.
Step 402, if the difference value of the first virtual value minus the second virtual value is greater than a preset difference value threshold, the server determines that the current wheat connecting state meets the first picture replacement condition.
In practical application, the server can obtain the first virtual value and the second virtual value in real time, detect whether a difference value obtained by subtracting the second virtual value from the first virtual value is greater than a preset difference threshold value or not in real time, and once the difference value obtained by subtracting the second virtual value from the first virtual value is greater than the preset difference threshold value, the server can determine that the current connected wheat state meets the first picture replacement condition.
As described above, in the present embodiment, the server may calculate, in real time, a first virtual value of the virtual gift that is cumulatively received by the first anchor during the online process and a second virtual value of the virtual gift that is cumulatively received by the second anchor during the online process, and detect, in real time, whether a difference between the first virtual value and the second virtual value is greater than a preset difference threshold, and once it is detected that the difference between the first virtual value and the second virtual value is greater than the preset difference threshold, it indicates that the popularity of the first anchor is higher than that of the second anchor, at this time, the server may determine that the current online state satisfies the first frame replacement condition, take an area where the target area is a face as an example, and after determining that the current online state satisfies the first frame replacement condition, the server may replace the face of the second anchor with the face of the first anchor in the second live video stream with the face of the second anchor having a lower popularity and leave the face of the first anchor in the first live video stream unchanged.
As shown in fig. 9, in an alternative embodiment of the present application, after the screen replacement processing is performed according to the first policy, the server may further perform the following steps:
step 501, the server detects whether the current microphone connecting state meets the picture resetting condition.
Optionally, after the picture replacement processing is performed according to the first policy, the server may still obtain the first virtual value and the second virtual value in real time, and meanwhile, the server may detect whether a difference value obtained by subtracting the second virtual value from the first virtual value is greater than a preset difference threshold value in real time, and once it is detected that the difference value obtained by subtracting the second virtual value from the first virtual value is smaller than the preset difference threshold value, the server may determine that the current microphone connecting state meets the picture resetting condition.
Step 502, if the current connecting state meets the picture resetting condition, the server keeps the picture of the first connecting video stream unchanged and stops replacing the second picture with the first picture.
If the current microphone connecting state meets the picture resetting condition, that is, the difference between the popularity of the second anchor and the popularity of the first anchor is smaller than a preset difference threshold, it is described that the difference between the popularity of the second anchor and the popularity of the first anchor is reduced to a certain extent, at this time, the server may determine that the current microphone connecting state meets the picture resetting condition, taking the target area as the area where the face is located as an example, and after determining that the current microphone connecting state meets the picture resetting condition, the server may recover the face of the second anchor in the second microphone connecting video stream, that is, the server may stop replacing the second picture with the first picture, and at the same time, the server may keep the face of the first anchor in the first microphone connecting video stream unchanged.
As shown in fig. 10, in an alternative embodiment of the present application, after the screen replacement processing is performed according to the first policy, the server may further perform the following steps:
step 601, the server detects whether the current microphone connecting state meets a second picture replacing condition.
Optionally, after the picture replacement processing is performed according to the first policy, the server may still obtain the first virtual value and the second virtual value in real time, and the server may detect whether a difference value obtained by subtracting the first virtual value from the second virtual value is greater than a preset difference threshold value in real time, and once it is detected that the difference value obtained by subtracting the first virtual value from the second virtual value is greater than the preset difference threshold value, the server may determine that the current microphone connecting state meets the second picture replacement condition.
Step 602, if the current connecting state meets the second picture replacing condition, the server stops replacing the second picture with the first picture and replaces the first picture with the second picture.
If the current wheat connecting state meets the second picture replacing condition, namely the difference value obtained by subtracting the first virtual value from the second virtual value is larger than the preset difference value threshold value, it is indicated that the popularity of the second anchor is more than that of the first anchor, at this time, the server can determine that the current wheat connecting state meets the second picture replacing condition, taking the target area as the area where the face is located as an example, after determining that the current wheat connecting state meets the second picture replacing condition, the server can recover the face of the second anchor in the second wheat connecting video stream, namely, the server can stop replacing the second picture by the first picture, and at the same time, the server can replace the face of the first anchor in the first wheat connecting video stream by the face of the second anchor in the second wheat connecting video stream, namely, replace the first picture by the second picture.
Because in this application embodiment, take the target area as the area of face as the example, the face of the anchor who has lower popularity in the continuous wheat video stream can be replaced by the face of the anchor who has higher popularity, consequently, the exposure of the anchor who has lower popularity will reduce, this just can stimulate continuous wheat spectator to give a gift virtual gift for the anchor who oneself likes to increase the exposure of the anchor who continuous wheat spectator likes, like this, can promote the taste degree of continuous wheat, and then improve the flexibility of continuous wheat.
In addition, in the technical solution provided in the embodiment of the present application, the server only needs to perform the picture replacement processing on one of the first and second connected microphone video streams, and the other one keeps the picture unchanged, and does not need to perform the picture replacement processing on both the first and second connected microphone video streams, so that the computing resource of the server can be saved.
Next, in the embodiment of the present application, in a case that the preset replacement policy is the second policy, some technical processes in the wheat connecting method provided in the embodiment of the present application will be briefly described.
Referring to fig. 11, in a case that the preset replacement policy is the second policy, the technical process of the server detecting whether the current microphone connecting state meets the first screen replacement condition may include the following steps:
step 701, the server detects whether the first virtual value is greater than a preset value threshold.
Step 702, the server detects whether the second virtual value is greater than a preset value threshold.
Step 703, if the first virtual value is greater than the preset value threshold, or the second virtual value is greater than the preset value threshold, the server determines that the current connected wheat state meets the first picture replacement condition.
As described above, the server may obtain the first virtual value and the second virtual value in real time, and in a case that the preset replacement policy is the second policy, the server may detect whether the first virtual value is greater than the preset value threshold in real time, and detect whether the second virtual value is greater than the preset value threshold in real time, and once the first virtual value is greater than the preset value threshold or the second virtual value is greater than the preset value threshold, the server may determine that the current connected wheat state satisfies the first screen replacement condition.
Referring to fig. 12, in an alternative embodiment of the present application, the technical process of the server performing the screen replacement processing according to the second policy may include the following steps:
step 801, if the first virtual value is greater than the preset value threshold, the server replaces a portion of the first frame with a portion of the second frame.
If the first virtual value is greater than the preset value threshold, it is indicated that the popularity of the first anchor has reached a higher degree, at this time, the server may replace a part of the first picture with a part of the second picture, and taking the target area as the area where the face is located as an example, the server may replace a part of the face of the first anchor in the first linkman video stream with a part of the face of the second anchor in the second linkman video stream.
Optionally, the server may obtain the first replacement ratio according to the first virtual value, for example, a replacement ratio lookup table may be maintained in the server, a corresponding relationship between the replacement ratio and the virtual value interval is stored in the replacement ratio lookup table, the server may determine the virtual value interval in which the first virtual value is located, and query the replacement ratio corresponding to the virtual value interval in which the first virtual value is located in the replacement ratio lookup table, where the replacement ratio is the first replacement ratio.
After obtaining the first replacement ratio, the server may replace a portion of the first picture with a portion of the second picture based on the first replacement ratio, where a ratio of the replaced portion of the first picture to the first picture is equal to the first replacement ratio.
Taking the target area as the area where the face is located as an example, the server may replace a part of the face of the first anchor in the first continuous microphone video stream with a part of the face of the second anchor in the second continuous microphone video stream based on the first replacement proportion, where a proportion of the replaced face of the first anchor in a full face of the first anchor is equal to the first replacement proportion.
In general, the first virtual value is positively correlated with the first replacement ratio, that is, the larger the first virtual value is, the larger the first replacement ratio is, and conversely, the smaller the first virtual value is, the smaller the first replacement ratio is, since the server can acquire the first virtual value in real time and the first virtual value increases with the increase of time, the first replacement ratio also increases with the increase of time, so in the embodiment of the present application, the replaced portion of the first screen increases with the increase of time, that is, the first screen is gradually replaced by the second screen.
Because the first picture can be gradually replaced by the second picture, namely, under the condition that the target area is the area where the face is located, the face of the first main broadcast in the first continuous-microphone video stream can be gradually replaced by the face of the second main broadcast in the second continuous-microphone video stream, in order to increase the replacement speed, the continuous-microphone audience can be stimulated to give a main-broadcast gift which is liked by the continuous-microphone audience, and therefore, the interesting degree of the continuous-microphone can be improved, and the flexibility of the continuous-microphone is improved.
Step 802, if the second virtual value is greater than the preset value threshold, the server replaces a portion of the second frame with a portion of the first frame.
Optionally, the server may obtain a second replacement ratio according to the second virtual value, and after obtaining the second replacement ratio, the server may replace a part of the second picture with a part of the first picture based on the second replacement ratio, where a ratio of the replaced part of the second picture in the second picture to the second picture is equal to the second replacement ratio.
The technical process of step 802 is the same as that of step 801, and the embodiments of the present application are not described herein again.
It should be understood that although the various steps in the flow charts of fig. 3-12 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 3-12 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
Referring to fig. 13, a block diagram of a microphone connecting device 900 according to an embodiment of the present disclosure is shown, where the microphone connecting device 900 may be configured in a server in the implementation environment shown in fig. 2. As shown in fig. 13, the microphone connecting device 900 may include: a first detection module 901 and a second detection module 902.
The first detecting module 901 is configured to detect whether a current microphone connecting state meets a first picture replacing condition in a microphone connecting process between a first main broadcast and a second main broadcast.
The first replacing module 902 is configured to, when the current link state meets the first picture replacing condition, perform picture replacing processing on at least one of a first link video stream corresponding to the first anchor and a second link video stream corresponding to the second anchor according to a preset replacing policy.
The preset replacement strategy comprises one of a first strategy and a second strategy; the first policy includes: replacing a second picture in a target area in the second continuous microphone video stream by using a first picture in the target area in the first continuous microphone video stream, and keeping the picture of the first continuous microphone video stream unchanged; the second policy includes: and replacing a portion of the second frame with a portion of the first frame, and/or replacing a portion of the first frame with a portion of the second frame.
In an embodiment of the application, the preset replacement policy is a first policy, and the first detecting module 901 is specifically configured to:
respectively acquiring a first virtual value of the virtual gift accumulatively received by the first anchor in the wheat connecting process till the current moment, and a second virtual value of the virtual gift accumulatively received by the second anchor in the wheat connecting process till the current moment; and if the difference value obtained by subtracting the second virtual value from the first virtual value is larger than a preset difference value threshold value, determining that the current wheat connecting state meets the first picture replacing condition.
In an embodiment of the application, the preset replacement policy is a second policy, and the first detecting module 901 is specifically configured to:
detecting whether a first virtual value of a virtual gift which is received by the first main broadcasting in the process of connecting to the wheat by the current moment is larger than a preset value threshold value or not; detecting whether a second virtual value of the virtual gift accumulatively received by the second anchor in the process of connecting the wheat at the current moment is greater than the preset value threshold value or not; and if the first virtual value is greater than the preset value threshold value or the second virtual value is greater than the preset value threshold value, determining that the current wheat connecting state meets the first picture replacing condition.
In one embodiment of the present application, the first replacement module 902 includes a first replacement submodule and a second replacement submodule;
the first replacing sub-module is specifically configured to replace a portion of the first frame with a portion of the second frame when the first virtual value is greater than the preset value threshold.
The second replacement sub-module is specifically configured to replace a portion of the second frame with a portion of the first frame when the second virtual value is greater than the preset value threshold.
In an embodiment of the present application, the first replacement sub-module is specifically configured to: acquiring a first replacement proportion according to the first virtual value; and replacing a part of the first picture with a part of the second picture based on the first replacement proportion, wherein the proportion of the replaced part of the first picture in the first picture is equal to the first replacement proportion.
In an embodiment of the present application, the second replacement submodule is specifically configured to: acquiring a second replacement proportion according to the second virtual value; and replacing a part of the second picture with a part of the first picture based on the second replacement proportion, wherein the proportion of the replaced part of the second picture in the second picture is equal to the second replacement proportion.
In one embodiment of the present application, the target area is an area where a human face is located.
Referring to fig. 14, a block diagram of another microphone connecting device 1000 provided in the embodiment of the present application is shown, where the microphone connecting device 1000 includes, in addition to various modules included in the microphone connecting device 900, optionally, a second detecting module 903, a resetting module 904, a third detecting module 905, and a second replacing module 906.
The second detecting module 903 is configured to detect whether the current microphone connecting state meets the screen resetting condition when the preset replacement policy is the first policy.
The resetting module 904 is configured to keep the picture of the first connecting video stream unchanged and stop replacing the second picture with the first picture when the current connecting state satisfies the picture resetting condition.
In an embodiment of the present application, the second detecting module 903 is specifically configured to: respectively acquiring a first virtual value of the virtual gift accumulatively received by the first anchor in the wheat connecting process till the current moment, and a second virtual value of the virtual gift accumulatively received by the second anchor in the wheat connecting process till the current moment; and if the difference value obtained by subtracting the second virtual value from the first virtual value is smaller than a preset difference value threshold value, determining that the current microphone connecting state meets the picture resetting condition.
The third detecting module 905 is configured to detect whether the current barley connecting state meets a second picture replacement condition under the condition that the preset replacement policy is the first policy.
The second replacing module 906 is configured to stop replacing the second picture with the first picture and replace the first picture with the second picture when the current connected microphone state meets the second picture replacing condition.
In an embodiment of the present application, the third detecting module 905 is specifically configured to: respectively acquiring a first virtual value of the virtual gift accumulatively received by the first anchor in the wheat connecting process till the current moment, and a second virtual value of the virtual gift accumulatively received by the second anchor in the wheat connecting process till the current moment; and if the difference value obtained by subtracting the first virtual value from the second virtual value is larger than a preset difference value threshold value, determining that the current wheat connecting state meets the second picture replacing condition.
The wheat connecting device provided by the embodiment of the application can realize the method embodiment, the realization principle and the technical effect are similar, and the details are not repeated.
For specific limitations of the microphone connecting device, reference may be made to the above limitations of the microphone connecting method, which are not described herein again. The modules in the above-described microphone connecting device can be implemented wholly or partially by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute the operations of the modules.
In one embodiment of the present application, a computer device is provided, and the computer device may be a server, and its internal structure diagram may be as shown in fig. 15. The computer device includes a processor and a memory connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The computer program is executed by a processor to implement a microphone connecting method.
Those skilled in the art will appreciate that the architecture shown in fig. 15 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment of the present application, there is provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the following steps when executing the computer program:
in the process of connecting the first main broadcasting and the second main broadcasting, whether the current wheat connecting state meets a first picture replacing condition is detected; if the current connecting state meets the first picture replacing condition, performing picture replacing processing on at least one of a first connecting video stream corresponding to the first main broadcast and a second connecting video stream corresponding to the second main broadcast according to a preset replacing strategy; the preset replacement strategy comprises one of a first strategy and a second strategy; the first policy includes: replacing a second picture in a target area in the second continuous microphone video stream by using a first picture in the target area in the first continuous microphone video stream, and keeping the picture of the first continuous microphone video stream unchanged; the second policy includes: and replacing a portion of the second frame with a portion of the first frame, and/or replacing a portion of the first frame with a portion of the second frame.
The preset replacement policy is a first policy, and in one embodiment of the present application, the processor, when executing the computer program, further performs the following steps: respectively acquiring a first virtual value of the virtual gift accumulatively received by the first anchor in the wheat connecting process till the current moment, and a second virtual value of the virtual gift accumulatively received by the second anchor in the wheat connecting process till the current moment; and if the difference value obtained by subtracting the second virtual value from the first virtual value is larger than a preset difference value threshold value, determining that the current wheat connecting state meets the first picture replacing condition.
The preset replacement policy is a first policy, and in one embodiment of the present application, the processor, when executing the computer program, further performs the following steps: detecting whether the current wheat connecting state meets a picture resetting condition or not; if the current connecting state meets the picture resetting condition, keeping the picture of the first connecting video stream unchanged, and stopping replacing the second picture by the first picture.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: respectively acquiring a first virtual value of the virtual gift accumulatively received by the first anchor in the wheat connecting process till the current moment, and a second virtual value of the virtual gift accumulatively received by the second anchor in the wheat connecting process till the current moment; and if the difference value obtained by subtracting the second virtual value from the first virtual value is smaller than a preset difference value threshold value, determining that the current microphone connecting state meets the picture resetting condition.
The preset replacement policy is a first policy, and in one embodiment of the present application, the processor, when executing the computer program, further performs the following steps: detecting whether the current wheat connecting state meets a second picture replacing condition or not; and if the current microphone connecting state meets the second picture replacing condition, stopping replacing the second picture by the first picture and replacing the first picture by the second picture.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: respectively acquiring a first virtual value of the virtual gift accumulatively received by the first anchor in the wheat connecting process till the current moment, and a second virtual value of the virtual gift accumulatively received by the second anchor in the wheat connecting process till the current moment; and if the difference value obtained by subtracting the first virtual value from the second virtual value is larger than a preset difference value threshold value, determining that the current wheat connecting state meets the second picture replacing condition.
In an embodiment of the application, the processor, when executing the computer program, further performs the following steps: detecting whether a first virtual value of a virtual gift which is received by the first main broadcasting in the process of connecting to the wheat by the current moment is larger than a preset value threshold value or not; detecting whether a second virtual value of the virtual gift accumulatively received by the second anchor in the process of connecting the wheat at the current moment is greater than the preset value threshold value or not; and if the first virtual value is greater than the preset value threshold value or the second virtual value is greater than the preset value threshold value, determining that the current wheat connecting state meets the first picture replacing condition.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: if the first virtual value is greater than the preset value threshold, replacing a part of the first picture with a part of the second picture; and if the second virtual value is larger than the preset value threshold value, replacing a part of the second picture by a part of the first picture.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: acquiring a first replacement proportion according to the first virtual value; and replacing a part of the first picture with a part of the second picture based on the first replacement proportion, wherein the proportion of the replaced part of the first picture in the first picture is equal to the first replacement proportion.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: acquiring a second replacement proportion according to the second virtual value; and replacing a part of the second picture with a part of the first picture based on the second replacement proportion, wherein the proportion of the replaced part of the second picture in the second picture is equal to the second replacement proportion.
In one embodiment of the present application, the target area is an area where a human face is located.
The implementation principle and technical effect of the computer device provided by the embodiment of the present application are similar to those of the method embodiment described above, and are not described herein again.
In an embodiment of the application, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of:
in the process of connecting the first main broadcasting and the second main broadcasting, whether the current wheat connecting state meets a first picture replacing condition is detected; if the current connecting state meets the first picture replacing condition, performing picture replacing processing on at least one of a first connecting video stream corresponding to the first main broadcast and a second connecting video stream corresponding to the second main broadcast according to a preset replacing strategy; the preset replacement strategy comprises one of a first strategy and a second strategy; the first policy includes: replacing a second picture in a target area in the second continuous microphone video stream by using a first picture in the target area in the first continuous microphone video stream, and keeping the picture of the first continuous microphone video stream unchanged; the second policy includes: and replacing a portion of the second frame with a portion of the first frame, and/or replacing a portion of the first frame with a portion of the second frame.
The preset replacement policy is a first policy, and in one embodiment of the application, the computer program when executed by the processor further performs the steps of: respectively acquiring a first virtual value of the virtual gift accumulatively received by the first anchor in the wheat connecting process till the current moment, and a second virtual value of the virtual gift accumulatively received by the second anchor in the wheat connecting process till the current moment; and if the difference value obtained by subtracting the second virtual value from the first virtual value is larger than a preset difference value threshold value, determining that the current wheat connecting state meets the first picture replacing condition.
The preset replacement policy is a first policy, and in one embodiment of the application, the computer program when executed by the processor further performs the steps of: detecting whether the current wheat connecting state meets a picture resetting condition or not; if the current connecting state meets the picture resetting condition, keeping the picture of the first connecting video stream unchanged, and stopping replacing the second picture by the first picture.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: respectively acquiring a first virtual value of the virtual gift accumulatively received by the first anchor in the wheat connecting process till the current moment, and a second virtual value of the virtual gift accumulatively received by the second anchor in the wheat connecting process till the current moment; and if the difference value obtained by subtracting the second virtual value from the first virtual value is smaller than a preset difference value threshold value, determining that the current microphone connecting state meets the picture resetting condition.
The preset replacement policy is a first policy, and in one embodiment of the application, the computer program when executed by the processor further performs the steps of: detecting whether the current wheat connecting state meets a second picture replacing condition or not; and if the current microphone connecting state meets the second picture replacing condition, stopping replacing the second picture by the first picture and replacing the first picture by the second picture.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: respectively acquiring a first virtual value of the virtual gift accumulatively received by the first anchor in the wheat connecting process till the current moment, and a second virtual value of the virtual gift accumulatively received by the second anchor in the wheat connecting process till the current moment; and if the difference value obtained by subtracting the first virtual value from the second virtual value is larger than a preset difference value threshold value, determining that the current wheat connecting state meets the second picture replacing condition.
The preset replacement policy is a second policy, and in one embodiment of the application, the computer program when executed by the processor further performs the steps of: detecting whether a first virtual value of a virtual gift which is received by the first main broadcasting in the process of connecting to the wheat by the current moment is larger than a preset value threshold value or not; detecting whether a second virtual value of the virtual gift accumulatively received by the second anchor in the process of connecting the wheat at the current moment is greater than the preset value threshold value or not; and if the first virtual value is greater than the preset value threshold value or the second virtual value is greater than the preset value threshold value, determining that the current wheat connecting state meets the first picture replacing condition.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: if the first virtual value is greater than the preset value threshold, replacing a part of the first picture with a part of the second picture; and if the second virtual value is larger than the preset value threshold value, replacing a part of the second picture by a part of the first picture.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: acquiring a first replacement proportion according to the first virtual value; and replacing a part of the first picture with a part of the second picture based on the first replacement proportion, wherein the proportion of the replaced part of the first picture in the first picture is equal to the first replacement proportion.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: acquiring a second replacement proportion according to the second virtual value; and replacing a part of the second picture with a part of the first picture based on the second replacement proportion, wherein the proportion of the replaced part of the second picture in the second picture is equal to the second replacement proportion.
In one embodiment of the present application, the target area is an area where a human face is located.
The implementation principle and technical effect of the computer-readable storage medium provided by this embodiment are similar to those of the above-described method embodiment, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (14)

1. A method for connecting wheat, comprising:
in the process of connecting the first main broadcasting and the second main broadcasting, whether the current wheat connecting state meets a first picture replacing condition is detected;
if the current connecting state meets the first picture replacing condition, performing picture replacing processing on at least one of a first connecting video stream corresponding to the first main broadcast and a second connecting video stream corresponding to the second main broadcast according to a preset replacing strategy;
the preset replacement strategy comprises one of a first strategy and a second strategy; the first policy includes: replacing a second picture in a target area in the second continuous microphone video stream by using a first picture in the target area in the first continuous microphone video stream, and keeping the picture of the first continuous microphone video stream unchanged; the second policy includes: replacing a portion of the second picture with a portion of the first picture and/or replacing a portion of the first picture with a portion of the second picture.
2. The method of claim 1, wherein the preset replacement policy is the first policy, and the detecting whether the current barley-connecting status meets a first picture replacement condition comprises:
respectively acquiring a first virtual value of the virtual gift accumulatively received by the first anchor in the wheat connecting process till the current moment, and a second virtual value of the virtual gift accumulatively received by the second anchor in the wheat connecting process till the current moment;
and if the difference value obtained by subtracting the second virtual value from the first virtual value is larger than a preset difference value threshold value, determining that the current wheat connecting state meets the first picture replacing condition.
3. The method according to claim 1, wherein the preset replacement policy is the first policy, and after performing picture replacement processing on at least one of a first connected video stream corresponding to the first main broadcast and a second connected video stream corresponding to the second main broadcast according to the preset replacement policy, the method further comprises:
detecting whether the current wheat connecting state meets a picture resetting condition or not;
and if the current microphone connecting state meets the picture resetting condition, keeping the picture of the first microphone connecting video stream unchanged, and stopping replacing the second picture by the first picture.
4. The method according to claim 3, wherein the detecting whether the current microphone connecting state meets the picture resetting condition comprises:
respectively acquiring a first virtual value of the virtual gift accumulatively received by the first anchor in the wheat connecting process till the current moment, and a second virtual value of the virtual gift accumulatively received by the second anchor in the wheat connecting process till the current moment;
and if the difference value obtained by subtracting the second virtual value from the first virtual value is smaller than a preset difference value threshold value, determining that the current wheat connecting state meets the picture resetting condition.
5. The method according to claim 1, wherein the preset replacement policy is the first policy, and after performing picture replacement processing on at least one of a first connected video stream corresponding to the first main broadcast and a second connected video stream corresponding to the second main broadcast according to the preset replacement policy, the method further comprises:
detecting whether the current wheat connecting state meets a second picture replacing condition or not;
and if the current microphone connecting state meets the second picture replacing condition, stopping replacing the second picture by the first picture, and replacing the first picture by the second picture.
6. The method according to claim 5, wherein the detecting whether the current microphone connecting status satisfies the second picture replacement condition comprises:
respectively acquiring a first virtual value of the virtual gift accumulatively received by the first anchor in the wheat connecting process till the current moment, and a second virtual value of the virtual gift accumulatively received by the second anchor in the wheat connecting process till the current moment;
and if the difference value obtained by subtracting the first virtual value from the second virtual value is larger than a preset difference value threshold value, determining that the current wheat connecting state meets the second picture replacement condition.
7. The method of claim 1, wherein the preset replacement policy is the second policy, and the detecting whether the current barley-connecting status meets a first picture replacement condition comprises:
detecting whether a first virtual value of a virtual gift received by the first anchor in the process of connecting to the wheat is larger than a preset value threshold value or not at the current moment;
detecting whether a second virtual value of the virtual gifts accumulatively received by the second anchor in the wheat connecting process is larger than the preset value threshold value or not at the current moment;
and if the first virtual value is greater than the preset value threshold value, or the second virtual value is greater than the preset value threshold value, determining that the current wheat connecting state meets the first picture replacement condition.
8. The method according to claim 7, wherein said performing picture replacement processing on at least one of a first live-microphone video stream corresponding to the first main broadcast and a second live-microphone video stream corresponding to the second main broadcast according to a preset replacement policy comprises:
if the first virtual value is greater than the preset value threshold, replacing a part of the first picture with a part of the second picture;
and if the second virtual value is larger than the preset value threshold value, replacing a part of the second picture by a part of the first picture.
9. The method of claim 8, wherein replacing a portion of the first picture with a portion of the second picture comprises:
acquiring a first replacement proportion according to the first virtual value;
and replacing a part of the first picture with a part of the second picture based on the first replacement proportion, wherein the proportion of the replaced part of the first picture in the first picture is equal to the first replacement proportion.
10. The method of claim 8, wherein replacing a portion of the second picture with a portion of the first picture comprises:
acquiring a second replacement proportion according to the second virtual value;
and replacing a part of the second picture with a part of the first picture based on the second replacement proportion, wherein the replaced part of the second picture accounts for the second picture in a proportion equal to the second replacement proportion.
11. The method of any one of claims 1 to 10, wherein the target area is an area in which a human face is located.
12. A wheat-connecting apparatus, comprising:
the first detection module is used for detecting whether the current wheat connecting state meets a first picture replacing condition or not in the process of connecting the first main broadcast and the second main broadcast;
a first replacement module, configured to, when a current microphone connecting state meets the first picture replacement condition, perform picture replacement processing on at least one of a first microphone connecting video stream corresponding to the first anchor and a second microphone connecting video stream corresponding to the second anchor according to a preset replacement policy;
the preset replacement strategy comprises one of a first strategy and a second strategy; the first policy includes: replacing a second picture in the target area in the second continuous microphone video stream by using a first picture in the target area in the first continuous microphone video stream, and keeping the picture of the first continuous microphone video stream unchanged; the second policy includes: replacing a portion of the second picture with a portion of the first picture and/or replacing a portion of the first picture with a portion of the second picture.
13. A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, implements the microphone connecting method of any one of claims 1 to 11.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the microphone connecting method according to any one of claims 1 to 11.
CN202010467157.0A 2020-05-28 2020-05-28 Wheat connecting method, device, equipment and storage medium Active CN111541942B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010467157.0A CN111541942B (en) 2020-05-28 2020-05-28 Wheat connecting method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010467157.0A CN111541942B (en) 2020-05-28 2020-05-28 Wheat connecting method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111541942A true CN111541942A (en) 2020-08-14
CN111541942B CN111541942B (en) 2022-09-16

Family

ID=71980764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010467157.0A Active CN111541942B (en) 2020-05-28 2020-05-28 Wheat connecting method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111541942B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534757A (en) * 2016-11-22 2017-03-22 北京金山安全软件有限公司 Face exchange method and device, anchor terminal and audience terminal
CN107682729A (en) * 2017-09-08 2018-02-09 广州华多网络科技有限公司 It is a kind of based on live interactive approach and live broadcast system, electronic equipment
CN110300311A (en) * 2019-07-01 2019-10-01 腾讯科技(深圳)有限公司 Battle method, apparatus, equipment and storage medium in live broadcast system
CN110418146A (en) * 2018-04-27 2019-11-05 武汉斗鱼网络科技有限公司 Method of changing face, storage medium, electronic equipment and system applied to live scene
US20200043527A1 (en) * 2016-12-29 2020-02-06 Google Llc Video manipulation with face replacement
CN110969673A (en) * 2018-09-30 2020-04-07 武汉斗鱼网络科技有限公司 Live broadcast face changing interaction realization method, storage medium, equipment and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534757A (en) * 2016-11-22 2017-03-22 北京金山安全软件有限公司 Face exchange method and device, anchor terminal and audience terminal
US20200043527A1 (en) * 2016-12-29 2020-02-06 Google Llc Video manipulation with face replacement
CN107682729A (en) * 2017-09-08 2018-02-09 广州华多网络科技有限公司 It is a kind of based on live interactive approach and live broadcast system, electronic equipment
CN110418146A (en) * 2018-04-27 2019-11-05 武汉斗鱼网络科技有限公司 Method of changing face, storage medium, electronic equipment and system applied to live scene
CN110969673A (en) * 2018-09-30 2020-04-07 武汉斗鱼网络科技有限公司 Live broadcast face changing interaction realization method, storage medium, equipment and system
CN110300311A (en) * 2019-07-01 2019-10-01 腾讯科技(深圳)有限公司 Battle method, apparatus, equipment and storage medium in live broadcast system

Also Published As

Publication number Publication date
CN111541942B (en) 2022-09-16

Similar Documents

Publication Publication Date Title
CN106161219B (en) Message treatment method and device
WO2021114708A1 (en) Method and apparatus for implementing multi-person video live-streaming service, and computer device
US9846770B2 (en) Method and apparatus for managing multiple media services
WO2015078199A1 (en) Live interaction method and device, client, server and system
CN107864122B (en) Display method and device for live stream of main broadcast with wheat
CN109391851B (en) Video live broadcast method and device, computer equipment and storage medium
US20150043892A1 (en) Method and system for sourcing and editing live video
CN112616061B (en) Live interaction method and device, live server and storage medium
US10289193B2 (en) Use of virtual-reality systems to provide an immersive on-demand content experience
CN106231367B (en) Beautifying processing method and device
CN105933757A (en) Video playing method, device and system thereof
CN108174233A (en) A kind of live broadcasting method, device, server and medium
CN109874059A (en) Method for showing interface, client and storage medium, computer equipment is broadcast live
CN106604127A (en) Multimedia information sharing method, device and terminal device
CN113467674B (en) Virtual space operation method and device, electronic equipment and storage medium
CN108174267A (en) The sending device of interactive information, method and computer readable storage medium in live streaming
CN108769824A (en) A kind of video mixed flow method, apparatus, system, equipment and medium
US11509961B2 (en) Automatic rating of crowd-stream caller video
CN108833809A (en) A kind of video mixed flow control method, device, system, equipment and medium
CN111432284A (en) Bullet screen interaction method of multimedia terminal and multimedia terminal
CN110662119A (en) Video splicing method and device
CN112954380B (en) Video playing processing method and device
CN114666671A (en) Live broadcast praise interaction method, system, device, equipment and storage medium
CN111541942B (en) Wheat connecting method, device, equipment and storage medium
CN113645472A (en) Interaction method and device based on playing object, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210112

Address after: 511400 3108, 79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou City, Guangdong Province

Applicant after: GUANGZHOU CUBESILI INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 511400 24th floor, building B-1, North District, Wanda Commercial Plaza, Wanbo business district, No.79 Wanbo 2nd Road, Nancun Town, Panyu District, Guangzhou, Guangdong Province

Applicant before: GUANGZHOU HUADUO NETWORK TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant