WO2018000227A1 - Video broadcast method and device - Google Patents

Video broadcast method and device Download PDF

Info

Publication number
WO2018000227A1
WO2018000227A1 PCT/CN2016/087612 CN2016087612W WO2018000227A1 WO 2018000227 A1 WO2018000227 A1 WO 2018000227A1 CN 2016087612 W CN2016087612 W CN 2016087612W WO 2018000227 A1 WO2018000227 A1 WO 2018000227A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
video picture
picture
synthesizing
rear camera
Prior art date
Application number
PCT/CN2016/087612
Other languages
French (fr)
Chinese (zh)
Inventor
李志刚
Original Assignee
北京小米移动软件有限公司
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 北京小米移动软件有限公司 filed Critical 北京小米移动软件有限公司
Priority to PCT/CN2016/087612 priority Critical patent/WO2018000227A1/en
Priority to CN201680000673.4A priority patent/CN106165430B/en
Publication of WO2018000227A1 publication Critical patent/WO2018000227A1/en

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/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/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • 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/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server

Definitions

  • the present disclosure relates to the field of network technologies, and in particular, to a video live broadcast method and apparatus.
  • the live broadcast mode of the current mainstream live broadcast software is a live broadcast of an anchor, and multiple viewers watch the live broadcast mode in the live broadcast of the anchor.
  • the front camera of the mobile terminal is usually manually started to shoot, so that the viewer in the live broadcast can see the live broadcast of the anchor.
  • the anchor then manually starts the rear camera of the mobile terminal to shoot, so that the current live broadcast screen is switched from the anchor screen to the exterior scene, and the viewers in the live broadcast watch the live broadcast of the scene.
  • the present disclosure provides a video live broadcast method and apparatus.
  • a video live broadcast method for an anchor terminal, where the method includes:
  • the method before the acquiring the first video image captured by the front camera and the second video image captured by the rear camera, the method further includes:
  • the first startup option of the rear camera is displayed on the live video page; when the triggering operation of the first startup option is detected, the rear camera is activated Take a video shot; or,
  • the synthesizing the first video picture and the second video picture comprises:
  • the first video picture and the second video picture are combined according to the left and right split mode.
  • the synthesizing the first video picture and the second video picture comprises:
  • the first video picture and the second video picture are combined according to a split screen mode.
  • the synthesizing the first video picture and the second video picture comprises:
  • the first video picture and the second video picture are combined according to a picture-in-picture mode.
  • the method further includes:
  • the composite mode switching option is used to refer to a method for synthesizing the first video picture and the second video picture;
  • a video live broadcast apparatus for an anchor terminal, where the apparatus includes:
  • the acquisition module is configured to acquire a first video image captured by the front camera and a second video image captured by the rear camera;
  • a synthesis module configured to combine the first video picture and the second video picture to obtain a target video picture
  • a sending module configured to send the target video picture to a server, so that the server forwards the target video picture to the audience terminal.
  • the apparatus further includes:
  • the first display module is configured to display the first startup option of the rear camera on the live video page if only the front camera is currently in the shooting state;
  • the startup module is configured to: after detecting the triggering operation of the first startup option, start the rear camera to perform video frame shooting;
  • the first display module is further configured to display a second startup option of the front camera on the live video page if only the rear camera is currently in a shooting state;
  • the startup module is further configured to activate the front camera to perform video screen shooting after detecting a triggering operation of the second startup option.
  • the synthesizing module is configured to synthesize the first video picture and the second video picture in a left-right split mode.
  • the synthesizing module is configured to follow the up and down split mode The first video picture and the second video picture are combined.
  • the synthesizing module is configured to synthesize the first video picture and the second video picture in a picture-in-picture mode.
  • the apparatus further includes:
  • a second display module configured to display a synthetic mode switching option on the live video page, where the synthetic mode switching option is used to indicate a manner of synthesizing the first video image and the second video image;
  • the synthesizing module is further configured to: after detecting the triggering operation of the synthesizing mode switching instruction, perform the first video picture and the second video picture based on the synthesizing manner indicated by the synthesizing mode switching instruction Synthesize to get a new target video picture;
  • the sending module is further configured to send the new target video picture to the server, so that the server forwards the new target video picture to the audience terminal.
  • a video live broadcast apparatus including:
  • a memory for storing processor executable instructions
  • the processor is configured to: acquire a first video image captured by a front camera and a second video image captured by a rear camera; and perform the first video image and the second video image Synthesizing, obtaining a target video picture; transmitting the target video picture to a server, so that the server forwards the target video picture to the viewer terminal.
  • the anchor terminal can activate the front camera and the rear camera to perform video capture of the dual camera, and synthesize the first video image captured by the front camera and the second video image captured by the rear camera, so that the display covers the front and rear.
  • the target video picture of the picture taken by the camera and supports sending the target video picture to the audience terminal, so that the audience terminal also plays the target video picture synchronously, so that the display of the anchor picture and the exterior picture can be completed at the same time, overcoming the desire to display the host on the anchor. Not at the time Can show the location, but when you want to show the location, you can not show your own defects, the live broadcast effect is better, the user is sticky.
  • FIG. 1 is a flowchart of a video live broadcast method according to an exemplary embodiment.
  • FIG. 2A is a flowchart of a video live broadcast method according to an exemplary embodiment.
  • FIG. 2B is a schematic diagram of a video picture, according to an exemplary embodiment.
  • 2C is a schematic diagram of a video picture, according to an exemplary embodiment.
  • 2D is a schematic diagram of a video picture, according to an exemplary embodiment.
  • FIG. 2E is a schematic diagram of a video picture according to an exemplary embodiment.
  • FIG. 3 is a block diagram of a video live broadcast apparatus according to an exemplary embodiment.
  • FIG. 4 is a block diagram of a video live broadcast apparatus according to an exemplary embodiment.
  • FIG. 5 is a block diagram of a video live broadcast apparatus according to an exemplary embodiment.
  • FIG. 6 is a block diagram of a video live broadcast apparatus according to an exemplary embodiment.
  • FIG. 1 is a flowchart of a video live broadcast method according to an exemplary embodiment, as shown in FIG. 1 .
  • the method is used in an anchor terminal and includes the following steps.
  • step 101 a first video picture taken by the front camera and a second video picture taken by the rear camera are acquired.
  • step 102 the first video picture and the second video picture are combined to obtain a target video picture.
  • step 103 the target video picture is sent to the server to cause the server to forward the target video picture to the viewer terminal.
  • the anchor terminal can activate the front camera and the rear camera to perform video capture of the dual camera, and the first video image captured by the front camera and the second video image captured by the rear camera. Synthesizing, thereby displaying a target video picture covering the picture taken by the front and rear cameras, and supporting the target video picture to be sent to the audience terminal, so that the audience terminal also plays the target video picture synchronously, so that the display of the anchor picture and the exterior picture can be completed at the same time.
  • the anchor can't show the location when he wants to show himself, but can't show his flaws when he wants to show the location, the live broadcast is better, and the user is sticky.
  • the method before the acquiring the first video image captured by the front camera and the second video image captured by the rear camera, the method further includes:
  • the first startup option of the rear camera is displayed on the live video page; when the triggering operation of the first startup option is detected, the rear camera is activated Take a video shot; or,
  • the synthesizing the first video picture and the second video picture comprises: following the left and right split screen modes, the first video picture and the second path The video screen is synthesized.
  • the first video picture and the second video picture are The line synthesis comprises: synthesizing the first video picture and the second video picture according to a split screen mode.
  • the synthesizing the first video picture and the second video picture comprises: following the picture-in-picture mode, the first video picture and the second path The video screen is synthesized.
  • the method further includes:
  • a synthetic mode switching option Displaying, in the video live broadcast page, a synthetic mode switching option, where the synthetic mode switching option is used to indicate a manner of synthesizing the first video image and the second video image;
  • FIG. 2A is a flowchart of a video live broadcast method according to an exemplary embodiment, where an interactive host is a host broadcast terminal, a server, and a viewer terminal.
  • the anchor terminal refers to a mobile terminal
  • the audience terminal can refer to both a mobile terminal and a fixed terminal. Taking the anchor terminal to start the front camera for video screen shooting, and then starting the rear camera for video screen shooting, as shown in FIG. 2A, the following steps are included.
  • step 201 the anchor terminal plays the first video picture captured by the front camera on the live video page.
  • the anchor screen is the most wanted to see.
  • the anchor screen is also the most wanted to show it to everyone, so the importance of the exterior scene is generally lower than the anchor screen. of. Therefore, when the anchor user is using the anchor terminal for live broadcast, the preferred method is to start the front camera for shooting.
  • the anchor terminal can be a smart phone or a tablet computer, etc., the present disclosure The embodiment does not specifically limit this.
  • the live broadcast software on the anchor terminal can obtain the first video image captured by the front camera in real time and play it on the live video page.
  • the live broadcast software on the anchor terminal also uploads the first video image and the live broadcast identifier captured by the front camera to the server in real time, and the server determines to view the audience user identifier of the broadcast user live broadcast according to the live broadcast identifier. And sending the first video screen to the audience terminal according to the viewer user identifier. If the live broadcast software is also installed in the viewer terminal, the first video screen can be displayed synchronously with the anchor terminal, and the playback progress of the video screen is consistent.
  • the content captured by the front camera is collectively referred to as the first video image, and the content captured by the rear camera is similar to the second video image in the subsequent step.
  • the live broadcast identifier refers to the name or number of the live broadcast room, and can be generated by the server for the live broadcast room.
  • the viewer terminal can enter the live room by selecting the live room logo or entering the live room logo.
  • step 202 the anchor terminal displays the first startup option of the rear camera on the live video page; after detecting the trigger operation of the first startup option, the rear camera is activated to shoot.
  • the anchor user may need to display the external scene, such as showing the audience the amount of heavy rain outside, and the live broadcast of the accident scene in front of the scene.
  • a startup option of the rear camera is provided on the live video page.
  • the first startup option may specifically be a virtual button that can be clicked by the anchor user.
  • the anchor terminal detects that the anchor user clicks the first startup option, the live broadcast software actively calls the rear camera to perform video screen shooting.
  • the first startup option may be displayed on the video live page, except for any area for playing the video screen, which is not specifically limited in the embodiment of the present disclosure.
  • the above steps 201 and 202 describe how to restart the rear camera for video screen shooting only when the front camera is in the shooting state. It should be noted that if only the rear camera is currently in the shooting state, the second startup option of the front camera can also be displayed on the live video page. After the anchor terminal detects the triggering operation of the second startup option, the front camera is further activated. Video screen shooting. That is, when a camera is activated, another camera can be triggered by the startup option displayed on the live video page.
  • step 203 the anchor terminal synthesizes the first video picture captured by the front camera and the second video picture captured by the rear camera to obtain a target video picture.
  • the anchor screen and the exterior scene screen are captured in real time.
  • the live video software obtains the first video picture taken by the front camera and the second video picture taken by the rear camera, in order to display the anchor picture and the exterior picture at the same time, the first video picture and the second picture will be displayed.
  • the time-frequency picture is synthesized in the following manners, so that the target video picture as shown in FIG. 2B to FIG. 2D can be displayed on the anchor terminal.
  • the first video picture and the second video picture are combined according to the left and right split screen modes shown in FIG. 2B.
  • the left and right split screen mode refers to dividing the display area for playing the video picture on the live video page into two parts. One part is used to display the first video picture taken by the front camera, and the other part is used to display the second video picture taken by the rear camera. Limited to the size of the anchor terminal screen, the left and right split screen mode is usually used when the anchor terminal is in the landscape state.
  • the terminal is configured with a sensor, and according to the sensor information returned by the sensor, it can be determined whether the current posture of the anchor terminal is a horizontal screen state or a vertical screen state.
  • the anchor terminal may be configured with a magnetic field sensor, a gyro sensor, a six-axis orientation sensor, or a nine-axis rotation vector sensor, which is not limited in this embodiment of the present invention.
  • a method of synthesizing image frames one by one is usually adopted. For example, after the rear camera is started, the image frame that is captured by the front camera and currently being played is cut to a certain extent, and the first frame image captured by the rear camera is also trimmed to some extent, and then the cropped image is cut.
  • the two image frames are synthesized according to the left and right split screen modes, and the second frame image captured by the rear camera and the image captured by the front camera and the next frame are also synthesized according to the left and right split screen modes, and so on. This example does not specifically limit this.
  • the first video picture and the second video picture are combined according to the up and down split mode shown in FIG. 2C.
  • the upper and lower split screen mode refers to dividing the display area for playing the video screen on the live video page into two upper and lower parts. One part is used to display the first video picture taken by the front camera, and the other part is used to display the second video picture taken by the rear camera.
  • the up and down split mode is usually used when the anchor terminal is in the portrait state.
  • the image frame that is captured by the front camera and currently playing is clipped to a certain extent, and the first frame image captured by the rear camera is also trimmed to some extent, and the two cropped images are cut.
  • the image frames are synthesized according to the upper and lower split screen modes, and the second frame image captured by the rear camera and the image captured by the front camera and the next frame are also synthesized in the upper and lower split mode, and so on, the embodiment of the present disclosure This is not specifically limited.
  • the first video picture and the second video picture are combined according to the picture-in-picture mode shown in FIGS. 2D and 2E;
  • the picture-in-picture mode refers to dividing the display area for playing a video picture on the live video page into two parts. One part is contained in the area of the other part. Similar to the above two cases, one part is used to display the first video picture taken by the front camera, and the other part is used to display the second video picture taken by the rear camera.
  • the picture-in-picture mode is applicable when the anchor terminal is in the portrait or landscape mode.
  • the width and height of the image frame currently being captured by the front camera are compressed to a certain extent, and the width and height of the first frame image captured by the rear camera are subjected to a certain degree.
  • the compressed two image frames are synthesized according to the picture-in-picture mode, and the second frame image captured by the rear camera and the image captured by the front camera and the next frame are also synthesized in the picture-in-picture mode.
  • the embodiment of the present disclosure does not specifically limit this.
  • step 204 the anchor terminal plays the target video picture, and the target video picture and the live broadcast room The ID is sent to the server.
  • the live broadcast software of the anchor terminal can directly play the target video picture on the live video page of the anchor terminal. If the target video picture is synthesized according to the left and right split screen mode, the anchor terminal plays the first video picture in the first display area of the live video page and the second video area in the second display area, as shown in FIG. 2B. .
  • the first display area is located to the left of the second display area.
  • the anchor terminal will play the first video picture in the third display area of the live video page, and the second display area plays the second video picture as shown in FIG. 2C.
  • the third display area is located above the fourth display area.
  • the anchor terminal plays the first video picture in the fifth display area of the live video page, and the second display area plays the second video picture, as shown in FIG. 2D.
  • the sixth display area is located in the fifth display area.
  • the anchor terminal adopts the dual camera live broadcast mode of the front camera and the rear camera.
  • the anchor terminal sends the target video screen and the live broadcast to the server in real time. And identifying, so that the server determines to view all the audience users of the anchor live broadcast according to the live broadcast identifier, and sends the target video screen to all the audience users. For the detailed process, see step 205 below.
  • the embodiment of the present disclosure further provides a synthetic mode switching option on the live video broadcast page of the anchor terminal, and after the anchor user triggers the synthetic mode switching option, the synthetic mode switching instruction is triggered.
  • the synthesis mode switching instruction indicates a combination of the first video picture and the second video picture.
  • the composite mode switching option specifically includes two types, where the first switching option and the second switching option are used as an example, where the first switching option is used to instruct the anchor terminal to switch the first video picture and the second video picture.
  • the display area is synthesized.
  • the anchor terminal After the anchor terminal detects the triggering operation of the first switching option, from now on, the anchor terminal will take the first video picture taken by the front camera and the second picture taken by the rear camera based on the switched display area.
  • the road video picture is synthesized according to the initial split screen mode to obtain a new target video picture and to the viewer terminal. Send a new target video screen.
  • the anchor terminal plays the second video picture in the display area of the original playing first video picture, and plays the first video picture in the display area of the original playing second video picture.
  • the anchor terminal displays the first video screen in the sub-display area, and displays the second video screen in the main display area.
  • the area of the main display area is generally much larger than the area of the sub display area.
  • embodiments of the present disclosure also support the process of switching video pictures between different split screen modes.
  • a second switching option of the split screen mode is provided on the live video page of the anchor terminal.
  • the second switching option may be specifically composed of a drop-down list displaying a split screen mode and an OK button.
  • the anchor terminal After the anchor user selects a sub-list item in the drop-down list and clicks the OK button, the anchor terminal determines that the triggering operation of the second switching option is detected, and determines the split screen mode indicated by the sub-item as the target split screen mode; Initially, the anchor terminal synthesizes the first video picture and the second video picture according to the target split mode, obtains a new target video picture, and transmits a new target video picture to the viewer terminal.
  • each of the split screen modes may also be associated with a single switching option, which is not specifically limited in the embodiment of the present disclosure.
  • the anchor terminal will view the first video screen and the second time.
  • the frequency picture is synthesized by the up and down split mode shown in Fig. 2C, so that the picture shown in Fig. 2C is displayed on the anchor terminal.
  • step 205 after receiving the target video picture and the live broadcast identifier, the server determines the audience user identifier associated with the live broadcast identifier, and transmits the target video screen to the viewer terminal based on the viewer user identifier.
  • the server for a live broadcast room, the server generally stores a live broadcast standard.
  • the correspondence between the user identification and the viewer user identification is recorded to facilitate recording of the viewer user watching the live broadcast of the live video. Therefore, after receiving the identifier of the live broadcast, the server may determine the audience user identifier associated with the live broadcast identifier according to the corresponding relationship, and deliver the target video screen to all audience users in the live broadcast room.
  • step 206 after receiving the target video picture sent by the server, the audience terminal determines the split screen mode used when the target video picture is synthesized, and plays the target video picture on the live video page according to the split mode.
  • the audience terminal may be displayed on the live video page as shown in FIG. 2B.
  • the first display area plays the first video picture
  • the second display area plays the second video picture.
  • the first display area is located to the left of the second display area.
  • the viewer terminal plays the first video picture in the third display area of the live video page and the second video in the fourth display area, as shown in FIG. 2C. Picture.
  • the third display area is located above the fourth display area.
  • the viewer terminal plays the first video picture in the fifth display area of the live video page and the second video in the sixth display area as shown in FIG. 2D. Picture.
  • the sixth display area is located in the fifth display area.
  • the display mode of the target video screen by the audience terminal is the same as that of the anchor terminal, so that the live video displayed by the anchor terminal and the audience terminal is consistent.
  • the screen displayed on the left side of the anchor terminal is the same as the screen displayed on the left side of the viewer terminal. This assumes that the anchor user notifies the viewer user to pay attention to something that appears in the left picture, and there is no situation where the viewer user needs to find it on the right side of the screen.
  • the anchor terminal can activate the front camera and the rear camera to perform video capture of the dual camera, and the first video image captured by the front camera and the second video image captured by the rear camera.
  • the user is sticky.
  • FIG. 3 is a block diagram of a live video broadcast device for an anchor terminal, according to an exemplary embodiment.
  • the apparatus includes an acquisition module 301, a synthesis module 302, and a transmission module 303.
  • the obtaining module 301 is configured to acquire a first video image captured by the front camera and a second video image captured by the rear camera;
  • the synthesizing module 302 is configured to synthesize the first video picture and the second video picture to obtain a target video picture;
  • the sending module 303 is configured to send the target video picture to the server, so that the server forwards the target video picture to the audience terminal.
  • the apparatus further includes:
  • the first display module 304 is configured to display the first startup option of the rear camera on the live video page if only the front camera is currently in the shooting state;
  • the startup module 305 is configured to: after detecting the triggering operation of the first startup option, start the rear camera to perform video screen shooting;
  • the first display module 304 is further configured to display a second startup option of the front camera on the live video page if only the rear camera is currently in a shooting state;
  • the startup module 305 is further configured to, after detecting the triggering operation of the second startup option, activate the front camera to perform video screen shooting.
  • the synthesizing module 302 is configured to synthesize the first video picture and the second video picture according to a left and right split screen mode.
  • the synthesizing module 302 is configured to synthesize the first video picture and the second video picture according to a top and bottom split mode.
  • the synthesizing module 302 is configured to follow the picture-in-picture mode. The first video picture and the second video picture are combined.
  • the apparatus further includes:
  • the second display module 306 is configured to display a composite mode switching option on the live video page, where the synthetic mode switching option is used to indicate a manner of synthesizing the first video image and the second video image;
  • the synthesizing module 302 is further configured to, after detecting the triggering operation of the synthesizing mode switching instruction, the first video picture and the second video picture based on the synthesizing manner indicated by the synthesizing mode switching instruction Perform synthesis to obtain a new target video screen;
  • the sending module 303 is further configured to send the new target video picture to the server, so that the server forwards the new target video picture to the audience terminal.
  • the anchor terminal can activate the front camera and the rear camera to perform video capture of the dual camera, and the first video image captured by the front camera and the second video frame captured by the rear camera. Synthesizing, thereby displaying a target video picture covering the picture taken by the front and rear cameras, and supporting the target video picture to be sent to the audience terminal, so that the audience terminal also plays the target video picture synchronously, so that the display of the anchor picture and the exterior picture can be completed at the same time.
  • the anchor can't show the location when he wants to show himself, but can't show his flaws when he wants to show the location, the live broadcast is better, and the user is sticky.
  • FIG. 6 is a block diagram of a video broadcast device 600, according to an exemplary embodiment.
  • device 600 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • the apparatus 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an I/O (Input/Output) interface 612, Sensor component 614, and communication component 616.
  • Processing component 602 typically controls the overall operation of device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • Processing component 602 can include one or more processors 620 to execute instructions to perform all or part of the steps of the above described methods.
  • processing component 602 can include one or more modules to facilitate interaction between component 602 and other components.
  • processing component 602 can include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.
  • Memory 604 is configured to store various types of data to support operation at device 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as SRAM (Static Random Access Memory), EEPROM (Electrically-Erasable Programmable Read-Only Memory, Erasable Programmable Read Only Memory (EPROM), PROM (Programmable Read-Only Memory), ROM (Read-Only Memory, Read only memory), magnetic memory, flash memory, disk or optical disk.
  • SRAM Static Random Access Memory
  • EEPROM Electrically-Erasable Programmable Read-Only Memory
  • EPROM Erasable Programmable Read Only Memory
  • PROM Programmable Read-Only Memory
  • ROM Read-Only Memory, Read only memory
  • magnetic memory flash memory, disk or optical disk.
  • Power component 606 provides power to various components of device 600.
  • Power component 606 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 600.
  • the multimedia component 608 includes a screen between the device 600 and the user that provides an output interface.
  • the screen may include an LCD (Liquid Crystal Display) and a TP (Touch Panel). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 608 includes a front camera and/or a rear camera. Front camera and/or rear camera when device 600 is in operating mode, such as shooting mode or video mode The image header can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 610 is configured to output and/or input an audio signal.
  • the audio component 610 includes a MIC (Microphone) that is configured to receive an external audio signal when the device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 604 or transmitted via communication component 616.
  • audio component 610 also includes a speaker for outputting an audio signal.
  • the I/O interface 612 provides an interface between the processing component 602 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor assembly 614 includes one or more sensors for providing device 600 with a status assessment of various aspects.
  • sensor component 614 can detect an open/closed state of device 600, a relative positioning of components, such as a display and a keypad of device 600, and sensor component 614 can also detect a change in position of one component of device 600 or device 600, user The presence or absence of contact with device 600, device 600 orientation or acceleration/deceleration and temperature variation of device 600.
  • Sensor assembly 614 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 614 may also include a light sensor, such as a CMOS (Complementary Metal Oxide Semiconductor) or CCD (Charge-coupled Device) image sensor for use in imaging applications.
  • the sensor component 614 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 616 is configured to facilitate wired or wireless communication between device 600 and other devices.
  • the device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
  • communication component 616 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • the communication component 616 further includes an NFC (Near Field Communication) module to facilitate short-range Communication.
  • the NFC module can be based on RFID (Radio Frequency Identification) technology, IrDA (Infra-red Data Association) technology, UWB (Ultra Wideband) technology, BT (Bluetooth) technology and Other technologies to achieve.
  • the device 600 may be configured by one or more ASICs (Application Specific Integrated Circuits), DSP (Digital Signal Processor), DSPD (Digital Signal Processor Device). Device), PLD (Programmable Logic Device), FPGA (Field Programmable Gate Array), controller, microcontroller, microprocessor or other electronic component implementation for performing the above method.
  • ASICs Application Specific Integrated Circuits
  • DSP Digital Signal Processor
  • DSPD Digital Signal Processor Device
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • controller microcontroller, microprocessor or other electronic component implementation for performing the above method.
  • non-transitory computer readable storage medium comprising instructions, such as a memory 604 comprising instructions executable by processor 620 of apparatus 600 to perform the above method.
  • the non-transitory computer readable storage medium may be a ROM, a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, and optical data. Storage devices, etc.
  • a non-transitory computer readable storage medium that, when executed by a processor of a mobile terminal, enables the mobile terminal to perform the video live broadcast method described above.

