[go: up one dir, main page]

CN109040245A - The shared method and device of a kind of multiple videos, audio - Google Patents

The shared method and device of a kind of multiple videos, audio Download PDF

Info

Publication number
CN109040245A
CN109040245A CN201810871270.8A CN201810871270A CN109040245A CN 109040245 A CN109040245 A CN 109040245A CN 201810871270 A CN201810871270 A CN 201810871270A CN 109040245 A CN109040245 A CN 109040245A
Authority
CN
China
Prior art keywords
audio
shared
video
client
cloud server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810871270.8A
Other languages
Chinese (zh)
Inventor
颜水成
陈杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201810871270.8A priority Critical patent/CN109040245A/en
Publication of CN109040245A publication Critical patent/CN109040245A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明提供了一种多个视频、音频共享的方法及装置,该方法包括:至少两个客户端接收来自采集设备实时采集的视频信息和/或音频信息;将接收到的视频信息和/或音频信息同步上传至云端服务器,由云端服务器按照预置规则对同一时刻接收的来自各客户端的视频信息和/或音频信息进行处理,得到共享视频和/或共享音频;接收云端服务器发送的共享视频和/或共享音频,并对共享视频和/或共享音频进行播放。本发明实施例中的采集设备可以采用现有的视频、音频采集设备,多个用户在各自的终端上安装客户端,便可以实现在多个用户之间通过客户端方便的沟通和互动,为用户提供了更加开放的交流、联络方式。

The present invention provides a method and device for sharing multiple videos and audios. The method includes: at least two clients receive video information and/or audio information collected in real time from a collection device; the received video information and/or The audio information is uploaded to the cloud server synchronously, and the cloud server processes the video information and/or audio information received from each client at the same time according to the preset rules to obtain the shared video and/or shared audio; receive the shared video sent by the cloud server and/or shared audio, and play shared video and/or shared audio. The acquisition device in the embodiment of the present invention can adopt the existing video and audio acquisition equipment, and multiple users install the client on their respective terminals, so that convenient communication and interaction between multiple users can be realized through the client, for Users provide more open communication and contact methods.

Description

一种多个视频、音频共享的方法及装置A method and device for sharing multiple videos and audios

技术领域technical field

本发明涉及计算机应用技术领域,特别是涉及一种多个视频、音频共享的方法及装置。The invention relates to the technical field of computer applications, in particular to a method and device for sharing multiple videos and audios.

背景技术Background technique

在现有技术中,带有音频、视频属性的硬件产品往往都是单独工作,有些硬件产品虽然可以通过特定APP软件与用户实现交互,但通常都是一个硬件产品和一个用户通过APP软件来进行交互,而无法实现在多个用户、多个同类硬件产品之间实现音频、视频的共享。例如,对于摄像头采集的视频,仅仅可以将不同摄像头采集的视频内容进行单独展示,而无法将多个摄像头采集到的视频融合在一个视频画面中。In the existing technology, hardware products with audio and video attributes often work alone. Although some hardware products can interact with users through specific APP software, it is usually a hardware product and a user through APP software. Interaction, but it is impossible to realize the sharing of audio and video among multiple users and multiple hardware products of the same type. For example, for videos captured by cameras, only video content captured by different cameras can be displayed separately, but videos captured by multiple cameras cannot be fused into one video frame.

因此,基于现有的硬件产品提供一个能够在多个用户之间实现多个视频、音频的共享方案,以方便用户之间的沟通、互动很有必要。Therefore, based on existing hardware products, it is necessary to provide a sharing solution capable of realizing multiple videos and audios among multiple users, so as to facilitate communication and interaction among users.

发明内容Contents of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的一种多个视频、音频共享的方法及装置。In view of the above problems, the present invention is proposed to provide a method and device for sharing multiple videos and audios to overcome the above problems or at least partially solve the above problems.

依据本发明的一方面,提供了一种多个视频、音频共享的方法,应用于至少两个客户端,所述至少两个客户端通过接入云端服务器实现视频、音频的共享,包括:According to one aspect of the present invention, a method for sharing multiple videos and audios is provided, which is applied to at least two clients, and the at least two clients realize the sharing of videos and audios by accessing a cloud server, including:

接收来自采集设备实时采集的视频信息和/或音频信息;Receive video information and/or audio information collected in real time from the collection device;

将接收到的视频信息和/或音频信息同步上传至所述云端服务器,由云端服务器按照预置规则对同一时刻接收的来自各客户端的视频信息和/或音频信息进行处理,得到共享视频和/或共享音频;Synchronously upload the received video information and/or audio information to the cloud server, and the cloud server processes the video information and/or audio information received from each client at the same time according to the preset rules to obtain the shared video and/or audio information or share audio;

接收所述云端服务器发送的共享视频和/或共享音频,对所述共享视频和/或共享音频进行播放。receiving the shared video and/or shared audio sent by the cloud server, and playing the shared video and/or shared audio.

可选地,由云端服务器按照预置规则对同一时刻接收的来自各客户端的视频信息和/或音频信息进行处理,包括:Optionally, the cloud server processes the video information and/or audio information received from each client at the same time according to preset rules, including:

由云端服务器从同一时刻接收到的来自各客户端的视频信息中提取人的动态图像,将提取的各视频信息对应的人的动态图像合并处理,使人的动态图像存在于同一画面中;和/或The cloud server extracts the dynamic images of people from the video information received from each client at the same time, and merges and processes the dynamic images of people corresponding to the extracted video information, so that the dynamic images of people exist in the same screen; and/ or

由云端服务器将同一时刻接收到的来自各客户端的音频信息叠加处理。The audio information received from each client at the same time is superimposed and processed by the cloud server.

可选地,若客户端接收来自采集设备实时采集的视频信息和音频信息,则将接收到的视频信息和/或音频信息同步上传至所述云端服务器,包括:Optionally, if the client receives video information and audio information collected in real time from the acquisition device, then synchronously uploads the received video information and/or audio information to the cloud server, including:

所述客户端检测其使用网络的网络状态,判断检测到的网络状态是否达到预设网络状态;The client detects the network state of the network it uses, and judges whether the detected network state reaches the preset network state;

若否,获取接收到的音频信息,将所述音频信息上传至云端服务器;If not, obtain the received audio information, and upload the audio information to the cloud server;

若是,将接收到的视频信息和音频信息同步上传至云端服务器。If yes, upload the received video information and audio information to the cloud server synchronously.

可选地,所述方法还包括:若客户端使用的网络状态未达到预设网络状态,向所述云端服务器发送获取共享音频的请求消息,由云端服务器按照预置规则对同一时刻接收的来自各客户端的音频信息进行处理得到共享音频;Optionally, the method further includes: if the network state used by the client does not reach the preset network state, sending a request message for obtaining shared audio to the cloud server, and the cloud server according to preset rules for receiving from The audio information of each client is processed to obtain shared audio;

接收所述云端服务器发送的共享音频,对所述共享音频进行播放。receiving the shared audio sent by the cloud server, and playing the shared audio.

可选地,所述网络状态包括所述客户端使用网络的当前网速、网络信号强度中的至少一个。Optionally, the network status includes at least one of the current network speed and network signal strength of the network used by the client.

可选地,接收来自采集设备实时采集的视频信息和/或音频信息之前,还包括:Optionally, before receiving the video information and/or audio information collected in real time from the collection device, it also includes:

所述至少两个客户端中任一客户端向云端服务器发送共享请求,其中,所述共享请求中携带至少两个客户端中其他客户端的标识信息,由所述云端服务器将共享请求发送至所述标识信息对应的其他客户端中;Any one of the at least two clients sends a sharing request to the cloud server, wherein the sharing request carries identification information of other clients among the at least two clients, and the cloud server sends the sharing request to the cloud server. other clients corresponding to the above identification information;

当所述其他客户端接收到来自云端服务器发送的共享请求后,若确定进行视频和/或音频共享,则向所述云端服务器返回共享确定的消息,所述至少两个客户端之间进行视频和/或音频共享。After the other clients receive the sharing request sent from the cloud server, if it is determined to share video and/or audio, they will return a message of sharing determination to the cloud server, and the video and/or audio sharing will be performed between the at least two clients. and/or audio sharing.

可选地,所述采集设备包括以下至少之一:机顶盒、音箱、智能摄像头。Optionally, the collection device includes at least one of the following: a set-top box, a speaker, and a smart camera.

依据本发明的另一方面,还提供了一种多个视频、音频共享的方法,应用于云端服务器,至少两个客户端通过接入所述云端服务器实现视频、音频的共享,包括:According to another aspect of the present invention, a method for sharing multiple videos and audios is also provided, which is applied to a cloud server, and at least two clients realize the sharing of videos and audios by accessing the cloud server, including:

接收所述至少两个客户端同步上传的视频信息和/或音频信息,其中,所述视频信息和/或音频信息由采集设备实时采集得到;Receiving video information and/or audio information synchronously uploaded by the at least two clients, wherein the video information and/or audio information is collected by a collection device in real time;

按照预置规则对同一时刻接收的来自各客户端的视频信息和/或音频信息进行处理,得到共享视频和/或共享音频;Process the video information and/or audio information received from each client at the same time according to preset rules to obtain shared video and/or shared audio;

将所述共享视频和/或共享音频分别发送至各客户端中,由所述客户端对所述共享视频和/或共享音频进行播放。The shared video and/or shared audio are respectively sent to each client, and the shared video and/or shared audio is played by the client.

可选地,按照预置规则对同一时刻接收的来自各客户端的视频信息和/或音频信息进行处理,包括:Optionally, the video information and/or audio information received from each client at the same time are processed according to preset rules, including:

从同一时刻接收到的来自各客户端的视频信息中提取人的动态图像,将提取的各视频信息对应的人的动态图像合并处理,使人的动态图像存在于同一画面中;和/或Extract the dynamic images of people from the video information received from each client at the same time, and combine and process the dynamic images of people corresponding to the extracted video information, so that the dynamic images of people exist in the same screen; and/or

将同一时刻接收到的来自各客户端的音频信息叠加处理。The audio information received from each client at the same time is superimposed and processed.

可选地,所述方法还包括:Optionally, the method also includes:

若客户端使用网络的网络状态未达到预设网络状态,接收所述客户端发送的获取共享音频的请求消息;If the network state of the network used by the client does not reach the preset network state, receiving a request message for obtaining shared audio sent by the client;

将按照预置规则对同一时刻接收的来自各客户端的音频信息进行处理后得到的共享音频发送至所述客户端中,由所述客户端对所述共享音频进行播放。The shared audio obtained by processing the audio information received from each client at the same time according to preset rules is sent to the client, and the shared audio is played by the client.

可选地,所述网络状态包括所述客户端使用网络的当前网速、网络信号强度中的至少一个。Optionally, the network status includes at least one of the current network speed and network signal strength of the network used by the client.

可选地,接收所述至少两个客户端同步上传的视频信息和/或音频信息之前,还包括:Optionally, before receiving the video information and/or audio information synchronously uploaded by the at least two clients, it also includes:

接收所述至少两个客户端中任一客户端发送的共享请求,其中,所述共享请求中携带至少两个客户端中其他客户端的标识信息;receiving a sharing request sent by any one of the at least two clients, wherein the sharing request carries identification information of other clients of the at least two clients;

