CN112423006A - Live broadcast scene switching method, device, equipment and medium - Google Patents

Live broadcast scene switching method, device, equipment and medium Download PDF

Info

Publication number
CN112423006A
CN112423006A CN202011237859.6A CN202011237859A CN112423006A CN 112423006 A CN112423006 A CN 112423006A CN 202011237859 A CN202011237859 A CN 202011237859A CN 112423006 A CN112423006 A CN 112423006A
Authority
CN
China
Prior art keywords
stream data
video stream
live
video
live broadcast
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.)
Pending
Application number
CN202011237859.6A
Other languages
Chinese (zh)
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011237859.6A priority Critical patent/CN112423006A/en
Publication of CN112423006A publication Critical patent/CN112423006A/en
Pending legal-status Critical Current

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/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/23418Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics
    • 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/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/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations

Landscapes

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

Abstract

The embodiment of the invention provides a live broadcast scene switching method, a live broadcast scene switching device, live broadcast scene switching equipment and a live broadcast scene switching medium.

Description

Live broadcast scene switching method, device, equipment and medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a live scene switching method, apparatus, device, and medium.
Background
With the rapid development of internet technology, more and more people share their lives through live broadcasting. When carrying out the live broadcast, current action and the current live broadcast scene of collection anchor in real time, in order to avoid external environment's interference, the majority anchor account can select to broadcast indoor live, but when indoor live broadcast, the live broadcast scene is all fixed, that is to say at whole live broadcast in-process, the live broadcast scene can not change, and the anchor account can only be live in this fixed live broadcast scene. However, the fixed live broadcast scene can lead to single live broadcast scene, and when the anchor account wants to switch the live broadcast scene, only the live broadcast can be paused and changed, which affects the use experience of the anchor account and also affects the experience of watching the live broadcast account.
Disclosure of Invention
The embodiment of the invention provides a live broadcast scene switching method, a live broadcast scene switching device, live broadcast scene switching equipment and a live broadcast scene switching medium, which are used for solving the problems that in the existing live broadcast process, a live broadcast scene is single, and live broadcast scene switching can only be realized by suspending live broadcast to replace a field.
The embodiment of the invention provides a live scene switching method, which comprises the following steps:
identifying a foreground image in a video frame aiming at any video frame in first video stream data sent by received live broadcast equipment, and overlapping a preset target scene image with the foreground image to obtain an updated video frame;
and generating second video stream data according to each updated video frame and sending the second video stream data to the live broadcast equipment so as to enable the live broadcast equipment to broadcast the second video stream data.
Further, before the preset target scene image is adopted to be superimposed with the foreground image, the method further includes:
sending a scene image to be selected to the live broadcast equipment;
and receiving the selection operation which is sent by the live broadcast equipment and carries the target scene image.
Further, the method further comprises:
receiving selection operation of selecting target video stream data sent by the live broadcast equipment;
and if the selected target video stream data is the second video stream data, sending the second video stream data to a display device corresponding to the account for watching the live broadcast.
Further, the superimposing the preset target scene image and the foreground image includes:
and superposing a corresponding target video frame in a preset target scene video with the foreground image.
Further, after the target video frame corresponding to the preset target scene video is superimposed with the foreground image, the method further includes:
judging whether the target video frame is the last frame of the target scene video;
and if so, controlling the foreground image of the next frame to be superposed with the first frame of the target scene video.
The embodiment of the invention also provides a live scene switching method, which comprises the following steps:
sending the first video stream data of the current live broadcast to a server;
and receiving second video stream data sent by the server and live-broadcasting, wherein the second video stream data is obtained by overlapping a foreground image of any video frame in the first video stream data with a preset target scene image.
Further, before the sending the first video stream data currently live to the server, the method further includes:
receiving a scene image to be selected sent by the server;
receiving an input selection operation for selecting a target scene image, and sending the selection operation carrying the target scene image to the server.
Further, the receiving and live broadcasting the second video stream data sent by the server comprises:
and if the received second video stream data is one, live broadcasting the second video stream data in the whole display area or part of the display area of the display interface.
Further, the receiving and live broadcasting the second video stream data sent by the server comprises:
and if the number of the received second video stream data is multiple, displaying each second video stream data based on a display template according to the display template corresponding to the number of the received second video stream data.
Further, before the second video stream data sent by the server is received and live broadcast, the method further includes:
and receiving an input selection operation of selecting target video stream data, and sending the selection operation of selecting the target video stream data to the server.
An embodiment of the present invention further provides a live scene switching device, where the device includes:
the processing module is used for identifying a foreground image in a received video frame in first video stream data sent by live broadcast equipment, overlapping a preset target scene image with the foreground image and acquiring an updated video frame;
and the sending module is used for generating second video stream data according to each updated video frame and sending the second video stream data to the live broadcast equipment so as to enable the live broadcast equipment to live broadcast the second video stream data.
Further, the sending module is further configured to send a scene image to be selected to the live broadcast device;
the device further comprises:
and the receiving module is used for receiving the selection operation which is sent by the live broadcast equipment and carries the target scene image.
Further, the receiving module is further configured to receive a selection operation of selecting target video stream data sent by the live device; and if the selected target video stream data is the second video stream data, sending the second video stream data to a display device corresponding to the account for watching the live broadcast.
Further, the processing module is specifically configured to superimpose the corresponding target video frame in the preset target scene video and the foreground image.
Further, the apparatus further comprises:
the judging module is used for judging whether the target video frame is the last frame of the target scene video; and if so, controlling the foreground image of the next frame to be superposed with the first frame of the target scene video.
An embodiment of the present invention further provides a live scene switching device, where the device includes:
the sending module is used for sending the first video stream data of the current live broadcast to the server;
and the receiving module is used for receiving second video stream data sent by the server and live broadcasting, wherein the second video stream data is obtained by overlapping a foreground image of any video frame in the first video stream data with a preset target scene image.
Further, the receiving module is further configured to receive a scene image to be selected, which is sent by the server; receiving an input selection operation for selecting a target scene image, and sending the selection operation carrying the target scene image to the server.
Further, the receiving module is specifically configured to, if there is one received second video stream data, live broadcast the second video stream data in all or part of a display area of a display interface.
Further, the receiving module is specifically configured to, if a plurality of second video stream data are received, display each of the second video stream data based on a display template according to the display template corresponding to the number of the received second video stream data.
Further, the receiving module is further configured to receive an input selection operation of selecting target video stream data, and send the selection operation of selecting the target video stream data to the server.
An embodiment of the present invention further provides an electronic device, where the electronic device at least includes a processor and a memory, and the processor is configured to implement any of the steps of the live scene switching method when executing a computer program stored in the memory.
An embodiment of the present invention further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements any of the steps of the live scene switching method described above.
According to the embodiment of the invention, the foreground image in the video frame is identified aiming at any video frame in the received first video stream data sent by the live broadcast equipment, the preset target scene image is overlapped with the foreground image to obtain the updated video frame, and the second video stream data is generated according to each updated video frame and sent to the live broadcast equipment, so that the live broadcast equipment displays the second video stream data, thereby realizing the switching of the live broadcast scene in the live broadcast process, avoiding the pause of the live broadcast and improving the use experience of a user.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic process diagram of a live scene switching method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of live scene switching according to an embodiment of the present invention;
fig. 3 is a schematic process diagram of a live scene switching method according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating that a second video stream data is displayed in the whole display area of the display interface of the live device according to the embodiment of the present invention;
fig. 5 is a schematic diagram illustrating that a second video stream data is displayed in a partial display area of a display interface of a live device according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating that a plurality of second video stream data are displayed on a display interface of a live device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a live scene switching apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a live scene switching apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to realize switching of live scenes in a live broadcasting process and improve experience, embodiments of the present invention provide a live scene switching method, apparatus, device, and medium.
Example 1:
fig. 1 is a schematic process diagram of a live scene switching method provided in an embodiment of the present invention, where the process includes the following steps:
s101: the method comprises the steps of identifying a foreground image in a video frame aiming at any video frame in first video stream data sent by received live broadcast equipment, and overlapping a preset target scene image with the foreground image to obtain an updated video frame.
The live scene switching method provided by the embodiment of the invention is applied to a server, wherein the server can be a cloud server.
In the embodiment of the invention, after acquiring first video stream data of a main broadcast account, a live broadcast device based on the main broadcast account sends the first video stream data to a server, and the server identifies a foreground image in a video frame aiming at any one video frame in the first video stream data. Specifically, if the first video stream data is dance live broadcast or singing live broadcast, the foreground image is an anchor image, and if the first video stream data is sales live broadcast, the foreground image is an anchor image and a product image.
And after the server identifies the foreground image in the video frame, overlapping the foreground image with a preset target scene image to obtain an updated video frame. In the embodiment of the present invention, a plurality of scene images are stored in a server, where the scene images may be obtained from other video stream data received by the server, or may be sent to the server by a main broadcast account through a live broadcast device, or may be pre-configured in the server. The preset target scene image may be a default scene or may be selected.
S102: and generating second video stream data according to each updated video frame and sending the second video stream data to the live broadcast equipment so as to enable the live broadcast equipment to broadcast the second video stream data.
And after each video frame is updated, in order to realize the switching of the live scenes, generating second video stream data according to the updated video frame. The second video data may be generated according to a time sequence corresponding to each video frame.
And after the second video data are generated, the server sends the second video stream data to the live broadcast equipment, so that the second video data are displayed on the live broadcast equipment in a live broadcast mode.
According to the embodiment of the invention, the foreground image in the video frame is identified aiming at any video frame in the received first video stream data sent by the live broadcast equipment, the preset target scene image is overlapped with the foreground image to obtain the updated video frame, and the second video stream data is generated according to each updated video frame and sent to the live broadcast equipment, so that the live broadcast equipment displays the second video stream data, thereby realizing the switching of the live broadcast scene in the live broadcast process, avoiding the pause of the live broadcast and improving the use experience of a user.
Example 2:
in order to determine the target scene image, on the basis of the foregoing embodiment, in an embodiment of the present invention, before the preset target scene image is superimposed on the foreground image, the method further includes:
sending a scene image to be selected to the live broadcast equipment;
and receiving the selection operation which is sent by the live broadcast equipment and carries the target scene image.
In the embodiment of the present invention, the method for determining the target scene image may be selection through a live device. Specifically, the server sends the scene images to be selected to the live broadcast device, and the live broadcast device displays the scene images to be selected on a display interface of the live broadcast device after receiving the scene images to be selected. At this time, the anchor account may select a target scene image from the displayed scene images to be selected through the live broadcast device, the live broadcast device sends the selection operation to the server, and the server determines that the target scene image is a preset target scene image after receiving the selection operation with the target scene image.
For example, the server sends a scene image to be selected to the live broadcast device, wherein the scene image to be selected includes a vehicle scene image, a mountain peak scene image, an indoor scene image and the like, the main broadcast account selects the mountain peak scene image as a target scene image through the live broadcast device, the live broadcast device sends a selection operation to the server, the server receives the selection operation carrying the mountain peak scene image, determines the mountain peak scene image as a preset target scene image, and performs a subsequent operation of overlapping the mountain peak scene image and the foreground image.
The anchor account can select one target scene image through the live broadcast equipment, and can also select a plurality of target scene images through the live broadcast equipment. And if a plurality of target scene images are determined, the server respectively overlaps the foreground images with respect to each scene image to obtain a plurality of video stream data.
In the embodiment of the invention, the scene image to be selected can be sent to the live broadcast equipment when the live broadcast starts, or the scene image to be selected can be sent to the live broadcast equipment after the anchor user triggers the operation of selecting the scene.
Example 3:
in order to implement the switching of the live scenes, on the basis of the foregoing embodiments, in an embodiment of the present invention, the method further includes:
receiving selection operation of selecting target video stream data sent by the live broadcast equipment;
and if the selected target video stream data is the second video stream data, sending the second video stream data to a display device for watching live broadcast.
In the embodiment of the invention, after the target scene image is selected by the live broadcasting equipment, the live broadcasting equipment controls the target area in the display interface to live broadcast the live broadcasting scene as the second video stream data of the target scene image. And if a plurality of selected target scene images exist, the live broadcast equipment controls a corresponding number of target areas in a display interface of the live broadcast equipment to live broadcast the video stream data. At this point, the anchor may select video stream data to be played to the viewer via the live device.
The server receives a selection operation of selecting target video stream data sent by live broadcast equipment, and if the selected target video stream data is second video stream data, the server sends the second video stream data to display equipment watching live broadcast, so that the display equipment broadcasts the second video stream data live.
Fig. 2 is a schematic flow chart of live scene switching provided in the embodiment of the present invention, where the process includes the following steps:
s201: the server receives a selection operation carrying a target scene image.
For example, in the embodiment of the present invention, the selection operation carries three target scene images.
S202: the server identifies a foreground image in a video frame aiming at any video frame in first video stream data sent by a live broadcast device, and adopts a preset target scene image to overlap with the foreground image to obtain an updated video frame.
S203: and generating second video stream data according to each updated video frame and sending the second video stream data to the live broadcast equipment so as to enable the live broadcast equipment to broadcast the second video stream data.
At this time, the live broadcasting device will broadcast three second video stream data simultaneously, but because the foreground image and audio of each video frame in each second video stream data are the same, only the target scene image as the background image is different.
Example 4:
in order to implement the switching of the live broadcast scenes, on the basis of the foregoing embodiments, in the embodiment of the present invention, the overlaying with the preset target scene image and the foreground image includes:
and superposing a corresponding target video frame in a preset target scene video with the foreground image.
In the embodiment of the invention, when the live broadcast scene is switched, the live broadcast scene can be switched into the scene image, and the live broadcast scene can be switched into the scene video in order to increase the interest of the live broadcast. Specifically, the server may further store a plurality of scene videos, where the scene videos may be obtained from other video stream data received by the server, or sent to the server by a live broadcast device through a main broadcast account, or configured in the server in advance. The user can select the target scene video through the live broadcast equipment, and the target scene video can be configured in the server in advance.
And if the server receives the selection operation carrying the target scene video, overlapping the foreground image in any video frame in the first video stream data with the corresponding target video frame in the target scene video. Specifically, when the first video stream data is superimposed on the target scene video, the first video stream data is superimposed from the first frame in the target scene video, and which frame in the target scene video each video frame is superimposed on at the end of the superimposition may be determined according to the superimposition order.
In order to implement the switching of the live broadcast scene, on the basis of the foregoing embodiments, in an embodiment of the present invention, after the target video frame corresponding to the preset target scene image is superimposed on the foreground image, the method further includes:
judging whether the target video frame is the last frame of the target scene video;
and if so, controlling the foreground image of the next frame to be superposed with the first frame of the target scene video.
In the embodiment of the present invention, since the time length of the first video stream data is not fixed, as long as the live broadcast is not finished, the first video stream data is not finished, but the time length of the target scene video is limited, it may occur that the target video frame is already overlapped with the last frame of the target scene video, but a part of the foreground image in the first video stream data is not overlapped with the corresponding target video frame, and at this time, the next frame of the foreground image needs to be overlapped with the first frame of the target scene video.
For example, a first video stream data currently generates 13 video frames, and a target scene video has only 5 frames, when performing the overlaying, the first 5 video frames of the first video stream data are overlaid with the 5 frames of the target scene video, the 6 th video frame of the first video stream data is overlaid with the first frame of the target scene video, the 7 th video frame of the first video stream data is overlaid with the second frame of the target scene video, and so on until all the overlaying of the current 13 video frames of the first video stream data is completed.
In the embodiment of the present invention, after a target video frame corresponding to a preset target scene video image is superimposed on the foreground image, it is necessary to determine whether the target video frame is the last frame of the target scene video, and if so, the next frame of foreground image is controlled to be superimposed on the first frame of the target scene video, so as to switch the live broadcast scene of the first video stream data to the target scene video.
Example 5:
fig. 3 is a schematic process diagram of a live scene switching method according to an embodiment of the present invention, where the process includes the following steps:
s301: and sending the first video stream data which is currently live to a server.
The live broadcast scene switching method provided by the embodiment of the invention is applied to live broadcast equipment, wherein the live broadcast equipment can be terminal equipment, an intelligent television and other intelligent equipment capable of live broadcast.
In the embodiment of the invention, when the live broadcast equipment carries out live broadcast, the live broadcast first video stream data is sent to the server, so that the live broadcast scene switching of the first video stream data can be carried out in the server.
S302: and receiving second video stream data sent by the server and live-broadcasting, wherein the second video stream data is obtained by overlapping a foreground image of any video frame in the first video stream data with a preset target scene image.
And the server sends the second video stream data on which the target scene image is superposed to the live broadcast equipment, and the live broadcast equipment receives the second video stream data and then live broadcasts the second video stream data on a display interface of the live broadcast equipment.
Example 6:
in order to implement switching of live scenes, on the basis of the foregoing embodiments, in an embodiment of the present invention, before sending first video stream data of a current live broadcast to a server, the method further includes:
receiving a scene image to be selected sent by the server;
receiving an input selection operation for selecting a target scene image, and sending the selection operation carrying the target scene image to the server.
In the embodiment of the present invention, the method for determining the target scene image may be selection through a live device. Specifically, the server sends the scene images to be selected to the live broadcast device, and the live broadcast device displays the scene images to be selected on a display interface of the live broadcast device after receiving the scene images to be selected. At this time, the anchor account may select a target scene image from the displayed scene images to be selected through the live broadcast device, the live broadcast device sends the selection operation to the server, and the server determines that the target scene image is a preset target scene image after receiving the selection operation with the target scene image.
Example 7:
in order to implement switching of live scenes, on the basis of the foregoing embodiments, in an embodiment of the present invention, the receiving and live broadcasting second video stream data sent by the server includes:
and if the received second video stream data is one, live broadcasting the second video stream data in the whole display area or part of the display area of the display interface.
And after receiving second video stream data sent by the server, the live broadcast equipment displays the second video stream data on a display interface. When the anchor selects the target scene images, a plurality of target scene images may be selected, and if the number of the selected target scene images is different, the number of the received second video stream data is also different, wherein the number of the received second video stream data is consistent with the number of the selected target scene images.
In the embodiment of the present invention, if the live device receives a second video stream data, the second video data may be live broadcast in all or a part of the display area of the display interface of the live device.
Fig. 4 is a schematic diagram illustrating that a second video stream data is displayed in the entire display area of the display interface of the live device according to the embodiment of the present invention, as shown in fig. 4, an area S1 is the entire display area of the live device, and after receiving a second video stream data, the live device live broadcasts the second video stream data in the area S1.
Fig. 5 is a schematic diagram of displaying second video stream data in a partial display area of a display interface of a live device according to an embodiment of the present invention, and as shown in fig. 5, an area S1 is a partial display area of a live device, where a length of the area S1 is 2/3 of the display interface of the live device, a width of the area S1 is 2/3 of the display interface of the live device, and after receiving a second video stream data, the live device live broadcasts the second video stream data in the area S1.
In order to implement switching of live scenes, on the basis of the foregoing embodiments, in an embodiment of the present invention, the receiving and live broadcasting second video stream data sent by the server includes:
and if the number of the received second video stream data is multiple, displaying each second video stream data based on a display template according to the display template corresponding to the number of the received second video stream data.
Similarly, in the embodiment of the present invention, when a plurality of second video stream data are received, the second video stream data may be displayed on the live display interface according to a display template preset by the live device.
For example, when two pieces of second video stream data are received, it may be preset that the display interface of the live device is equally divided into two parts, i.e., a left part and a right part or an upper part and a lower part, so that the two parts, i.e., the left part and the right part or the upper part and the lower part, respectively display one piece of second video stream data.
Fig. 6 is a schematic diagram illustrating that a plurality of second video stream data are displayed on a display interface of a live device according to an embodiment of the present invention, in fig. 6, the display interface of the live device is divided into four display areas, namely, an area S1, an area S2, an area S3, and an area S4, and when the live device receives the four second video stream data, one second video stream data is live in each of the four display areas, namely, the area S1, the area S2, the area S3, and the area S4.
Example 8:
in order to implement switching of live scenes, on the basis of the foregoing embodiments, in an embodiment of the present invention, before receiving and live broadcasting second video stream data sent by the server, the method further includes:
and receiving an input selection operation of selecting target video stream data, and sending the selection operation of selecting the target video stream data to the server.
In the embodiment of the invention, after the target scene image is selected by the live broadcasting equipment, the live broadcasting equipment controls the target area in the display interface to live broadcast the live broadcasting scene as the second video stream data of the target scene image. And if a plurality of selected target scene images exist, the live broadcast equipment controls a corresponding number of target areas in a display interface of the live broadcast equipment to live broadcast the video stream data. At this point, the anchor may select video stream data to be played to the viewer via the live device.
The server sends the corresponding second video stream data to the display equipment corresponding to the account for watching the live broadcast according to the selection operation, so that the display equipment corresponding to the account for watching the live broadcast the corresponding second video stream data.
Example 9:
fig. 7 is a schematic structural diagram of a live scene switching apparatus according to an embodiment of the present invention, where the apparatus includes:
a processing module 701, configured to identify a foreground image in a received video frame in first video stream data sent by a live broadcast device, overlap the foreground image with a preset target scene image, and acquire an updated video frame;
a sending module 702, configured to generate second video stream data according to each updated video frame, and send the second video stream data to the live broadcast device, so that the live broadcast device broadcasts the second video stream data live.
In a possible implementation manner, the sending module 702 is further configured to send a scene image to be selected to the live device;
the device further comprises:
a receiving module 703 is configured to receive a selection operation that is sent by the live device and carries the target scene image.
In a possible implementation manner, the receiving module 703 is further configured to receive a selection operation of selecting target video stream data sent by the live device; and if the selected target video stream data is the second video stream data, sending the second video stream data to a display device corresponding to the account for watching the live broadcast.
In a possible implementation manner, the processing module 701 is specifically configured to superimpose the corresponding target video frame in the preset target scene video and the foreground image.
In a possible embodiment, the apparatus further comprises:
a determining module 704, configured to determine whether the target video frame is a last frame of the target scene video; and if so, controlling the foreground image of the next frame to be superposed with the first frame of the target scene video.
Fig. 8 is a schematic structural diagram of a live scene switching apparatus according to an embodiment of the present invention, where the apparatus includes:
a sending module 801, configured to send first video stream data of a current live broadcast to a server;
a receiving module 802, configured to receive second video stream data sent by the server and live broadcast the second video stream data, where the second video stream data is obtained by overlapping a foreground image of any video frame in the first video stream data with a preset target scene image.
In a possible implementation manner, the receiving module 802 is further configured to receive a scene image to be selected, which is sent by the server; receiving an input selection operation for selecting a target scene image, and sending the selection operation carrying the target scene image to the server.
In a possible implementation manner, the receiving module 802 is specifically configured to, if there is one received second video stream data, live broadcast the second video stream data in all or a part of a display area of a display interface.
In a possible implementation manner, the receiving module 802 is specifically configured to, if a plurality of second video stream data are received, display each second video stream data based on a display template according to the display template corresponding to the number of the received second video stream data.
In a possible implementation manner, the receiving module 802 is further configured to receive an input selection operation of selecting target video stream data, and send the selection operation of selecting the target video stream data to the server.
Example 10:
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and on the basis of the foregoing embodiments, an embodiment of the present invention further provides an electronic device, as shown in fig. 9, including: the system comprises a processor 901, a communication interface 902, a memory 903 and a communication bus 904, wherein the processor 901, the communication interface 902 and the memory 903 are communicated with each other through the communication bus 904;
the memory 903 has stored therein a computer program which, when executed by the processor 901, causes the processor 901 to perform the steps of:
identifying a foreground image in a video frame aiming at any video frame in first video stream data sent by received live broadcast equipment, and overlapping a preset target scene image with the foreground image to obtain an updated video frame;
and generating second video stream data according to each updated video frame and sending the second video stream data to the live broadcast equipment so as to enable the live broadcast equipment to broadcast the second video stream data.
In a possible implementation manner, before the superimposing the preset target scene image and the foreground image, the method further includes:
sending a scene image to be selected to the live broadcast equipment;
and receiving the selection operation which is sent by the live broadcast equipment and carries the target scene image.
In one possible embodiment, the method further comprises:
receiving selection operation of selecting target video stream data sent by the live broadcast equipment;
and if the selected target video stream data is the second video stream data, sending the second video stream data to a display device corresponding to the account for watching the live broadcast.
In a possible implementation, the superimposing with the preset target scene image and the foreground image includes:
and superposing a corresponding target video frame in a preset target scene video with the foreground image.
In a possible implementation manner, after the target video frame corresponding to the preset target scene video is superimposed on the foreground image, the method further includes:
judging whether the target video frame is the last frame of the target scene video;
and if so, controlling the foreground image of the next frame to be superposed with the first frame of the target scene video.
Because the principle of the electronic device for solving the problems is similar to the live scene switching method, the implementation of the electronic device can refer to the implementation of the method, and repeated parts are not described again.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 902 is used for communication between the electronic apparatus and other apparatuses.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and on the basis of the foregoing embodiments, an embodiment of the present invention further provides an electronic device, as shown in fig. 10, including: the system comprises a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002 and the memory 1003 are communicated with each other through the communication bus 1004;
the memory 1003 has stored therein a computer program which, when executed by the processor 1001, causes the processor 1001 to perform the steps of:
sending the first video stream data of the current live broadcast to a server;
and receiving second video stream data sent by the server and live-broadcasting, wherein the second video stream data is obtained by overlapping a foreground image of any video frame in the first video stream data with a preset target scene image.
In a possible implementation, before the sending the first video stream data currently live to the server, the method further includes:
receiving a scene image to be selected sent by the server;
receiving an input selection operation for selecting a target scene image, and sending the selection operation carrying the target scene image to the server.
In a possible implementation manner, the receiving and live broadcasting the second video stream data sent by the server includes:
and if the received second video stream data is one, live broadcasting the second video stream data in the whole display area or part of the display area of the display interface.
In a possible implementation manner, the receiving and live broadcasting the second video stream data sent by the server includes:
and if the number of the received second video stream data is multiple, displaying each second video stream data based on a display template according to the display template corresponding to the number of the received second video stream data.
In a possible implementation manner, before the receiving and live broadcasting the second video stream data sent by the server, the method further includes:
and receiving an input selection operation of selecting target video stream data, and sending the selection operation of selecting the target video stream data to the server.
Because the principle of the electronic device for solving the problems is similar to the live scene switching method, the implementation of the electronic device can refer to the implementation of the method, and repeated parts are not described again.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface 1002 is used for communication between the electronic apparatus and other apparatuses.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the memory may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a central processing unit, a Network Processor (NP), and the like; but may also be a Digital instruction processor (DSP), an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like.
Example 11:
on the basis of the foregoing embodiments, the present invention further provides a computer-readable storage medium, in which a computer program executable by a processor is stored, and when the program runs on the processor, the processor is caused to execute the following steps:
identifying a foreground image in a video frame aiming at any video frame in first video stream data sent by received live broadcast equipment, and overlapping a preset target scene image with the foreground image to obtain an updated video frame;
and generating second video stream data according to each updated video frame and sending the second video stream data to the live broadcast equipment so as to enable the live broadcast equipment to broadcast the second video stream data.
In a possible implementation manner, before the superimposing the preset target scene image and the foreground image, the method further includes:
sending a scene image to be selected to the live broadcast equipment;
and receiving the selection operation which is sent by the live broadcast equipment and carries the target scene image.
In one possible embodiment, the method further comprises:
receiving selection operation of selecting target video stream data sent by the live broadcast equipment;
and if the selected target video stream data is the second video stream data, sending the second video stream data to a display device corresponding to the account for watching the live broadcast.
In one possible embodiment, the superimposing with the preset target scene image and the foreground image includes:
and superposing a corresponding target video frame in a preset target scene video with the foreground image.
In a possible implementation manner, after the target video frame corresponding to the preset target scene video is superimposed on the foreground image, the method further includes:
judging whether the target video frame is the last frame of the target scene video;
and if so, controlling the foreground image of the next frame to be superposed with the first frame of the target scene video.
Since the principle of solving the problem of the computer readable medium is similar to that of the live scene switching method, after the processor executes the computer program in the computer readable medium, the steps implemented may refer to the other embodiments, and repeated parts are not described again.
On the basis of the foregoing embodiments, the present invention further provides a computer-readable storage medium, in which a computer program executable by a processor is stored, and when the program runs on the processor, the processor is caused to execute the following steps:
sending the first video stream data of the current live broadcast to a server;
and receiving second video stream data sent by the server and live-broadcasting, wherein the second video stream data is obtained by overlapping a foreground image of any video frame in the first video stream data with a preset target scene image.
In one possible embodiment, before the sending the first video stream data currently live to the server, the method further includes:
receiving a scene image to be selected sent by the server;
receiving an input selection operation for selecting a target scene image, and sending the selection operation carrying the target scene image to the server.
In one possible embodiment, the receiving and live broadcasting the second video stream data sent by the server includes:
and if the received second video stream data is one, live broadcasting the second video stream data in the whole display area or part of the display area of the display interface.
In one possible embodiment, the receiving and live broadcasting the second video stream data sent by the server includes:
and if the number of the received second video stream data is multiple, displaying each second video stream data based on a display template according to the display template corresponding to the number of the received second video stream data.
In a possible implementation manner, before the receiving and live broadcasting the second video stream data sent by the server, the method further includes:
and receiving an input selection operation of selecting target video stream data, and sending the selection operation of selecting the target video stream data to the server.
Since the principle of solving the problem of the computer readable medium is similar to that of the live scene switching method, after the processor executes the computer program in the computer readable medium, the steps implemented may refer to the other embodiments, and repeated parts are not described again.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (22)