Abstract

The present invention relates to the field of network technology. A video broadcast method and device, the method comprising: acquiring a first video frame captured by a front camera and a second video frame captured by a rear camera; synthesizing the first video frame and the second video frame to acquire a target video frame; and sending the target video frame to a server, so as to allow the server to forward the target video frame to a viewer terminal. By means of the front camera and rear camera, both a host screen and an environment screen can be shown at the same time, overcoming the defect wherein a host cannot show the environment while wishing to show him or herself, or cannot show him or herself while wishing to show the environment, thereby resulting in a desirable broadcast effect, and a high user retention rate.

Description

视频直播方法及装置Video live broadcast method and device 技术领域Technical field
本公开涉及网络技术领域,特别涉及一种视频直播方法及装置。The present disclosure relates to the field of network technologies, and in particular, to a video live broadcast method and apparatus.
背景技术Background technique
随着网络技术的不断发展和移动终端功能的日渐丰富,利用移动终端进行视频直播已经成为时下的一个社交热点。当前主流直播软件的直播模式为一个主播进行直播,多个观众在该主播的直播间观看直播的方式。With the continuous development of network technology and the increasing functions of mobile terminals, the use of mobile terminals for live video has become a social hotspot. The live broadcast mode of the current mainstream live broadcast software is a live broadcast of an anchor, and multiple viewers watch the live broadcast mode in the live broadcast of the anchor.
相关技术中,主播在进行视频直播时通常是先手动启动移动终端的前置摄像头进行拍摄,这样直播间的观众便可看到有关主播的直播画面。而在需要展示外景的时候,主播再手动启动移动终端的后置摄像头进行拍摄,这样当前的直播画面便由主播画面切换至外景画面,直播间的观众观看有关外景的直播。In the related art, when the anchor broadcasts the video, the front camera of the mobile terminal is usually manually started to shoot, so that the viewer in the live broadcast can see the live broadcast of the anchor. When the location needs to be displayed, the anchor then manually starts the rear camera of the mobile terminal to shoot, so that the current live broadcast screen is switched from the anchor screen to the exterior scene, and the viewers in the live broadcast watch the live broadcast of the scene.
在实现本公开的过程中,发明人发现相关技术至少存在以下问题:In the process of implementing the present disclosure, the inventors have found that the related art has at least the following problems:
在开启前置摄像头的时候观众仅能看到主播的直播画面,而在开启后置摄像头的时候观众又仅能看到外景的直播画面,即会出现在主播想要展示自己的时候不能展示外景,而在想要展示外景的时候又不能展示自己的情况,因此直播效果较差,用户粘性不高。When the front camera is turned on, the viewer can only see the live broadcast of the anchor, and when the rear camera is turned on, the viewer can only see the live view of the external scene, which will appear when the anchor wants to display himself. However, when I want to show the location, I can't show my own situation, so the live broadcast effect is poor and the user is not sticky.
发明内容Summary of the invention
为克服相关技术中存在的问题,本公开提供一种视频直播方法及装置。To overcome the problems in the related art, the present disclosure provides a video live broadcast method and apparatus.
根据本公开实施例的第一方面,提供一种视频直播方法,用于主播终端,所述方法包括:According to a first aspect of the embodiments of the present disclosure, a video live broadcast method is provided for an anchor terminal, where the method includes:
获取前置摄像头拍摄的第一路视频画面和后置摄像头拍摄的第二路视频画面; Obtaining the first video picture taken by the front camera and the second video picture taken by the rear camera;
将所述第一路视频画面和所述第二路视频画面进行合成,得到目标视频画面;Combining the first video picture and the second video picture to obtain a target video picture;
将所述目标视频画面发送至服务器,以使所述服务器将所述目标视频画面转发至观众终端。Transmitting the target video picture to a server to cause the server to forward the target video picture to a viewer terminal.
在另一个实施例中,所述获取前置摄像头拍摄的第一路视频画面和后置摄像头拍摄的第二路视频画面之前,所述方法还包括:In another embodiment, before the acquiring the first video image captured by the front camera and the second video image captured by the rear camera, the method further includes:
若当前仅所述前置摄像头处于拍摄状态,则在视频直播页面上显示所述后置摄像头的第一启动选项;当检测到所述第一启动选项的触发操作后,启动所述后置摄像头进行视频画面拍摄;或,If only the front camera is currently in the shooting state, the first startup option of the rear camera is displayed on the live video page; when the triggering operation of the first startup option is detected, the rear camera is activated Take a video shot; or,
若当前仅所述后置摄像头处于拍摄状态,则在所述视频直播页面上显示所述前置摄像头的第二启动选项;当检测到所述第二启动选项的触发操作后,启动所述前置摄像头进行视频画面拍摄。If only the rear camera is currently in the shooting state, displaying a second startup option of the front camera on the live video page; when the triggering operation of the second startup option is detected, starting the front Set the camera for video screen shooting.
在另一个实施例中,所述将所述第一路视频画面和所述第二路视频画面进行合成,包括:In another embodiment, the synthesizing the first video picture and the second video picture comprises:
按照左右分屏模式,将所述第一路视频画面和所述第二路视频画面进行合成。The first video picture and the second video picture are combined according to the left and right split mode.
在另一个实施例中,所述将所述第一路视频画面和所述第二路视频画面进行合成,包括:In another embodiment, the synthesizing the first video picture and the second video picture comprises:
按照上下分屏模式,将所述第一路视频画面和所述第二路视频画面进行合成。The first video picture and the second video picture are combined according to a split screen mode.
在另一个实施例中,所述将所述第一路视频画面和所述第二路视频画面进行合成,包括:In another embodiment, the synthesizing the first video picture and the second video picture comprises:
按照画中画模式,将所述第一路视频画面和所述第二路视频画面进行合成。The first video picture and the second video picture are combined according to a picture-in-picture mode.
在另一个实施例中,所述方法还包括:In another embodiment, the method further includes:
在视频直播页面上显示合成方式切换选项,所述合成方式切换选项用于指 示所述第一路视频画面和所述第二路视频画面的合成方式;Displaying a composite mode switching option on the live video page, the composite mode switching option is used to refer to a method for synthesizing the first video picture and the second video picture;
当检测到合成方式切换指令的触发操作后,基于所述合成方式切换指令指示的合成方式,将所述第一路视频画面和所述第二路视频画面进行合成,得到新的目标视频画面,向所述服务器发送所述新的目标视频画面,以使所述服务器将所述新的目标视频画面转发至所述观众终端。After detecting the triggering operation of the synthesis mode switching instruction, synthesizing the first video picture and the second video picture according to the synthesis mode indicated by the synthesis mode switching instruction, to obtain a new target video picture, Sending the new target video picture to the server to cause the server to forward the new target video picture to the viewer terminal.
根据本公开实施例的第二方面,提供一种视频直播装置,用于主播终端,所述装置包括:According to a second aspect of the embodiments of the present disclosure, a video live broadcast apparatus is provided for an anchor terminal, where the apparatus includes:
获取模块,被配置为获取前置摄像头拍摄的第一路视频画面和后置摄像头拍摄的第二路视频画面;The acquisition module is configured to acquire a first video image captured by the front camera and a second video image captured by the rear camera;
合成模块,被被配置为将所述第一路视频画面和所述第二路视频画面进行合成,得到目标视频画面;a synthesis module configured to combine the first video picture and the second video picture to obtain a target video picture;
发送模块,被配置为将所述目标视频画面发送至服务器,以使所述服务器将所述目标视频画面转发至观众终端。And a sending module configured to send the target video picture to a server, so that the server forwards the target video picture to the audience terminal.
在另一个实施例中,所述装置还包括:In another embodiment, the apparatus further includes:
第一显示模块,被配置为若当前仅所述前置摄像头处于拍摄状态,则在视频直播页面上显示所述后置摄像头的第一启动选项;The first display module is configured to display the first startup option of the rear camera on the live video page if only the front camera is currently in the shooting state;
启动模块,被配置为当检测到所述第一启动选项的触发操作后,启动所述后置摄像头进行视频画面拍摄;The startup module is configured to: after detecting the triggering operation of the first startup option, start the rear camera to perform video frame shooting;
所述第一显示模块,还被配置为若当前仅所述后置摄像头处于拍摄状态,则在所述视频直播页面上显示所述前置摄像头的第二启动选项;The first display module is further configured to display a second startup option of the front camera on the live video page if only the rear camera is currently in a shooting state;
所述启动模块,还被配置为当检测到所述第二启动选项的触发操作后,启动所述前置摄像头进行视频画面拍摄。The startup module is further configured to activate the front camera to perform video screen shooting after detecting a triggering operation of the second startup option.
在另一个实施例中,所述合成模块,被配置为按照左右分屏模式,将所述第一路视频画面和所述第二路视频画面进行合成。In another embodiment, the synthesizing module is configured to synthesize the first video picture and the second video picture in a left-right split mode.
在另一个实施例中,所述合成模块,被配置为按照上下分屏模式,将所述 第一路视频画面和所述第二路视频画面进行合成。In another embodiment, the synthesizing module is configured to follow the up and down split mode The first video picture and the second video picture are combined.
在另一个实施例中,所述合成模块,被配置为按照画中画模式,将所述第一路视频画面和所述第二路视频画面进行合成。In another embodiment, the synthesizing module is configured to synthesize the first video picture and the second video picture in a picture-in-picture mode.
在另一个实施例中,所述装置还包括:In another embodiment, the apparatus further includes:
第二显示模块,被配置为在视频直播页面上显示合成方式切换选项,所述合成方式切换选项用于指示所述第一路视频画面和所述第二路视频画面的合成方式;a second display module, configured to display a synthetic mode switching option on the live video page, where the synthetic mode switching option is used to indicate a manner of synthesizing the first video image and the second video image;
所述合成模块,还被配置为当检测到合成方式切换指令的触发操作后,基于所述合成方式切换指令指示的合成方式,将所述第一路视频画面和所述第二路视频画面进行合成,得到新的目标视频画面;The synthesizing module is further configured to: after detecting the triggering operation of the synthesizing mode switching instruction, perform the first video picture and the second video picture based on the synthesizing manner indicated by the synthesizing mode switching instruction Synthesize to get a new target video picture;
所述发送模块,还被配置为向所述服务器发送所述新的目标视频画面,以使所述服务器将所述新的目标视频画面转发至所述观众终端。The sending module is further configured to send the new target video picture to the server, so that the server forwards the new target video picture to the audience terminal.
根据本公开实施例的第三方面,提供一种视频直播装置,包括:According to a third aspect of the embodiments of the present disclosure, a video live broadcast apparatus is provided, including:
处理器;processor;
用于存储处理器可执行指令的存储器;a memory for storing processor executable instructions;
其中,所述处理器被配置为:获取前置摄像头拍摄的第一路视频画面和后置摄像头拍摄的第二路视频画面;将所述第一路视频画面和所述第二路视频画面进行合成,得到目标视频画面;将所述目标视频画面发送至服务器,以使所述服务器将所述目标视频画面转发至观众终端。The processor is configured to: acquire a first video image captured by a front camera and a second video image captured by a rear camera; and perform the first video image and the second video image Synthesizing, obtaining a target video picture; transmitting the target video picture to a server, so that the server forwards the target video picture to the viewer terminal.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
主播终端可启动前置摄像头和后置摄像头进行双摄像头的视频画面拍摄,并将前置摄像头拍摄的第一路视频画面和后置摄像头拍摄的第二路视频画面进行合成,从而显示涵盖前后置摄像头所拍摄画面的目标视频画面,并支持将目标视频画面发送至观众终端,使得观众终端也同步播放目标视频画面,因此可同时完成主播画面和外景画面的展示,克服了在主播想要展示自己的时候不 能展示外景,而在想要展示外景的时候又不能展示自己的缺陷,直播效果较好,用户粘性高。The anchor terminal can activate the front camera and the rear camera to perform video capture of the dual camera, and synthesize the first video image captured by the front camera and the second video image captured by the rear camera, so that the display covers the front and rear. The target video picture of the picture taken by the camera, and supports sending the target video picture to the audience terminal, so that the audience terminal also plays the target video picture synchronously, so that the display of the anchor picture and the exterior picture can be completed at the same time, overcoming the desire to display the host on the anchor. Not at the time Can show the location, but when you want to show the location, you can not show your own defects, the live broadcast effect is better, the user is sticky.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。The above general description and the following detailed description are intended to be illustrative and not restrictive.
附图说明DRAWINGS
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in the specification of FIG
图1是根据一示例性实施例示出的一种视频直播方法的流程图。FIG. 1 is a flowchart of a video live broadcast method according to an exemplary embodiment.
图2A是根据一示例性实施例示出的一种视频直播方法的流程图。FIG. 2A is a flowchart of a video live broadcast method according to an exemplary embodiment.
图2B是根据一示例性实施例示出的一种视频画面的示意图。FIG. 2B is a schematic diagram of a video picture, according to an exemplary embodiment.
图2C是根据一示例性实施例示出的一种视频画面的示意图。2C is a schematic diagram of a video picture, according to an exemplary embodiment.
图2D是根据一示例性实施例示出的一种视频画面的示意图。2D is a schematic diagram of a video picture, according to an exemplary embodiment.
图2E是根据一示例性实施例示出的一种视频画面的示意图。FIG. 2E is a schematic diagram of a video picture according to an exemplary embodiment.
图3是根据一示例性实施例示出的一种视频直播装置的框图。FIG. 3 is a block diagram of a video live broadcast apparatus according to an exemplary embodiment.
图4是根据一示例性实施例示出的一种视频直播装置的框图。FIG. 4 is a block diagram of a video live broadcast apparatus according to an exemplary embodiment.
图5是根据一示例性实施例示出的一种视频直播装置的框图。FIG. 5 is a block diagram of a video live broadcast apparatus according to an exemplary embodiment.
图6是根据一示例性实施例示出的一种视频直播装置的框图。FIG. 6 is a block diagram of a video live broadcast apparatus according to an exemplary embodiment.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. The following description refers to the same or similar elements in the different figures unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with aspects of the invention as detailed in the appended claims.
图1是根据一示例性实施例示出的一种视频直播方法的流程图,如图1所 示,该方法用于主播终端中,包括以下步骤。FIG. 1 is a flowchart of a video live broadcast method according to an exemplary embodiment, as shown in FIG. 1 . The method is used in an anchor terminal and includes the following steps.
在步骤101中,获取前置摄像头拍摄的第一路视频画面和后置摄像头拍摄的第二路视频画面。In step 101, a first video picture taken by the front camera and a second video picture taken by the rear camera are acquired.
在步骤102中,将第一路视频画面和第二路视频画面进行合成,得到目标视频画面。In step 102, the first video picture and the second video picture are combined to obtain a target video picture.
在步骤103中,将目标视频画面发送至服务器,以使服务器将目标视频画面转发至观众终端。In step 103, the target video picture is sent to the server to cause the server to forward the target video picture to the viewer terminal.
本公开实施例提供的方法,主播终端可启动前置摄像头和后置摄像头进行双摄像头的视频画面拍摄,并将前置摄像头拍摄的第一路视频画面和后置摄像头拍摄的第二路视频画面进行合成,从而显示涵盖前后置摄像头所拍摄画面的目标视频画面,并支持将目标视频画面发送至观众终端,使得观众终端也同步播放目标视频画面,因此可同时完成主播画面和外景画面的展示,克服了在主播想要展示自己的时候不能展示外景,而在想要展示外景的时候又不能展示自己的缺陷,直播效果较好,用户粘性高。According to the method provided by the embodiment of the present disclosure, the anchor terminal can activate the front camera and the rear camera to perform video capture of the dual camera, and the first video image captured by the front camera and the second video image captured by the rear camera. Synthesizing, thereby displaying a target video picture covering the picture taken by the front and rear cameras, and supporting the target video picture to be sent to the audience terminal, so that the audience terminal also plays the target video picture synchronously, so that the display of the anchor picture and the exterior picture can be completed at the same time. Overcoming the fact that the anchor can't show the location when he wants to show himself, but can't show his flaws when he wants to show the location, the live broadcast is better, and the user is sticky.
在另一个实施例中,所述获取前置摄像头拍摄的第一路视频画面和后置摄像头拍摄的第二路视频画面之前,该方法还包括:In another embodiment, before the acquiring the first video image captured by the front camera and the second video image captured by the rear camera, the method further includes:
若当前仅所述前置摄像头处于拍摄状态,则在视频直播页面上显示所述后置摄像头的第一启动选项;当检测到所述第一启动选项的触发操作后,启动所述后置摄像头进行视频画面拍摄;或,If only the front camera is currently in the shooting state, the first startup option of the rear camera is displayed on the live video page; when the triggering operation of the first startup option is detected, the rear camera is activated Take a video shot; or,
若当前仅所述后置摄像头处于拍摄状态,则在所述视频直播页面上显示所述前置摄像头的第二启动选项;当检测到所述第二启动选项的触发操作后,启动所述前置摄像头进行视频画面拍摄。If only the rear camera is currently in the shooting state, displaying a second startup option of the front camera on the live video page; when the triggering operation of the second startup option is detected, starting the front Set the camera for video screen shooting.
在另一个实施例中,所述将所述第一路视频画面和所述第二路视频画面进行合成,包括:按照左右分屏模式,将所述第一路视频画面和所述第二路视频画面进行合成。In another embodiment, the synthesizing the first video picture and the second video picture comprises: following the left and right split screen modes, the first video picture and the second path The video screen is synthesized.
在另一个实施例中,所述将所述第一路视频画面和所述第二路视频画面进 行合成,包括:按照上下分屏模式,将所述第一路视频画面和所述第二路视频画面进行合成。In another embodiment, the first video picture and the second video picture are The line synthesis comprises: synthesizing the first video picture and the second video picture according to a split screen mode.
在另一个实施例中,所述将所述第一路视频画面和所述第二路视频画面进行合成,包括:按照画中画模式,将所述第一路视频画面和所述第二路视频画面进行合成。In another embodiment, the synthesizing the first video picture and the second video picture comprises: following the picture-in-picture mode, the first video picture and the second path The video screen is synthesized.
在另一个实施例中,该方法还包括:In another embodiment, the method further includes:
在所述视频直播页面上显示合成方式切换选项,所述合成方式切换选项用于指示所述第一路视频画面和所述第二路视频画面的合成方式;Displaying, in the video live broadcast page, a synthetic mode switching option, where the synthetic mode switching option is used to indicate a manner of synthesizing the first video image and the second video image;
当检测到合成方式切换指令的触发操作后,基于所述合成方式切换指令指示的合成方式,将所述第一路视频画面和所述第二路视频画面进行合成,得到新的目标视频画面,向所述服务器发送所述新的目标视频画面,以使所述服务器将所述新的目标视频画面转发至所述观众终端。After detecting the triggering operation of the synthesis mode switching instruction, synthesizing the first video picture and the second video picture according to the synthesis mode indicated by the synthesis mode switching instruction, to obtain a new target video picture, Sending the new target video picture to the server to cause the server to forward the new target video picture to the viewer terminal.
上述所有可选技术方案,可以采用任意结合形成本公开的可选实施例,在此不再一一赘述。All of the above optional technical solutions may be combined to form an optional embodiment of the present disclosure, and will not be further described herein.
图2A是根据一示例性实施例示出的一种视频直播方法的流程图,交互主体为主播终端、服务器和观众终端。其中,主播终端指代移动终端,观众终端既可指代移动终端也可指代固定终端。以主播终端先启动前置摄像头进行视频画面拍摄,后启动后置摄像头进行视频画面拍摄为例,如图2A所示,包括以下步骤。FIG. 2A is a flowchart of a video live broadcast method according to an exemplary embodiment, where an interactive host is a host broadcast terminal, a server, and a viewer terminal. The anchor terminal refers to a mobile terminal, and the audience terminal can refer to both a mobile terminal and a fixed terminal. Taking the anchor terminal to start the front camera for video screen shooting, and then starting the rear camera for video screen shooting, as shown in FIG. 2A, the following steps are included.
在步骤201中,主播终端在视频直播页面上播放前置摄像头所拍摄的第一路视频画面。In step 201, the anchor terminal plays the first video picture captured by the front camera on the live video page.
通常情况下,对于观众用户来说主播画面是其最想要看到的,同理对于主播用户来说主播画面也是其最想展示给大家的,因此外景画面的重要程度一般是低于主播画面的。所以,主播用户在利用主播终端进行直播时,首选是启动前置摄像头进行拍摄。其中,主播终端可为智能手机或者平板电脑等,本公开 实施例对此不进行具体限定。Usually, for the viewer users, the anchor screen is the most wanted to see. Similarly, for the anchor user, the anchor screen is also the most wanted to show it to everyone, so the importance of the exterior scene is generally lower than the anchor screen. of. Therefore, when the anchor user is using the anchor terminal for live broadcast, the preferred method is to start the front camera for shooting. Wherein, the anchor terminal can be a smart phone or a tablet computer, etc., the present disclosure The embodiment does not specifically limit this.
主播终端上的直播软件可实时获取前置摄像头所拍摄的第一路视频画面,并将其在视频直播页面上进行播放显示。与此同时,主播终端上的直播软件还会将前置摄像头所拍摄的第一路视频画面和直播间标识实时上传至服务器,由服务器根据该直播间标识确定观看该主播用户直播的观众用户标识,并根据该观众用户标识将第一路视频画面下发至观众终端。若观众终端也安装有该直播软件,则可同步跟主播终端显示第一路视频画面,且视频画面的播放进度一致。需要说明的是,在本公开实施例中以第一路视频画面对前置摄像头所拍摄的内容进行统称,在后续步骤中与此类似以第二路视频画面对后置摄像头所拍摄的内容进行统称。其中,直播间标识是指直播间的名称或编号等,可以由服务器为该直播间生成。观众终端可通过选择直播间标识或者输入直播间标识进入该直播间。The live broadcast software on the anchor terminal can obtain the first video image captured by the front camera in real time and play it on the live video page. At the same time, the live broadcast software on the anchor terminal also uploads the first video image and the live broadcast identifier captured by the front camera to the server in real time, and the server determines to view the audience user identifier of the broadcast user live broadcast according to the live broadcast identifier. And sending the first video screen to the audience terminal according to the viewer user identifier. If the live broadcast software is also installed in the viewer terminal, the first video screen can be displayed synchronously with the anchor terminal, and the playback progress of the video screen is consistent. It should be noted that, in the embodiment of the present disclosure, the content captured by the front camera is collectively referred to as the first video image, and the content captured by the rear camera is similar to the second video image in the subsequent step. Collectively. The live broadcast identifier refers to the name or number of the live broadcast room, and can be generated by the server for the live broadcast room. The viewer terminal can enter the live room by selecting the live room logo or entering the live room logo.
在步骤202中,主播终端在视频直播页面上显示后置摄像头的第一启动选项;当检测到第一启动选项的触发操作后,启动后置摄像头进行拍摄。In step 202, the anchor terminal displays the first startup option of the rear camera on the live video page; after detecting the trigger operation of the first startup option, the rear camera is activated to shoot.
在一些特殊的场景下,有时主播用户可能需要对外景画面进行展示,比如向观众用户展示一下外面的暴雨有多大、对眼前发生的事故场景进行现场直播等。在本公开实施例中,为了能够方便主播用户对外景进行展示,在视频直播页面上提供了一个后置摄像头的启动选项。In some special scenarios, sometimes the anchor user may need to display the external scene, such as showing the audience the amount of heavy rain outside, and the live broadcast of the accident scene in front of the scene. In the embodiment of the present disclosure, in order to facilitate the host user to display the external scene, a startup option of the rear camera is provided on the live video page.
其中,该第一启动选项具体可为一个可供主播用户进行点击的虚拟按键。当主播终端检测到主播用户点击了该第一启动选项后,直播软件主动调用后置摄像头进行视频画面拍摄。该第一启动选项可显示在视频直播页面上除用于播放视频画面之外的任何区域,本公开实施例对此不进行具体限定。The first startup option may specifically be a virtual button that can be clicked by the anchor user. When the anchor terminal detects that the anchor user clicks the first startup option, the live broadcast software actively calls the rear camera to perform video screen shooting. The first startup option may be displayed on the video live page, except for any area for playing the video screen, which is not specifically limited in the embodiment of the present disclosure.
上述步骤201和步骤202描述了当前仅前置摄像头处于拍摄状态下,如何再启动后置摄像头进行视频画面拍摄的过程。需要说明的是,若当前仅后置摄像头处于拍摄状态,则还可在视频直播页面上显示前置摄像头的第二启动选项。当主播终端检测到该第二启动选项的触发操作后,再启动前置摄像头进行 视频画面拍摄。也即,在一个摄像头启动的状态下,通过视频直播页面上显示的启动选项,可触发启动另一个摄像头。The above steps 201 and 202 describe how to restart the rear camera for video screen shooting only when the front camera is in the shooting state. It should be noted that if only the rear camera is currently in the shooting state, the second startup option of the front camera can also be displayed on the live video page. After the anchor terminal detects the triggering operation of the second startup option, the front camera is further activated. Video screen shooting. That is, when a camera is activated, another camera can be triggered by the startup option displayed on the live video page.
在步骤203中,主播终端将前置摄像头拍摄的第一路视频画面和后置摄像头拍摄的第二路视频画面进行合成,得到目标视频画面。In step 203, the anchor terminal synthesizes the first video picture captured by the front camera and the second video picture captured by the rear camera to obtain a target video picture.
在本公开实施例中,由于主播终端的前置摄像头和后置摄像头均处于拍摄状态,因此会实时拍摄主播画面和外景画面。而直播软件在获取到前置摄像头拍摄的第一路视频画面和后置摄像头拍摄的第二路视频画面后,为了同时对主播画面和外景画面进行展示,会将第一路视频画面和第二时频画面按照下述几种方式进行合成,使得主播终端上可展示如图2B至图2D所示的目标视频画面。In the embodiment of the present disclosure, since both the front camera and the rear camera of the anchor terminal are in the shooting state, the anchor screen and the exterior scene screen are captured in real time. After the live video software obtains the first video picture taken by the front camera and the second video picture taken by the rear camera, in order to display the anchor picture and the exterior picture at the same time, the first video picture and the second picture will be displayed. The time-frequency picture is synthesized in the following manners, so that the target video picture as shown in FIG. 2B to FIG. 2D can be displayed on the anchor terminal.
第一种方式、按照图2B所示的左右分屏模式,将第一路视频画面和第二路视频画面进行合成。In the first mode, the first video picture and the second video picture are combined according to the left and right split screen modes shown in FIG. 2B.
针对第一种方式,左右分屏模式指代将视频直播页面上全部用于播放视频画面的显示区域划分为左右两个部分。其中一个部分用来显示前置摄像头所拍摄的第一路视频画面,另一个部分用来显示后置摄像头所拍摄的第二路视频画面。受限于主播终端屏幕的大小,左右分屏模式通常用于主播终端处于横屏状态下。时下终端均配置有传感器,根据传感器传回的传感器信息,可以判断主播终端当前的姿态是横屏状态还是竖屏状态。在本公开实施例中,主播终端可以配置磁场传感器、陀螺仪传感器、六轴朝向传感器或九轴旋转矢量传感器等,本发明实施例对此不做限定。For the first mode, the left and right split screen mode refers to dividing the display area for playing the video picture on the live video page into two parts. One part is used to display the first video picture taken by the front camera, and the other part is used to display the second video picture taken by the rear camera. Limited to the size of the anchor terminal screen, the left and right split screen mode is usually used when the anchor terminal is in the landscape state. At present, the terminal is configured with a sensor, and according to the sensor information returned by the sensor, it can be determined whether the current posture of the anchor terminal is a horizontal screen state or a vertical screen state. In the embodiment of the present disclosure, the anchor terminal may be configured with a magnetic field sensor, a gyro sensor, a six-axis orientation sensor, or a nine-axis rotation vector sensor, which is not limited in this embodiment of the present invention.
在按照上述分屏模式进行视频画面合成时,通常采取逐个图像帧进行合成的方法。比如,在后置摄像头启动后,在将前置摄像头拍摄且当前正在播放的图像帧进行一定程度剪裁,在将后置摄像头拍摄到的第一帧图像也进行一定程度剪裁后,将剪裁后的两个图像帧按照左右分屏模式合成,将后置摄像头拍摄到的第二帧图像与前置摄像头拍摄且下一帧播放的图像也同样按照左右分屏模式合成,依此类推,本公开实施例对此不进行具体限定。 When performing video picture synthesis in accordance with the above-described split screen mode, a method of synthesizing image frames one by one is usually adopted. For example, after the rear camera is started, the image frame that is captured by the front camera and currently being played is cut to a certain extent, and the first frame image captured by the rear camera is also trimmed to some extent, and then the cropped image is cut. The two image frames are synthesized according to the left and right split screen modes, and the second frame image captured by the rear camera and the image captured by the front camera and the next frame are also synthesized according to the left and right split screen modes, and so on. This example does not specifically limit this.
第二种方式、按照图2C所示的上下分屏模式,将第一路视频画面和第二路视频画面进行合成。In the second mode, the first video picture and the second video picture are combined according to the up and down split mode shown in FIG. 2C.
针对第二种方式,上下分屏模式指代将视频直播页面上全部用于播放视频画面的显示区域划分为上下两个部分。其中一个部分用来显示前置摄像头所拍摄的第一路视频画面,另一个部分用来显示后置摄像头所拍摄的第二路视频画面。受限于主播终端屏幕的大小,上下分屏模式通常用于主播终端处于竖屏状态下。在按照上述分屏模式进行视频画面合成时,通常采取逐个图像帧进行合成的方法。比如,在后置摄像头启动后,在将前置摄像头拍摄且当前正在播放图像帧进行一定程度剪裁,在将后置摄像头拍摄到的第一帧图像也进行一定程度剪裁后,将剪裁后的两个图像帧按照上下分屏模式合成,将后置摄像头拍摄到的第二帧图像与前置摄像头拍摄且下一帧播放的图像也同样按照上下分屏模式合成,依此类推,本公开实施例对此不进行具体限定。For the second mode, the upper and lower split screen mode refers to dividing the display area for playing the video screen on the live video page into two upper and lower parts. One part is used to display the first video picture taken by the front camera, and the other part is used to display the second video picture taken by the rear camera. Limited by the size of the anchor terminal screen, the up and down split mode is usually used when the anchor terminal is in the portrait state. When performing video picture synthesis in accordance with the above-described split screen mode, a method of synthesizing image frames one by one is usually adopted. For example, after the rear camera is started, the image frame that is captured by the front camera and currently playing is clipped to a certain extent, and the first frame image captured by the rear camera is also trimmed to some extent, and the two cropped images are cut. The image frames are synthesized according to the upper and lower split screen modes, and the second frame image captured by the rear camera and the image captured by the front camera and the next frame are also synthesized in the upper and lower split mode, and so on, the embodiment of the present disclosure This is not specifically limited.
第三种方式、按照图2D和2E所示的画中画模式,将第一路视频画面和第二路视频画面进行合成;In a third manner, the first video picture and the second video picture are combined according to the picture-in-picture mode shown in FIGS. 2D and 2E;
针对第三种方式,画中画模式指代将视频直播页面上全部用于播放视频画面的显示区域划分为两个部分。其中一个部分包含在另一个部分的区域内。与上述两种情况类似,其中一个部分用来显示前置摄像头所拍摄的第一路视频画面,另一个部分用来显示后置摄像头所拍摄的第二路视频画面。画中画模式在主播终端处于竖屏状态或横屏状态下均适用。在按照上述分屏模式进行视频画面合成时,通常采取逐个图像帧进行合成的方法。比如,在后置摄像头启动后,在将前置摄像头拍摄且当前正在播放图像帧的宽高进行一定程度等比压缩,在将后置摄像头拍摄到的第一帧图像的宽高进行一定程度等比压缩后,将压缩后的两个图像帧按照画中画模式合成,将后置摄像头拍摄到的第二帧图像与前置摄像头拍摄且下一帧播放的图像也同样按照画中画模式合成,依此类推,本公开实施例对此不进行具体限定。For the third mode, the picture-in-picture mode refers to dividing the display area for playing a video picture on the live video page into two parts. One part is contained in the area of the other part. Similar to the above two cases, one part is used to display the first video picture taken by the front camera, and the other part is used to display the second video picture taken by the rear camera. The picture-in-picture mode is applicable when the anchor terminal is in the portrait or landscape mode. When performing video picture synthesis in accordance with the above-described split screen mode, a method of synthesizing image frames one by one is usually adopted. For example, after the rear camera is activated, the width and height of the image frame currently being captured by the front camera are compressed to a certain extent, and the width and height of the first frame image captured by the rear camera are subjected to a certain degree. After compression, the compressed two image frames are synthesized according to the picture-in-picture mode, and the second frame image captured by the rear camera and the image captured by the front camera and the next frame are also synthesized in the picture-in-picture mode. And the like, the embodiment of the present disclosure does not specifically limit this.
在步骤204中,主播终端播放目标视频画面,并将目标视频画面和直播间 标识发送至服务器。In step 204, the anchor terminal plays the target video picture, and the target video picture and the live broadcast room The ID is sent to the server.
在本公开实施例中,主播终端的直播软件在将第一路视频画面和第二路视频画面合成后,可直接在主播终端的视频直播页面上播放该目标视频画面。如果该目标视频画面是按照左右分屏模式合成的,那么主播终端会如图2B所示,在视频直播页面的第一显示区域播放第一路视频画面,第二显示区域播放第二路视频画面。可选地,第一显示区域位于第二显示区域的左侧。In the embodiment of the present disclosure, after the first video picture and the second video picture are combined, the live broadcast software of the anchor terminal can directly play the target video picture on the live video page of the anchor terminal. If the target video picture is synthesized according to the left and right split screen mode, the anchor terminal plays the first video picture in the first display area of the live video page and the second video area in the second display area, as shown in FIG. 2B. . Optionally, the first display area is located to the left of the second display area.
如果该目标视频画面是按照上下分屏模式合成的,那么主播终端会如图2C所示,在视频直播页面的第三显示区域播放第一路视频画面,第四显示区域播放第二路视频画面。可选地,第三显示区域位于第四显示区域的上方。If the target video picture is synthesized according to the upper and lower split screen modes, the anchor terminal will play the first video picture in the third display area of the live video page, and the second display area plays the second video picture as shown in FIG. 2C. . Optionally, the third display area is located above the fourth display area.
如果该目标视频画面是按照画中画模式合成的,那么主播终端会如图2D所示,在视频直播页面的第五显示区域播放第一路视频画面,第六显示区域播放第二路视频画面。可选地,第六显示区域位于第五显示区域内。If the target video picture is synthesized according to the picture-in-picture mode, the anchor terminal plays the first video picture in the fifth display area of the live video page, and the second display area plays the second video picture, as shown in FIG. 2D. . Optionally, the sixth display area is located in the fifth display area.
在本公开实施例中主播终端采用了前置摄像头和后置摄像头的双摄像头直播方式,为了使得观众终端也可同步看到主播画面和外景画面,主播终端会实时向服务器发送目标视频画面和直播间标识,以使服务器根据该直播间标识确定观看该主播直播的全部观众用户,并向全部观众用户发送该目标视频画面。详细过程参见下述步骤205。In the embodiment of the present disclosure, the anchor terminal adopts the dual camera live broadcast mode of the front camera and the rear camera. In order to enable the viewer terminal to simultaneously view the anchor screen and the exterior scene, the anchor terminal sends the target video screen and the live broadcast to the server in real time. And identifying, so that the server determines to view all the audience users of the anchor live broadcast according to the live broadcast identifier, and sends the target video screen to all the audience users. For the detailed process, see step 205 below.
需要说明的是,为了提升用户体验,本公开实施例还在主播终端的视频直播页面上提供了合成方式切换选项,在主播用户触发该合成方式切换选项后,会触发生成合成方式切换指令,该合成方式切换指令指示了第一路视频画面和第二路视频画面的合成方式。其中,该合成方式切换选项具体包含两种类型,以第一切换选项和第二切换选项指代为例,其中第一切换选项用于指示主播终端将第一路视频画面和第二路视频画面切换显示区域进行合成。也即,当主播终端检测到第一切换选项的触发操作后,从此刻开始,主播终端会基于切换后的显示区域,将前置摄像头拍摄的第一路视频画面和后置摄像头拍摄的第二路视频画面按照初始分屏模式进行合成,得到新的目标视频画面,并向观众终端 发送新的目标视频画面。同时,主播终端在原始播放第一路视频画面的显示区域播放第二路视频画面,在原始播放第二路视频画面的显示区域播放第一路视频画面。It should be noted that, in order to improve the user experience, the embodiment of the present disclosure further provides a synthetic mode switching option on the live video broadcast page of the anchor terminal, and after the anchor user triggers the synthetic mode switching option, the synthetic mode switching instruction is triggered. The synthesis mode switching instruction indicates a combination of the first video picture and the second video picture. The composite mode switching option specifically includes two types, where the first switching option and the second switching option are used as an example, where the first switching option is used to instruct the anchor terminal to switch the first video picture and the second video picture. The display area is synthesized. That is, after the anchor terminal detects the triggering operation of the first switching option, from now on, the anchor terminal will take the first video picture taken by the front camera and the second picture taken by the rear camera based on the switched display area. The road video picture is synthesized according to the initial split screen mode to obtain a new target video picture and to the viewer terminal. Send a new target video screen. At the same time, the anchor terminal plays the second video picture in the display area of the original playing first video picture, and plays the first video picture in the display area of the original playing second video picture.
举例来说,参见图2D和图2E,针对画中画模式来说,如果初始主播终端将第一路视频画面在主显示区域进行显示,第二路视频画面在副显示区域进行显示,那么在主播用户点击该第一切换选项后,主播终端会将第一路视频画面在副显示区域进行显示,将第二路视频画面在主显示区域进行显示。其中,主显示区域的面积一般远大于副显示区域的面积。For example, referring to FIG. 2D and FIG. 2E, for the picture-in-picture mode, if the initial anchor terminal displays the first video picture in the main display area and the second video picture is displayed in the sub-display area, then After the anchor user clicks the first switching option, the anchor terminal displays the first video screen in the sub-display area, and displays the second video screen in the main display area. The area of the main display area is generally much larger than the area of the sub display area.
在另一个实施例中,除了视频画面可在不同显示区域之间进行切换外,本公开实施例还支持视频画面在不同的分屏模式之间进行切换的过程。具体地,在主播终端的视频直播页面上提供了一个分屏模式的第二切换选项。其中,该第二切换选项具体可由一个展示分屏模式的下拉列表和一个确定按钮组成。当主播用户选中下拉列表中的一个子表项并点击确定按钮后,主播终端确定检测到第二切换选项的触发操作,将该子表项指示的分屏模式确定为目标分屏模式;从此刻开始,主播终端根据该目标分屏模式,将第一路视频画面和第二路视频画面进行合成,得到新的目标视频画面,并向观众终端发送新的目标视频画面。此外,还可每一种分屏模式对应一个单独的切换选项,本公开实施例对此不进行具体限定。In another embodiment, in addition to the video picture being switchable between different display areas, embodiments of the present disclosure also support the process of switching video pictures between different split screen modes. Specifically, a second switching option of the split screen mode is provided on the live video page of the anchor terminal. The second switching option may be specifically composed of a drop-down list displaying a split screen mode and an OK button. After the anchor user selects a sub-list item in the drop-down list and clicks the OK button, the anchor terminal determines that the triggering operation of the second switching option is detected, and determines the split screen mode indicated by the sub-item as the target split screen mode; Initially, the anchor terminal synthesizes the first video picture and the second video picture according to the target split mode, obtains a new target video picture, and transmits a new target video picture to the viewer terminal. In addition, each of the split screen modes may also be associated with a single switching option, which is not specifically limited in the embodiment of the present disclosure.
举例来说,参见图2B和图2C,如果初始主播终端如图2B所示显示目标视频画面,那么在主播用户点击该第二切换选项后,主播终端将对第一路视频画面和第二时频画面采取图2C所示的上下分屏模式进行合成,这样主播终端上便会显示诸如图2C所示的画面。For example, referring to FIG. 2B and FIG. 2C, if the initial anchor terminal displays the target video screen as shown in FIG. 2B, after the anchor user clicks the second switching option, the anchor terminal will view the first video screen and the second time. The frequency picture is synthesized by the up and down split mode shown in Fig. 2C, so that the picture shown in Fig. 2C is displayed on the anchor terminal.
在步骤205中,服务器在接收到目标视频画面和直播间标识后,确定与该直播间标识关联的观众用户标识,并基于该观众用户标识将目标视频画面发送至观众终端。In step 205, after receiving the target video picture and the live broadcast identifier, the server determines the audience user identifier associated with the live broadcast identifier, and transmits the target video screen to the viewer terminal based on the viewer user identifier.
在本公开实施例中,针对一个直播间来说,服务器一般会存储有直播间标 识与观众用户标识之间的对应关系,以便于记录观看该直播间视频直播的观众用户。因此,服务器在接收到该直播间标识后,根据上述对应关系便可确定与该直播间标识关联的观众用户标识,并将目标视频画面下发至该直播间的全部观众用户。In the embodiment of the present disclosure, for a live broadcast room, the server generally stores a live broadcast standard. The correspondence between the user identification and the viewer user identification is recorded to facilitate recording of the viewer user watching the live broadcast of the live video. Therefore, after receiving the identifier of the live broadcast, the server may determine the audience user identifier associated with the live broadcast identifier according to the corresponding relationship, and deliver the target video screen to all audience users in the live broadcast room.
在步骤206中,观众终端在接收到服务器发送的目标视频画面后,确定在进行目标视频画面合成时采用的分屏模式,根据分屏模式在视频直播页面上播放目标视频画面。In step 206, after receiving the target video picture sent by the server, the audience terminal determines the split screen mode used when the target video picture is synthesized, and plays the target video picture on the live video page according to the split mode.
在本公开实施例中,观众终端在接收到主播终端发送的目标视频画面后,如果该目标视频画面是按照左右分屏模式合成的,那么观众终端会如图2B所示,在视频直播页面的第一显示区域播放第一路视频画面,在第二显示区域播放第二路视频画面。可选地,第一显示区域位于第二显示区域的左侧。In the embodiment of the present disclosure, after receiving the target video picture sent by the anchor terminal, if the target video picture is synthesized according to the left and right split screen mode, the audience terminal may be displayed on the live video page as shown in FIG. 2B. The first display area plays the first video picture, and the second display area plays the second video picture. Optionally, the first display area is located to the left of the second display area.
如果该目标视频画面是按照上下分屏模式合成的,那么观众终端会如图2C所示,在视频直播页面的第三显示区域播放第一路视频画面,在第四显示区域播放第二路视频画面。可选地,第三显示区域位于第四显示区域的上方。If the target video picture is synthesized according to the upper and lower split screen modes, the viewer terminal plays the first video picture in the third display area of the live video page and the second video in the fourth display area, as shown in FIG. 2C. Picture. Optionally, the third display area is located above the fourth display area.
如果该目标视频画面是按照画中画模式合成的,那么观众终端会如图2D所示,在视频直播页面的第五显示区域播放第一路视频画面,在第六显示区域播放第二路视频画面。可选地,第六显示区域位于第五显示区域内。If the target video picture is synthesized according to the picture-in-picture mode, the viewer terminal plays the first video picture in the fifth display area of the live video page and the second video in the sixth display area as shown in FIG. 2D. Picture. Optionally, the sixth display area is located in the fifth display area.
需要说明的是,观众终端对目标视频画面的显示方式同主播终端一致,这样便可保证主播终端和观众终端显示的直播画面是一致的。比如,显示在主播终端左侧的画面和显示在观众终端左侧的画面相同。这样假设主播用户通知观众用户一起关注一下左侧画面中出现的某个事物,则不会出现观众用户需要在其右侧画面方可找到的情况。It should be noted that the display mode of the target video screen by the audience terminal is the same as that of the anchor terminal, so that the live video displayed by the anchor terminal and the audience terminal is consistent. For example, the screen displayed on the left side of the anchor terminal is the same as the screen displayed on the left side of the viewer terminal. This assumes that the anchor user notifies the viewer user to pay attention to something that appears in the left picture, and there is no situation where the viewer user needs to find it on the right side of the screen.
本公开实施例提供的方法,主播终端可启动前置摄像头和后置摄像头进行双摄像头的视频画面拍摄,并将前置摄像头拍摄的第一路视频画面和后置摄像头拍摄的第二路视频画面进行合成,从而显示涵盖前后置摄像头所拍摄画面的目标视频画面,并支持将目标视频画面发送至观众终端,使得观众终端也同步 播放目标视频画面,因此可同时完成主播画面和外景画面的展示,克服了在主播想要展示自己的时候不能展示外景,而在想要展示外景的时候又不能展示自己的缺陷,直播效果较好,用户粘性高。According to the method provided by the embodiment of the present disclosure, the anchor terminal can activate the front camera and the rear camera to perform video capture of the dual camera, and the first video image captured by the front camera and the second video image captured by the rear camera. Performing synthesis to display a target video picture covering the picture taken by the front and rear cameras, and supporting the transmission of the target video picture to the viewer terminal, so that the audience terminal is also synchronized Play the target video screen, so you can complete the display of the anchor screen and the exterior scene at the same time, overcoming the fact that the anchor can't display the exterior when you want to show yourself, but you can't show your own defects when you want to show the location, the live broadcast is better. The user is sticky.
图3是根据一示例性实施例示出的一种视频直播装置的框图,用于主播终端。参照图3,该装置包括获取模块301,合成模块302,发送模块303。FIG. 3 is a block diagram of a live video broadcast device for an anchor terminal, according to an exemplary embodiment. Referring to FIG. 3, the apparatus includes an acquisition module 301, a synthesis module 302, and a transmission module 303.
获取模块301,被配置为获取前置摄像头拍摄的第一路视频画面和后置摄像头拍摄的第二路视频画面;The obtaining module 301 is configured to acquire a first video image captured by the front camera and a second video image captured by the rear camera;
合成模块302,被被配置为将所述第一路视频画面和所述第二路视频画面进行合成,得到目标视频画面;The synthesizing module 302 is configured to synthesize the first video picture and the second video picture to obtain a target video picture;
发送模块303,被配置为将所述目标视频画面发送至服务器,以使所述服务器将所述目标视频画面转发至观众终端。The sending module 303 is configured to send the target video picture to the server, so that the server forwards the target video picture to the audience terminal.
在另一个实施例中,参见图4,该装置还包括:In another embodiment, referring to FIG. 4, the apparatus further includes:
第一显示模块304,被配置为若当前仅所述前置摄像头处于拍摄状态,则在视频直播页面上显示所述后置摄像头的第一启动选项;The first display module 304 is configured to display the first startup option of the rear camera on the live video page if only the front camera is currently in the shooting state;
启动模块305,被配置为当检测到所述第一启动选项的触发操作后,启动所述后置摄像头进行视频画面拍摄;The startup module 305 is configured to: after detecting the triggering operation of the first startup option, start the rear camera to perform video screen shooting;
所述第一显示模块304,还被配置为若当前仅所述后置摄像头处于拍摄状态,则在所述视频直播页面上显示所述前置摄像头的第二启动选项;The first display module 304 is further configured to display a second startup option of the front camera on the live video page if only the rear camera is currently in a shooting state;
所述启动模块305,还被配置为当检测到所述第二启动选项的触发操作后,启动所述前置摄像头进行视频画面拍摄。The startup module 305 is further configured to, after detecting the triggering operation of the second startup option, activate the front camera to perform video screen shooting.
在另一个实施例中,所述合成模块302,被配置为按照左右分屏模式,将所述第一路视频画面和所述第二路视频画面进行合成。In another embodiment, the synthesizing module 302 is configured to synthesize the first video picture and the second video picture according to a left and right split screen mode.
在另一个实施例中,所述合成模块302,被配置为按照上下分屏模式,将所述第一路视频画面和所述第二路视频画面进行合成。In another embodiment, the synthesizing module 302 is configured to synthesize the first video picture and the second video picture according to a top and bottom split mode.
在另一个实施例中,所述合成模块302,被配置为按照画中画模式,将所 述第一路视频画面和所述第二路视频画面进行合成。In another embodiment, the synthesizing module 302 is configured to follow the picture-in-picture mode. The first video picture and the second video picture are combined.
在另一个实施例中,参见图5,该装置还包括:In another embodiment, referring to FIG. 5, the apparatus further includes:
第二显示模块306,被配置为在视频直播页面上显示合成方式切换选项,所述合成方式切换选项用于指示所述第一路视频画面和所述第二路视频画面的合成方式;The second display module 306 is configured to display a composite mode switching option on the live video page, where the synthetic mode switching option is used to indicate a manner of synthesizing the first video image and the second video image;
所述合成模块302,还被配置为当检测到合成方式切换指令的触发操作后,基于所述合成方式切换指令指示的合成方式,将所述第一路视频画面和所述第二路视频画面进行合成,得到新的目标视频画面;The synthesizing module 302 is further configured to, after detecting the triggering operation of the synthesizing mode switching instruction, the first video picture and the second video picture based on the synthesizing manner indicated by the synthesizing mode switching instruction Perform synthesis to obtain a new target video screen;
所述发送模块303,还被配置为向所述服务器发送所述新的目标视频画面,以使所述服务器将所述新的目标视频画面转发至所述观众终端。The sending module 303 is further configured to send the new target video picture to the server, so that the server forwards the new target video picture to the audience terminal.
本公开实施例提供的装置,主播终端可启动前置摄像头和后置摄像头进行双摄像头的视频画面拍摄,并将前置摄像头拍摄的第一路视频画面和后置摄像头拍摄的第二路视频画面进行合成,从而显示涵盖前后置摄像头所拍摄画面的目标视频画面,并支持将目标视频画面发送至观众终端,使得观众终端也同步播放目标视频画面,因此可同时完成主播画面和外景画面的展示,克服了在主播想要展示自己的时候不能展示外景,而在想要展示外景的时候又不能展示自己的缺陷,直播效果较好,用户粘性高。In the device provided by the embodiment of the present disclosure, the anchor terminal can activate the front camera and the rear camera to perform video capture of the dual camera, and the first video image captured by the front camera and the second video frame captured by the rear camera. Synthesizing, thereby displaying a target video picture covering the picture taken by the front and rear cameras, and supporting the target video picture to be sent to the audience terminal, so that the audience terminal also plays the target video picture synchronously, so that the display of the anchor picture and the exterior picture can be completed at the same time. Overcoming the fact that the anchor can't show the location when he wants to show himself, but can't show his flaws when he wants to show the location, the live broadcast is better, and the user is sticky.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。With regard to the apparatus in the above embodiments, the specific manner in which the respective modules perform the operations has been described in detail in the embodiment relating to the method, and will not be explained in detail herein.
图6是根据一示例性实施例示出的一种视频直播装置600的框图。例如,装置600可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 6 is a block diagram of a video broadcast device 600, according to an exemplary embodiment. For example, device 600 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
参照图6,装置600可以包括以下一个或多个组件:处理组件602,存储器604,电源组件606,多媒体组件608,音频组件610,I/O(Input/Output,输入/输出)的接口612,传感器组件614,以及通信组件616。 Referring to FIG. 6, the apparatus 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an I/O (Input/Output) interface 612, Sensor component 614, and communication component 616.
处理组件602通常控制装置600的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件602可以包括一个或多个处理器620来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件602可以包括一个或多个模块,便于处理组件602和其他组件之间的交互。例如,处理组件602可以包括多媒体模块,以方便多媒体组件608和处理组件602之间的交互。 Processing component 602 typically controls the overall operation of device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 602 can include one or more processors 620 to execute instructions to perform all or part of the steps of the above described methods. Moreover, processing component 602 can include one or more modules to facilitate interaction between component 602 and other components. For example, processing component 602 can include a multimedia module to facilitate interaction between multimedia component 608 and processing component 602.
存储器604被配置为存储各种类型的数据以支持在装置600的操作。这些数据的示例包括用于在装置600上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如SRAM(Static Random Access Memory,静态随机存取存储器),EEPROM(Electrically-Erasable Programmable Read-Only Memory,电可擦除可编程只读存储器),EPROM(Erasable Programmable Read Only Memory,可擦除可编程只读存储器),PROM(Programmable Read-Only Memory,可编程只读存储器),ROM(Read-Only Memory,只读存储器),磁存储器,快闪存储器,磁盘或光盘。 Memory 604 is configured to store various types of data to support operation at device 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phone book data, messages, pictures, videos, and the like. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as SRAM (Static Random Access Memory), EEPROM (Electrically-Erasable Programmable Read-Only Memory, Erasable Programmable Read Only Memory (EPROM), PROM (Programmable Read-Only Memory), ROM (Read-Only Memory, Read only memory), magnetic memory, flash memory, disk or optical disk.
电源组件606为装置600的各种组件提供电力。电源组件606可以包括电源管理系统,一个或多个电源,及其他与为装置600生成、管理和分配电力相关联的组件。 Power component 606 provides power to various components of device 600. Power component 606 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 600.
多媒体组件608包括在所述装置600和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括LCD(Liquid Crystal Display,液晶显示器)和TP(Touch Panel,触摸面板)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件608包括一个前置摄像头和/或后置摄像头。当装置600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄 像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 608 includes a screen between the device 600 and the user that provides an output interface. In some embodiments, the screen may include an LCD (Liquid Crystal Display) and a TP (Touch Panel). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and/or a rear camera. Front camera and/or rear camera when device 600 is in operating mode, such as shooting mode or video mode The image header can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
音频组件610被配置为输出和/或输入音频信号。例如,音频组件610包括一个MIC(Microphone,麦克风),当装置600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器604或经由通信组件616发送。在一些实施例中,音频组件610还包括一个扬声器,用于输出音频信号。The audio component 610 is configured to output and/or input an audio signal. For example, the audio component 610 includes a MIC (Microphone) that is configured to receive an external audio signal when the device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in memory 604 or transmitted via communication component 616. In some embodiments, audio component 610 also includes a speaker for outputting an audio signal.
I/O接口612为处理组件602和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 612 provides an interface between the processing component 602 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
传感器组件614包括一个或多个传感器,用于为装置600提供各个方面的状态评估。例如,传感器组件614可以检测到设备600的打开/关闭状态,组件的相对定位,例如组件为装置600的显示器和小键盘,传感器组件614还可以检测装置600或装置600一个组件的位置改变,用户与装置600接触的存在或不存在,装置600方位或加速/减速和装置600的温度变化。传感器组件614可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件614还可以包括光传感器,如CMOS(Complementary Metal Oxide Semiconductor,互补金属氧化物)或CCD(Charge-coupled Device,电荷耦合元件)图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件614还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。 Sensor assembly 614 includes one or more sensors for providing device 600 with a status assessment of various aspects. For example, sensor component 614 can detect an open/closed state of device 600, a relative positioning of components, such as a display and a keypad of device 600, and sensor component 614 can also detect a change in position of one component of device 600 or device 600, user The presence or absence of contact with device 600, device 600 orientation or acceleration/deceleration and temperature variation of device 600. Sensor assembly 614 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 614 may also include a light sensor, such as a CMOS (Complementary Metal Oxide Semiconductor) or CCD (Charge-coupled Device) image sensor for use in imaging applications. In some embodiments, the sensor component 614 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件616被配置为便于装置600和其他设备之间有线或无线方式的通信。装置600可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件616经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件616还包括NFC(Near Field Communication,近场通信)模块,以促进短程 通信。例如,在NFC模块可基于RFID(Radio Frequency Identification,射频识别)技术,IrDA(Infra-red Data Association,红外数据协会)技术,UWB(Ultra Wideband,超宽带)技术,BT(Bluetooth,蓝牙)技术和其他技术来实现。 Communication component 616 is configured to facilitate wired or wireless communication between device 600 and other devices. The device 600 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, communication component 616 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes an NFC (Near Field Communication) module to facilitate short-range Communication. For example, the NFC module can be based on RFID (Radio Frequency Identification) technology, IrDA (Infra-red Data Association) technology, UWB (Ultra Wideband) technology, BT (Bluetooth) technology and Other technologies to achieve.
在示例性实施例中,装置600可以被一个或多个ASIC(Application Specific Integrated Circuit,应用专用集成电路)、DSP(Digital signal Processor,数字信号处理器)、DSPD(Digital signal Processor Device,数字信号处理设备)、PLD(Programmable Logic Device,可编程逻辑器件)、FPGA)(Field Programmable Gate Array,现场可编程门阵列)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, the device 600 may be configured by one or more ASICs (Application Specific Integrated Circuits), DSP (Digital Signal Processor), DSPD (Digital Signal Processor Device). Device), PLD (Programmable Logic Device), FPGA (Field Programmable Gate Array), controller, microcontroller, microprocessor or other electronic component implementation for performing the above method.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器604,上述指令可由装置600的处理器620执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、RAM(Random Access Memory,随机存取存储器)、CD-ROM(Compact Disc Read-Only Memory,光盘只读存储器)、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium comprising instructions, such as a memory 604 comprising instructions executable by processor 620 of apparatus 600 to perform the above method. For example, the non-transitory computer readable storage medium may be a ROM, a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, and optical data. Storage devices, etc.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行上述视频直播方法。A non-transitory computer readable storage medium that, when executed by a processor of a mobile terminal, enables the mobile terminal to perform the video live broadcast method described above.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be apparent to those skilled in the <RTIgt; The present application is intended to cover any variations, uses, or adaptations of the present invention, which are in accordance with the general principles of the present invention and include common general knowledge or conventional technical means in the art that are not disclosed in the present disclosure. . The specification and examples are to be considered as illustrative only,
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制。 It is to be understood that the invention is not limited to the details of the details of The scope of the invention is limited only by the appended claims.