将接收到的共享请求转发至所述标识信息对应的其他客户端中,由所述其他客户端依据接收到的共享请求确定是否进行视频和/或音频共享;forwarding the received sharing request to other clients corresponding to the identification information, and the other clients determine whether to perform video and/or audio sharing according to the received sharing request;

若接收到所述其他客户端返回的共享确定的消息,为所述至少两个客户端提供视频和/或音频共享服务。Provide video and/or audio sharing services for the at least two clients if the sharing confirmation message returned by the other clients is received.

可选地,所述采集设备包括以下至少之一:机顶盒、音箱、智能摄像头。Optionally, the collection device includes at least one of the following: a set-top box, a speaker, and a smart camera.

依据本发明的再一方面,还提供了一种多个视频、音频共享的装置,应用于至少两个客户端,所述至少两个客户端通过接入云端服务器实现视频、音频的共享,包括:According to another aspect of the present invention, there is also provided a device for sharing multiple videos and audios, which is applied to at least two clients, and the at least two clients realize the sharing of videos and audios by accessing the cloud server, including :

第一接收模块,适于接收来自采集设备实时采集的视频信息和/或音频信息;The first receiving module is adapted to receive video information and/or audio information collected in real time from the collection device;

上传模块,适于将接收到的视频信息和/或音频信息同步上传至所述云端服务器,由云端服务器按照预置规则对同一时刻接收的来自各客户端的视频信息和/或音频信息进行处理,得到共享视频和/或共享音频;The upload module is adapted to upload the received video information and/or audio information to the cloud server synchronously, and the cloud server processes the video information and/or audio information received from each client at the same time according to preset rules, Get Shared Video and/or Shared Audio;

共享模块,适于接收所述云端服务器发送的共享视频和/或共享音频,对所述共享视频和/或共享音频进行播放。The sharing module is adapted to receive the shared video and/or shared audio sent by the cloud server, and play the shared video and/or shared audio.

可选地,所述上传模块,还适于:由云端服务器从同一时刻接收到的来自各客户端的视频信息中提取人的动态图像,将提取的各视频信息对应的人的动态图像合并处理,使人的动态图像存在于同一画面中;和/或Optionally, the upload module is further adapted to: the cloud server extracts the moving images of people from the video information received from each client at the same time, merges and processes the moving images of people corresponding to the extracted video information, cause moving images of people to exist in the same frame; and/or

由云端服务器将同一时刻接收到的来自各客户端的音频信息叠加处理。The audio information received from each client at the same time is superimposed and processed by the cloud server.

可选地,所述装置还包括:检测模块,适于所述客户端检测其使用网络的网络状态,判断检测到的网络状态是否达到预设网络状态;Optionally, the device further includes: a detection module, adapted for the client to detect the network status of the network it uses, and determine whether the detected network status reaches a preset network status;

若否,获取接收到的音频信息,将所述音频信息上传至云端服务器;If not, obtain the received audio information, and upload the audio information to the cloud server;

若是,将接收到的视频信息和音频信息同步上传至云端服务器。If yes, upload the received video information and audio information to the cloud server synchronously.

可选地,所述装置还包括:Optionally, the device also includes:

第一请求模块,适于若客户端使用的网络状态未达到预设网络状态,向所述云端服务器发送获取共享音频的请求消息,由云端服务器按照预置规则对同一时刻接收的来自各客户端的音频信息进行处理得到共享音频;The first request module is adapted to send a request message for obtaining shared audio to the cloud server if the network state used by the client does not reach the preset network state, and the cloud server will compare the information received from each client at the same time according to the preset rules. Audio information is processed to obtain shared audio;

所述共享模块,还适于接收所述云端服务器发送的共享音频,对所述共享音频进行播放。The sharing module is further adapted to receive the shared audio sent by the cloud server, and play the shared audio.

可选地,所述网络状态包括所述客户端使用网络的当前网速、网络信号强度中的至少一个。Optionally, the network status includes at least one of the current network speed and network signal strength of the network used by the client.

可选地,所述装置还包括:Optionally, the device also includes:

第二请求模块,适于在所述第一接收模块接收来自采集设备实时采集的视频信息和/或音频信息之前,所述至少两个客户端中任一客户端向云端服务器发送共享请求,其中,所述共享请求中携带至少两个客户端中其他客户端的标识信息,由所述云端服务器将共享请求发送至所述标识信息对应的其他客户端中;The second request module is adapted to send a sharing request to the cloud server from any one of the at least two clients before the first receiving module receives the video information and/or audio information collected in real time from the collection device, wherein , the sharing request carries identification information of other clients among at least two clients, and the cloud server sends the sharing request to other clients corresponding to the identification information;

确定模块,适于当所述其他客户端接收到来自云端服务器发送的共享请求后,若确定进行视频和/或音频共享,则向所述云端服务器返回共享确定的消息,所述至少两个客户端之间进行视频和/或音频共享。The determining module is adapted to return a sharing confirmation message to the cloud server if the other client receives the sharing request sent from the cloud server, and the at least two clients video and/or audio sharing between peers.

可选地,所述采集设备包括以下至少之一:机顶盒、音箱、智能摄像头。Optionally, the collection device includes at least one of the following: a set-top box, a speaker, and a smart camera.

依据本发明的再一方面,还提供了一种多个视频、音频共享的装置,应用于云端服务器,至少两个客户端通过接入所述云端服务器实现视频、音频的共享,包括:According to yet another aspect of the present invention, a device for sharing multiple videos and audios is also provided, which is applied to a cloud server, and at least two clients realize video and audio sharing by accessing the cloud server, including:

第二接收模块,适于接收所述至少两个客户端同步上传的视频信息和/或音频信息,其中,所述视频信息和/或音频信息由采集设备实时采集得到;The second receiving module is adapted to receive the video information and/or audio information synchronously uploaded by the at least two clients, wherein the video information and/or audio information are collected by the collection device in real time;

处理模块,适于按照预置规则对同一时刻接收的来自各客户端的视频信息和/或音频信息进行处理,得到共享视频和/或共享音频;The processing module is adapted to process the video information and/or audio information received from each client at the same time according to preset rules to obtain shared video and/or shared audio;

发送模块,适于将所述共享视频和/或共享音频分别发送至各客户端中,由所述客户端对所述共享视频和/或共享音频进行播放。The sending module is adapted to send the shared video and/or shared audio to each client respectively, and the client plays the shared video and/or shared audio.

可选地,所述处理模块,还适于:从同一时刻接收到的来自各客户端的视频信息中提取人的动态图像,将提取的各视频信息对应的人的动态图像合并处理,使人的动态图像存在于同一画面中;和/或Optionally, the processing module is further adapted to: extract the dynamic images of people from the video information received from each client at the same time, and combine and process the dynamic images of the people corresponding to the extracted video information, so that the human moving images exist within the same frame; and/or

将同一时刻接收到的来自各客户端的音频信息叠加处理。The audio information received from each client at the same time is superimposed and processed.

可选地,所述第二接收模块,还适于若客户端使用网络的网络状态未达到预设网络状态,接收所述客户端发送的获取共享音频的请求消息;Optionally, the second receiving module is further adapted to receive a request message for acquiring shared audio sent by the client if the network status of the network used by the client has not reached the preset network status;

所述发送模块,还适于将按照预置规则对同一时刻接收的来自各客户端的音频信息进行处理后得到的共享音频发送至所述客户端中,由所述客户端对所述共享音频进行播放。The sending module is further adapted to send the shared audio obtained after processing the audio information received from each client at the same time according to preset rules to the client, and the client performs the shared audio play.

可选地,所述网络状态包括所述客户端使用网络的当前网速、网络信号强度中的至少一个。Optionally, the network status includes at least one of the current network speed and network signal strength of the network used by the client.

可选地,所述第二接收模块,还适于接收所述至少两个客户端中任一客户端发送的共享请求,其中,所述共享请求中携带至少两个客户端中其他客户端的标识信息;Optionally, the second receiving module is further adapted to receive a sharing request sent by any one of the at least two clients, wherein the sharing request carries an identifier of the other client in the at least two clients information;

所述发送模块,还适于将接收到的共享请求发送至所述标识信息对应的其他客户端中,由所述其他客户端依据接收到的共享请求确定是否进行视频和/或音频共享;The sending module is further adapted to send the received sharing request to other clients corresponding to the identification information, and the other clients determine whether to perform video and/or audio sharing according to the received sharing request;

所述第二接收模块,还适于若接收到所述其他客户端返回的共享确定的消息,为所述至少两个客户端提供视频和/或音频共享服务。The second receiving module is further adapted to provide video and/or audio sharing services for the at least two clients if the sharing determination message returned by the other clients is received.

可选地,所述采集设备包括以下至少之一:机顶盒、音箱、智能摄像头。Optionally, the collection device includes at least one of the following: a set-top box, a speaker, and a smart camera.

依据本发明的再一方面,还提供了一种计算机存储介质,所述计算机存储介质存储有计算机程序代码,当所述计算机程序代码在计算设备上运行时,导致所述计算设备执行上述任意实施例中所述的多个视频、音频共享的方法。According to still another aspect of the present invention, a computer storage medium is also provided, the computer storage medium stores computer program codes, and when the computer program codes are run on a computing device, it causes the computing device to execute any of the above implementations. Multiple video and audio sharing methods described in the example.

依据本发明的又一方面,还提供了一种计算设备,包括:处理器;存储有计算机程序代码的存储器;当所述计算机程序代码被所述处理器运行时,导致所述计算设备执行上述任意实施例中所述的多个视频、音频共享的方法。According to yet another aspect of the present invention, there is also provided a computing device, including: a processor; a memory storing computer program code; when the computer program code is executed by the processor, the computing device is caused to execute the above-mentioned A method for sharing multiple videos and audios described in any embodiment.

在本发明实施例中,首先利用至少两个客户端接收来自采集设备实时采集的视频信息和/或音频信息,并将接收到的视频信息和/或音频信息同步上传至云端服务器,由云端服务器按照预置规则对同一时刻接收的来自各客户端的视频信息和/或音频信息进行处理,得到共享视频和/或共享音频。最后至少两个客户端接收云端服务器发送的共享视频和/或共享音频,并对共享视频和/或共享音频进行播放,从而实现在多个客户端之间的视频和/或音频的共享。该实施例中的采集设备可以采用现有的视频、音频采集设备,多个用户在各自的终端上安装客户端,便可以实现在多个用户之间通过客户端方便的沟通和互动,为用户提供了更加开放的交流、联络方式。并且,本发明方案的视频、音频共享方案不仅实现过程简单且高效,而且还可以广泛地应用于电话会议、用户视频或语音沟通等多种应用场合。In the embodiment of the present invention, at first, at least two clients are used to receive video information and/or audio information collected in real time from the acquisition device, and the received video information and/or audio information are synchronously uploaded to the cloud server, and the cloud server The video information and/or audio information received from each client at the same time are processed according to preset rules to obtain shared video and/or shared audio. Finally, at least two clients receive the shared video and/or shared audio sent by the cloud server, and play the shared video and/or shared audio, thereby realizing sharing of video and/or audio among multiple clients. The acquisition device in this embodiment can adopt existing video and audio acquisition equipment, and multiple users install the client on their respective terminals, so that convenient communication and interaction through the client can be realized between multiple users, providing users with Provides a more open way of communication and contact. Moreover, the video and audio sharing solution of the solution of the present invention is not only simple and efficient to implement, but also can be widely used in various application occasions such as teleconferencing, user video or voice communication, and the like.

