CN115396410A - Video resource transmission method and device, electronic equipment and storage medium - Google Patents
Video resource transmission method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115396410A CN115396410A CN202210972689.9A CN202210972689A CN115396410A CN 115396410 A CN115396410 A CN 115396410A CN 202210972689 A CN202210972689 A CN 202210972689A CN 115396410 A CN115396410 A CN 115396410A
- Authority
- CN
- China
- Prior art keywords
- terminal
- protocol
- video
- video resource
- identifier
- 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
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 170
- 238000000034 method Methods 0.000 title claims abstract description 83
- 238000010586 diagram Methods 0.000 description 12
- 230000003993 interaction Effects 0.000 description 12
- 230000009286 beneficial effect Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000006835 compression Effects 0.000 description 4
- 238000007906 compression Methods 0.000 description 4
- 238000001914 filtration Methods 0.000 description 4
- 239000003999 initiator Substances 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 4
- 230000002452 interceptive effect Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000011664 signaling Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000008094 contradictory effect Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/15—Conference systems
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,具体而言,涉及一种视频资源的传输方法、装置、电子设备和存储介质。The present invention relates to the field of communication technologies, and in particular, to a video resource transmission method, device, electronic equipment and storage medium.
背景技术Background technique
相关技术中,在进行视频会议时,服务器通常采用固定的码流为的终端设备传输视频。采用这种方案,可能会导致网速较高、解码能力较强的终端观看的视频画面不清晰,可能会导致网速较低、解码能力较弱的终端观看的视频不流畅。In the related art, during a video conference, the server usually uses a fixed bit rate as the terminal device to transmit the video. Using this solution may result in unclear video images watched by terminals with higher network speeds and stronger decoding capabilities, and unsmooth videos watched by terminals with lower network speeds and weaker decoding capabilities.
发明内容Contents of the invention
本发明旨在至少解决相关技术中存在的技术问题之一。The present invention aims to solve at least one of the technical problems existing in the related art.
为此,本发明的第一个方面在于提出一种视频资源的传输方法。To this end, the first aspect of the present invention is to propose a video resource transmission method.
本发明的第二个方面在于提出一种视频资源的传输装置。The second aspect of the present invention is to provide a video resource transmission device.
本发明的第三个方面在于提出一种电子设备。A third aspect of the present invention is to provide an electronic device.
本发明的第四个方面在于提出一种可读存储介质。A fourth aspect of the present invention is to propose a readable storage medium.
有鉴于此,根据本发明的一个方面,提出了一种视频资源的传输方法,该传输方法适用于服务器,该传输方法包括:向终端发送第一协议,并接收终端发送的第二协议;在第一协议和第二协议符合预设条件的情况下,接收终端发送的第一标识;在终端进入视频会议的情况下,根据第一标识确定视频资源,并将视频资源发送至终端;其中,第一协议为服务器的会话协议,第二协议为终端的会话协议,第一标识用于指示终端的多码流,视频资源为多码流的视频资源。In view of this, according to one aspect of the present invention, a video resource transmission method is proposed, the transmission method is suitable for the server, the transmission method includes: sending the first protocol to the terminal, and receiving the second protocol sent by the terminal; When the first protocol and the second protocol meet the preset conditions, receiving the first identification sent by the terminal; when the terminal enters the video conference, determining the video resource according to the first identification, and sending the video resource to the terminal; wherein, The first protocol is the session protocol of the server, the second protocol is the session protocol of the terminal, the first identifier is used to indicate the multi-stream of the terminal, and the video resource is the video resource of the multi-stream.
需要说明的是,本发明所提出的视频资源的传输方法的执行主体可以是视频资源的传输装置,为了更加清楚的对本发明提出的视频资源的传输方法进行说明,下面技术方案中以视频资源的传输方法的执行主体为视频资源的传输装置进行示例性说明。It should be noted that the execution subject of the video resource transmission method proposed by the present invention may be a video resource transmission device. In order to explain the video resource transmission method proposed by the present invention more clearly, the video resource is used in the following technical solutions The execution body of the transmission method is a video resource transmission device for an exemplary description.
在该技术方案中,上述传输方法适用于服务器,上述第一协议表示服务器的会话协议,上述第二协议表示终端的会话协议,上述第一标识表示终端的多码流的标识,能够对终端的多码流进行描述,多码流表示终端可以支持生成多个视频的码流,这些码流是完全独立配置的,可以分别为不同的分辨率、不同的帧速、不同的压缩比率或者不同的编码方式。In this technical solution, the above-mentioned transmission method is applicable to the server, the above-mentioned first protocol represents the session protocol of the server, the above-mentioned second protocol represents the session protocol of the terminal, and the above-mentioned first identifier represents the identifier of the multi-code stream of the terminal, which can be used for the terminal Multiple streams are used for description. Multi-streams mean that the terminal can support the generation of multiple video streams. These streams are completely independently configured and can be different resolutions, different frame rates, different compression ratios, or different video streams. Encoding.
具体地,传输装置首先向终端发送第一协议,并接收终端回传的第二协议。具体而言,传输装置可以根据上述第一协议和上述第二协议确定服务器和终端是否具备多流交互的能力。Specifically, the transmission device first sends the first protocol to the terminal, and receives the second protocol returned by the terminal. Specifically, the transmission device may determine whether the server and the terminal are capable of multi-stream interaction according to the above-mentioned first protocol and the above-mentioned second protocol.
进一步地,传输装置判断第一协议和第二协议是否均符合预设条件,并在均符合预设条件的情况下,接收终端发送的第一标识。Further, the transmission device judges whether the first protocol and the second protocol both meet the preset conditions, and if they both meet the preset conditions, receive the first identifier sent by the terminal.
具体而言,预设条件表示第一协议中包含有第一目标协议,且第二协议中包含有第二目标协议的情况。Specifically, the preset condition represents the situation that the first agreement includes the first target agreement, and the second agreement includes the second target agreement.
具体地,如果第一协议和第二协议符合预设条件,则表明服务器和终端具备多流交互的能力,即在确定服务器和终端具备多流交互的能力的情况下,终端才会发送第一标识,传输装置才会接收到第一标识。Specifically, if the first protocol and the second protocol meet the preset conditions, it indicates that the server and the terminal have the capability of multi-stream interaction, that is, the terminal will send the first identification, the transmission device will receive the first identification.
进一步地,传输装置在确定终端进入视频会议的情况下,根据第一标识确定视频资源,并将视频资源发送给终端。具体而言,根据第一标识可以确定终端对于接收视频资源分辨率、网络带宽或者编码方式等方面的要求,因此,传输装置可以根据上述第一标识确定出待发送的视频资源。Further, when determining that the terminal enters the video conference, the transmission device determines the video resource according to the first identifier, and sends the video resource to the terminal. Specifically, according to the first identifier, the terminal's requirements for receiving video resource resolution, network bandwidth, or encoding method can be determined. Therefore, the transmission device can determine the video resource to be sent according to the first identifier.
在该技术方案中,在第一协议和第二协议符合预设条件的情况下,传输装置能够接收到用于指示终端的多码流的第一标识,在确认终端进入视频会议时,传输装置能够根据第一标识确定视频资源,并能够将视频资源发送给终端。在本发明的技术方案中,传输装置能够根据第一标识为终端发送符合其分辨率、网络带宽和编码方式要求的视频资源,使得服务器能够为不同情况的终端提供合适的视频资源。In this technical solution, when the first protocol and the second protocol meet the preset conditions, the transmission device can receive the first identifier used to indicate the multi-code stream of the terminal, and when confirming that the terminal enters the video conference, the transmission device The video resource can be determined according to the first identifier, and the video resource can be sent to the terminal. In the technical solution of the present invention, the transmission device can send video resources that meet the resolution, network bandwidth and coding mode requirements for the terminal according to the first identification, so that the server can provide suitable video resources for terminals in different situations.
此外,根据本发明的上述技术方案提出的视频资源的传输方法,还可以具有以下附加技术特征:In addition, the video resource transmission method proposed according to the above technical solution of the present invention may also have the following additional technical features:
在上述技术方案中,根据第一标识确定视频资源的步骤具体包括:根据第一标识,确定终端的数据传输需求;根据数据传输需求,生成视频资源。In the above technical solution, the step of determining the video resource according to the first identifier specifically includes: determining the data transmission requirement of the terminal according to the first identifier; and generating the video resource according to the data transmission requirement.
在该技术方案中,终端的数据传输需求表示终端对于视频资源的分辨率、网络带宽和编码方式等方面的要求。In this technical solution, the terminal's data transmission requirements represent the terminal's requirements for video resource resolution, network bandwidth, and encoding methods.
具体地,传输装置根据第一标识确定视频资源的过程为:传输装置首先根据第一标识确定终端的数据传输需求,即确定终端对于视频资源的分辨率、网络带宽和编码方式等方面的要求。Specifically, the process for the transmission device to determine the video resource according to the first identifier is as follows: the transmission device first determines the data transmission requirements of the terminal according to the first identifier, that is, determines the terminal's requirements for video resource resolution, network bandwidth, and encoding methods.
进一步地,传输装置按照上述数据传输需求对视频会议中的视频数据进行处理,确定上述视频资源。Further, the transmission device processes the video data in the video conference according to the above-mentioned data transmission requirements, and determines the above-mentioned video resources.
在该技术方案中,视频资源是传输装置根据终端数据传输需求生成的,这样,使得在视频会议过程中,服务器为终端提供的是与其自身情况相匹配的视频资源,避免了后续步骤中终端根据该视频资源显示的出现不清晰或者显示的视频不流畅的情况。In this technical solution, the video resource is generated by the transmission device according to the data transmission requirements of the terminal, so that during the video conference, the server provides the terminal with a video resource that matches its own situation, avoiding the terminal in the subsequent steps. The display of the video resource is not clear or the displayed video is not smooth.
在上述技术方案中,将视频资源发送至终端的步骤具体包括:通过实时传输协议的通道,向终端发送视频资源。In the above technical solution, the step of sending the video resource to the terminal specifically includes: sending the video resource to the terminal through the channel of the real-time transport protocol.
在该技术方案中,传输装置具体通过实时传输协议(RTP,Real-time TransportProtocol)的通道进行传输,具体而言,通过实时传输协议的通道传输上述视频资源,有利于保证视频资源的低延时性。In this technical solution, the transmission device specifically transmits through the channel of Real-time Transport Protocol (RTP, Real-time Transport Protocol). Specifically, the above-mentioned video resources are transmitted through the channel of Real-time Transport Protocol, which is beneficial to ensure the low delay of video resources. sex.
在上述技术方案中,将视频资源发送至终端后,传输方法还包括:向终端发送布局信息,以使终端根据布局信息和视频资源显示视频会议的画面。In the above technical solution, after the video resource is sent to the terminal, the transmission method further includes: sending layout information to the terminal, so that the terminal displays a picture of the video conference according to the layout information and the video resource.
在该技术方案中,在将视频资源发送给终端后,传送装置还需要向终端发送布局信息。具体而言,根据布局信息可以了解到参加会议的人数,每个参会人的视频窗口等信息,因此,终端可以根据布局信息和视频资源显示视频会议的画面。In this technical solution, after sending the video resource to the terminal, the transmission device also needs to send layout information to the terminal. Specifically, according to the layout information, information such as the number of people participating in the meeting and the video window of each participant can be known, so the terminal can display the picture of the video conference according to the layout information and video resources.
在该技术方案中,在将视频资源发送给终端后,传送装置还能够将布局信息发送给终端,这样,使得终端显示出视频会议的画面符合会议发起人设定的要求。In this technical solution, after sending the video resource to the terminal, the transmission device can also send the layout information to the terminal, so that the video conference screen displayed by the terminal meets the requirements set by the conference initiator.
在上述技术方案中,将视频资源发送至终端之前,传输方法还包括:确认视频资源与布局信息是否匹配,并在匹配的情况下,确认向终端发送视频资源。In the above technical solution, before sending the video resource to the terminal, the transmission method further includes: confirming whether the video resource matches the layout information, and confirming to send the video resource to the terminal if they match.
在该技术方案中,在通过实时传输协议的通道向终端发送视频资源之前,传输装置还需确定视频资源与布局信息中的要求是否匹配,并在匹配的情况下,确认可以向终端发送上述视频资源。In this technical solution, before sending the video resource to the terminal through the channel of the real-time transmission protocol, the transmission device needs to determine whether the video resource matches the requirements in the layout information, and if it matches, confirm that the above video resource can be sent to the terminal. resource.
具体而言,根据第一标识确定的视频资源可能与布局信息中的要求不匹配,即使将视频资源发送给终端,终端也无法显示该视频资源,因此,传输装置增加了过滤机制,在确认视频资源与布局信息相匹配的情况下,才能够将视频资源发送给终端。Specifically, the video resource determined according to the first identifier may not match the requirements in the layout information. Even if the video resource is sent to the terminal, the terminal cannot display the video resource. Therefore, the transmission device adds a filtering mechanism. After confirming the video resource Only when the resource matches the layout information can the video resource be sent to the terminal.
在该技术方案中,在将视频资源发送给终端之前,传输装置还需要确认视频资源与布局信息是否匹配,并在相匹配的情况下,才能够将视频资源发送给终端。这样,为实时传输协议的通道增加了过滤机制,避免了无用的视频资源的传输,更好的避免了出现实时传输协议通道中信令和媒体配合的时序错乱的问题。In this technical solution, before sending the video resource to the terminal, the transmission device also needs to confirm whether the video resource matches the layout information, and only in the case of matching can the video resource be sent to the terminal. In this way, a filtering mechanism is added to the channel of the real-time transport protocol, avoiding the transmission of useless video resources, and better avoiding the problem of timing disorder of signaling and media cooperation in the real-time transport protocol channel.
在上述技术方案中,向终端发送布局信息之前,传输方法还包括:根据第一协议,确定布局信息。In the above technical solution, before sending the layout information to the terminal, the transmission method further includes: determining the layout information according to the first protocol.
在该技术方案中,在向终端发送布局信息之前,传输装置还需要根据第一协议,即服务器的会话协议确定布局信息。可以理解的是,视频会议的发起人会预先设定有关会议的要求,如参加会议的人数,每个参会人的视频窗口的名称等信息,而这些信息通常体现在第一协议中。因此,传输装置可以根据第一协议确定出布局信息。In this technical solution, before sending the layout information to the terminal, the transmission device also needs to determine the layout information according to the first protocol, that is, the session protocol of the server. It is understandable that the initiator of the video conference will pre-set requirements related to the conference, such as the number of participants in the conference, the name of the video window of each participant, etc., and such information is usually reflected in the first protocol. Therefore, the transmission device can determine the layout information according to the first protocol.
在上述技术方案中,传输方法还包括:接收终端发送的第三协议,第三协议为终端根据解码能力和上传带宽更新后的会话协议;根据第三协议,重新确定视频资源和布局信息;将重新确定的视频资源和布局信息发送至终端。In the above technical solution, the transmission method further includes: receiving a third protocol sent by the terminal, the third protocol being a session protocol updated by the terminal according to the decoding capability and upload bandwidth; re-determining the video resources and layout information according to the third protocol; The re-determined video resources and layout information are sent to the terminal.
在该技术方案中,第三协议表示终端根据自身解码能力和自身的上传带宽更新后的会话协议,即终端根据自身实际情况更新后的会话协议。In this technical solution, the third protocol refers to the session protocol updated by the terminal according to its own decoding capability and its own upload bandwidth, that is, the session protocol updated by the terminal according to its own actual situation.
具体地,终端在自身的实际情况发生变化时,如解码能力和上传数据的带宽发生变化时,会对会话协议进行修改,以生成符合自身条件的第三协议,并会将第三协议发送给服务器。因此,传输装置还需要接收第三协议。Specifically, when the actual situation of the terminal changes, such as when the decoding ability and the bandwidth of uploading data change, the terminal will modify the session protocol to generate a third protocol that meets its own conditions, and will send the third protocol to the server. Therefore, the transmitting device also needs to receive the third protocol.
进一步地,传输装置根据第三协议重新确定上述视频资源和上述视频信息,并将重新确定的视频资源和布局信息发送至终端。具体而言,如果接收到第三协议,则表明终端的数据传输需求可能已经发生了变化,因此,传输装置需要根据第三协议重新确定视频资源以及布局信息。Further, the transmission device re-determines the video resource and the video information according to the third protocol, and sends the re-determined video resource and layout information to the terminal. Specifically, if the third protocol is received, it indicates that the data transmission requirement of the terminal may have changed. Therefore, the transmission device needs to re-determine the video resource and layout information according to the third protocol.
在该技术方案中,传输装置可以在接收到第三协议的情况下,即终端根据自身情况修改会话协议的情况下,重新确定视频资源和布局信息,并将重新确定视频资源和布局信息发送给终端。这样,使得终端显示的视频会议的画面是与终端自身情况相适应的,避免了终端出现视频画面不清晰或视频不流畅的情况。In this technical solution, when the transmission device receives the third protocol, that is, when the terminal modifies the session protocol according to its own situation, it can re-determine the video resources and layout information, and send the re-determined video resources and layout information to the terminal. In this way, the video conference picture displayed by the terminal is adapted to the situation of the terminal itself, and the situation that the video picture of the terminal is not clear or the video is not smooth is avoided.
根据本发明的第二个方面,提出了一种视频资源的传输装置,适用于服务器,传输装置包括:传输模块,用于向终端发送第一协议,并接收终端发送的第二协议;传输模块还用于在第一协议和第二协议符合预设条件的情况下,接收终端发送的第一标识;处理模块,用于在终端进入视频会议的情况下,根据第一标识确定视频资源;传输模块还用于将视频资源发送至终端;其中,第一协议为服务器的会话协议,第二协议为终端的会话协议,第一标识用于指示终端的多码流,视频资源为多码流的视频资源。According to the second aspect of the present invention, a video resource transmission device is proposed, which is suitable for a server. The transmission device includes: a transmission module, used to send the first protocol to the terminal, and receive the second protocol sent by the terminal; the transmission module It is also used to receive the first identification sent by the terminal when the first protocol and the second agreement meet the preset conditions; the processing module is used to determine the video resource according to the first identification when the terminal enters the video conference; transmit The module is also used to send video resources to the terminal; wherein, the first protocol is the session protocol of the server, the second protocol is the session protocol of the terminal, the first identifier is used to indicate the multi-stream of the terminal, and the video resource is the session protocol of the multi-stream video resources.
在该技术方案中,上述传输方法适用于服务器,上述第一协议表示服务器的会话协议,上述第二协议表示终端的会话协议,上述第一标识表示终端的多码流的标识,能够对终端的多码流进行描述,多码流表示终端可以支持生成多个视频的码流,这些码流是完全独立配置的,可以分别为不同的分辨率、不同的帧速、不同的压缩比率或者不同的编码方式。In this technical solution, the above-mentioned transmission method is applicable to the server, the above-mentioned first protocol represents the session protocol of the server, the above-mentioned second protocol represents the session protocol of the terminal, and the above-mentioned first identifier represents the identifier of the multi-code stream of the terminal, which can be used for the terminal Multiple streams are used for description. Multi-streams mean that the terminal can support the generation of multiple video streams. These streams are completely independently configured and can be different resolutions, different frame rates, different compression ratios, or different video streams. Encoding.
具体地,传输模块首先向终端发送第一协议,并接收终端回传的第二协议。具体而言,处理模块可以根据上述第一协议和上述第二协议确定服务器和终端是否具备多流交互的能力。Specifically, the transmission module first sends the first protocol to the terminal, and receives the second protocol returned by the terminal. Specifically, the processing module may determine whether the server and the terminal are capable of multi-stream interaction according to the above-mentioned first protocol and the above-mentioned second protocol.
进一步地,处理模块判断第一协议和第二协议是否均符合预设条件,并在确定符合预设条件的情况下,通过传输模块接收终端发送的第一标识。Further, the processing module judges whether the first protocol and the second protocol meet the preset conditions, and receives the first identification sent by the terminal through the transmission module when it is determined that the preset conditions are met.
具体而言,预设条件表示第一协议中包含有第一目标协议,且第二协议中包含有第二目标协议的情况。Specifically, the preset condition represents the situation that the first agreement includes the first target agreement, and the second agreement includes the second target agreement.
具体地,如果第一协议和第二协议符合预设条件,则表明服务器和终端具备多流交互的能力,即在确定服务器和终端具备多流交互的能力的情况下,终端才会发送第一标识,传输模块才会接收到第一标识。Specifically, if the first protocol and the second protocol meet the preset conditions, it indicates that the server and the terminal have the capability of multi-stream interaction, that is, the terminal will send the first ID, the transmission module will receive the first ID.
具体地,如果处理模块判断得出第一协议和第二协议不符合预设条件,则表明服务器和/或终端不具备多流交互的能力,此时,处理模块可采用固定的码流确定视频资源,并通过传输模块将视频资源发送给终端。这样使得视频资源的传输装置可以采用传统模式或多流交互模式为终端发送视频资源。Specifically, if the processing module determines that the first protocol and the second protocol do not meet the preset conditions, it indicates that the server and/or terminal does not have the capability of multi-stream interaction. At this time, the processing module can use a fixed code stream to determine the video resources, and send the video resources to the terminal through the transmission module. In this way, the device for transmitting video resources can transmit video resources for the terminal in a traditional mode or in a multi-stream interactive mode.
进一步地,处理模块在确定终端进入视频会议的情况下,根据第一标识确定视频资源,并通过传输模块将视频资源发送给终端。具体而言,根据第一标识可以确定终端对于接收视频资源分辨率、网络带宽或者编码方式等方面的要求,因此,处理模块可以根据上述第一标识确定出待发送的视频资源。Further, when the processing module determines that the terminal enters the video conference, it determines the video resource according to the first identifier, and sends the video resource to the terminal through the transmission module. Specifically, according to the first identifier, the requirements of the terminal for receiving video resource resolution, network bandwidth, or encoding method can be determined. Therefore, the processing module can determine the video resource to be sent according to the above-mentioned first identifier.
在该技术方案中,在第一协议和第二协议符合预设条件的情况下,传输模块能够接收到用于指示终端的多码流的第一标识,在确认终端进入视频会议时,处理模块能够根据第一标识确定视频资源,传输模块能够将视频资源发送给终端。在本发明的技术方案中,处理模块能够根据第一标识为终端发送符合其分辨率、网络带宽和编码方式要求的视频资源,使得服务器能够为不同情况的终端提供合适的视频资源。In this technical solution, when the first protocol and the second protocol meet the preset conditions, the transmission module can receive the first identifier used to indicate the multi-bit stream of the terminal, and when it is confirmed that the terminal enters the video conference, the processing module The video resource can be determined according to the first identifier, and the transmission module can send the video resource to the terminal. In the technical solution of the present invention, the processing module can send video resources meeting the resolution, network bandwidth and coding mode requirements for the terminal according to the first identification, so that the server can provide suitable video resources for terminals in different situations.
根据本发明第三方面,提出了一种电子设备,该电子设备包括:存储器,存储器中存储有程序或指令;处理器,处理器执行存储在存储器中的程序或指令以实现如本发明上述技术方案提出的视频资源的传输方法的步骤,因而具有本发明上述技术方案提出的视频资源的传输方法的全部有益技术效果,在此不再做过多赘述。According to the third aspect of the present invention, an electronic device is proposed, the electronic device includes: a memory, programs or instructions are stored in the memory; a processor, the processor executes the programs or instructions stored in the memory to implement the above-mentioned technology of the present invention The steps of the video resource transmission method proposed by the solution have all the beneficial technical effects of the video resource transmission method proposed by the above technical solution of the present invention, and will not be repeated here.
根据本发明的第四个方面,提出了一种可读存储介质,其上存储有程序或指令,程序或指令被处理器执行时实现如本发明上述技术方案提出的视频资源的传输方法。因此,该可读存储介质具备本发明上述技术方案提出的视频资源的传输方法的全部有益效果,在此不再赘述。According to a fourth aspect of the present invention, a readable storage medium is provided, on which programs or instructions are stored, and when the programs or instructions are executed by a processor, the method for transmitting video resources as proposed in the technical solution of the present invention is implemented. Therefore, the readable storage medium has all the beneficial effects of the method for transmitting video resources proposed by the above-mentioned technical solution of the present invention, which will not be repeated here.
本发明的附加方面和优点将在下面的描述部分中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will become apparent in the description which follows, or may be learned by practice of the invention.
附图说明Description of drawings
本发明的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and comprehensible from the description of the embodiments in conjunction with the following drawings, wherein:
图1示出了本发明实施例的视频资源的传输方法的流程示意图之一;FIG. 1 shows one of the schematic flow charts of a video resource transmission method according to an embodiment of the present invention;
图2示出了本发明实施例的视频资源的传输方法的流程示意图之二;FIG. 2 shows the second schematic flow diagram of the video resource transmission method according to the embodiment of the present invention;
图3示出了本发明实施例的视频资源的传输方法的流程示意图之三;Fig. 3 shows the third schematic flow diagram of the video resource transmission method according to the embodiment of the present invention;
图4示出了本发明实施例的视频资源的传输方法的流程示意图之四;FIG. 4 shows a fourth schematic flow diagram of a video resource transmission method according to an embodiment of the present invention;
图5示出了本发明实施例的视频资源的传输方法的流程示意图之五;FIG. 5 shows a fifth schematic flow diagram of a video resource transmission method according to an embodiment of the present invention;
图6示出了本发明实施例的视频资源的传输方法的流程示意图之六;FIG. 6 shows a sixth schematic flow diagram of a video resource transmission method according to an embodiment of the present invention;
图7示出了本发明实施例的视频资源的传输方法的流程示意图之七;FIG. 7 shows a seventh schematic flow diagram of a video resource transmission method according to an embodiment of the present invention;
图8示出了本发明实施例的视频资源的传输装置的示意框图;FIG. 8 shows a schematic block diagram of an apparatus for transmitting video resources according to an embodiment of the present invention;
图9示出了本发明实施例的电子设备的示意框图。Fig. 9 shows a schematic block diagram of an electronic device according to an embodiment of the present invention.
具体实施方式Detailed ways
为了能够更清楚地理解本发明的上述目的、特征和优点,下面结合附图和具体实施方式对本发明进行进一步的详细描述。需要说明的是,在不冲突的情况下,本发明的实施例及实施例中的特征可以相互组合。In order to understand the above-mentioned purpose, features and advantages of the present invention more clearly, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other.
在下面的描述中阐述了很多具体细节以便于充分理解本发明,但是,本发明还可以采用其他不同于在此描述的其他方式来实施,因此,本发明的保护范围并不限于下面公开的具体实施例的限制。In the following description, many specific details are set forth in order to fully understand the present invention, but the present invention can also be implemented in other ways different from those described here, therefore, the protection scope of the present invention is not limited to the specific details disclosed below. EXAMPLE LIMITATIONS.
下面结合图1至图9,通过具体的实施例及其应用场景对本发明实施例提供的视频资源的传输方法、装置、电子设备和存储介质进行详细地说明。The video resource transmission method, device, electronic device, and storage medium provided by the embodiments of the present invention are described in detail below through specific embodiments and application scenarios with reference to FIGS. 1 to 9 .
实施例一:Embodiment one:
图1示出了本发明实施例的视频资源的传输方法的流程示意图,适用于服务器,该传输方法包括:Fig. 1 shows a schematic flow diagram of a video resource transmission method according to an embodiment of the present invention, which is applicable to a server, and the transmission method includes:
S102,向终端发送第一协议,并接收终端发送的第二协议;S102. Send the first protocol to the terminal, and receive the second protocol sent by the terminal;
S104,在第一协议和第二协议符合预设条件的情况下,接收终端发送的第一标识;S104. When the first protocol and the second protocol meet the preset conditions, receive the first identifier sent by the terminal;
S106,在终端进入视频会议的情况下,根据第一标识确定视频资源,并将视频资源发送至终端。S106. When the terminal enters the video conference, determine the video resource according to the first identifier, and send the video resource to the terminal.
其中,第一协议为服务器的会话协议,第二协议为终端的会话协议,第一标识用于指示终端的多码流,视频资源为多码流的视频资源。Wherein, the first protocol is the session protocol of the server, the second protocol is the session protocol of the terminal, the first identifier is used to indicate the multi-stream of the terminal, and the video resource is the video resource of the multi-stream.
需要说明的是,本发明所提出的视频资源的传输方法的执行主体可以是视频资源的传输装置,为了更加清楚的对本发明提出的视频资源的传输方法进行说明,下面实施例中以视频资源的传输方法的执行主体为视频资源的传输装置进行示例性说明。It should be noted that the video resource transmission method proposed in the present invention may be executed by a video resource transmission device. In order to explain the video resource transmission method proposed in the present invention more clearly, the video resource transmission method is used in the following embodiments. The execution body of the transmission method is a video resource transmission device for an exemplary description.
在该实施例中,上述传输方法适用于服务器,上述第一协议表示服务器的会话协议,上述第二协议表示终端的会话协议,上述第一标识表示终端的多码流的标识,能够对终端的多码流进行描述,多码流表示终端可以支持生成多个视频的码流,这些码流是完全独立配置的,可以分别为不同的分辨率、不同的帧速、不同的压缩比率或者不同的编码方式。In this embodiment, the above-mentioned transmission method is applicable to the server, the above-mentioned first protocol represents the session protocol of the server, the above-mentioned second protocol represents the session protocol of the terminal, and the above-mentioned first identifier represents the identifier of the multi-code stream of the terminal, which can be used for the terminal Multiple streams are used for description. Multi-streams mean that the terminal can support the generation of multiple video streams. These streams are completely independently configured and can be different resolutions, different frame rates, different compression ratios, or different video streams. Encoding.
具体地,传输装置首先向终端发送第一协议,并接收终端回传的第二协议。具体而言,传输装置可以根据上述第一协议和上述第二协议确定服务器和终端是否具备多流交互的能力。Specifically, the transmission device first sends the first protocol to the terminal, and receives the second protocol returned by the terminal. Specifically, the transmission device may determine whether the server and the terminal are capable of multi-stream interaction according to the above-mentioned first protocol and the above-mentioned second protocol.
进一步地,传输装置判断第一协议和第二协议是否均符合预设条件,并在均符合预设条件的情况下,接收终端发送的第一标识。Further, the transmission device judges whether the first protocol and the second protocol both meet the preset conditions, and if they both meet the preset conditions, receive the first identifier sent by the terminal.
具体而言,预设条件表示第一协议中包含有第一目标协议,且第二协议中包含有第二目标协议的情况。Specifically, the preset condition represents the situation that the first agreement includes the first target agreement, and the second agreement includes the second target agreement.
具体地,如果第一协议和第二协议符合预设条件,则表明服务器和终端具备多流交互的能力,即在确定服务器和终端具备多流交互的能力的情况下,终端才会发送第一标识,传输装置才会接收到第一标识。Specifically, if the first protocol and the second protocol meet the preset conditions, it indicates that the server and the terminal have the capability of multi-stream interaction, that is, the terminal will send the first identification, the transmission device will receive the first identification.
示例性地,以第一协议和第二协议为SDP(Session Description Protocol,描述会话的)协议为例,则第一目标协议为a=sfu-mode:svr,第二目标协议为a=sfu-mode:cli,即在第一协议中包含有a=sfu-mode:svr,且第二协议中包含有a=sfu-mode:cli的情况下,可以确定服务器和终端具备多流交互的能力。Exemplarily, taking the first protocol and the second protocol as an SDP (Session Description Protocol, describing a session) protocol as an example, the first target protocol is a=sfu-mode:svr, and the second target protocol is a=sfu- mode:cli, that is, when the first protocol contains a=sfu-mode:svr, and the second protocol contains a=sfu-mode:cli, it can be determined that the server and the terminal have the capability of multi-stream interaction.
具体地,如果传输装置判断得出第一协议和第二协议不符合预设条件,则表明服务器和/或终端不具备多流交互的能力,此时,传输装置可采用固定的码流确定视频资源,并将视频资源发送给终端。这样使得传输装置可以采用传统模式或多流交互模式为终端发送视频资源。Specifically, if the transmission device determines that the first protocol and the second protocol do not meet the preset conditions, it indicates that the server and/or terminal does not have the capability of multi-stream interaction. At this time, the transmission device can use a fixed code stream to determine the video resource, and send the video resource to the terminal. In this way, the transmission device can use the traditional mode or the multi-stream interactive mode to send video resources to the terminal.
进一步地,传输装置在确定终端进入视频会议的情况下,根据第一标识确定视频资源,并将视频资源发送给终端。具体而言,根据第一标识可以确定终端对于接收视频资源分辨率、网络带宽或者编码方式等方面的要求,因此,传输装置可以根据上述第一标识确定出待发送的视频资源。Further, when determining that the terminal enters the video conference, the transmission device determines the video resource according to the first identifier, and sends the video resource to the terminal. Specifically, according to the first identifier, the terminal's requirements for receiving video resource resolution, network bandwidth, or encoding method can be determined. Therefore, the transmission device can determine the video resource to be sent according to the first identifier.
示例性地,第一标识为SSRC(Synchronous source,同步信源)标识,其中,第一标识包含的字段和字段的含义如表1所示:Exemplarily, the first identifier is an SSRC (Synchronous source, synchronous source) identifier, wherein the fields contained in the first identifier and the meanings of the fields are shown in Table 1:
表1Table 1
在该实施例中,在第一协议和第二协议符合预设条件的情况下,传输装置能够接收到用于指示终端的多码流的第一标识,在确认终端进入视频会议时,传输装置能够根据第一标识确定视频资源,并能够将视频资源发送给终端。在本发明的实施例中,传输装置能够根据第一标识为终端发送符合其分辨率、网络带宽和编码方式要求的视频资源,使得服务器能够为不同情况的终端提供合适的视频资源。In this embodiment, when the first protocol and the second protocol meet the preset conditions, the transmission device can receive the first identifier used to indicate the multi-bit stream of the terminal, and when confirming that the terminal enters the video conference, the transmission device The video resource can be determined according to the first identifier, and the video resource can be sent to the terminal. In the embodiment of the present invention, the transmission device can send video resources meeting the resolution, network bandwidth and coding mode requirements for the terminal according to the first identifier, so that the server can provide suitable video resources for terminals in different situations.
图2示出了本发明实施例的视频资源的传输方法的流程示意图,该传输方法包括:FIG. 2 shows a schematic flow diagram of a video resource transmission method according to an embodiment of the present invention, and the transmission method includes:
S202,向终端发送第一协议,并接收终端发送的第二协议;S202. Send the first protocol to the terminal, and receive the second protocol sent by the terminal;
S204,在第一协议和第二协议符合预设条件的情况下,接收终端发送的第一标识;S204. When the first protocol and the second protocol meet preset conditions, receive the first identifier sent by the terminal;
S206,根据第一标识,确定终端的数据传输需求;S206. Determine the data transmission requirement of the terminal according to the first identifier;
S208,根据数据传输需求,生成视频资源,并将视频资源发送至终端。S208. Generate video resources according to data transmission requirements, and send the video resources to the terminal.
在该实施例中,终端的数据传输需求表示终端对于视频资源的分辨率、网络带宽和编码方式等方面的要求。In this embodiment, the data transmission requirement of the terminal indicates the terminal's requirements for video resource resolution, network bandwidth, and encoding method.
具体地,传输装置根据第一标识确定视频资源的过程为:传输装置首先根据第一标识确定终端的数据传输需求,即确定终端对于视频资源的分辨率、网络带宽和编码方式等方面的要求。Specifically, the process for the transmission device to determine the video resource according to the first identifier is as follows: the transmission device first determines the data transmission requirements of the terminal according to the first identifier, that is, determines the terminal's requirements for video resource resolution, network bandwidth, and encoding methods.
进一步地,传输装置按照上述数据传输需求对视频会议中的视频数据进行处理,确定上述视频资源。Further, the transmission device processes the video data in the video conference according to the above-mentioned data transmission requirements, and determines the above-mentioned video resources.
可以理解的是,在进行视频会议时,可能存在多个终端,因此,在根据终端的数据传输需求时,传输装置还需要考虑其他终端设备的数据传输需求综合确定出上述视频资源,这样,使得服务器能够尽可能满足全部终端的数据传输需求。It can be understood that, during a video conference, there may be multiple terminals. Therefore, according to the data transmission requirements of the terminals, the transmission device also needs to consider the data transmission requirements of other terminal devices to comprehensively determine the above video resources, so that The server can satisfy the data transmission requirements of all terminals as much as possible.
在该实施例中,视频资源是传输装置根据终端数据传输需求生成的,这样,使得在视频会议过程中,服务器为终端提供的是与其自身情况相匹配的视频资源,避免了后续步骤中终端根据该视频资源显示的出现不清晰或者显示的视频不流畅的情况。In this embodiment, the video resource is generated by the transmission device according to the data transmission requirements of the terminal. In this way, during the video conference, the server provides the terminal with video resources that match its own situation, which avoids the terminal in the subsequent steps. The display of the video resource is not clear or the displayed video is not smooth.
图3示出了本发明实施例的视频资源的传输方法的流程示意图,该传输方法包括:FIG. 3 shows a schematic flowchart of a video resource transmission method according to an embodiment of the present invention, and the transmission method includes:
S302,向终端发送第一协议,并接收终端发送的第二协议;S302. Send the first protocol to the terminal, and receive the second protocol sent by the terminal;
S304,在第一协议和第二协议符合预设条件的情况下,接收终端发送的第一标识;S304. When the first protocol and the second protocol meet preset conditions, receive the first identifier sent by the terminal;
S306,在终端进入视频会议的情况下,根据第一标识确定视频资源;S306. When the terminal enters the video conference, determine the video resource according to the first identifier;
S308,通过实时传输协议的通道,向终端发送视频资源。S308. Send the video resource to the terminal through the channel of the real-time transport protocol.
在该实施例中,传输装置具体通过实时传输协议的通道进行传输,具体而言,通过实时传输协议的通道传输上述视频资源,有利于保证视频资源的低延时性。In this embodiment, the transmission device specifically transmits through the channel of the real-time transport protocol. Specifically, transmitting the video resource through the channel of the real-time transport protocol is beneficial to ensure low delay of the video resource.
图4示出了本发明实施例的视频资源的传输方法的流程示意图,该传输方法包括:FIG. 4 shows a schematic flowchart of a method for transmitting video resources according to an embodiment of the present invention. The transmission method includes:
S402,向终端发送第一协议,并接收终端发送的第二协议;S402. Send the first protocol to the terminal, and receive the second protocol sent by the terminal;
S404,在第一协议和第二协议符合预设条件的情况下,接收终端发送的第一标识;S404. When the first protocol and the second protocol meet the preset condition, receive the first identifier sent by the terminal;
S406,在终端进入视频会议的情况下,根据第一标识确定视频资源,并将视频资源发送至终端;S406. When the terminal enters the video conference, determine the video resource according to the first identifier, and send the video resource to the terminal;
S408,向终端发送布局信息,以使终端根据布局信息和视频资源显示视频会议的画面。S408. Send the layout information to the terminal, so that the terminal displays a picture of the video conference according to the layout information and video resources.
在该实施例中,在将视频资源发送给终端后,传送装置还需要向终端发送布局信息。具体而言,根据布局信息可以了解到参加会议的人数,每个参会人的视频窗口等信息,因此,终端可以根据布局信息和视频资源显示视频会议的画面。In this embodiment, after sending the video resource to the terminal, the sending device also needs to send layout information to the terminal. Specifically, according to the layout information, information such as the number of people participating in the meeting and the video window of each participant can be known, so the terminal can display the picture of the video conference according to the layout information and video resources.
示例性地,布局信息包括视频会议的主题、发起人、直播状态、录制状态、演讲者ID(Identity Doucument,编码)等。Exemplarily, the layout information includes the subject of the video conference, the sponsor, the live broadcast status, the recording status, the speaker ID (Identity Doucument, encoding), and the like.
示例性地,布局信息中还可以设置限定终端是否能够自定义分屏的控制协议,例如,在布局信息中自定义分屏协议为force_mcu_layout=1情况下,终端不能自定义分屏,或在布局信息中自定义分屏协议为force_mcu_layout=0的情况下,终端可以选择采用服务器设置的分屏或自定义分屏,这样,在终端能够自定义分屏的情况下,用户可以根据自身的需求调节视频会议显示的画面。具体而言,上述force_mcu_layout字段可以通过布局信息中的meeting_info事件进行发送。Exemplarily, the layout information can also set a control protocol that limits whether the terminal can customize the split screen. For example, if the custom split screen protocol in the layout information is force_mcu_layout=1, the terminal cannot customize the split screen, or in the layout If the custom split screen protocol in the information is force_mcu_layout=0, the terminal can choose to use the split screen set by the server or a custom split screen. In this way, when the terminal can customize the split screen, the user can adjust it according to his own needs. Screenshot of the video conference display. Specifically, the above force_mcu_layout field can be sent through the meeting_info event in the layout information.
示例性地,由于视频会议中的信息是实时变化的,所以传输装置会实时或者间隔一定时长更新布局信息,并将更新后的布局信息发送给终端,这样,可以保证终端显示出的视频会议的画面的准确性。Exemplarily, since the information in the video conference changes in real time, the transmission device will update the layout information in real time or at regular intervals, and send the updated layout information to the terminal. The accuracy of the picture.
在该实施例中,在将视频资源发送给终端后,传送装置还能够将布局信息发送给终端,这样,使得终端显示出视频会议的画面符合会议发起人设定的要求。In this embodiment, after the video resource is sent to the terminal, the transmission device can also send the layout information to the terminal, so that the terminal displays the video conference picture meeting the requirements set by the conference initiator.
图5示出了本发明实施例的视频资源的传输方法的流程示意图,该传输方法包括:FIG. 5 shows a schematic flowchart of a video resource transmission method according to an embodiment of the present invention, the transmission method comprising:
S502,向终端发送第一协议,并接收终端发送的第二协议;S502. Send the first protocol to the terminal, and receive the second protocol sent by the terminal;
S504,在第一协议和第二协议符合预设条件的情况下,接收终端发送的第一标识;S504. When the first protocol and the second protocol meet preset conditions, receive the first identifier sent by the terminal;
S506,在终端进入视频会议的情况下,根据第一标识确定视频资源;S506. When the terminal enters the video conference, determine the video resource according to the first identifier;
S508,确认视频资源与布局信息是否匹配,并在匹配的情况下,向终端发送视频资源;S508. Confirm whether the video resource matches the layout information, and if they match, send the video resource to the terminal;
S510,向终端发送布局信息,以使终端根据布局信息和视频资源显示视频会议的画面。S510. Send layout information to the terminal, so that the terminal displays a picture of the video conference according to the layout information and video resources.
在该实施例中,在通过实时传输协议的通道向终端发送视频资源之前,传输装置还需确定视频资源与布局信息中的要求是否匹配,并在匹配的情况下,确认可以向终端发送上述视频资源。In this embodiment, before sending the video resource to the terminal through the channel of the real-time transmission protocol, the transmission device also needs to determine whether the video resource matches the requirements in the layout information, and if it matches, confirm that the above video resource can be sent to the terminal. resource.
具体而言,根据第一标识确定的视频资源可能与布局信息中的要求不匹配,即使将视频资源发送给终端,终端也无法显示该视频资源,因此,传输装置增加了过滤机制,在确认视频资源与布局信息相匹配的情况下,才能够将视频资源发送给终端。Specifically, the video resource determined according to the first identifier may not match the requirements in the layout information. Even if the video resource is sent to the terminal, the terminal cannot display the video resource. Therefore, the transmission device adds a filtering mechanism. After confirming the video resource Only when the resource matches the layout information can the video resource be sent to the terminal.
示例性地,为了保证入会的终端都能够显示视频资源,在确定出根据第一标识确定的视频资源可能与布局信息中的要求不匹配的情况下,传输装置还需要根据固定的码流重新生成视频资源,并将重新生成的视频资源发送给终端。For example, in order to ensure that all terminals joining the conference can display video resources, the transmission device also needs to regenerate the video resources according to the fixed code stream when it is determined that the video resources determined according to the first identifier may not match the requirements in the layout information. video resources, and send the regenerated video resources to the terminal.
在该实施例中,在将视频资源发送给终端之前,传输装置还需要确认视频资源与布局信息是否匹配,并在相匹配的情况下,才能够将视频资源发送给终端。这样,为实时传输协议的通道增加了过滤机制,避免了无用的视频资源的传输,更好的避免了出现实时传输协议通道中信令和媒体配合的时序错乱的问题。In this embodiment, before sending the video resource to the terminal, the transmission device also needs to confirm whether the video resource matches the layout information, and only if they match, can the video resource be sent to the terminal. In this way, a filtering mechanism is added to the channel of the real-time transport protocol, avoiding the transmission of useless video resources, and better avoiding the problem of timing disorder of signaling and media cooperation in the real-time transport protocol channel.
图6示出了本发明实施例的视频资源的传输方法的流程示意图,该传输方法包括:FIG. 6 shows a schematic flowchart of a method for transmitting video resources according to an embodiment of the present invention. The transmission method includes:
S602,向终端发送第一协议,并接收终端发送的第二协议;S602. Send the first protocol to the terminal, and receive the second protocol sent by the terminal;
S604,在第一协议和第二协议符合预设条件的情况下,接收终端发送的第一标识;S604. When the first protocol and the second protocol meet the preset condition, receive the first identifier sent by the terminal;
S606,在终端进入视频会议的情况下,根据第一标识确定视频资源,并将视频资源发送至终端;S606. When the terminal enters the video conference, determine the video resource according to the first identifier, and send the video resource to the terminal;
S608,根据第一协议,确定布局信息;S608. Determine layout information according to the first protocol;
S610,向终端发送布局信息,以使终端根据布局信息和视频资源显示视频会议的画面。S610. Send the layout information to the terminal, so that the terminal displays a picture of the video conference according to the layout information and video resources.
在该实施例中,在向终端发送布局信息之前,传输装置还需要根据第一协议,即服务器的会话协议确定布局信息。可以理解的是,视频会议的发起人会预先设定有关会议的要求,如参加会议的人数,每个参会人的视频窗口的名称等信息,而这些信息通常体现在第一协议中。因此,传输装置可以根据第一协议确定出布局信息。In this embodiment, before sending the layout information to the terminal, the transmission device also needs to determine the layout information according to the first protocol, that is, the session protocol of the server. It is understandable that the initiator of the video conference will pre-set requirements related to the conference, such as the number of participants in the conference, the name of the video window of each participant, etc., and such information is usually reflected in the first agreement. Therefore, the transmission device can determine the layout information according to the first protocol.
图7示出了本发明实施例的视频资源的传输方法的流程示意图,适用于服务器,该传输方法包括:FIG. 7 shows a schematic flowchart of a video resource transmission method according to an embodiment of the present invention, which is suitable for a server. The transmission method includes:
S702,向终端发送第一协议,并接收终端发送的第二协议;S702. Send the first protocol to the terminal, and receive the second protocol sent by the terminal;
S704,在第一协议和第二协议符合预设条件的情况下,接收终端发送的第一标识;S704. When the first protocol and the second protocol meet the preset condition, receive the first identifier sent by the terminal;
S706,在终端进入视频会议的情况下,根据第一标识确定视频资源,并将视频资源发送至终端;S706. When the terminal enters the video conference, determine the video resource according to the first identifier, and send the video resource to the terminal;
S708,接收终端发送的第三协议,第三协议为终端根据解码能力和上传带宽更新后的会话协议;S708. Receive a third protocol sent by the terminal, where the third protocol is a session protocol updated by the terminal according to the decoding capability and the upload bandwidth;
S710,根据第三协议,重新确定视频资源和布局信息;S710. Re-determine the video resource and layout information according to the third protocol;
S712,将重新确定的视频资源和布局信息发送至终端。S712. Send the re-determined video resource and layout information to the terminal.
在该实施例中,第三协议表示终端根据自身解码能力和自身的上传带宽更新后的会话协议,即终端根据自身实际情况更新后的会话协议。In this embodiment, the third protocol refers to the session protocol updated by the terminal according to its own decoding capability and its own upload bandwidth, that is, the session protocol updated by the terminal according to its actual situation.
具体地,终端在自身的实际情况发生变化时,如解码能力和上传数据的带宽发生变化时,会对会话协议进行修改,以生成符合自身条件的第三协议,并会将第三协议发送给服务器。因此,传输装置还需要接收第三协议。Specifically, when the actual situation of the terminal changes, such as when the decoding ability and the bandwidth of uploading data change, the terminal will modify the session protocol to generate a third protocol that meets its own conditions, and will send the third protocol to the server. Therefore, the transmitting device also needs to receive the third protocol.
示例性地,终端还能够检测服务器侧设备的状态,在修改会话协议的过程中,也会考虑检测到的服务器侧设备的状态,这样,使得后续步骤中终端接收的视频资源更符合终端与服务器的状态。Exemplarily, the terminal can also detect the state of the server-side device, and in the process of modifying the session protocol, the detected state of the server-side device will also be considered, so that the video resources received by the terminal in subsequent steps are more in line with the requirements of the terminal and the server. status.
进一步地,传输装置根据第三协议重新确定上述视频资源和上述视频信息,并将重新确定的视频资源和布局信息发送至终端。具体而言,如果接收到第三协议,则表明终端的数据传输需求可能已经发生了变化,因此,传输装置需要根据第三协议重新确定视频资源以及布局信息。Further, the transmission device re-determines the video resource and the video information according to the third protocol, and sends the re-determined video resource and layout information to the terminal. Specifically, if the third protocol is received, it indicates that the data transmission requirement of the terminal may have changed. Therefore, the transmission device needs to re-determine the video resource and layout information according to the third protocol.
在该实施例中,传输装置可以在接收到第三协议的情况下,即终端根据自身情况修改会话协议的情况下,重新确定视频资源和布局信息,并将重新确定视频资源和布局信息发送给终端。这样,使得终端显示的视频会议的画面是与终端自身情况相适应的,避免了终端出现视频画面不清晰或视频不流畅的情况。In this embodiment, when the transmission device receives the third protocol, that is, when the terminal modifies the session protocol according to its own situation, it can re-determine the video resources and layout information, and send the re-determined video resources and layout information to terminal. In this way, the video conference picture displayed by the terminal is adapted to the situation of the terminal itself, and the situation that the video picture of the terminal is not clear or the video is not smooth is avoided.
实施例二:Embodiment two:
图8示出了本发明实施例的视频资源的传输装置的示意框图,该视频资源的传输装置800适用于服务器,该视频资源的传输装置800包括:传输模块802,用于向终端发送第一协议,并接收终端发送的第二协议;传输模块802还用于在第一协议和第二协议符合预设条件的情况下,接收终端发送的第一标识;处理模块804,用于在终端进入视频会议的情况下,根据第一标识确定视频资源;传输模块802还用于将视频资源发送至终端;其中,第一协议为服务器的会话协议,第二协议为终端的会话协议,第一标识用于指示终端的多码流,视频资源为多码流的视频资源。Fig. 8 shows a schematic block diagram of an apparatus for transmitting video resources according to an embodiment of the present invention. The
在该实施例中,上述传输方法适用于服务器,上述第一协议表示服务器的会话协议,上述第二协议表示终端的会话协议,上述第一标识表示终端的多码流的标识,能够对终端的多码流进行描述,多码流表示终端可以支持生成多个视频的码流,这些码流是完全独立配置的,可以分别为不同的分辨率、不同的帧速、不同的压缩比率或者不同的编码方式。In this embodiment, the above-mentioned transmission method is applicable to the server, the above-mentioned first protocol represents the session protocol of the server, the above-mentioned second protocol represents the session protocol of the terminal, and the above-mentioned first identifier represents the identifier of the multi-code stream of the terminal, which can be used for the terminal Multiple streams are used for description. Multi-streams mean that the terminal can support the generation of multiple video streams. These streams are completely independently configured and can be different resolutions, different frame rates, different compression ratios, or different video streams. Encoding.
具体地,传输模块802首先向终端发送第一协议,并接收终端回传的第二协议。具体而言,处理模块804可以根据上述第一协议和上述第二协议确定服务器和终端是否具备多流交互的能力。Specifically, the
进一步地,处理模块804判断第一协议和第二协议是否均符合预设条件,并在确定符合预设条件的情况下,通过传输模块802接收终端发送的第一标识。Further, the
具体而言,预设条件表示第一协议中包含有第一目标协议,且第二协议中包含有第二目标协议的情况。Specifically, the preset condition represents the situation that the first agreement includes the first target agreement, and the second agreement includes the second target agreement.
具体地,如果第一协议和第二协议符合预设条件,则表明服务器和终端具备多流交互的能力,即在确定服务器和终端具备多流交互的能力的情况下,终端才会发送第一标识,传输模块802才会接收到第一标识。Specifically, if the first protocol and the second protocol meet the preset conditions, it indicates that the server and the terminal have the capability of multi-stream interaction, that is, the terminal will send the first ID, the
具体地,如果处理模块804判断得出第一协议和第二协议不符合预设条件,则表明服务器和/或终端不具备多流交互的能力,此时,处理模块804可采用固定的码流确定视频资源,并通过传输模块802将视频资源发送给终端。这样使得视频资源的传输装置800可以采用传统模式或多流交互模式为终端发送视频资源。Specifically, if the
进一步地,处理模块804在确定终端进入视频会议的情况下,根据第一标识确定视频资源,并通过传输模块802将视频资源发送给终端。具体而言,根据第一标识可以确定终端对于接收视频资源分辨率、网络带宽或者编码方式等方面的要求,因此,处理模块804可以根据上述第一标识确定出待发送的视频资源。Further, when the
在该实施例中,在第一协议和第二协议符合预设条件的情况下,传输模块802能够接收到用于指示终端的多码流的第一标识,在确认终端进入视频会议时,处理模块804能够根据第一标识确定视频资源,传输模块802能够将视频资源发送给终端。在本发明的实施例中,处理模块804能够根据第一标识为终端发送符合其分辨率、网络带宽和编码方式要求的视频资源,使得服务器能够为不同情况的终端提供合适的视频资源。In this embodiment, when the first protocol and the second protocol meet the preset conditions, the
进一步地,在该实施例中,处理模块804具体用于根据第一标识,确定终端的数据传输需求;根据数据传输需求,生成视频资源。Further, in this embodiment, the
进一步地,在该实施例中,传输模块802具体用于通过实时传输协议的通道,向终端发送视频资源。Further, in this embodiment, the
进一步地,在该实施例中,传输模块802还用于向终端发送布局信息,以使终端根据布局信息和视频资源显示视频会议的画面。Further, in this embodiment, the
进一步地,在该实施例中,处理模块804还用于确认视频资源与布局信息是否匹配,并在匹配的情况下,确认向终端发送视频资源。Further, in this embodiment, the
进一步地,在该实施例中,处理模块804还用于根据第一协议,确定布局信息。Further, in this embodiment, the
进一步地,在该实施例中,传输模块802还用于接收终端发送的第三协议,第三协议为终端根据解码能力和上传带宽更新后的会话协议;处理模块804还用于根据第三协议,重新确定视频资源和布局信息;传输模块802还用于将重新确定的视频资源和布局信息发送至终端。Further, in this embodiment, the
实施例三:Embodiment three:
图9示出了本发明实施例的电子设备的示意框图,该电子设备900包括:存储器902,存储器902中存储有程序或指令;处理器904,处理器904执行存储在存储器902中的程序或指令以实现如本发明上述实施例提出的视频资源的传输方法的步骤,因而具有本发明上述实施例提出的视频资源的传输方法的全部有益技术效果,在此不再做过多赘述。9 shows a schematic block diagram of an electronic device according to an embodiment of the present invention. The
实施例四:Embodiment four:
根据本发明的第四个实施例,提出了一种可读存储介质,其上存储有程序或指令,程序或指令被处理器执行时实现如本发明上述实施例提出的视频资源的传输方法。因此,该可读存储介质具备本发明上述实施例提出的视频资源的传输方法的全部有益效果,在此不再赘述。According to the fourth embodiment of the present invention, a readable storage medium is provided, on which programs or instructions are stored, and when the programs or instructions are executed by a processor, the method for transmitting video resources as proposed in the above-mentioned embodiments of the present invention is implemented. Therefore, the readable storage medium has all the beneficial effects of the video resource transmission method proposed in the above-mentioned embodiments of the present invention, which will not be repeated here.
在本说明书的描述中,术语“第一”、“第二”仅用于指示的目的,而不能理解为指示或暗示相对重要性,除非另有明确的规定和限定;术语“连接”、“安装”、“固定”等均应做广义理解,例如,“连接”可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是直接相连,也可以通过中间媒介间接相连。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。In the description of this specification, the terms "first" and "second" are only used for the purpose of indication, and cannot be understood as indicating or implying relative importance, unless otherwise clearly specified and limited; the terms "connection", " "Installation" and "fixation" should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection or an indirect connection through an intermediary. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present invention according to specific situations.
在本说明书的描述中,术语“一个实施例”、“一些实施例”、“具体实施例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或实例。而且,描述的具体特征、结构、材料或特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions of the terms "one embodiment", "some embodiments", "specific embodiments" and the like mean that specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in the present invention In at least one embodiment or example of . In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
另外,本发明各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。In addition, the technical solutions of the various embodiments of the present invention can be combined with each other, but it must be based on the realization of those skilled in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered as a combination of technical solutions. Does not exist, nor is it within the scope of protection required by the present invention.
以上仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210972689.9A CN115396410A (en) | 2022-08-15 | 2022-08-15 | Video resource transmission method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210972689.9A CN115396410A (en) | 2022-08-15 | 2022-08-15 | Video resource transmission method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115396410A true CN115396410A (en) | 2022-11-25 |
Family
ID=84118685
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210972689.9A Pending CN115396410A (en) | 2022-08-15 | 2022-08-15 | Video resource transmission method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115396410A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1694529A (en) * | 2005-06-28 | 2005-11-09 | 清华大学 | Transmission method of video stream in interactive multi-viewpoint video system |
CN101917391A (en) * | 2009-12-17 | 2010-12-15 | 新奥特(北京)视频技术有限公司 | Method for playing network video and system for playing network video |
CN102833585A (en) * | 2012-08-24 | 2012-12-19 | 深圳市中青合创传媒科技有限公司 | System and method for transmitting ubiquitous terminal video |
CN104093028A (en) * | 2014-06-25 | 2014-10-08 | 中兴通讯股份有限公司 | Device capacity negotiation method and device |
CN104883344A (en) * | 2014-02-28 | 2015-09-02 | 华为技术有限公司 | Method and device of negotiating media capabilities |
CN110944143A (en) * | 2018-09-25 | 2020-03-31 | 京瓷办公信息系统株式会社 | Video conference device and video conference method |
CN113315927A (en) * | 2021-05-27 | 2021-08-27 | 维沃移动通信有限公司 | Video processing method and device, electronic equipment and storage medium |
-
2022
- 2022-08-15 CN CN202210972689.9A patent/CN115396410A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1694529A (en) * | 2005-06-28 | 2005-11-09 | 清华大学 | Transmission method of video stream in interactive multi-viewpoint video system |
CN101917391A (en) * | 2009-12-17 | 2010-12-15 | 新奥特(北京)视频技术有限公司 | Method for playing network video and system for playing network video |
CN102833585A (en) * | 2012-08-24 | 2012-12-19 | 深圳市中青合创传媒科技有限公司 | System and method for transmitting ubiquitous terminal video |
CN104883344A (en) * | 2014-02-28 | 2015-09-02 | 华为技术有限公司 | Method and device of negotiating media capabilities |
CN104093028A (en) * | 2014-06-25 | 2014-10-08 | 中兴通讯股份有限公司 | Device capacity negotiation method and device |
CN110944143A (en) * | 2018-09-25 | 2020-03-31 | 京瓷办公信息系统株式会社 | Video conference device and video conference method |
CN113315927A (en) * | 2021-05-27 | 2021-08-27 | 维沃移动通信有限公司 | Video processing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101218579B (en) | System and method for transferring data | |
US7257641B1 (en) | Multipoint processing unit | |
US9525847B2 (en) | Media negotiation method, device, and system for multi-stream conference | |
CN105763832B (en) | A kind of video interactive, control method and device | |
CN114600468B (en) | Combiner system, receiver device, computer-implemented method and computer-readable medium for combining video streams in a composite video stream with metadata | |
JP2006525693A (en) | Signaling method of client speed function in multimedia streaming | |
EP2472799B1 (en) | Method, apparatus and system for rapid acquisition of multicast realtime transport protocol sessions | |
US9137489B2 (en) | Platform for end point and digital content centric real-time shared experience for collaboration | |
JP2014112826A (en) | Method and system for synchronizing audio and video streams in media relay conference | |
WO2007140668A1 (en) | Method and apparatus for realizing remote monitoring in conference television system | |
CN105763831A (en) | Method of realizing video conference, apparatus and system thereof | |
US6928087B2 (en) | Method and apparatus for automatic cross-media selection and scaling | |
CN106663431A (en) | Transmission device, transmission method, reception device, and reception method | |
CN110996039B (en) | Electronic whiteboard sharing method, system and computer-readable storage medium | |
US9013537B2 (en) | Method, device, and network systems for controlling multiple auxiliary streams | |
KR20240023037A (en) | Real-time augmented reality communication session | |
CN112752058B (en) | Method and apparatus for adjusting properties of video stream | |
CN107040748A (en) | One kind monitoring and video conference application integration platform and method | |
US8619117B2 (en) | Method for transmitting multimedia ticker information | |
CN115396410A (en) | Video resource transmission method and device, electronic equipment and storage medium | |
CN119096529A (en) | 5G support for WEBRTC | |
KR20180091319A (en) | Sound sharing apparatus and method | |
CN113726534A (en) | Conference control method, conference control device, electronic equipment and storage medium | |
CN105530537B (en) | A kind of transmission method and relevant device of multi-medium data | |
Romanow et al. | Requirements for Telepresence Multistreams |
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 |