Claims (13)

  1. 一种视频直播方法,其特征在于,用于主播终端,所述方法包括:A video live broadcast method, which is used for an anchor terminal, and the method includes:
    获取前置摄像头拍摄的第一路视频画面和后置摄像头拍摄的第二路视频画面;Obtaining the first video picture taken by the front camera and the second video picture taken by the rear camera;
    将所述第一路视频画面和所述第二路视频画面进行合成,得到目标视频画面;Combining the first video picture and the second video picture to obtain a target video picture;
    将所述目标视频画面发送至服务器,以使所述服务器将所述目标视频画面转发至观众终端。Transmitting the target video picture to a server to cause the server to forward the target video picture to a viewer terminal.
  2. 根据权利要求1所述的方法,其特征在于,所述获取前置摄像头拍摄的第一路视频画面和后置摄像头拍摄的第二路视频画面之前,所述方法还包括:The method according to claim 1, wherein the method further comprises: before acquiring the first video image captured by the front camera and the second video image captured by the rear camera, the method further comprising:
    若当前仅所述前置摄像头处于拍摄状态,则在视频直播页面上显示所述后置摄像头的第一启动选项;当检测到所述第一启动选项的触发操作后,启动所述后置摄像头进行视频画面拍摄;或,If only the front camera is currently in the shooting state, the first startup option of the rear camera is displayed on the live video page; when the triggering operation of the first startup option is detected, the rear camera is activated Take a video shot; or,
    若当前仅所述后置摄像头处于拍摄状态,则在所述视频直播页面上显示所述前置摄像头的第二启动选项;当检测到所述第二启动选项的触发操作后,启动所述前置摄像头进行视频画面拍摄。If only the rear camera is currently in the shooting state, displaying a second startup option of the front camera on the live video page; when the triggering operation of the second startup option is detected, starting the front Set the camera for video screen shooting.
  3. 根据权利要求1所述的方法,其特征在于,所述将所述第一路视频画面和所述第二路视频画面进行合成,包括:The method according to claim 1, wherein the synthesizing the first video picture and the second video picture comprises:
    按照左右分屏模式,将所述第一路视频画面和所述第二路视频画面进行合成。The first video picture and the second video picture are combined according to the left and right split mode.
  4. 根据权利要求1所述的方法,其特征在于,所述将所述第一路视频画面和所述第二路视频画面进行合成,包括:The method according to claim 1, wherein the synthesizing the first video picture and the second video picture comprises:
    按照上下分屏模式,将所述第一路视频画面和所述第二路视频画面进行合 成。Combining the first video picture and the second video picture according to a split screen mode to make.
  5. 根据权利要求1所述的方法,其特征在于,所述将所述第一路视频画面和所述第二路视频画面进行合成,包括:The method according to claim 1, wherein the synthesizing the first video picture and the second video picture comprises:
    按照画中画模式,将所述第一路视频画面和所述第二路视频画面进行合成。The first video picture and the second video picture are combined according to a picture-in-picture mode.
  6. 根据权利要求3至5中任一权利要求所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 3 to 5, wherein the method further comprises:
    在视频直播页面上显示合成方式切换选项,所述合成方式切换选项用于指示所述第一路视频画面和所述第二路视频画面的合成方式;Displaying a composite mode switching option on the live video page, where the synthetic mode switching option is used to indicate a manner of synthesizing the first video image and the second video image;
    当检测到合成方式切换指令的触发操作后,基于所述合成方式切换指令指示的合成方式,将所述第一路视频画面和所述第二路视频画面进行合成,得到新的目标视频画面,向所述服务器发送所述新的目标视频画面,以使所述服务器将所述新的目标视频画面转发至所述观众终端。After detecting the triggering operation of the synthesis mode switching instruction, synthesizing the first video picture and the second video picture according to the synthesis mode indicated by the synthesis mode switching instruction, to obtain a new target video picture, Sending the new target video picture to the server to cause the server to forward the new target video picture to the viewer terminal.
  7. 一种视频直播装置,其特征在于,用于主播终端,所述装置包括:A video broadcast device, characterized in that it is used for an anchor terminal, and the device includes:
    获取模块,被配置为获取前置摄像头拍摄的第一路视频画面和后置摄像头拍摄的第二路视频画面;The acquisition module is configured to acquire a first video image captured by the front camera and a second video image captured by the rear camera;
    合成模块,被被配置为将所述第一路视频画面和所述第二路视频画面进行合成,得到目标视频画面;a synthesis module configured to combine the first video picture and the second video picture to obtain a target video picture;
    发送模块,被配置为将所述目标视频画面发送至服务器,以使所述服务器将所述目标视频画面转发至观众终端。And a sending module configured to send the target video picture to a server, so that the server forwards the target video picture to the audience terminal.
  8. 根据权利要求7所述的装置,其特征在于,所述装置还包括:The device according to claim 7, wherein the device further comprises:
    第一显示模块,被配置为若当前仅所述前置摄像头处于拍摄状态,则在视频直播页面上显示所述后置摄像头的第一启动选项;The first display module is configured to display the first startup option of the rear camera on the live video page if only the front camera is currently in the shooting state;
    启动模块,被配置为当检测到所述第一启动选项的触发操作后,启动所述 后置摄像头进行视频画面拍摄;Activating module configured to start the triggering operation after detecting the triggering operation of the first startup option The rear camera performs video screen shooting;
    所述第一显示模块,还被配置为若当前仅所述后置摄像头处于拍摄状态,则在所述视频直播页面上显示所述前置摄像头的第二启动选项;The first display module is further configured to display a second startup option of the front camera on the live video page if only the rear camera is currently in a shooting state;
    所述启动模块,还被配置为当检测到所述第二启动选项的触发操作后,启动所述前置摄像头进行视频画面拍摄。The startup module is further configured to activate the front camera to perform video screen shooting after detecting a triggering operation of the second startup option.
  9. 根据权利要求7所述的装置,其特征在于,所述合成模块,被配置为按照左右分屏模式,将所述第一路视频画面和所述第二路视频画面进行合成。The apparatus according to claim 7, wherein said synthesizing module is configured to synthesize said first video picture and said second video picture in a left-right split mode.
  10. 根据权利要求7所述的装置,其特征在于,所述合成模块,被配置为按照上下分屏模式,将所述第一路视频画面和所述第二路视频画面进行合成。The apparatus according to claim 7, wherein the synthesizing module is configured to synthesize the first video picture and the second video picture according to a top and bottom split mode.
  11. 根据权利要求7所述的装置,其特征在于,所述合成模块,被配置为按照画中画模式,将所述第一路视频画面和所述第二路视频画面进行合成。The apparatus according to claim 7, wherein said synthesizing module is configured to synthesize said first video picture and said second video picture in a picture-in-picture mode.
  12. 根据权利要求9至11中任一权利要求所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 9 to 11, wherein the device further comprises:
    第二显示模块,被配置为在所述视频直播页面上显示合成方式切换选项,所述合成方式切换选项用于指示所述第一路视频画面和所述第二路视频画面的合成方式;a second display module, configured to display a synthetic mode switching option on the live video page, where the synthetic mode switching option is used to indicate a manner of synthesizing the first video image and the second video image;
    所述合成模块,还被配置为当检测到合成方式切换指令的触发操作后,基于所述合成方式切换指令指示的合成方式,将所述第一路视频画面和所述第二路视频画面进行合成,得到新的目标视频画面;The synthesizing module is further configured to: after detecting the triggering operation of the synthesizing mode switching instruction, perform the first video picture and the second video picture based on the synthesizing manner indicated by the synthesizing mode switching instruction Synthesize to get a new target video picture;
    所述发送模块,还被配置为向所述服务器发送所述新的目标视频画面,以使所述服务器将所述新的目标视频画面转发至所述观众终端。The sending module is further configured to send the new target video picture to the server, so that the server forwards the new target video picture to the audience terminal.
  13. 一种视频直播装置,其特征在于,包括: A video broadcast device, comprising:
    处理器;processor;
    用于存储处理器可执行指令的存储器;a memory for storing processor executable instructions;
    其中,所述处理器被配置为:获取前置摄像头拍摄的第一路视频画面和后置摄像头拍摄的第二路视频画面;将所述第一路视频画面和所述第二路视频画面进行合成,得到目标视频画面;将所述目标视频画面发送至服务器,以使所述服务器将所述目标视频画面转发至观众终端。 The processor is configured to: acquire a first video image captured by a front camera and a second video image captured by a rear camera; and perform the first video image and the second video image Synthesizing, obtaining a target video picture; transmitting the target video picture to a server, so that the server forwards the target video picture to the viewer terminal.