进一步地,本方案还使现有的视频、音频采集设备的功能得到了最大化的发挥,提高了视频、音频采集设备的使用价值。Furthermore, this solution maximizes the functions of the existing video and audio collection equipment, and improves the use value of the video and audio collection equipment.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and understandable , the specific embodiments of the present invention are enumerated below.

根据下文结合附图对本发明具体实施例的详细描述,本领域技术人员将会更加明了本发明的上述以及其他目的、优点和特征。Those skilled in the art will be more aware of the above and other objects, advantages and features of the present invention according to the following detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiment. The drawings are only for the purpose of illustrating a preferred embodiment and are not to be considered as limiting the invention. Also throughout the drawings, the same reference numerals are used to designate the same components. In the attached picture:

图1示出了根据本发明一个实施例的多个视频、音频共享的方法的流程示意图;FIG. 1 shows a schematic flow diagram of a method for sharing multiple videos and audios according to an embodiment of the present invention;

图2示出了根据本发明另一个实施例的多个视频、音频共享的方法的流程示意图;FIG. 2 shows a schematic flow diagram of a method for sharing multiple videos and audios according to another embodiment of the present invention;

图3示出了根据本发明一个实施例的多个视频、音频共享的装置的结构示意图;FIG. 3 shows a schematic structural diagram of multiple video and audio sharing devices according to an embodiment of the present invention;

图4示出了根据本发明另一个实施例的多个视频、音频共享的装置的结构示意图;FIG. 4 shows a schematic structural diagram of multiple video and audio sharing devices according to another embodiment of the present invention;

图5示出了根据本发明另一个实施例的多个视频、音频共享的装置的结构示意图;以及Figure 5 shows a schematic structural diagram of multiple video and audio sharing devices according to another embodiment of the present invention; and

图6示出了根据本发明一个实施例的多个视频、音频共享的系统的结构示意图。Fig. 6 shows a schematic structural diagram of a system for sharing multiple videos and audios according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

为解决上述技术问题,本发明实施例提供了一种多个视频、音频共享的方法,应用于至少两个客户端,至少两个客户端通过接入云端服务器实现视频、音频的共享,其中,客户端可以安装在任意终端上,终端包括移动终端,如手机、笔记本电脑等,还包括是台式电脑等终端。图1示出了根据本发明一个实施例的多个视频、音频共享的方法的流程示意图。参见图1,该方法至少包括步骤S102至步骤S106。In order to solve the above technical problems, the embodiment of the present invention provides a method for sharing multiple videos and audios, which is applied to at least two clients, and at least two clients realize the sharing of videos and audios by accessing the cloud server, wherein, The client can be installed on any terminal, and the terminal includes mobile terminals, such as mobile phones, notebook computers, etc., and also includes terminals such as desktop computers. Fig. 1 shows a schematic flowchart of a method for sharing multiple videos and audios according to an embodiment of the present invention. Referring to Fig. 1, the method at least includes step S102 to step S106.

步骤S102,接收来自采集设备实时采集的视频信息和/或音频信息。Step S102, receiving video information and/or audio information collected in real time from the collection device.

在该步骤中,采集设备可以包括机顶盒、音箱、智能摄像头等设备中的至少一个。例如,当采集设备采用音箱时,客户端可以接收来自音箱设备实时采集的音频信息。又例如,当采集设备采用智能摄像头时,客户端既可以接收智能摄像头采集的视频信息,也可以接收智能摄像头采集的音频信息,或者通过对智能摄像头进行设置,可以选择仅接收智能摄像头采集的视频信息或视频信息。此处,本发明实施例对采集设备的种类不做具体的限定。In this step, the collection device may include at least one of a set-top box, a sound box, a smart camera and other devices. For example, when the acquisition device uses a speaker, the client may receive audio information collected by the speaker device in real time. For another example, when the collection device uses a smart camera, the client can receive both the video information collected by the smart camera and the audio information collected by the smart camera, or by setting the smart camera, you can choose to receive only the video collected by the smart camera message or video message. Here, the embodiment of the present invention does not specifically limit the type of the collection device.

步骤S104,将接收到的视频信息和/或音频信息同步上传至云端服务器,由云端服务器按照预置规则对同一时刻接收的来自各客户端的视频信息和/或音频信息进行处理,得到共享视频和/或共享音频。Step S104, synchronously uploading the received video information and/or audio information to the cloud server, and the cloud server processes the video information and/or audio information received from each client at the same time according to the preset rules to obtain the shared video and/or audio information. /or share audio.

步骤S106,接收云端服务器发送的共享视频和/或共享音频,对共享视频和/或共享音频进行播放。Step S106, receiving the shared video and/or shared audio sent by the cloud server, and playing the shared video and/or shared audio.

本发明实施例中的采集设备可以采用现有的视频、音频采集设备,多个用户在各自的终端上安装客户端,便可以实现在多个用户之间通过客户端方便的沟通和互动,为用户提供了更加开放的交流、联络方式。并且,本发明方案的视频、音频共享方案不仅实现过程简单且高效,而且还可以广泛地应用于电话会议、用户视频或语音沟通等多种应用场合。进一步地,本方案还使现有的视频、音频采集设备的功能得到了最大化的发挥,提高了视频、音频采集设备的使用价值。The acquisition device in the embodiment of the present invention can adopt the existing video and audio acquisition equipment, and multiple users install the client on their respective terminals, so that convenient communication and interaction between multiple users can be realized through the client, for Users provide more open communication and contact methods. Moreover, the video and audio sharing solution of the solution of the present invention is not only simple and efficient to implement, but also can be widely used in various application occasions such as teleconferencing, user video or voice communication, and the like. Furthermore, this solution maximizes the functions of the existing video and audio collection equipment, and improves the use value of the video and audio collection equipment.

参见上文步骤S104,在本发明一实施例中,上文中的预置规则预先配置于云端服务器中,具体可以包括针对视频信息的预置规则以及针对音频信息的预置规则。Referring to step S104 above, in an embodiment of the present invention, the above preset rules are preconfigured in the cloud server, and specifically may include preset rules for video information and preset rules for audio information.

其中,针对视频信息的预置规则是,云端服务器从同一时刻接收到的来自各客户端的视频信息中提取人的动态图像,将提取的各视频信息对应的人的动态图像合并处理,使人的动态图像存在于同一画面中。由此,后续在客户端播放视频的画面中可以同时展示多个用户的图像,每个用户都可以通过选择看到参与到视频共享的全部用户的图像。Among them, the preset rule for video information is that the cloud server extracts the dynamic images of people from the video information received from each client at the same time, and merges and processes the dynamic images of the people corresponding to the extracted video information, so that the human Moving images exist on the same screen. As a result, images of multiple users can be simultaneously displayed on the video playing screen of the client, and each user can select to see the images of all users participating in the video sharing.

例如,三个客户端(假设为客户端1、客户端2、客户端3)通过接入云端服务器实现视频的共享,其中,用户A使用客户端1,用户B使用客户端2,用户C使用客户端3,当三个用户通过各自的客户端进行视频共享时,三个用户的图像都可以展示在各自客户端的视频播放界面中,从而每个用户都可以方便的了解到其他两个用户的状态。For example, three clients (assumed to be client 1, client 2, and client 3) realize video sharing by accessing the cloud server, among which, user A uses client 1, user B uses client 2, and user C uses Client 3, when three users share videos through their respective clients, the images of the three users can all be displayed in the video playback interface of their respective clients, so that each user can easily know the video of the other two users. state.

针对音频信息的预置规则是,云端服务器可以将同一时刻接收到的来自各客户端的音频信息进行叠加处理,得到叠加后的音频信息。通常在音频共享或者音、视频共享过程中,为了达到良好的共享质量,通常会有一方客户端对应的采集设备采集到重要得、有效地音频信息(例如人在讲话),而其他采集设备采集到音频信息不是那么重要的音频信息(例如播放的歌曲)。各客户端将音频信息发送至云端服务器时,云端服务器还可以辨识出哪个音频信息是重要的,哪些音频信息是次要的,进而将各种音频信息叠加处理。The preset rule for audio information is that the cloud server can superimpose the audio information received from each client at the same time to obtain the superimposed audio information. Usually in the process of audio sharing or audio and video sharing, in order to achieve good sharing quality, there is usually an acquisition device corresponding to one client to collect important and effective audio information (such as people talking), while other acquisition devices collect to audio information where the audio information is not that important (such as the song being played). When each client sends audio information to the cloud server, the cloud server can also identify which audio information is important and which audio information is secondary, and then superimpose and process various audio information.

例如,两个客户端(假设为客户端1、客户端2)通过接入云端服务器实现音频的共享。云端服务器接收到来自客户端1的音频信息音量较大,且为清晰的人的讲话声音,接收到来自客户端2的音频信息音量较小,且为歌曲的声音。那么,云端服务器将这个音频信息进行叠加处理,且在叠加处理过程中,优先确保来自客户端1的音频信息不会失真。For example, two clients (assumed to be client 1 and client 2) realize audio sharing by accessing the cloud server. The cloud server receives the audio information from client 1 with a relatively loud volume and a clear human voice, and receives the audio information from client 2 with a low volume and is the sound of a song. Then, the cloud server performs superimposition processing on the audio information, and during the superimposition processing, priority is given to ensuring that the audio information from the client 1 is not distorted.

在本发明一实施例中,当数量较多的客户端进行音频的共享时,为了保证共享的音频质量,还可以通过云端服务器对接收到的多个音频信息进行去除噪声处理。例如在利用共享音频开会时,同一时刻发言的人通常只有一个,即云端服务器接收到的音频信息中只有来自一个客户端的音频信息(即发言人的声音)是全部音频共享用户希望清楚听到的,而其他的音频信息(如翻阅纸张的声音、东西掉在地上的声音)并不重要,此时可以由云端服务器对音频信息进行辨别,并去除不重要的声音,从而有效地保证会议的质量。在该实施例中,还可以由客户端在本地直接对其对应的采集设备所采集的音频信息进行去除噪声的处理。In an embodiment of the present invention, when a large number of clients perform audio sharing, in order to ensure the shared audio quality, the cloud server may also perform noise removal processing on multiple received audio information. For example, when using shared audio to hold a meeting, there is usually only one person speaking at the same time, that is, the audio information received by the cloud server only comes from one client (that is, the voice of the speaker) that all audio sharing users want to hear clearly , and other audio information (such as the sound of flipping through paper, the sound of things falling on the ground) is not important, at this time, the cloud server can identify the audio information and remove unimportant sounds, so as to effectively ensure the quality of the meeting . In this embodiment, the client may also directly perform noise removal processing locally on the audio information collected by its corresponding collection device.

在本发明实施例中,若至少两个客户端将视频信息和音频信息同时上传至云端服务器,那么云端服务器可以同时利用上文介绍的针对视频信息的预置规则和针对音频信息的预置规则对接收到的视频信息和音频信息进行处理。In the embodiment of the present invention, if at least two clients upload video information and audio information to the cloud server at the same time, the cloud server can simultaneously use the preset rules for video information and the preset rules for audio information introduced above Process the received video information and audio information.