1. A live scene switching method, characterized in that the method comprises:
identifying a foreground image in a video frame aiming at any video frame in first video stream data sent by received live broadcast equipment, and overlapping a preset target scene image with the foreground image to obtain an updated video frame;
and generating second video stream data according to each updated video frame and sending the second video stream data to the live broadcast equipment so as to enable the live broadcast equipment to broadcast the second video stream data.
2. The method of claim 1, wherein before the overlaying with the preset target scene image and the foreground image, the method further comprises:
sending a scene image to be selected to the live broadcast equipment;
and receiving the selection operation which is sent by the live broadcast equipment and carries the target scene image.
3. The method of claim 1, further comprising:
receiving selection operation of selecting target video stream data sent by the live broadcast equipment;
and if the selected target video stream data is the second video stream data, sending the second video stream data to a display device corresponding to the account for watching the live broadcast.
4. The method of claim 1, wherein the overlaying with the preset target scene image and the foreground image comprises:
and superposing a corresponding target video frame in a preset target scene video with the foreground image.
5. The method according to claim 4, wherein after the target video frame corresponding to the preset target scene video is superimposed with the foreground image, the method further comprises:
judging whether the target video frame is the last frame of the target scene video;
and if so, controlling the foreground image of the next frame to be superposed with the first frame of the target scene video.
6. A live scene switching method, characterized in that the method comprises:
sending the first video stream data of the current live broadcast to a server;
and receiving second video stream data sent by the server and live-broadcasting, wherein the second video stream data is obtained by overlapping a foreground image of any video frame in the first video stream data with a preset target scene image.
7. The method of claim 6, wherein before sending the first video stream data currently live to the server, the method further comprises:
receiving a scene image to be selected sent by the server;
receiving an input selection operation for selecting a target scene image, and sending the selection operation carrying the target scene image to the server.
8. The method according to claim 6 or 7, wherein the receiving and live broadcasting the second video stream data sent by the server comprises:
and if the received second video stream data is one, live broadcasting the second video stream data in the whole display area or part of the display area of the display interface.
9. The method according to claim 6 or 7, wherein the receiving and live broadcasting the second video stream data sent by the server comprises:
and if the number of the received second video stream data is multiple, displaying each second video stream data based on a display template according to the display template corresponding to the number of the received second video stream data.
10. The method of claim 6, wherein before the receiving and live broadcasting the second video stream data sent by the server, the method further comprises:
and receiving an input selection operation of selecting target video stream data, and sending the selection operation of selecting the target video stream data to the server.
11. A live scene switching apparatus, the apparatus comprising:
the processing module is used for identifying a foreground image in a received video frame in first video stream data sent by live broadcast equipment, overlapping a preset target scene image with the foreground image and acquiring an updated video frame;
and the sending module is used for generating second video stream data according to each updated video frame and sending the second video stream data to the live broadcast equipment so as to enable the live broadcast equipment to live broadcast the second video stream data.
12. The apparatus according to claim 11, wherein the sending module is further configured to send a scene image to be selected to the live device;
the device further comprises:
and the receiving module is used for receiving the selection operation which is sent by the live broadcast equipment and carries the target scene image.
13. The apparatus of claim 11, further comprising:
the receiving module is also used for receiving the selection operation of selecting the target video stream data sent by the live broadcast equipment; and if the selected target video stream data is the second video stream data, sending the second video stream data to a display device corresponding to the account for watching the live broadcast.
14. The apparatus according to claim 11, wherein the processing module is specifically configured to superimpose the foreground image with a corresponding target video frame in a preset target scene video.
15. The apparatus of claim 14, further comprising:
the judging module is used for judging whether the target video frame is the last frame of the target scene video; and if so, controlling the foreground image of the next frame to be superposed with the first frame of the target scene video.
16. A live scene switching apparatus, the apparatus comprising:
the sending module is used for sending the first video stream data of the current live broadcast to the server;
and the receiving module is used for receiving second video stream data sent by the server and live broadcasting, wherein the second video stream data is obtained by overlapping a foreground image of any video frame in the first video stream data with a preset target scene image.
17. The apparatus according to claim 16, wherein the receiving module is further configured to receive a scene image to be selected sent by the server; receiving an input selection operation for selecting a target scene image, and sending the selection operation carrying the target scene image to the server.
18. The apparatus according to claim 16 or 17, wherein the receiving module is specifically configured to, if there is one received second video stream data, live broadcast the second video stream data in all or a part of a display area of a display interface.
19. The apparatus according to claim 16 or 17, wherein the receiving module is specifically configured to, if there are a plurality of received second video stream data, display each of the second video stream data based on a display template according to the display template corresponding to the number of the received second video stream data.
20. The apparatus according to claim 16, wherein the receiving module is further configured to receive an input selection operation of selecting target video stream data, and send the selection operation of selecting the target video stream data to the server.
21. An electronic device, characterized in that the electronic device comprises at least a processor and a memory, the processor being configured to implement the steps of the live scene cut method according to any of claims 1-5 or 6-10 when executing a computer program stored in the memory.
22. A computer-readable storage medium, characterized in that it stores a computer program which, when being executed by a processor, carries out the steps of the live scene cut method according to any of claims 1-5 or claims 6-10.
CN202011237859.6A 2020-11-09 2020-11-09 Live broadcast scene switching method, device, equipment and medium Pending CN112423006A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011237859.6A CN112423006A (en) 2020-11-09 2020-11-09 Live broadcast scene switching method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011237859.6A CN112423006A (en) 2020-11-09 2020-11-09 Live broadcast scene switching method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN112423006A true CN112423006A (en) 2021-02-26