PCT/CN2016/087612 2016-06-29 2016-06-29 Video broadcast method and device WO2018000227A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2016/087612 WO2018000227A1 (en) 2016-06-29 2016-06-29 Video broadcast method and device
CN201680000673.4A CN106165430B (en) 2016-06-29 2016-06-29 Net cast method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/087612 WO2018000227A1 (en) 2016-06-29 2016-06-29 Video broadcast method and device

Publications (1)

Publication Number Publication Date
WO2018000227A1 true WO2018000227A1 (en) 2018-01-04

Family

ID=57341488

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/087612 WO2018000227A1 (en) 2016-06-29 2016-06-29 Video broadcast method and device

Country Status (2)

Country Link
CN (1) CN106165430B (en)
WO (1) WO2018000227A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110719416A (en) * 2019-09-30 2020-01-21 咪咕视讯科技有限公司 Live broadcast method, communication equipment and computer readable storage medium

Families Citing this family (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534695B (en) * 2016-11-28 2021-10-22 宇龙计算机通信科技(深圳)有限公司 Shooting method, shooting device and terminal
CN106658215A (en) * 2016-12-15 2017-05-10 北京小米移动软件有限公司 Method and device for pushing live file
CN106791448A (en) * 2017-02-27 2017-05-31 努比亚技术有限公司 A kind of mobile terminal and image pickup method
CN107071329A (en) * 2017-02-27 2017-08-18 努比亚技术有限公司 The method and device of automatic switchover camera in video call process
CN107018334A (en) * 2017-03-31 2017-08-04 努比亚技术有限公司 A kind of applied program processing method and device based on dual camera
CN108881926A (en) * 2017-05-15 2018-11-23 环达电脑(上海)有限公司 Driving network direct broadcasting device and method
CN107197094A (en) * 2017-05-23 2017-09-22 努比亚技术有限公司 One kind shooting display methods, terminal and computer-readable recording medium
CN107360400B (en) * 2017-07-27 2021-05-28 上海传英信息技术有限公司 Video recording method and video recording device for intelligent equipment camera
CN109413437A (en) 2017-08-15 2019-03-01 深圳富泰宏精密工业有限公司 Electronic equipment and the method for transmitting video flowing
CN108111920A (en) * 2017-12-11 2018-06-01 北京小米移动软件有限公司 Video information processing method and device
JP7135472B2 (en) * 2018-06-11 2022-09-13 カシオ計算機株式会社 Display control device, display control method and display control program
CN111356000A (en) * 2018-08-17 2020-06-30 北京达佳互联信息技术有限公司 Video synthesis method, device, equipment and storage medium
CN110475015A (en) * 2018-09-03 2019-11-19 王闯 A kind of mobile phone front camera and rear camera synchronous working dual display function
CN110139064B (en) * 2018-09-29 2021-10-01 广东小天才科技有限公司 Video call method of wearable device and wearable device
CN109688448A (en) * 2018-11-26 2019-04-26 杨豫森 A kind of double-visual angle camera live broadcast system and method
CN112019906A (en) * 2019-05-30 2020-12-01 上海哔哩哔哩科技有限公司 Live broadcast method, computer equipment and readable storage medium
CN110784674B (en) * 2019-10-30 2022-03-15 北京字节跳动网络技术有限公司 Video processing method, device, terminal and storage medium
CN110809100A (en) * 2019-10-30 2020-02-18 北京字节跳动网络技术有限公司 Video processing method and device, terminal and storage medium
CN110784735A (en) * 2019-11-12 2020-02-11 广州虎牙科技有限公司 Live broadcast method and device, mobile terminal, computer equipment and storage medium
CN111327823A (en) * 2020-02-28 2020-06-23 深圳看到科技有限公司 Video generation method and device and corresponding storage medium
CN111416952A (en) * 2020-03-05 2020-07-14 深圳市多亲科技有限公司 Mobile video live broadcast method and device and mobile terminal
CN111327856A (en) * 2020-03-18 2020-06-23 北京金和网络股份有限公司 Five-video acquisition and synthesis processing method and device and readable storage medium
CN113556482A (en) * 2020-04-24 2021-10-26 阿里巴巴集团控股有限公司 Video processing method, device and system based on multi-camera shooting
CN111698436A (en) * 2020-06-22 2020-09-22 杭州晶一智能科技有限公司 Range hood capable of being used for live video and control method thereof
CN112291519B (en) * 2020-10-21 2022-02-15 深圳慧源创新科技有限公司 Display screen switching method and device, electronic equipment and storage medium
CN114466131B (en) * 2020-11-10 2022-12-23 荣耀终端有限公司 Cross-device shooting method and related device
CN112672174B (en) * 2020-12-11 2023-07-07 咪咕文化科技有限公司 Split-screen live broadcast method, acquisition device, playing device and storage medium
CN113170225A (en) * 2021-02-09 2021-07-23 百果园技术(新加坡)有限公司 Display method, device, terminal and storage medium of picture window
CN113453022B (en) * 2021-06-30 2023-05-16 康佳集团股份有限公司 Image display method and device, television and storage medium
CN113573117A (en) * 2021-07-15 2021-10-29 广州方硅信息技术有限公司 Video live broadcast method and device and computer equipment
CN114143487A (en) * 2021-12-15 2022-03-04 深圳市前海手绘科技文化有限公司 Video recording method and device
WO2023142959A1 (en) * 2022-01-30 2023-08-03 华为技术有限公司 Photography method of multi-camera photography system, and device, storage medium and program product
CN114979746B (en) * 2022-05-13 2024-03-12 北京字跳网络技术有限公司 Video processing method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856617A (en) * 2012-12-03 2014-06-11 联想(北京)有限公司 Photographing method and user terminal
US20140240551A1 (en) * 2013-02-23 2014-08-28 Samsung Electronics Co., Ltd. Apparatus and method for synthesizing an image in a portable terminal equipped with a dual camera
CN104365088A (en) * 2012-06-08 2015-02-18 三星电子株式会社 Multiple channel communication using multiple cameras
CN105120172A (en) * 2015-09-07 2015-12-02 青岛海信移动通信技术股份有限公司 Photographing method for front and rear cameras of mobile terminal and mobile terminal
CN105357542A (en) * 2015-11-20 2016-02-24 广州华多网络科技有限公司 Live broadcast method, device and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140133363A (en) * 2013-05-10 2014-11-19 삼성전자주식회사 Display apparatus and Method for controlling the display apparatus thereof
CN103945275B (en) * 2014-03-28 2017-05-03 小米科技有限责任公司 Picture recording control method and device and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104365088A (en) * 2012-06-08 2015-02-18 三星电子株式会社 Multiple channel communication using multiple cameras
CN103856617A (en) * 2012-12-03 2014-06-11 联想(北京)有限公司 Photographing method and user terminal
US20140240551A1 (en) * 2013-02-23 2014-08-28 Samsung Electronics Co., Ltd. Apparatus and method for synthesizing an image in a portable terminal equipped with a dual camera
CN105120172A (en) * 2015-09-07 2015-12-02 青岛海信移动通信技术股份有限公司 Photographing method for front and rear cameras of mobile terminal and mobile terminal
CN105357542A (en) * 2015-11-20 2016-02-24 广州华多网络科技有限公司 Live broadcast method, device and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110719416A (en) * 2019-09-30 2020-01-21 咪咕视讯科技有限公司 Live broadcast method, communication equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN106165430B (en) 2019-11-08
CN106165430A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
WO2018000227A1 (en) Video broadcast method and device
WO2017181556A1 (en) Video game live streaming method and device
CN111818359B (en) Processing method and device for live interactive video, electronic equipment and server
WO2017219347A1 (en) Live broadcast display method, device and system
CN106791893B (en) Video live broadcasting method and device
EP3125530B1 (en) Video recording method and device
KR101680714B1 (en) Method for providing real-time video and device thereof as well as server, terminal device, program, and recording medium
WO2017101485A1 (en) Video display method and device
CN108419016B (en) Shooting method and device and terminal
CN106506448B (en) Live broadcast display method and device and terminal
WO2017181551A1 (en) Video processing method and device
US20210281909A1 (en) Method and apparatus for sharing video, and storage medium
CN106210496B (en) Photo shooting method and device
WO2017036038A1 (en) Video effect processing method and apparatus, and terminal device
KR20170023885A (en) Compositing and transmitting contextual information during an audio or video call
JP2016535351A (en) Video information sharing method, apparatus, program, and recording medium
CN106028137A (en) Live streaming processing method and apparatus
US11539888B2 (en) Method and apparatus for processing video data
JP6385429B2 (en) Method and apparatus for reproducing stream media data
CN109922252B (en) Short video generation method and device and electronic equipment
WO2016045323A1 (en) Method and device for controlling presentation of video picture
WO2018018508A1 (en) Playing control method and apparatus
US20170054906A1 (en) Method and device for generating a panorama
WO2017024713A1 (en) Video image controlling method, apparatus and terminal
WO2018053722A1 (en) Panoramic photo capture method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16906628

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16906628

Country of ref document: EP

Kind code of ref document: A1