在本发明一实施例中,若在至少两个客户端之间同时进行视频和音频共享,为了避免由于网络状态不佳造成的视频、音频共享过程不流畅的问题,还可以在进行视频和音频共享的过程中,随时在仅音频共享与音、视频共享之间进行切换。具体的,当客户端同时接收来自采集设备实时采集的视频信息和音频信息时,可以先检测自身使用网络的网络状态,并判断检测到的网络状态是否达到了预设网络状态。若否,则获取从接收的视频信息和音频信息中获取音频信息,将获取的音频信息上传至云端服务器。若是,则将接收到的视频信息和音频信息同步直接上传至云端服务器。In one embodiment of the present invention, if video and audio sharing are performed simultaneously between at least two clients, in order to avoid the problem that the video and audio sharing process is not smooth due to poor network conditions, video and audio sharing can also be performed simultaneously. During sharing, switch between audio-only sharing and audio and video sharing at any time. Specifically, when the client simultaneously receives video information and audio information collected in real time from the acquisition device, it can first detect the network status of the network used by itself, and determine whether the detected network status has reached the preset network status. If not, the audio information is acquired from the received video information and audio information, and the acquired audio information is uploaded to the cloud server. If so, the received video information and audio information are synchronously and directly uploaded to the cloud server.

在该实施例中,若客户端使用的网络状态未达到预设网络状态,还可以向云端服务器发送获取共享音频的请求消息,云端服务器按照预置规则对同一时刻接收的来自各客户端的音频信息进行处理得到共享音频,并将共享音频返回至该客户端。该客户端接收云端服务器发送的共享音频,对共享音频进行播放。其中,网络状态可以包括客户端使用网络的当前网速、网络信号强度中的至少一个。In this embodiment, if the network state used by the client does not reach the preset network state, it can also send a request message for obtaining shared audio to the cloud server, and the cloud server will analyze the audio information received from each client at the same time according to the preset rules. Processing is performed to obtain the shared audio, and the shared audio is returned to the client. The client receives the shared audio sent by the cloud server, and plays the shared audio. Wherein, the network status may include at least one of the current network speed and network signal strength of the network used by the client.

进一步地,在本发明实施例中,若在至少两个客户端之间同时进行视频和音频共享,为了避免由于网络状态不佳造成的视频、音频共享过程不流畅的问题,还可以在进行视频和音频共享的过程中,随时在仅视频共享与音、视频共享之间进行切换。具体的,当客户端同时接收来自采集设备实时采集的视频信息和音频信息时,可以先检测自身使用网络的网络状态,并判断检测到的网络状态是否达到了预设网络状态。若否,则获取从接收的视频信息和音频信息中获取视频信息,将获取的视频信息上传至云端服务器。若是,则将接收到的视频信息和音频信息同步直接上传至云端服务器。Further, in the embodiment of the present invention, if video and audio sharing are performed simultaneously between at least two clients, in order to avoid the problem that the video and audio sharing process is not smooth due to poor network conditions, it is also possible to perform video and audio sharing, switch between video-only sharing and audio-video sharing at any time. Specifically, when the client simultaneously receives video information and audio information collected in real time from the acquisition device, it can first detect the network status of the network used by itself, and determine whether the detected network status has reached the preset network status. If not, the video information is acquired from the received video information and audio information, and the acquired video information is uploaded to the cloud server. If so, the received video information and audio information are synchronously and directly uploaded to the cloud server.

在该实施例中,若客户端使用的网络状态未达到预设网络状态,还可以向云端服务器发送获取共享视频的请求消息,云端服务器按照预置规则对同一时刻接收的来自各客户端的视频信息进行处理得到共享视频,并将共享视频返回至该客户端。该客户端接收云端服务器发送的共享视频,对共享视频进行播放。In this embodiment, if the network state used by the client does not reach the preset network state, it can also send a request message to the cloud server to obtain the shared video, and the cloud server will compare the video information received from each client at the same time according to the preset rules. Processing is performed to obtain the shared video, and the shared video is returned to the client. The client receives the shared video sent by the cloud server, and plays the shared video.

在本发明一实施例中,至少两个客户端通过接入云端服务器实现视频、音频的共享时,其中任一客户端向云端服务器发送共享请求,共享请求中携带至少两个客户端中其他客户端的标识信息。进而云端服务器将共享请求发送至标识信息对应的其他客户端中。当其他客户端接收到来自云端服务器发送的共享请求后,若确定进行视频和/或音频共享,则向云端服务器返回共享确定的消息,至少两个客户端之间进行视频和/或音频共享。若其他客户端确定不进行视频和/或音频共享,则向云端服务器返回共享拒绝的消息。这里其他客户端指的是至少两个客户端中除了发出共享请求的任一客户端之外的客户端中。In an embodiment of the present invention, when at least two clients realize the sharing of video and audio by accessing the cloud server, any client sends a sharing request to the cloud server, and the sharing request carries other clients in the at least two clients. terminal identification information. Furthermore, the cloud server sends the sharing request to other clients corresponding to the identification information. When other clients receive the sharing request sent from the cloud server, if they determine to share video and/or audio, they return a sharing confirmation message to the cloud server, and video and/or audio sharing is performed between at least two clients. If other clients determine not to share the video and/or audio, they will return a sharing rejection message to the cloud server. Here, other clients refer to at least two clients except any client that issues a sharing request.

参见步骤S106,在该实施例中,为了进一步保证客户端之间能够实现视频、音频的实时共享,避免出现共享延时的问题,云端服务器可以将得到的共享视频和/或共享音频同步发送至各个客户端中,这样,各个客户端的用户所看到的视频、听到的音频便是相同的视频、音频。Referring to step S106, in this embodiment, in order to further ensure real-time sharing of video and audio between clients and avoid the problem of sharing delay, the cloud server can synchronously send the obtained shared video and/or shared audio to In each client, in this way, the video and audio heard by the users of each client are the same video and audio.

本发明实施例还提供了另一种多个视频、音频共享的方法,应用于云端服务器,至少两个客户端通过接入云端服务器实现视频、音频的共享。图2示出了根据本发明另一个实施例的多个视频、音频共享的方法的流程示意图。参见图2,该方法至少包括步骤S202至步骤S206。The embodiment of the present invention also provides another method for sharing multiple videos and audios, which is applied to a cloud server, and at least two clients realize video and audio sharing by accessing the cloud server. Fig. 2 shows a schematic flowchart of a method for sharing multiple videos and audios according to another embodiment of the present invention. Referring to Fig. 2, the method at least includes step S202 to step S206.

步骤S202,接收至少两个客户端同步上传的视频信息和/或音频信息,其中,视频信息和/或音频信息由采集设备实时采集得到。Step S202, receiving video information and/or audio information synchronously uploaded by at least two clients, wherein the video information and/or audio information are collected by the collection device in real time.

该步骤中,采集设备可以包括机顶盒、音箱、智能摄像头等设备中的至少一个。In this step, the collection device may include at least one of a set-top box, a sound box, a smart camera and other devices.

步骤S204,按照预置规则对同一时刻接收的来自各客户端的视频信息和/或音频信息进行处理,得到共享视频和/或共享音频。Step S204, process the video information and/or audio information received from each client at the same time according to preset rules to obtain shared video and/or shared audio.

步骤S206,将共享视频和/或共享音频分别发送至各客户端中,由客户端对共享视频和/或共享音频进行播放。In step S206, the shared video and/or shared audio are respectively sent to each client, and the shared video and/or shared audio are played by the client.

在该步骤中,云端服务器可以将得到的共享视频和/或共享音频同步发送至各个客户端中。这样,各个客户端的用户所看到的视频、听到的音频便是相同的视频、音频,从而可以有效地避免出现共享延时的问题。In this step, the cloud server can synchronously send the obtained shared video and/or shared audio to each client. In this way, the video and audio heard by the users of each client are the same video and audio, so that the problem of shared delay can be effectively avoided.

参见上文步骤S204,在本发明一实施例中,按照预置规则对同一时刻接收的来自各客户端的视频信息和/或音频信息进行处理的过程可以是,从同一时刻接收到的来自各客户端的视频信息中提取人的动态图像,将提取的各视频信息对应的人的动态图像合并处理,使人的动态图像存在于同一画面中,和/或,将同一时刻接收到的来自各客户端的音频信息叠加处理。关于具体的处理过程可以参见上文实施例,此处不做具体的赘述。Referring to step S204 above, in an embodiment of the present invention, the process of processing the video information and/or audio information received from each client at the same time according to preset rules may be that the video information and/or audio information received from each client at the same time Extract the moving image of the person from the video information of the terminal, combine the moving images of the people corresponding to the extracted video information, so that the moving image of the person exists in the same screen, and/or, combine the images received from each client at the same time Audio information overlay processing. For the specific processing process, reference may be made to the foregoing embodiments, and details are not described here.

在本发明一实施例中,若客户端通过检查和判断得知自身使用网络的网络状态没有达到预设网络状态,则向云端服务器发送获取共享音频的请求消息。云端服务器接收到来自客户端的获取共享音频的请求消息后,将按照预置规则对同一时刻接收的来自各客户端的音频信息进行处理后得到的共享音频发送至客户端中,由客户端对共享音频进行播放。In an embodiment of the present invention, if the client finds that the network status of the network it uses has not reached the preset network status through inspection and judgment, it sends a request message for obtaining shared audio to the cloud server. After the cloud server receives the request message from the client to obtain the shared audio, it will send the shared audio obtained by processing the audio information received from each client at the same time according to the preset rules to the client, and the client will analyze the shared audio. to play.

在该实施例中,网络状态可以包括客户端使用网络的当前网速、网络信号强度等等中的至少一个。In this embodiment, the network status may include at least one of the current network speed of the network used by the client, network signal strength and the like.

在本发明一实施例中,在步骤S202接收至少两个客户端同步上传的视频信息和/或音频信息之前,云端服务器先接收到至少两个客户端中任一客户端发送的共享请求,其中,共享请求中携带至少两个客户端中其他客户端的标识信息。然后云端服务器将接收到的共享请求转发至标识信息对应的其他客户端中,由其他客户端依据接收到的共享请求确定是否进行视频和/或音频共享。若接收到其他客户端返回的共享确定的消息,为至少两个客户端提供视频和/或音频共享服务。这里其他客户端指的是至少两个客户端中除了发出共享请求的任一客户端之外的客户端中。In an embodiment of the present invention, before receiving the video information and/or audio information synchronously uploaded by at least two clients in step S202, the cloud server first receives a sharing request sent by any one of the at least two clients, wherein , the sharing request carries identification information of other clients among the at least two clients. Then the cloud server forwards the received sharing request to other clients corresponding to the identification information, and the other clients determine whether to perform video and/or audio sharing according to the received sharing request. Provide video and/or audio sharing services for at least two clients if receiving sharing determination messages returned by other clients. Here, other clients refer to at least two clients except any client that issues a sharing request.