Family

ID=74782079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011237859.6A Pending CN112423006A (en) 2020-11-09 2020-11-09 Live broadcast scene switching method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112423006A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938711A (en) * 2021-10-13 2022-01-14 北京奇艺世纪科技有限公司 Visual angle switching method and device, user side, server and storage medium
CN114710703A (en) * 2022-03-29 2022-07-05 稿定(厦门)科技有限公司 Live broadcast method and device with variable scenes
CN115134616A (en) * 2021-03-29 2022-09-30 阿里巴巴新加坡控股有限公司 Live broadcast background control method, device, electronic equipment, medium and program product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106231349A (en) * 2015-12-30 2016-12-14 深圳超多维科技有限公司 Main broadcaster's class interaction platform server method for changing scenes and device, server
US20170127117A1 (en) * 2015-04-14 2017-05-04 International Business Machines Corporation Synchronizing an augmented reality video stream with a displayed video stream
CN108124194A (en) * 2017-12-28 2018-06-05 北京奇艺世纪科技有限公司 A kind of net cast method, apparatus and electronic equipment
CN108124109A (en) * 2017-11-22 2018-06-05 上海掌门科技有限公司 A kind of method for processing video frequency, equipment and computer readable storage medium
CN110809171A (en) * 2019-11-12 2020-02-18 腾讯科技(深圳)有限公司 Video processing method and related equipment
CN111432235A (en) * 2020-04-01 2020-07-17 网易(杭州)网络有限公司 Live video generation method and device, computer readable medium and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170127117A1 (en) * 2015-04-14 2017-05-04 International Business Machines Corporation Synchronizing an augmented reality video stream with a displayed video stream
CN106231349A (en) * 2015-12-30 2016-12-14 深圳超多维科技有限公司 Main broadcaster's class interaction platform server method for changing scenes and device, server
CN108124109A (en) * 2017-11-22 2018-06-05 上海掌门科技有限公司 A kind of method for processing video frequency, equipment and computer readable storage medium
CN108124194A (en) * 2017-12-28 2018-06-05 北京奇艺世纪科技有限公司 A kind of net cast method, apparatus and electronic equipment
CN110809171A (en) * 2019-11-12 2020-02-18 腾讯科技(深圳)有限公司 Video processing method and related equipment
CN111432235A (en) * 2020-04-01 2020-07-17 网易(杭州)网络有限公司 Live video generation method and device, computer readable medium and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115134616A (en) * 2021-03-29 2022-09-30 阿里巴巴新加坡控股有限公司 Live broadcast background control method, device, electronic equipment, medium and program product
CN115134616B (en) * 2021-03-29 2024-01-02 阿里巴巴新加坡控股有限公司 Live broadcast background control method, device, electronic equipment, medium and program product
CN113938711A (en) * 2021-10-13 2022-01-14 北京奇艺世纪科技有限公司 Visual angle switching method and device, user side, server and storage medium
CN114710703A (en) * 2022-03-29 2022-07-05 稿定(厦门)科技有限公司 Live broadcast method and device with variable scenes

