Cloud device live broadcast method, system and computer readable storage medium
Through the collaborative work of local terminals and cloud terminals, image recognition and computer vision fusion technology are used to process multi-screen videos, which solves the problem of computing power pressure on live broadcast equipment, improves the live broadcast effect of cloud equipment, and achieves the diversity of live broadcast platforms.
Patent Information
- Application Number
- CN202211647697.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-21
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-12-21
AI Technical Summary
Existing technology makes it difficult to effectively use cloud equipment to reduce the computing power pressure of live broadcast equipment, especially when multi-image processing is required, resulting in poor live broadcast effects.
Through the collaborative work of local terminals and cloud terminals, video information is collected and processed, using image recognition and computer vision fusion technology to distinguish person videos and background videos, and fuse them to generate live broadcast information and push the stream to the live broadcast server to realize cloud device live streaming.
It realizes the transfer of computing power, improves the live broadcast effect, lowers the threshold of live broadcast equipment, and supports the development of streaming media and the diversity of live broadcast platforms.
Smart Images

Figure CN115967818B
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and in particular, relates to a cloud device live broadcast method, a cloud device live broadcast system, and a computer-readable storage medium. Background Art
[0002] With the continuous development of Internet technology, people's daily entertainment activities are becoming more and more abundant. For example, 4G network has brought about the era of universal live broadcast, and everyone can use their own devices to broadcast live video. At the same time, Internet technology is also changing with each passing day. With the advent of 5G technology, cloud devices are becoming more and more popular. By using high-speed, low-latency networks, a large amount of computing power can be transferred from the local area, reducing the computing pressure of local devices.
[0003] At the same time, it is understandable that for the sake of program effects, anchors usually need to collect multiple images at the same time for live broadcast, and sometimes even need to merge two images, such as live broadcast effects with people as foreground and other images as background. Such image processing often requires a lot of computing power support and high requirements for equipment. Therefore, how to use cloud devices to assist anchors in achieving better live broadcast effects and reduce the computing power pressure of live broadcast equipment is a technical problem that technicians in this field need to solve urgently.
[0004] The preceding description is intended to provide general background information and does not necessarily constitute prior art. Summary of the invention
[0005] Based on this, it is necessary to propose a cloud device live broadcast method, a cloud device live broadcast system and a computer-readable storage medium to address the above problems, which can realize the live broadcast of the cloud device through the collection and processing of the local first terminal and the second terminal.
[0006] The present application solves the technical problem by adopting the following technical solutions:
[0007] The present application provides a cloud device live broadcast method, which is applied to a cloud device, and includes the following steps: obtaining a first video according to confidential video information sent by a first terminal, the first video is collected by at least one second terminal, the first terminal is connected to the second terminal, and the confidential video information is obtained by the first terminal through preprocessing the first video; processing the first video to obtain a second video; generating live broadcast information according to the second video, and starting the live broadcast according to the live broadcast information
[0008] In an optional embodiment of the present application, obtaining a first video based on confidential video information sent by a first terminal includes: obtaining preprocessing information from the confidential video information, the preprocessing information including a decoding protocol and / or a decryption key; and performing a reverse processing operation on the confidential video information based on the preprocessing information to obtain the first video.
[0009] In an optional embodiment of the present application, the first video includes a first character video and a first background video; processing the first video includes: obtaining identification information in the first video, and distinguishing the first video as a first character video or a first background video according to the identification information; and / or, identifying whether there is portrait information that meets preset conditions in the first video through image recognition technology; if there is portrait information that meets the preset conditions, determining the first video as the first character video; if there is no portrait information that meets the preset conditions, determining the first video as the first background video.
[0010] In an optional embodiment of the present application, the first video is processed to obtain a second video, including: extracting a character video from the first character video based on character recognition technology; and fusing the character video with the first background video to obtain the second video based on computer vision fusion technology.
[0011] In an optional embodiment of the present application, live broadcast information is generated according to the second video, and live broadcast is started according to the live broadcast information, including: obtaining audio and a third video, the audio including at least one of pre-prepared audio, audio of the second video or audio of the third video, and the third video is a pre-prepared video; and injecting the audio into a virtual microphone of the hardware abstraction layer; injecting the second video and / or the third video into a virtual camera of the hardware abstraction layer; obtaining the live broadcast information output by the hardware abstraction layer, and pushing the live broadcast information to the live broadcast server to start the live broadcast.
[0012] The present application also provides a cloud device live broadcast method, which is applied to a first terminal and includes the following steps: obtaining a first video captured by at least one second terminal; preprocessing the obtained first video to obtain confidential video information; and sending the confidential video information to a cloud device so that the cloud device executes the steps of the aforementioned method.
[0013] In an optional embodiment of the present application, the acquired first video is preprocessed, including: acquiring encoding information of the first video; if the encoding information does not meet the sending conditions, performing a decoding operation on the first video so that the encoding information of the first video meets the sending conditions; and / or acquiring encryption information of the first video; if the encryption information does not meet the sending conditions, performing a deencryption operation on the first video so that the encryption information of the first video meets the sending conditions.
[0014] In an optional embodiment of the present application, the acquired first video is preprocessed to obtain confidential video information, including: obtaining preprocessing information according to a decoding operation and / or a decryption operation, the preprocessing information including a decoding protocol and / or a decryption key corresponding to the decoding operation and / or the decryption operation; and generating confidential video information based on the first video and the preprocessing information.
[0015] The present application also provides a cloud device live broadcast system, including a first terminal, a second terminal and a cloud device; the first terminal is used to obtain a first video captured by at least one second terminal; the acquired first video is pre-processed and sent to the cloud device; the second terminal is used to capture the first video; the cloud device is used to obtain the first video according to the confidential video information sent by the first terminal; the first video is processed to obtain a second video; live broadcast information is generated according to the second video, and live broadcast is started according to the live broadcast information.
[0016] The present application also provides a computer-readable storage medium storing a computer program, which implements the steps of the aforementioned method when the computer program is executed by a processor.
[0017] The embodiments of the present application have the following beneficial effects:
[0018] This application can send the collected first video to the cloud through the first terminal, and realize live broadcast after being processed by the cloud, which can realize the transfer of computing power, improve the live broadcast effect, lower the threshold of live broadcast, and better support the development of streaming media. At the same time, live broadcast can be realized by using cloud devices, and live broadcast can be carried out on multiple platforms, enriching the development of live broadcast platforms and the diversity of live broadcast.
[0019] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented according to the contents of the specification, and in order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the following preferred embodiments are specifically cited and described in detail with the accompanying drawings. It should be understood that the above general description and the detailed description below are only exemplary and explanatory, and cannot limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0021] in:
[0022] Figure 1 A schematic diagram of a flow chart of a cloud device live broadcast method applied to a cloud device in an embodiment;
[0023] Figure 2 It is a flowchart of a cloud device live broadcast method applied to a first terminal in one embodiment;
[0024] Figure 3It is a structural block diagram of a cloud device live broadcast system in one embodiment;
[0025] Figure 4 A timing diagram of a process of a cloud device live broadcast system executing a cloud device live broadcast method in one embodiment;
[0026] Figure 5 This is a schematic diagram of a first application scenario of a cloud device live broadcast system in an embodiment;
[0027] Figure 6 A schematic diagram of a second use scenario of a cloud device live broadcast system in one embodiment;
[0028] Figure 7 FIG. 4 is a structural block diagram of a computer device in one embodiment. DETAILED DESCRIPTION
[0029] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0030] With the rapid development and popularization of 5G, the data transmission speed of mobile device networks has been greatly improved, which better supports the development of streaming media; at the same time, with the increase in hardware diversity (hardware performance and configuration), cloud devices have developed rapidly. In this context, in order to enrich the development of live broadcast platforms and the diversity of live broadcasts, live broadcasts are realized with the help of cloud devices, and more computing power is transferred from local devices. A cloud device live broadcast method is proposed.
[0031] The present application provides a cloud device live broadcast method applied to a cloud device, including steps S110 to S130. To clearly describe the cloud device live broadcast method applied to a cloud device provided in this embodiment, please refer to Figure 1 .
[0032] Step S110: acquiring a first video according to the confidential video information sent by the first terminal, the first video being collected by at least one second terminal, the first terminal being connected to the second terminal, and the confidential video information being obtained by preprocessing the first video by the first terminal.
[0033] In one implementation, the cloud device can obtain the first video from the first terminal, that is, the cloud device and the first terminal can be connected via a wired or wireless communication technology. Among them, the wireless communication technology may include but is not limited to: Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), wideband code division multiple access (W-CDMA), code division multiple access (CDMA), time division multiple access (TDMA), Bluetooth, Wireless Fidelity (WiFi) (such as IEEE 802.11a, IEEE 802.11b, IEEE 802.11g and / or IEEE 802.11n), Voice over Internet protocol (VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for email, instant messaging and short messages, and any other suitable communication protocols, even those that have not yet been developed. Further, the cloud device may be a cloud server or other device that can obtain the relevant information sent by the first terminal and process it to achieve live broadcast. The first terminal is a device that sends information to the cloud device, that is, specifically, it can be a personal computer, a mobile device, etc. Specifically, the specific form of the mobile device can be, but not limited to, a mobile phone, a tablet computer, a personal digital assistant (English: personal digital assistant, abbreviated: PDA), a mobile Internet device (English: mobile Internet device, abbreviated: MID) and a wearable device (such as a smart watch). The mobile device can use an application (such as APP) to process and display the corresponding information and perform corresponding operations, thereby improving the use efficiency. Further, the first video is a video file collected by the second terminal and uploaded by the first terminal to the cloud device. The first video is a related video originally collected by the user. In terms of content, it can include a video of the host or a video of the subject being photographed, without specific restrictions.It is worth noting that the first terminal and the second terminal mentioned here are only terminals distinguished by function. The first terminal is used for uploading and the second terminal is used for collection. The two are not mutually exclusive in function. That is to say, in one embodiment, the first terminal and the second terminal can be the same device, which will be described in detail later and will not be expanded here.
[0034] In one embodiment, in step S110: a first video is obtained based on confidential video information sent by a first terminal, the first video is collected by at least one second terminal, the first terminal is connected to the second terminal, and the confidential video information is obtained by preprocessing the first video by the first terminal, including: obtaining preprocessing information from the confidential video information, the preprocessing information including a decoding protocol and / or a decryption key; and performing a reverse processing operation on the confidential video information according to the preprocessing information to obtain the first video.
[0035] In one embodiment, it is understandable that although the first terminal is a terminal device for sending, the data of the first video will not be sent directly, for example, there will be problems such as data security and inconsistent data formats. Therefore, the first video will undergo a preprocessing operation at the first terminal to ensure the security and uniformity of the data, or to compress the volume. At the same time, in the confidential video information sent, there may also be preprocessing information that can facilitate the cloud device to perform reverse operations on the data, and the preprocessing information includes the decoding protocol and / or decryption key used by the first terminal for preprocessing. The specific preprocessing operation will be described in detail during the execution of the first terminal, and will not be expanded here. It is only necessary to understand that the cloud device does not obtain the first video file itself, but the confidential video information obtained after preprocessing by the first terminal, and the confidential video information includes preprocessing information that can be used for reverse operations of the cloud device. The cloud device needs to process the data before obtaining the first video that can be used for editing. The specific implementation process can be: extracting preprocessing information from the confidential video information, and the preprocessing information includes the decoding protocol used for the decoding operation and / or the decryption key used for the decryption operation. Then, the confidential video information is subjected to reverse processing using the decoding protocol and / or the decryption key, thereby obtaining the first video of the original file.
[0036] Step S120: Process the first video to obtain a second video.
[0037] In one embodiment, it is understandable that the cloud device may obtain multiple first videos from the first terminal. For example, for a news live broadcast, the host may be located in the studio, while the reporter who is shooting needs to be located at the scene of the news. There is a certain spatial distance between the two, and the first videos of different pictures collected by each are uniformly pre-processed to generate a confidential video information and finally sent to the cloud device. Indeed, in order to achieve a better live broadcast effect, the first video with multiple pictures and multiple angles needs to be played simultaneously during playback for a more intuitive display. For example, the host's character portrait can be integrated with the background shot by the reporter. In other words, the first video needs to be processed to achieve a live broadcast picture that meets the host's needs, so as to improve the live broadcast effect.
[0038] In one embodiment, the first video includes a first character video and a first background video. Step S120: Processing the first video includes: obtaining identification information in the first video, and distinguishing the first video as a first character video or a first background video according to the identification information; and / or, identifying whether there is portrait information that meets a preset condition in the first video through image recognition technology; if there is portrait information that meets the preset condition, determining the first video as the first character video; if there is no portrait information that meets the preset condition, determining the first video as the first background video.
[0039] In one embodiment, based on the above embodiments, the first video can be divided into two types of videos, one is a character video, which is used as the foreground and belongs to the first character video; the other is a first background video with any picture as the background. The way of distinction can be determined manually or automatically. For the manual distinction method, when the first terminal uploads the first video, the first video can be manually marked to send the first video with identification information. Therefore, when the cloud device processes the first video, it can distinguish whether the first video belongs to the first character video or the first background video from the identification information in the first video. For example, for the embodiment of the news live broadcast described above, when the host uploads the first video of himself, it can be marked as the identification information belonging to the first character video; when the reporter shoots any picture and uploads it as the first video, it is manually marked as the first background video during the shooting and uploading process. In other embodiments, the cloud device can also judge by itself: Generally speaking, the live broadcast picture is the performance effect of the character as the foreground and the arbitrary picture as the background, so it is automatically judged and classified by determining whether there is portrait information that meets the preset conditions in the first video. The preset conditions may include but are not limited to: whether there is a portrait, whether the portrait duration exceeds a certain time threshold, whether the face is facing the camera, whether the character is speaking, etc. If the conditions are met, the first video can be automatically determined as the first person video; vice versa. Therefore, the accuracy of the first video classification is guaranteed by manual identification; automatic classification reduces the user's extra operations, ensuring the timeliness of the live broadcast screen and the live broadcast effect.
[0040] In one embodiment, step S120: processing the first video to obtain the second video includes: extracting a character video from the first character video based on character recognition technology; and fusing the character video with the first background video to obtain the second video based on computer vision fusion technology.
[0041] In one embodiment, it is understandable that if the first person video and the first background video are forcibly directly merged, it will obviously cause confusion in the picture. The effective video area in the first person video, which is mostly the foreground, is generally the space where the person is located, so the person needs to be extracted from the first person video. Specifically, that is, the person recognition technology can be used to extract the effective video area of the person from the first person video as the person video. Then, the person video as the foreground and the first background video as the background can be merged to obtain the second video through computer vision fusion technology.
[0042] Step S130: Generate live broadcast information according to the second video, and start live broadcast according to the live broadcast information.
[0043] In one embodiment, step S130: generating live broadcast information according to the second video, and starting live broadcast according to the live broadcast information, includes: obtaining audio and a third video, the audio includes at least one of pre-prepared audio, audio of the second video, or audio of the third video, and the third video is a pre-prepared video; and injecting the audio into a virtual microphone of the hardware abstraction layer; injecting the second video and / or the third video into a virtual camera of the hardware abstraction layer; obtaining the live broadcast information output by the hardware abstraction layer, and pushing the live broadcast information to the live broadcast server to start the live broadcast.
[0044] In one embodiment, the cloud device finally performs the live broadcast. Specifically, before the live broadcast, the audio and the third video can be additionally obtained, and then the second video can be fused. The audio can include but is not limited to the audio used for the connection or transition screen during the live broadcast, and can also be the audio of the second video or the third video. The second video is based on the fusion of the first video, and the audio source is also from the first video. It can be understood that in order to ensure the live broadcast effect, the audio of different first videos is selective in the fusion process. For example, taking the news live broadcast as an example, when the host of the first character video introduces the situation, only the audio of the first character video needs to be played; when the host needs to explain in combination with the background picture, the audio of the first character video and the audio of the first background video are needed at the same time; and when only the first background video is shown, the audio of the first background video is needed. Therefore, the audio of the second video is synthesized based on the audio of the first video, that is, in the process of processing the first video to obtain the second video, the audio of the first video has been processed, thereby obtaining the audio of the second video. Furthermore, during the broadcast of a program, there is usually a screen switching process. In order to ensure the smoothness of the screen switching, some transition animations or pre-prepared advertising videos are usually played. These videos are not shot in real time, but are prepared in advance, that is, the third video. According to the control, the second video can be overwritten for playback when necessary, so as to achieve the continuity of the screen switching, or to fill the gap between the screens, etc. At the same time, the third video obviously also has audio. When playing the third video, it is necessary to control the audio of the second video and the audio of the third video at the same time to ensure the continuity of the screen playback. Furthermore, only some separate prompt audio can be played to reflect the program effects such as enhancement, prompting or creating atmosphere in the screen, that is, it is pre-prepared audio. In general, in the process of realizing live broadcast, the audio and video can be separated separately, so that the mixed audio is injected into the virtual microphone of the hardware abstraction layer (HAL) of the microphone (mic); or the mixed second video and / or third video is injected into the virtual camera (camera) of the hardware abstraction layer. Finally, the live broadcast image that the audience can see is extracted from the hardware abstraction layer, that is, the live broadcast information, and the corresponding stream is pushed to the live broadcast server to realize the live broadcast. It is also worth noting that since the live broadcast is realized through the cloud device, that is to say, the host's account password and other login information are stored in the cloud device, and the cloud device is used to log in. At the same time, the live broadcast information is output through the HAL of the remote device, so the cloud device can connect to the ports of different live broadcast platforms to realize live broadcast, so that the host is not limited to a certain platform and is applicable to any platform, which fully guarantees the host's live broadcast freedom.Furthermore, the pre-prepared audio and third video mentioned above are all prepared in advance compared to the first video captured in real time and the second video processed according to the first video. Therefore, in order to save local storage space at the first terminal, the pre-prepared audio and third video can be stored in the cloud device or other storage devices, and when there is a demand according to the control of the first terminal, they can be extracted accordingly, thereby saving the storage space of the first terminal as a local device.
[0045] Based on the above description, it can be known that the live broadcast through the cloud device requires the first terminal device to provide the first video information, that is, the cooperation of the first terminal is required to fully realize it. Therefore, the present application also proposes a cloud device live broadcast method applied to the first terminal, including steps S210 to S230. For a clear description, please refer to Figure 2 , Figure 2 The figure is a flowchart of a cloud device live broadcast method applied to a first terminal in an embodiment.
[0046] Step S210: Acquire a first video captured by at least one second terminal.
[0047] In one embodiment, as described above, the terminal device is distinguished according to its function and divided into a first terminal and a second terminal. The second terminal can be a photographic device for real-time acquisition of live images as a first video and sending it to the first terminal. The first terminal serves as a preprocessing and sending device for the first video. The first device can be connected to one or more second terminals to obtain a first video captured by at least one second terminal. Furthermore, the first terminal and the second terminal are only functionally distinguished. From the functional distinction, it can be seen that the two functions are not mutually exclusive. Therefore, for a device, it can be used as a second terminal to capture the first video and as a first terminal to preprocess and send the first video. Further, since the device belongs to the first terminal, it can also be connected to other devices as second terminals to obtain the first video captured by other second terminals. The devices are distinguished according to their functions. At the same time, since the functions are not mutually exclusive, a certain device can belong to the first terminal and the second terminal at the same time. Therefore, the first terminal and the second terminal can have a variety of system settings, making the application scenarios more extensive. The specifics will be expanded in the system settings later, so it will not be repeated here.
[0048] Step S220: pre-processing the acquired first video to obtain confidential video information.
[0049] Step S230: Send the confidential video information to the cloud device so that the cloud device executes the steps of the above method.
[0050] In one embodiment, in S220: the acquired first video is preprocessed, including: acquiring encoding information of the first video; if the encoding information does not meet the sending conditions, performing a decoding operation on the first video so that the encoding information of the first video meets the sending conditions; and / or, acquiring encryption information of the first video; if the encryption information does not meet the sending conditions, performing a deencryption operation on the first video so that the encryption information of the first video meets the sending conditions.
[0051] In one embodiment, in S220: the acquired first video is preprocessed to obtain confidential video information, including: obtaining preprocessing information according to a decoding operation and / or a decryption operation, the preprocessing information including a decoding protocol and / or a decryption key corresponding to the decoding operation and / or the decryption operation; generating confidential video information based on the first video and the preprocessing information.
[0052] In one embodiment, the first terminal may be connected to multiple second terminals. Although the second terminals are all video acquisition devices, due to different types of devices, the encoding information between the multiple first videos obtained by the first terminal from different second terminals may be different, or the encoding information of several first videos may not meet the sending conditions. In this regard, before sending the first video, the encoding information of the first video can be obtained, and it can be determined whether the encoding information meets the preset sending conditions, such as whether the encoding information of the multiple first videos is unified, whether it is a preset encoding format, etc. If not, the first video is decoded so that the encoding information of the first video meets the sending conditions, thereby ensuring the uniformity of the encoding information of the first video received by the cloud device.
[0053] In one implementation, the cloud device may process first videos sent by multiple first terminals at the same time in some embodiments, so there will be security issues such as data confusion, interference, and data theft during the transmission process. To this end, the encryption information of the first video can be obtained to determine whether the encryption information meets the transmission conditions, such as whether encryption is performed, whether the safety factor meets the standard, and whether the encryption method meets the corresponding standard. If not, it is necessary to decrypt the first video so that the encryption information of the first video meets the transmission conditions, thereby avoiding data confusion that may occur when multiple first terminal devices are sent, and ensuring data security during data transmission.
[0054] In one embodiment, during the decoding operation, in order to ensure the uniformity of the coded information, a unified decoding protocol that meets the sending conditions is adopted; at the same time, a key will inevitably be generated during the decryption operation, and the key used for decryption is also the decryption key stored in the confidential video information. The decoding operation and / or the decryption operation are both items in the preprocessing, that is, the first video sent by the first terminal to the cloud device is the result after the protection processing, rather than the original first video. In order for the cloud device to accurately restore the original first video, it is necessary to set the above decoding protocol and / or decryption key in the information sent to the cloud device. For this purpose, the decoding protocol used in the decoding operation and / or the decryption key used in the decryption operation can be obtained to generate preprocessing information, and then the confidential video information is generated according to the first video and the preprocessing information. The information sent by the first terminal is not the data file of the first video itself, but the confidential video information after processing. It can not only enable the cloud terminal to extract pre-processing information from the confidential video information to realize the restoration of the first video, but also ensure the data security and the uniformity of the data format during data transmission, thus ensuring data security, providing data uniformity and increasing data processing efficiency.
[0055] Therefore, this application can send the collected first video to the cloud through the first terminal, and realize live broadcast after being processed by the cloud, which can realize the transfer of computing power, improve the live broadcast effect, lower the threshold of live broadcast, and better support the development of streaming media. At the same time, live broadcast can be realized by using cloud devices, and live broadcast can be carried out on multiple platforms, enriching the development of live broadcast platforms and the diversity of live broadcast.
[0056] Based on the above description, it can be known that the cloud device live broadcast method provided by this application requires the participation of multiple devices to be implemented. For this reason, this embodiment provides a cloud device live broadcast system 300 for executing the cloud device live broadcast method provided by this embodiment. Figures 3 to 6 .
[0057] In one embodiment, the cloud device live broadcast system 300 includes a first terminal 320, a second terminal 310 and a cloud device 330; the first terminal 320 is used to obtain a first video collected by at least one second terminal 310; the first video is preprocessed to obtain confidential video information; and the confidential video information is sent to the cloud device 330. The second terminal 310 is used to collect the first video. The cloud device 330 is used to obtain the first video sent by the first terminal 320; the first video is processed to obtain the second video; the live broadcast information is generated according to the second video, and the live broadcast is started according to the live broadcast information. Among them, the second terminal 310 and the first terminal 320 can be connected through wired or wireless communication technology, and the first terminal 320 and the cloud device 330 can be connected through wireless communication technology. The specific communication technology that can be adopted has been described in detail in the previous text, and will not be repeated here.
[0058] Furthermore, for the cloud device live broadcast system 300 provided in this embodiment, the following can be implemented on the first terminal 320, the second terminal 310 and the cloud device 330: Figure 4 The cloud device live broadcast method shown specifically includes the steps: S410 to S450:
[0059] Step S410: The second terminal captures the first video.
[0060] Step S420: The second terminal sends the first video to the first terminal.
[0061] Step S430: The first terminal pre-processes the first video.
[0062] In one embodiment, the preprocessing performed by the first terminal 320 on the first video includes but is not limited to: decoding operation, encryption operation, etc. The decoding operation is to obtain the encoding information of the first video. When the encoding information does not meet the preset transmission conditions, the first video is decoded to ensure the uniformity of the first video encoding when the first video is sent. The encryption operation is to encrypt the first video before sending the first video to ensure data security. The steps for executing the above operations have been described in detail in the previous text. Please refer to the previous text for details, and will not be repeated here.
[0063] Step S440: The first terminal sends the preprocessed first video to the cloud device.
[0064] Step S450: the cloud device processes the first video to obtain a second video, generates live broadcast information according to the second video, and starts live broadcast according to the live broadcast information.
[0065] In one embodiment, the cloud device 330 processes the first video, and there is a decryption process corresponding to the above. At the same time, there may be multiple first videos obtained, and the cloud device 330 can process the first video, and obtain the second video that meets the needs of the anchor through computer vision fusion technology. Furthermore, the pre-set audio and third video can be obtained to repair the second video, thereby further improving the live broadcast effect. The cloud device 330 generates live broadcast information according to the second video, and starts the specific operation of live broadcast according to the live broadcast information. It can inject the second video into the HAL layer to obtain the live broadcast information, so as to push the live broadcast information to the live broadcast server to realize live broadcast. Not only does it ensure the improvement of the live broadcast effect, but it can also make the anchor's live broadcast platform not limited to a certain platform, but adapt to any platform, ensuring the freedom of the anchor's live broadcast. The specific implementation process has also been described in detail in the previous text. Please refer to the previous text for details, and I will not repeat it here.
[0066] In one embodiment, as described above, the first terminal 320 and the second terminal 310 are distinguished only by function, and the functions of the two are not mutually exclusive, so the first terminal 320 and the second terminal 310 can be the same device or different devices. When the first terminal 320 and the second terminal 310 can be the same device, for this application scenario, reference can be made to Figure 5 , Figure 5 The first application scenario schematic diagram of the live broadcast system of the cloud device 330 in one embodiment. It includes terminal 1 and terminal 2. In this application scenario, terminal 1 and terminal 2 unify the first terminal 320 and the second terminal 310, and can simultaneously realize the functions of the first terminal 320 and the second terminal 310. For example, terminal 1 and terminal 2 are both smart phones, in which corresponding APPs are installed to realize related functions. Terminal 1 is used to collect the first background video, and terminal 2 is used to collect the first character video. Both belong to the first video, which is sent to the cloud terminal after preprocessing to realize live broadcast. For this application scenario, it can be applied to live broadcast scenes with many smart devices and simple shooting scene angles. And application scenarios where the character scene and the background scene can have a certain spatial distance.
[0067] In one embodiment, the first terminal 320 and the second terminal 310 may also belong to different devices. For this application scenario, please refer to Figure 6 , Figure 6Schematic diagram of the second use scenario of the live broadcast system of the cloud device 330 in one embodiment. Among them, the terminal 3 is connected to the cloud device 330 and the terminal 4 and the terminal 5 as the second terminal 310 respectively as the first terminal 320. The specific implementation can be, for example, that the terminal 4 collects the first background video, the terminal 5 collects the first character video, and sends it to the terminal 3 for preprocessing, and the terminal 1 is used to collect the first background video, and the terminal 2 is used to collect the first character video. And a first terminal 320 can theoretically connect to countless second terminals 310 to achieve shooting from more angles. For this application scenario, it can be applied to live broadcast scenes that need to be shot from multiple angles in one space. For example, for the live broadcast of displaying goods, there is only one smart device, terminal 3, and it is connected to the second terminal 310 such as terminal 4 and terminal 5. If the second terminal 310 of terminal 4 and terminal 5 only has the shooting function, it can shoot the anchor, model, goods, etc. at the same time. Since the terminal 4 and the terminal 5 as the second terminal 310 only realize the function of collecting the first video, the cost of the equipment is reduced in the scene where a large number of shooting angles are required, so as to achieve a multi-angle live broadcast effect. It is understandable that the above two application scenarios are examples of real life, not limitations on technology. In actual situations, there can be more combinations to meet more live broadcast needs.
[0068] Figure 7 FIG. 1 shows an internal structure diagram of a computer device in an embodiment. The computer device may be a terminal or a server. Figure 7 As shown, the computer device includes a processor, a memory and a network interface connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor may implement a cloud device live broadcast method. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor may execute an age recognition method. Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0069] In one embodiment, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the processor executes the steps of the cloud device live broadcast solution method as described in any of the above implementation methods.
[0070] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0071] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0072] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A cloud device live broadcast method, It is characterized in that Applied to a cloud device live broadcast system, the cloud device live broadcast system comprising a first terminal, a second terminal and a cloud device; The method comprises the following steps: The first terminal is connected to the second terminal, the second terminal captures a first video and sends it to the first terminal, and the first video is an original captured video; The first terminal obtains at least one first video captured by the second terminal; Preprocessing the first video to obtain confidential video information; sending the confidential video information to a cloud device; The cloud device obtains the first video according to the confidential video information sent by the first terminal, and processes the first video to obtain a second video, where the second video is a video that meets the needs of the anchor; Generate live broadcast information according to the second video, and start live broadcast according to the live broadcast information; The method of generating live broadcast information according to the second video and starting live broadcast according to the live broadcast information includes: obtaining audio and a third video, the audio including at least one of pre-prepared audio, audio of the second video or audio of the third video, and the third video is a pre-prepared video; and injecting the audio into a virtual microphone of a hardware abstraction layer; injecting the second video and / or the third video into a virtual camera of the hardware abstraction layer; obtaining the live broadcast information output by the hardware abstraction layer, and streaming the live broadcast information to a live broadcast server to start live broadcast.
2. The cloud device live broadcast method according to claim 1, It is characterized in that The obtaining the first video according to the confidential video information sent by the first terminal includes: Acquiring preprocessing information from the confidential video information, wherein the preprocessing information includes a decoding protocol and / or a decryption key; The confidential video information is subjected to an inverse processing operation according to the preprocessing information to obtain the first video.
3. The cloud device live broadcast method according to claim 1, It is characterized in that The first video includes a first character video and a first background video; The processing of the first video includes: Acquire identification information in the first video, and distinguish the first video as the first character video or the first background video according to the identification information; and / or, Identify whether there is portrait information that meets preset conditions in the first video by using image recognition technology; If there is portrait information that meets the preset conditions, determining the first video as the first person video; If there is no portrait information that meets the preset conditions, the first video is determined as the first background video.
4. The cloud device live broadcast method according to claim 3, It is characterized in that The processing of the first video to obtain a second video includes: Extracting a person video from the first person video according to a person recognition technology; According to computer vision fusion technology, the character video is fused with the first background video to obtain a second video.
5. The cloud device live broadcast method according to claim 1, It is characterized in that The step of preprocessing the acquired first video includes: Obtaining encoding information of the first video; if the encoding information does not meet the sending condition, performing a decoding operation on the first video so that the encoding information of the first video meets the sending condition; and / or, Obtain encryption information of the first video; if the encryption information does not meet the sending conditions, perform a decryption operation on the first video so that the encryption information of the first video meets the sending conditions.
6. The cloud device live broadcast method according to claim 5, It is characterized in that The step of preprocessing the acquired first video to obtain confidential video information includes: Acquire preprocessing information according to the decoding operation and / or the deencryption operation, the preprocessing information including a decoding protocol and / or a decryption key corresponding to the decoding operation and / or the deencryption operation; Confidential video information is generated based on the first video and the preprocessing information.
7. A cloud device live broadcast system, It is characterized in that including a first terminal, a second terminal and a cloud device; The first terminal is connected to the second terminal, and the first terminal is used to obtain a first video captured by at least one second terminal; Preprocessing the first video to obtain confidential video information; sending the confidential video information to a cloud device; The second terminal is used to capture the first video, where the first video is an original captured video; The cloud device is used to obtain the first video according to the confidential video information sent by the first terminal, and process the first video to obtain a second video, where the second video is a video that meets the needs of the anchor; Generate live broadcast information according to the second video, and start live broadcast according to the live broadcast information; The method of generating live broadcast information according to the second video and starting live broadcast according to the live broadcast information includes: obtaining audio and a third video, the audio including at least one of pre-prepared audio, audio of the second video or audio of the third video, and the third video is a pre-prepared video; and injecting the audio into a virtual microphone of a hardware abstraction layer; injecting the second video and / or the third video into a virtual camera of the hardware abstraction layer; obtaining the live broadcast information output by the hardware abstraction layer, and streaming the live broadcast information to a live broadcast server to start live broadcast.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