在本发明一实施例中,为了保证多个视频和/或音频在共享过程中的安全性,云端服务器在对接收到的视频信息和/或音频信息进行处理后,还可以将得到共享视频和/或共享音频进行加密,当有新加入的客户端想要获取共享视频和/或共享音频时,需要对共享音频、视频进行解密,从而获取到共享视频和/或共享音频,并可以进入到当前共享视频和/或共享音频中。In an embodiment of the present invention, in order to ensure the security of multiple videos and/or audios during the sharing process, after the cloud server processes the received video information and/or audio information, it can also obtain the shared video and/or audio information. / or shared audio is encrypted, when a newly added client wants to obtain shared video and/or shared audio, it needs to decrypt shared audio and video, so as to obtain shared video and/or shared audio, and can enter Currently sharing video and/or sharing audio.

基于同一发明构思,本发明实施例还提供了一种多个视频、音频共享的装置,应用于至少两个客户端,至少两个客户端通过接入云端服务器实现视频、音频的共享。图3示出了根据本发明一个实施例的多个视频、音频共享的装置的结构示意图。参见图3,多个视频、音频共享的装置300至少包括第一接收模块310、上传模块320以及共享模块330。Based on the same inventive concept, the embodiment of the present invention also provides a device for sharing multiple videos and audios, which is applied to at least two clients, and at least two clients realize the sharing of videos and audios by accessing the cloud server. Fig. 3 shows a schematic structural diagram of multiple video and audio sharing devices according to an embodiment of the present invention. Referring to FIG. 3 , an apparatus 300 for sharing multiple videos and audios includes at least a first receiving module 310 , an uploading module 320 and a sharing module 330 .

现介绍本发明实施例的基于多个视频、音频共享的装置300的各组成或器件的功能以及各部分间的连接关系:The function of each component or device and the connection relationship between each part of the device 300 based on multiple video and audio sharing in the embodiment of the present invention are now introduced:

第一接收模块310,适于接收来自采集设备实时采集的视频信息和/或音频信息;其中,采集设备包括机顶盒、音箱、智能摄像头等等中的至少之一。The first receiving module 310 is adapted to receive video information and/or audio information collected in real time from a collection device; wherein the collection device includes at least one of a set-top box, a sound box, a smart camera, and the like.

上传模块320,与第一接收模块310耦合,适于将接收到的视频信息和/或音频信息同步上传至云端服务器,由云端服务器按照预置规则对同一时刻接收的来自各客户端的视频信息和/或音频信息进行处理,得到共享视频和/或共享音频;The upload module 320 is coupled with the first receiving module 310, and is suitable for synchronously uploading the received video information and/or audio information to the cloud server, and the cloud server analyzes the video information and audio information received from each client at the same time according to preset rules. /or audio information is processed to obtain shared video and/or shared audio;

共享模块330,与上传模块320,适于接收云端服务器发送的共享视频和/或共享音频,对共享视频和/或共享音频进行播放。The sharing module 330 and the uploading module 320 are adapted to receive the shared video and/or shared audio sent by the cloud server, and play the shared video and/or shared audio.

在本发明一实施例中,上传模块320还适于,由云端服务器从同一时刻接收到的来自各客户端的视频信息中提取人的动态图像,将提取的各视频信息对应的人的动态图像合并处理,使人的动态图像存在于同一画面中,和/或由云端服务器将同一时刻接收到的来自各客户端的音频信息叠加处理。In an embodiment of the present invention, the uploading module 320 is also suitable for extracting dynamic images of people from the video information received from each client at the same time by the cloud server, and merging the dynamic images of people corresponding to the extracted video information. Processing, so that the dynamic images of people exist in the same screen, and/or the cloud server superimposes the audio information received from each client at the same time.

本发明实施例中,参见图4,多个视频、音频共享的装置300除了包含上文各模块之外,还包括检测模块340、第一请求模块350、第二请求模块360以及确定模块370。In the embodiment of the present invention, referring to FIG. 4 , multiple video and audio sharing devices 300 include a detection module 340 , a first request module 350 , a second request module 360 and a determination module 370 in addition to the above modules.

检测模块340,与第一接收模块310和上传模块320分别耦合,适于客户端检测其使用网络的网络状态,判断检测到的网络状态是否达到预设网络状态。若否,获取接收到的音频信息,将音频信息上传至云端服务器。若是,将接收到的视频信息和音频信息同步上传至云端服务器。其中,网络状态包括客户端使用网络的当前网速、网络信号强度中的至少一个。The detection module 340 is coupled with the first receiving module 310 and the uploading module 320 respectively, and is suitable for the client to detect the network status of the network it uses, and judge whether the detected network status reaches the preset network status. If not, obtain the received audio information, and upload the audio information to the cloud server. If yes, upload the received video information and audio information to the cloud server synchronously. Wherein, the network status includes at least one of the current network speed and network signal strength of the network used by the client.

第一请求模块350,与检测模块340耦合,适于若客户端使用的网络状态未达到预设网络状态,向云端服务器发送获取共享音频的请求消息,由云端服务器按照预置规则对同一时刻接收的来自各客户端的音频信息进行处理得到共享音频。该实施例中,共享模块330还适于,接收云端服务器发送的共享音频,对共享音频进行播放。The first request module 350, coupled with the detection module 340, is suitable for sending a request message for obtaining shared audio to the cloud server if the network state used by the client does not reach the preset network state, and the cloud server receives it at the same time according to preset rules The audio information from each client is processed to obtain shared audio. In this embodiment, the sharing module 330 is further adapted to receive the shared audio sent by the cloud server, and play the shared audio.

第二请求模块360,与第一接收模块310耦合,适于在第一接收模块310接收来自采集设备实时采集的视频信息和/或音频信息之前,至少两个客户端中任一客户端向云端服务器发送共享请求,其中,共享请求中携带至少两个客户端中其他客户端的标识信息,由云端服务器将共享请求发送至标识信息对应的其他客户端中;The second request module 360, coupled with the first receiving module 310, is adapted to send any client in at least two clients to the cloud before the first receiving module 310 receives the video information and/or audio information collected in real time from the acquisition device. The server sends a sharing request, wherein the sharing request carries identification information of other clients among at least two clients, and the cloud server sends the sharing request to other clients corresponding to the identification information;

确定模块370,与第二请求模块360耦合,适于当其他客户端接收到来自云端服务器发送的共享请求后,若确定进行视频和/或音频共享,则向云端服务器返回共享确定的消息,至少两个客户端之间进行视频和/或音频共享。The determining module 370, coupled with the second requesting module 360, is adapted to return a shared confirmation message to the cloud server if other clients receive the sharing request from the cloud server and determine to perform video and/or audio sharing, at least Video and/or audio sharing between two clients.

本发明实施例还提供了另一种多个视频、音频共享的装置,应用于云端服务器,至少两个客户端通过接入云端服务器实现视频、音频的共享。图5示出了根据本发明另一个实施例的多个视频、音频共享的装置的结构示意图。参见图5,多个视频、音频共享的装置500至少包括第二接收模块510、处理模块520以及发送模块530。The embodiment of the present invention also provides another device for sharing multiple videos and audios, which is applied to a cloud server, and at least two clients realize video and audio sharing by accessing the cloud server. Fig. 5 shows a schematic structural diagram of multiple video and audio sharing devices according to another embodiment of the present invention. Referring to FIG. 5 , an apparatus 500 for sharing multiple videos and audios includes at least a second receiving module 510 , a processing module 520 and a sending module 530 .

现介绍本发明实施例的基于多个视频、音频共享的装置500的各组成或器件的功能以及各部分间的连接关系:The function of each component or device and the connection relationship between the various parts of the device 500 based on multiple video and audio sharing in the embodiment of the present invention are now introduced:

第二接收模块510,适于接收至少两个客户端同步上传的视频信息和/或音频信息,其中,视频信息和/或音频信息由采集设备实时采集得到;其中,采集设备包括机顶盒、音箱、智能摄像头等等中的至少之一。The second receiving module 510 is adapted to receive video information and/or audio information synchronously uploaded by at least two clients, wherein the video information and/or audio information are collected in real time by a collection device; wherein the collection device includes a set-top box, a sound box, At least one of smart cameras and more.

处理模块520,与第二接收模块510耦合,适于按照预置规则对同一时刻接收的来自各客户端的视频信息和/或音频信息进行处理,得到共享视频和/或共享音频;The processing module 520, coupled with the second receiving module 510, is adapted to process the video information and/or audio information received from each client at the same time according to preset rules to obtain shared video and/or shared audio;

发送模块530,与处理模块520耦合,适于将共享视频和/或共享音频分别发送至各客户端中,由客户端对共享视频和/或共享音频进行播放。The sending module 530, coupled with the processing module 520, is adapted to send the shared video and/or shared audio to each client respectively, and the client plays the shared video and/or shared audio.

在本发明一实施例中,处理模块520还适于,从同一时刻接收到的来自各客户端的视频信息中提取人的动态图像,将提取的各视频信息对应的人的动态图像合并处理,使人的动态图像存在于同一画面中,和/或将同一时刻接收到的来自各客户端的音频信息叠加处理。In an embodiment of the present invention, the processing module 520 is also adapted to extract the dynamic images of people from the video information received from each client at the same time, and combine and process the dynamic images of the people corresponding to the extracted video information, so that The dynamic images of people exist in the same screen, and/or the audio information received from each client at the same time is superimposed and processed.

在本发明一实施例中,第二接收模块510还适于,若客户端使用网络的网络状态未达到预设网络状态,接收客户端发送的获取共享音频的请求消息。其中,网络状态包括客户端使用网络的当前网速、网络信号强度中的至少一个。发送模块530还适于,将按照预置规则对同一时刻接收的来自各客户端的音频信息进行处理后得到的共享音频发送至客户端中,由客户端对共享音频进行播放。In an embodiment of the present invention, the second receiving module 510 is further adapted to, if the network state of the network used by the client does not reach the preset network state, receive a request message for obtaining shared audio sent by the client. Wherein, the network status includes at least one of the current network speed and network signal strength of the network used by the client. The sending module 530 is also adapted to send the shared audio obtained by processing the audio information received from each client at the same time according to preset rules to the client, and the client plays the shared audio.

在本发明一实施例中,第二接收模块510还适于,接收至少两个客户端中任一客户端发送的共享请求,其中,共享请求中携带至少两个客户端中其他客户端的标识信息。发送模块530还适于,将接收到的共享请求发送至标识信息对应的其他客户端中,由其他客户端依据接收到的共享请求确定是否进行视频和/或音频共享。第二接收模块510还适于,若接收到其他客户端返回的共享确定的消息,为至少两个客户端提供视频和/或音频共享服务。In an embodiment of the present invention, the second receiving module 510 is further adapted to receive a sharing request sent by any one of the at least two clients, wherein the sharing request carries identification information of other clients among the at least two clients . The sending module 530 is further adapted to send the received sharing request to other clients corresponding to the identification information, and the other clients determine whether to perform video and/or audio sharing according to the received sharing request. The second receiving module 510 is further adapted to provide video and/or audio sharing services for at least two clients if a sharing confirmation message returned by other clients is received.

本发明还提供了一种多个视频、音频共享的系统,参见图6,多个视频、音频共享的系统600可以包括上文中的应用于至少两个客户端中的多个视频、音频共享的装置300和应用于云端服务器中的多个视频、音频共享的装置500。The present invention also provides a system for sharing multiple videos and audios. Referring to FIG. 6, the system 600 for sharing multiple videos and audios may include the above-mentioned multiple video and audio sharing system applied to at least two clients. The device 300 and the device 500 applied to multiple video and audio sharing in the cloud server.