Similar Documents

Publication Publication Date Title
CN112423006A (en) Live broadcast scene switching method, device, equipment and medium
CN105915937B (en) Panoramic video playing method and device
CN107071502B (en) Video playing method and device
CN112333474B (en) Screen projection method, system, equipment and storage medium
US10417742B2 (en) System and apparatus for editing preview images
CN106454407A (en) Video live broadcast method and device
US20180103296A1 (en) Method and apparatus for video playing processing and television
CN109286824B (en) Live broadcast user side control method, device, equipment and medium
US20170150212A1 (en) Method and electronic device for adjusting video
CN108833809A (en) A kind of video mixed flow control method, device, system, equipment and medium
CN109729287B (en) Method and device for monitoring perimeter area, computing equipment and storage medium
CN110856005B (en) Live stream display method and device, electronic equipment and readable storage medium
US11582506B2 (en) Video processing method and apparatus, and storage medium
US10231005B2 (en) Operation instructing method and apparatus for remote controller of intelligent television
CN112954459A (en) Video data processing method and device
CN110928509B (en) Display control method, display control device, storage medium, and communication terminal
CN109218817B (en) Method and device for displaying virtual gift prompting message
CN106412617B (en) Remote debugging control method and device
CN111182348B (en) Live broadcast picture display method and device, storage device and terminal
KR101915792B1 (en) System and Method for Inserting an Advertisement Using Face Recognition
CN110300118B (en) Streaming media processing method, device and storage medium
CN109922366A (en) A kind of device parameter method of adjustment, device, equipment and medium
CN105007516A (en) Method and device for generating interaction feedback information of interaction television system
CN112153409B (en) Live broadcast method and device, live broadcast receiving end and storage medium
CN111913761B (en) Plug-in processing method, device, equipment and storage medium for live channel

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210226