依据本发明的再一方面,还提供了一种计算机存储介质,计算机存储介质存储有计算机程序代码,当计算机程序代码在计算设备上运行时,导致计算设备执行上述任意实施例中的多个视频、音频共享的方法。According to still another aspect of the present invention, a computer storage medium is also provided. The computer storage medium stores computer program codes. When the computer program codes are run on the computing device, the computing device is caused to execute multiple video recordings in any of the above-mentioned embodiments. , Audio sharing method.

依据本发明的又一方面,还提供了一种计算设备,包括处理器;存储有计算机程序代码的存储器;当计算机程序代码被处理器运行时,导致计算设备执行上述任意实施例中的多个视频、音频共享的方法。According to yet another aspect of the present invention, a computing device is also provided, including a processor; a memory storing computer program code; when the computer program code is run by the processor, the computing device is caused to execute multiple functions in any of the above-mentioned embodiments. How to share video and audio.

根据上述任意一个优选实施例或多个优选实施例的组合,本发明实施例能够达到如下有益效果:According to any one of the above preferred embodiments or a combination of multiple preferred embodiments, the embodiments of the present invention can achieve the following beneficial effects:

在本发明实施例中,首先利用至少两个客户端接收来自采集设备实时采集的视频信息和/或音频信息,并将接收到的视频信息和/或音频信息同步上传至云端服务器,由云端服务器按照预置规则对同一时刻接收的来自各客户端的视频信息和/或音频信息进行处理,得到共享视频和/或共享音频。最后至少两个客户端接收云端服务器发送的共享视频和/或共享音频,并对共享视频和/或共享音频进行播放,从而实现在多个客户端之间的视频和/或音频的共享。该实施例中的采集设备可以采用现有的视频、音频采集设备,多个用户在各自的终端上安装客户端,便可以实现在多个用户之间通过客户端方便的沟通和互动,为用户提供了更加开放的交流、联络方式。并且,本发明方案的视频、音频共享方案不仅实现过程简单且高效,而且还可以广泛地应用于电话会议、用户视频或语音沟通等多种应用场合。In the embodiment of the present invention, at first, at least two clients are used to receive video information and/or audio information collected in real time from the acquisition device, and the received video information and/or audio information are synchronously uploaded to the cloud server, and the cloud server The video information and/or audio information received from each client at the same time are processed according to preset rules to obtain shared video and/or shared audio. Finally, at least two clients receive the shared video and/or shared audio sent by the cloud server, and play the shared video and/or shared audio, thereby realizing sharing of video and/or audio among multiple clients. The acquisition device in this embodiment can adopt existing video and audio acquisition equipment, and multiple users install the client on their respective terminals, so that convenient communication and interaction through the client can be realized between multiple users, providing users with Provides a more open way of communication and contact. Moreover, the video and audio sharing solution of the solution of the present invention is not only simple and efficient to implement, but also can be widely used in various application occasions such as teleconferencing, user video or voice communication, and the like.

进一步地,本方案还使现有的视频、音频采集设备的功能得到了最大化的发挥,提高了视频、音频采集设备的使用价值。Furthermore, this solution maximizes the functions of the existing video and audio collection equipment, and improves the use value of the video and audio collection equipment.

所属领域的技术人员可以清楚地了解到,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,为简洁起见,在此不另赘述。Those skilled in the art can clearly understand that for the specific working processes of the above-described systems, devices, and units, reference can be made to the corresponding processes in the foregoing method embodiments, and for the sake of brevity, details are not described here.

另外,在本发明各个实施例中的各功能单元可以物理上相互独立,也可以两个或两个以上功能单元集成在一起,还可以全部功能单元都集成在一个处理单元中。上述集成的功能单元既可以采用硬件的形式实现,也可以采用软件或者固件的形式实现。In addition, each functional unit in each embodiment of the present invention may be physically independent of each other, or two or more functional units may be integrated together, or all functional units may be integrated into one processing unit. The above-mentioned integrated functional units can be implemented not only in the form of hardware, but also in the form of software or firmware.

本领域普通技术人员可以理解:集成的功能单元如果以软件的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,其包括若干指令,用以使得一台计算设备(例如个人计算机,服务器,或者网络设备等)在运行指令时执行本发明各实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM)、随机存取存储器(RAM),磁碟或者光盘等各种可以存储程序代码的介质。Those skilled in the art can understand that: if the integrated functional units are realized in the form of software and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or all or part of the technical solution can be embodied in the form of software products, the computer software products are stored in a storage medium, which includes a number of instructions to make a A computing device (such as a personal computer, a server, or a network device, etc.) executes all or part of the steps of the methods of the embodiments of the present invention when executing instructions. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and various media capable of storing program codes.

或者,实现前述方法实施例的全部或部分步骤可以通过程序指令相关的硬件(诸如个人计算机,服务器,或者网络设备等的计算设备)来完成,程序指令可以存储于一计算机可读取存储介质中,当程序指令被计算设备的处理器执行时,计算设备执行本发明各实施例方法的全部或部分步骤。Alternatively, all or part of the steps for realizing the foregoing method embodiments may be implemented by program instruction-related hardware (such as a personal computer, server, or computing device such as a network device), and the program instructions may be stored in a computer-readable storage medium , when the program instructions are executed by the processor of the computing device, the computing device executes all or part of the steps of the method in each embodiment of the present invention.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:在本发明的精神和原则之内,其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案脱离本发明的保护范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: Within the spirit and principles of the present invention, it is still possible to modify the technical solutions described in the foregoing embodiments, or to perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the corresponding technical solutions deviate from protection scope of the present invention.

本发明实施例还提供了A1、一种多个视频、音频共享的方法,应用于至少两个客户端,所述至少两个客户端通过接入云端服务器实现视频、音频的共享,包括:The embodiment of the present invention also provides A1, a method for sharing multiple videos and audios, which is applied to at least two clients, and the at least two clients realize the sharing of videos and audios by accessing the cloud server, including:

接收来自采集设备实时采集的视频信息和/或音频信息;Receive video information and/or audio information collected in real time from the collection device;

将接收到的视频信息和/或音频信息同步上传至所述云端服务器,由云端服务器按照预置规则对同一时刻接收的来自各客户端的视频信息和/或音频信息进行处理,得到共享视频和/或共享音频;Synchronously upload the received video information and/or audio information to the cloud server, and the cloud server processes the video information and/or audio information received from each client at the same time according to the preset rules to obtain the shared video and/or audio information or share audio;

接收所述云端服务器发送的共享视频和/或共享音频,对所述共享视频和/或共享音频进行播放。receiving the shared video and/or shared audio sent by the cloud server, and playing the shared video and/or shared audio.

A2、根据A1所述的方法,其中,由云端服务器按照预置规则对同一时刻接收的来自各客户端的视频信息和/或音频信息进行处理,包括:A2. The method according to A1, wherein the video information and/or audio information received from each client at the same time are processed by the cloud server according to preset rules, including:

由云端服务器从同一时刻接收到的来自各客户端的视频信息中提取人的动态图像,将提取的各视频信息对应的人的动态图像合并处理,使人的动态图像存在于同一画面中;和/或The cloud server extracts the dynamic images of people from the video information received from each client at the same time, and merges and processes the dynamic images of people corresponding to the extracted video information, so that the dynamic images of people exist in the same screen; and/ or

由云端服务器将同一时刻接收到的来自各客户端的音频信息叠加处理。The audio information received from each client at the same time is superimposed and processed by the cloud server.

A3、根据A1或A2所述的方法,其中,若客户端接收来自采集设备实时采集的视频信息和音频信息,则将接收到的视频信息和/或音频信息同步上传至所述云端服务器,包括:A3, according to the method described in A1 or A2, wherein, if the client receives the video information and audio information collected in real time from the acquisition device, then upload the received video information and/or audio information to the cloud server synchronously, including :

所述客户端检测其使用网络的网络状态,判断检测到的网络状态是否达到预设网络状态;The client detects the network state of the network it uses, and judges whether the detected network state reaches the preset network state;

若否,获取接收到的音频信息,将所述音频信息上传至云端服务器;If not, obtain the received audio information, and upload the audio information to the cloud server;

若是,将接收到的视频信息和音频信息同步上传至云端服务器。If yes, upload the received video information and audio information to the cloud server synchronously.

A4、根据A3所述的方法,其中,还包括:A4. The method according to A3, which also includes:

若客户端使用的网络状态未达到预设网络状态,向所述云端服务器发送获取共享音频的请求消息,由云端服务器按照预置规则对同一时刻接收的来自各客户端的音频信息进行处理得到共享音频;If the network state used by the client does not reach the preset network state, send a request message for obtaining shared audio to the cloud server, and the cloud server processes the audio information received from each client at the same time according to the preset rules to obtain the shared audio ;

接收所述云端服务器发送的共享音频,对所述共享音频进行播放。receiving the shared audio sent by the cloud server, and playing the shared audio.

A5、根据A3所述的方法,其中,所述网络状态包括所述客户端使用网络的当前网速、网络信号强度中的至少一个。A5. The method according to A3, wherein the network status includes at least one of the current network speed and network signal strength of the network used by the client.

A6、根据A1或A2所述的方法,其中,接收来自采集设备实时采集的视频信息和/或音频信息之前,还包括:A6, according to the method described in A1 or A2, wherein, before receiving the video information and/or audio information collected in real time from the acquisition device, it also includes:

所述至少两个客户端中任一客户端向云端服务器发送共享请求,其中,所述共享请求中携带至少两个客户端中其他客户端的标识信息,由所述云端服务器将共享请求发送至所述标识信息对应的其他客户端中;Any one of the at least two clients sends a sharing request to the cloud server, wherein the sharing request carries identification information of other clients among the at least two clients, and the cloud server sends the sharing request to the cloud server. other clients corresponding to the above identification information;

当所述其他客户端接收到来自云端服务器发送的共享请求后,若确定进行视频和/或音频共享,则向所述云端服务器返回共享确定的消息,所述至少两个客户端之间进行视频和/或音频共享。After the other clients receive the sharing request sent from the cloud server, if it is determined to share video and/or audio, they will return a message of sharing determination to the cloud server, and the video and/or audio sharing will be performed between the at least two clients. and/or audio sharing.

A7、根据A1或A2所述的方法,其中,所述采集设备包括以下至少之一:机顶盒、音箱、智能摄像头。A7. The method according to A1 or A2, wherein the collection device includes at least one of the following: a set-top box, a speaker, and a smart camera.

B8、一种多个视频、音频共享的方法,应用于云端服务器,至少两个客户端通过接入所述云端服务器实现视频、音频的共享,包括:B8. A method for sharing multiple videos and audios, applied to a cloud server, at least two clients realize sharing of videos and audios by accessing the cloud server, including:

接收所述至少两个客户端同步上传的视频信息和/或音频信息,其中,所述视频信息和/或音频信息由采集设备实时采集得到;Receiving video information and/or audio information synchronously uploaded by the at least two clients, wherein the video information and/or audio information is collected by a collection device in real time;

按照预置规则对同一时刻接收的来自各客户端的视频信息和/或音频信息进行处理,得到共享视频和/或共享音频;Process the video information and/or audio information received from each client at the same time according to preset rules to obtain shared video and/or shared audio;

将所述共享视频和/或共享音频分别发送至各客户端中,由所述客户端对所述共享视频和/或共享音频进行播放。The shared video and/or shared audio are respectively sent to each client, and the shared video and/or shared audio is played by the client.

B9、根据B8所述的方法,其中,按照预置规则对同一时刻接收的来自各客户端的视频信息和/或音频信息进行处理,包括:B9. The method according to B8, wherein the video information and/or audio information received from each client at the same time are processed according to preset rules, including:

从同一时刻接收到的来自各客户端的视频信息中提取人的动态图像,将提取的各视频信息对应的人的动态图像合并处理,使人的动态图像存在于同一画面中;和/或Extract the dynamic images of people from the video information received from each client at the same time, and combine and process the dynamic images of people corresponding to the extracted video information, so that the dynamic images of people exist in the same screen; and/or

将同一时刻接收到的来自各客户端的音频信息叠加处理。The audio information received from each client at the same time is superimposed and processed.

B10、根据B8或B9所述的方法,其中,还包括:B10. The method according to B8 or B9, further comprising:

若客户端使用网络的网络状态未达到预设网络状态,接收所述客户端发送的获取共享音频的请求消息;If the network state of the network used by the client does not reach the preset network state, receiving a request message for obtaining shared audio sent by the client;

将按照预置规则对同一时刻接收的来自各客户端的音频信息进行处理后得到的共享音频发送至所述客户端中,由所述客户端对所述共享音频进行播放。The shared audio obtained by processing the audio information received from each client at the same time according to preset rules is sent to the client, and the shared audio is played by the client.

B11、根据B10所述的方法,其中,所述网络状态包括所述客户端使用网络的当前网速、网络信号强度中的至少一个。B11. The method according to B10, wherein the network status includes at least one of the current network speed and network signal strength of the network used by the client.

B12、根据B8或B9所述的方法,其中,接收所述至少两个客户端同步上传的视频信息和/或音频信息之前,还包括:B12. The method according to B8 or B9, wherein, before receiving the video information and/or audio information uploaded synchronously by the at least two clients, it also includes:

接收所述至少两个客户端中任一客户端发送的共享请求,其中,所述共享请求中携带至少两个客户端中其他客户端的标识信息;receiving a sharing request sent by any one of the at least two clients, wherein the sharing request carries identification information of other clients of the at least two clients;

将接收到的共享请求转发至所述标识信息对应的其他客户端中,由所述其他客户端依据接收到的共享请求确定是否进行视频和/或音频共享;forwarding the received sharing request to other clients corresponding to the identification information, and the other clients determine whether to perform video and/or audio sharing according to the received sharing request;

若接收到所述其他客户端返回的共享确定的消息,为所述至少两个客户端提供视频和/或音频共享服务。Provide video and/or audio sharing services for the at least two clients if the sharing confirmation message returned by the other clients is received.

B13、根据B8或B9所述的方法,其中,所述采集设备包括以下至少之一:机顶盒、音箱、智能摄像头。B13. The method according to B8 or B9, wherein the collection device includes at least one of the following: a set-top box, a sound box, and a smart camera.

C14、一种多个视频、音频共享的装置,应用于至少两个客户端,所述至少两个客户端通过接入云端服务器实现视频、音频的共享,包括:C14. A device for sharing multiple videos and audios, which is applied to at least two clients, and the at least two clients realize sharing of videos and audios by accessing a cloud server, including:

第一接收模块,适于接收来自采集设备实时采集的视频信息和/或音频信息;The first receiving module is adapted to receive video information and/or audio information collected in real time from the collection device;

上传模块,适于将接收到的视频信息和/或音频信息同步上传至所述云端服务器,由云端服务器按照预置规则对同一时刻接收的来自各客户端的视频信息和/或音频信息进行处理,得到共享视频和/或共享音频;The upload module is adapted to upload the received video information and/or audio information to the cloud server synchronously, and the cloud server processes the video information and/or audio information received from each client at the same time according to preset rules, Get Shared Video and/or Shared Audio;

共享模块,适于接收所述云端服务器发送的共享视频和/或共享音频,对所述共享视频和/或共享音频进行播放。The sharing module is adapted to receive the shared video and/or shared audio sent by the cloud server, and play the shared video and/or shared audio.

C15、根据C14所述的装置,其中,所述上传模块,还适于:C15. The device according to C14, wherein the upload module is further adapted to:

由云端服务器从同一时刻接收到的来自各客户端的视频信息中提取人的动态图像,将提取的各视频信息对应的人的动态图像合并处理,使人的动态图像存在于同一画面中;和/或The cloud server extracts the dynamic images of people from the video information received from each client at the same time, and merges and processes the dynamic images of people corresponding to the extracted video information, so that the dynamic images of people exist in the same screen; and/ or

由云端服务器将同一时刻接收到的来自各客户端的音频信息叠加处理。The audio information received from each client at the same time is superimposed and processed by the cloud server.

C16、根据C14或C15所述的装置,其中,还包括:C16. The device according to C14 or C15, further comprising:

检测模块,适于所述客户端检测其使用网络的网络状态,判断检测到的网络状态是否达到预设网络状态;The detection module is suitable for the client to detect the network state of the network it uses, and judge whether the detected network state reaches the preset network state;

若否,获取接收到的音频信息,将所述音频信息上传至云端服务器;If not, obtain the received audio information, and upload the audio information to the cloud server;

若是,将接收到的视频信息和音频信息同步上传至云端服务器。If yes, upload the received video information and audio information to the cloud server synchronously.

C17、根据C16所述的装置,其中,还包括:C17. The device according to C16, further comprising:

第一请求模块,适于若客户端使用的网络状态未达到预设网络状态,向所述云端服务器发送获取共享音频的请求消息,由云端服务器按照预置规则对同一时刻接收的来自各客户端的音频信息进行处理得到共享音频;The first request module is adapted to send a request message for obtaining shared audio to the cloud server if the network state used by the client does not reach the preset network state, and the cloud server will compare the information received from each client at the same time according to the preset rules. Audio information is processed to obtain shared audio;

所述共享模块,还适于接收所述云端服务器发送的共享音频,对所述共享音频进行播放。The sharing module is further adapted to receive the shared audio sent by the cloud server, and play the shared audio.

C18、根据C16所述的装置,其中,所述网络状态包括所述客户端使用网络的当前网速、网络信号强度中的至少一个。C18. The device according to C16, wherein the network status includes at least one of the current network speed and network signal strength of the network used by the client.

C19、根据C14或C15所述的装置,其中,还包括:C19. The device according to C14 or C15, further comprising:

第二请求模块,适于在所述第一接收模块接收来自采集设备实时采集的视频信息和/或音频信息之前,所述至少两个客户端中任一客户端向云端服务器发送共享请求,其中,所述共享请求中携带至少两个客户端中其他客户端的标识信息,由所述云端服务器将共享请求发送至所述标识信息对应的其他客户端中;The second request module is adapted to send a sharing request to the cloud server from any one of the at least two clients before the first receiving module receives the video information and/or audio information collected in real time from the collection device, wherein , the sharing request carries identification information of other clients among at least two clients, and the cloud server sends the sharing request to other clients corresponding to the identification information;

确定模块,适于当所述其他客户端接收到来自云端服务器发送的共享请求后,若确定进行视频和/或音频共享,则向所述云端服务器返回共享确定的消息,所述至少两个客户端之间进行视频和/或音频共享。The determining module is adapted to return a sharing confirmation message to the cloud server if the other client receives the sharing request sent from the cloud server, and the at least two clients video and/or audio sharing between peers.

C20、根据C14或C15所述的装置,其中,所述采集设备包括以下至少之一:机顶盒、音箱、智能摄像头。C20. The device according to C14 or C15, wherein the acquisition device includes at least one of the following: a set-top box, a speaker, and a smart camera.

D21、一种多个视频、音频共享的装置,应用于云端服务器,至少两个客户端通过接入所述云端服务器实现视频、音频的共享,包括:D21. A device for sharing multiple videos and audios, which is applied to a cloud server, and at least two clients realize the sharing of videos and audios by accessing the cloud server, including:

第二接收模块,适于接收所述至少两个客户端同步上传的视频信息和/或音频信息,其中,所述视频信息和/或音频信息由采集设备实时采集得到;The second receiving module is adapted to receive the video information and/or audio information synchronously uploaded by the at least two clients, wherein the video information and/or audio information are collected by the collection device in real time;

处理模块,适于按照预置规则对同一时刻接收的来自各客户端的视频信息和/或音频信息进行处理,得到共享视频和/或共享音频;The processing module is adapted to process the video information and/or audio information received from each client at the same time according to preset rules to obtain shared video and/or shared audio;

发送模块,适于将所述共享视频和/或共享音频分别发送至各客户端中,由所述客户端对所述共享视频和/或共享音频进行播放。The sending module is adapted to send the shared video and/or shared audio to each client respectively, and the client plays the shared video and/or shared audio.

D22、根据D21所述的装置,其中,所述处理模块,还适于:D22. The device according to D21, wherein the processing module is further adapted to:

从同一时刻接收到的来自各客户端的视频信息中提取人的动态图像,将提取的各视频信息对应的人的动态图像合并处理,使人的动态图像存在于同一画面中;和/或Extract the dynamic images of people from the video information received from each client at the same time, and combine and process the dynamic images of people corresponding to the extracted video information, so that the dynamic images of people exist in the same screen; and/or

将同一时刻接收到的来自各客户端的音频信息叠加处理。The audio information received from each client at the same time is superimposed and processed.

D23、根据D21或D22所述的装置,其中,D23. The device according to D21 or D22, wherein,

所述第二接收模块,还适于若客户端使用网络的网络状态未达到预设网络状态,接收所述客户端发送的获取共享音频的请求消息;The second receiving module is further adapted to receive a request message for acquiring shared audio sent by the client if the network status of the network used by the client has not reached the preset network status;

所述发送模块,还适于将按照预置规则对同一时刻接收的来自各客户端的音频信息进行处理后得到的共享音频发送至所述客户端中,由所述客户端对所述共享音频进行播放。The sending module is further adapted to send the shared audio obtained after processing the audio information received from each client at the same time according to preset rules to the client, and the client performs the shared audio play.

D24、根据D23所述的装置,其中,所述网络状态包括所述客户端使用网络的当前网速、网络信号强度中的至少一个。D24. The device according to D23, wherein the network status includes at least one of the current network speed and network signal strength of the network used by the client.

25、根据D21或D22所述的装置,其中,25. The device according to D21 or D22, wherein,

所述第二接收模块,还适于接收所述至少两个客户端中任一客户端发送的共享请求,其中,所述共享请求中携带至少两个客户端中其他客户端的标识信息;The second receiving module is further adapted to receive a sharing request sent by any one of the at least two clients, wherein the sharing request carries identification information of other clients of the at least two clients;

所述发送模块,还适于将接收到的共享请求发送至所述标识信息对应的其他客户端中,由所述其他客户端依据接收到的共享请求确定是否进行视频和/或音频共享;The sending module is further adapted to send the received sharing request to other clients corresponding to the identification information, and the other clients determine whether to perform video and/or audio sharing according to the received sharing request;

所述第二接收模块,还适于若接收到所述其他客户端返回的共享确定的消息,为所述至少两个客户端提供视频和/或音频共享服务。The second receiving module is further adapted to provide video and/or audio sharing services for the at least two clients if the sharing determination message returned by the other clients is received.

D26、根据D21或D22所述的装置,其中,所述采集设备包括以下至少之一:机顶盒、音箱、智能摄像头。D26. The device according to D21 or D22, wherein the collection device includes at least one of the following: a set-top box, a speaker, and a smart camera.

E27、一种计算机存储介质,所述计算机存储介质存储有计算机程序代码,当所述计算机程序代码在计算设备上运行时,导致所述计算设备执行A1-A13中任一项所述的多个视频、音频共享的方法。E27. A computer storage medium, the computer storage medium stores computer program code, and when the computer program code is run on a computing device, it causes the computing device to execute the multiple steps described in any one of A1-A13. How to share video and audio.

F28、一种计算设备,包括:处理器;存储有计算机程序代码的存储器;当所述计算机程序代码被所述处理器运行时,导致所述计算设备执行A1-A13中任一项所述的多个视频、音频共享的方法。F28. A computing device, comprising: a processor; a memory storing computer program code; when the computer program code is executed by the processor, the computing device is caused to execute any one of A1-A13 Multiple video and audio sharing methods.

Claims (10)

1. a kind of shared method of multiple videos, audio, is applied at least two clients, at least two client passes through Access cloud server realize video, audio it is shared, comprising:
Receive the video information acquired in real time from acquisition equipment and/or audio-frequency information;
By the video information received and/or audio-frequency information synchronized upload to the cloud server, by cloud server according to The presetting rule video information and/or audio-frequency information from each client received to synchronization is handled, and is shared Video and/or shared audio;
The shared video and/or shared audio that the cloud server is sent are received, to the shared video and/or shared audio It plays out.
2. according to the method described in claim 1, wherein, by cloud server according to presetting rule it is received to synchronization Lai It is handled from the video information and/or audio-frequency information of each client, comprising:
The dynamic image of people is extracted from the video information from each client that synchronization receives by cloud server, it will The dynamic image merging treatment of the corresponding people of each video information extracted, is present in the dynamic image of people in same picture;With/ Or
The audio-frequency information superposition processing from each client for being received synchronization by cloud server.
3. method according to claim 1 or 2, wherein if client receives the video acquired in real time from acquisition equipment Information and audio-frequency information then wrap the video information received and/or audio-frequency information synchronized upload to the cloud server It includes:
The client detect its use network network state, judge the network state detected whether reach preset it is network-like State;
If it is not, obtaining the audio-frequency information received, the audio-frequency information is uploaded to cloud server;
If so, by the video information received and audio-frequency information synchronized upload to cloud server.
4. according to the method described in claim 3, wherein, further includes:
If the not up to default network state of the network state that client uses, sends to the cloud server and obtains shared audio Request message, carried out by cloud server according to presetting rule audio-frequency information from each client received to synchronization Processing obtains shared audio;
The shared audio that the cloud server is sent is received, the shared audio is played out.
5. according to the method described in claim 3, wherein, the network state includes the current net that the client uses network At least one of speed, network signal intensity.
6. a kind of shared method of multiple videos, audio, is applied to cloud server, at least two clients pass through described in access Cloud server realize video, audio it is shared, comprising:
Receive the video information and/or audio-frequency information that at least two client synchronization uploads, wherein the video information And/or audio-frequency information is collected in real time by acquisition equipment;
It is handled according to the presetting rule video information and/or audio-frequency information from each client received to synchronization, Obtain shared video and/or shared audio;
The shared video and/or shared audio are respectively sent in each client, by the client to the shared view Frequency and/or shared audio play out.
7. the shared device of a kind of multiple videos, audio, is applied at least two clients, at least two client passes through Access cloud server realize video, audio it is shared, comprising:
First receiving module, suitable for receiving the video information acquired in real time from acquisition equipment and/or audio-frequency information;
Uploading module, suitable for by the video information received and/or audio-frequency information synchronized upload to the cloud server, by cloud Hold server according to the presetting rule video information and/or audio-frequency information from each client received to synchronization at Reason obtains shared video and/or shared audio;
Sharing module, suitable for receiving the shared video and/or shared audio that the cloud server is sent, to the shared video And/or shared audio plays out.
8. the shared device of a kind of multiple videos, audio, is applied to cloud server, at least two clients pass through described in access Cloud server realize video, audio it is shared, comprising:
Second receiving module, suitable for receiving the video information and/or audio-frequency information that at least two client synchronization uploads, In, the video information and/or audio-frequency information are collected in real time by acquisition equipment;
Processing module, suitable for according to the presetting rule video information and/or audio from each client received to synchronization Information is handled, and shared video and/or shared audio are obtained;
Sending module, suitable for the shared video and/or shared audio to be respectively sent in each client, by the client The shared video and/or shared audio are played out.
9. a kind of computer storage medium, the computer storage medium is stored with computer program code, when the computer When program code is run on the computing device, the calculating equipment perform claim is caused to require multiple described in any one of 1-5 The shared method of video, audio.
10. a kind of calculating equipment, comprising: processor;It is stored with the memory of computer program code;When the computer program When code is run by the processor, cause the calculating equipment perform claim require multiple videos described in any one of 1-5, The shared method of audio.
CN201810871270.8A 2018-08-02 2018-08-02 The shared method and device of a kind of multiple videos, audio Pending CN109040245A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810871270.8A CN109040245A (en) 2018-08-02 2018-08-02 The shared method and device of a kind of multiple videos, audio

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810871270.8A CN109040245A (en) 2018-08-02 2018-08-02 The shared method and device of a kind of multiple videos, audio

Publications (1)

Publication Number Publication Date
CN109040245A true CN109040245A (en) 2018-12-18

Family

ID=64648737

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810871270.8A Pending CN109040245A (en) 2018-08-02 2018-08-02 The shared method and device of a kind of multiple videos, audio

Country Status (1)

Country Link
CN (1) CN109040245A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110728987A (en) * 2019-10-23 2020-01-24 随锐科技集团股份有限公司 Method for acquiring real-time conference sharing audio of Windows computer
CN110868462A (en) * 2019-11-07 2020-03-06 广东西欧克实业有限公司 Distributed control multimedia loudspeaker box equipment
CN111182251A (en) * 2020-01-06 2020-05-19 成都佳发安泰教育科技股份有限公司 Video backup method and device applied to online patrol synchronous transcoding and with hot-pluggable storage medium
WO2021159864A1 (en) * 2020-02-11 2021-08-19 华为技术有限公司 Method for transmitting video and audio data, cloud server and system
CN114267365A (en) * 2021-12-17 2022-04-01 北京达佳互联信息技术有限公司 Audio processing method, device, system and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1856089A (en) * 2005-04-21 2006-11-01 三星电子株式会社 Method of providing video call service in mobile station in a weak signal environment
CN101141613A (en) * 2007-10-10 2008-03-12 中国联合通信有限公司 Video session switch control system and method
CN105491393A (en) * 2015-12-02 2016-04-13 北京暴风科技股份有限公司 Method for implementing multi-user live video business
US20170155872A1 (en) * 2015-11-30 2017-06-01 Le Holdings (Beijing) Co., Ltd. Method and device for audio/video sharing
CN107995499A (en) * 2017-12-04 2018-05-04 腾讯科技(深圳)有限公司 Processing method, device and the relevant device of media data
CN108055495A (en) * 2017-12-14 2018-05-18 南京美桥信息科技有限公司 A kind of visual virtual party method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1856089A (en) * 2005-04-21 2006-11-01 三星电子株式会社 Method of providing video call service in mobile station in a weak signal environment
CN101141613A (en) * 2007-10-10 2008-03-12 中国联合通信有限公司 Video session switch control system and method
US20170155872A1 (en) * 2015-11-30 2017-06-01 Le Holdings (Beijing) Co., Ltd. Method and device for audio/video sharing
CN105491393A (en) * 2015-12-02 2016-04-13 北京暴风科技股份有限公司 Method for implementing multi-user live video business
CN107995499A (en) * 2017-12-04 2018-05-04 腾讯科技(深圳)有限公司 Processing method, device and the relevant device of media data
CN108055495A (en) * 2017-12-14 2018-05-18 南京美桥信息科技有限公司 A kind of visual virtual party method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110728987A (en) * 2019-10-23 2020-01-24 随锐科技集团股份有限公司 Method for acquiring real-time conference sharing audio of Windows computer
CN110728987B (en) * 2019-10-23 2022-02-11 随锐科技集团股份有限公司 Method for acquiring real-time conference sharing audio of Windows computer
CN110868462A (en) * 2019-11-07 2020-03-06 广东西欧克实业有限公司 Distributed control multimedia loudspeaker box equipment
CN111182251A (en) * 2020-01-06 2020-05-19 成都佳发安泰教育科技股份有限公司 Video backup method and device applied to online patrol synchronous transcoding and with hot-pluggable storage medium
CN111182251B (en) * 2020-01-06 2022-06-28 成都佳发安泰教育科技股份有限公司 Video backup method and device applied to online patrol synchronous transcoding and with hot-pluggable storage medium
WO2021159864A1 (en) * 2020-02-11 2021-08-19 华为技术有限公司 Method for transmitting video and audio data, cloud server and system
CN114267365A (en) * 2021-12-17 2022-04-01 北京达佳互联信息技术有限公司 Audio processing method, device, system and storage medium

Similar Documents

Publication Publication Date Title
US10123066B2 (en) Media playback method, apparatus, and system
CN109040245A (en) The shared method and device of a kind of multiple videos, audio
WO2017092360A1 (en) Interaction method and device used when multimedia is playing
WO2017181777A1 (en) Panoramic live video streaming method, device, system, and video source control apparatus
WO2016124101A1 (en) Information display method, apparatus and system
CN105247854A (en) Method and system for associating an external device to video conference session
TW201507483A (en) Video message system, terminal and implement method of video message
CN112822435A (en) A security method, device and system that can be easily accessed by users
CN107040825B (en) Terminal, TV, multi-screen interactive system and setting method of screen capture parameters
WO2015184861A1 (en) Method and device for processing audio and image information, and terminal device
CN105959614A (en) Method and system for processing video conference
US10762913B2 (en) Image-based techniques for audio content
CN108882004B (en) Video recording method, device, equipment and storage medium
US9485458B2 (en) Data processing method and device
CN101888522B (en) Network video conferencing equipment and method for conducting network video conferencing
TWI581626B (en) System and method for processing media files automatically
CN113489934B (en) Intelligent manager server, intelligent manager system and remote screen interaction method
EP3461135A1 (en) Method for managing the access right to a digital content
CN111107296B (en) Audio data acquisition method and device, electronic equipment and readable storage medium
KR20160116493A (en) Multi-Access CCTV System Based on WebRTC
CN113490186B (en) Cloud video enhanced p2p real-time communication method, system and storage medium
CN105306870A (en) File processing methods and devices
TWI872679B (en) Disconnection handling method used for video conference and conference apparatus
CN114374682B (en) Data sharing method and system, storage medium and terminal equipment
US20240235874A1 (en) Methods and systems for communication

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181218

RJ01 Rejection of invention patent application after publication