CN115412559A - Terminal cloud resource cooperation method, electronic equipment and readable storage medium - Google Patents
Terminal cloud resource cooperation method, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN115412559A CN115412559A CN202211042637.8A CN202211042637A CN115412559A CN 115412559 A CN115412559 A CN 115412559A CN 202211042637 A CN202211042637 A CN 202211042637A CN 115412559 A CN115412559 A CN 115412559A
- Authority
- CN
- China
- Prior art keywords
- video
- preprocessing
- target
- information
- original
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 90
- 238000007781 pre-processing Methods 0.000 claims abstract description 298
- 238000012545 processing Methods 0.000 claims description 96
- 238000004458 analytical method Methods 0.000 claims description 36
- 230000008569 process Effects 0.000 claims description 18
- 230000008859 change Effects 0.000 claims description 2
- 230000002708 enhancing effect Effects 0.000 claims description 2
- 230000000694 effects Effects 0.000 abstract description 21
- 238000007726 management method Methods 0.000 abstract description 18
- 238000004590 computer program Methods 0.000 description 15
- 238000004891 communication Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 12
- 230000001976 improved effect Effects 0.000 description 10
- 230000006870 function Effects 0.000 description 9
- 238000006243 chemical reaction Methods 0.000 description 8
- 230000009286 beneficial effect Effects 0.000 description 7
- 230000003993 interaction Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 230000007547 defect Effects 0.000 description 3
- 238000010191 image analysis Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012805 post-processing Methods 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 239000000872 buffer Substances 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000008014 freezing Effects 0.000 description 1
- 238000007710 freezing Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000002195 synergetic effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
Description
技术领域technical field
本申请涉及资源管理技术领域,尤其涉及一种端云资源协同方法、电子设备及可读存储介质。The present application relates to the technical field of resource management, and in particular to a device-cloud resource collaboration method, electronic equipment, and a readable storage medium.
背景技术Background technique
随着5G技术的不断发展,云游戏这一新型的游戏服务结构也应用得越来越广泛,其利用云服务器的计算资源为游戏终端的用户提供更优质的游戏体验,也即,云游戏的运行及渲染等逻辑迁移至云服务器,游戏终端仅需具备视频解码能力和视频播放能力,目前,云服务器的服务资源由各游戏终端共享,为了保障云游戏画质,通常情况下在视频编码前,云服务器会对游戏画面帧进行一定程度的内容分析和视频前处理工作,而由于云服务器和各游戏终端之间的资源信息无法互通,导致云服务器无法为各游戏终端定制化地进行资源配置,并且云服务器的服务资源有限,也即,云服务器的有限服务资源未得到充分且有效地利用,进而由于云服务器的服务资源管理效果不佳导致云游戏画质体验无法进一步提升,也即,当前云游戏画面效果差。With the continuous development of 5G technology, cloud games, a new type of game service structure, are becoming more and more widely used. It uses the computing resources of cloud servers to provide game terminal users with a better gaming experience. The running and rendering logic is migrated to the cloud server. The game terminal only needs to have video decoding and video playback capabilities. Currently, the service resources of the cloud server are shared by each game terminal. , the cloud server will perform a certain degree of content analysis and video pre-processing on the game screen frames, but because the resource information between the cloud server and each game terminal cannot communicate, the cloud server cannot customize resource allocation for each game terminal , and the service resources of the cloud server are limited, that is, the limited service resources of the cloud server have not been fully and effectively utilized, and the image quality experience of cloud games cannot be further improved due to the poor management of service resources of the cloud server, that is, The current cloud game screen effect is poor.
发明内容Contents of the invention
本申请的主要目的在于提供一种端云资源协同方法、电子设备及可读存储介质,旨在解决现有技术中由于云服务器的服务资源管理效果不佳而导致云游戏画面效果差的技术问题。The main purpose of this application is to provide a device-cloud resource collaboration method, electronic equipment, and a readable storage medium, aiming to solve the technical problem in the prior art that the cloud game screen effect is poor due to poor service resource management of the cloud server .
为实现上述目的,本申请提供一种端云资源协同方法,应用于云服务器,所述端云资源协同方法包括:In order to achieve the above purpose, this application provides a device-cloud resource coordination method, which is applied to a cloud server, and the device-cloud resource coordination method includes:
接收到目标终端针对于原始视频发送的端云资源协同请求,其中,所述端云资源协同请求携带所述原始视频的视频类型信息和所述目标终端的视频播放能力信息;receiving a device-cloud resource coordination request sent by the target terminal for the original video, wherein the device-cloud resource coordination request carries video type information of the original video and video playback capability information of the target terminal;
依据所述视频类型信息和所述视频播放能力信息,确定所述原始视频对应的编解码参数和对应的视频预处理协同信息;According to the video type information and the video playback capability information, determine the codec parameters corresponding to the original video and the corresponding video preprocessing coordination information;
依据所述编解码参数和所述视频预处理协同信息,将所述原始视频转换为对应的目标视频码流,其中,所述编解码参数用于所述云服务器对所述原始视频进行编码,所述视频预处理协同信息用于所述云服务器在对所述原始视频进行编码之前确定所述原始视频的视频预处理策略;converting the original video into a corresponding target video stream according to the codec parameters and the video preprocessing coordination information, wherein the codec parameters are used by the cloud server to encode the original video, The video preprocessing coordination information is used by the cloud server to determine a video preprocessing strategy of the original video before encoding the original video;
将所述编解码参数、所述视频预处理协同信息以及所述目标视频码流共同发送至所述目标终端,以供所述目标终端根据所述编解码参数和所述视频预处理协同信息,将所述目标视频码流转换为对应的待播放视频,其中,所述编解码参数用于所述目标终端对所述目标视频码流进行解码,所述视频预处理协同信息用于所述目标终端在对所述目标视频码流进行解码之后确定所述待播放视频的视频预处理策略。jointly sending the codec parameters, the video preprocessing coordination information, and the target video code stream to the target terminal, so that the target terminal can, according to the codec parameters and the video preprocessing coordination information, Converting the target video code stream into a corresponding video to be played, wherein the codec parameters are used by the target terminal to decode the target video code stream, and the video preprocessing coordination information is used for the target After decoding the target video code stream, the terminal determines the video preprocessing policy of the video to be played.
为实现上述目的,本申请还提供一种端云资源协同方法,应用于目标终端,所述端云资源协同方法包括:In order to achieve the above purpose, the present application also provides a device-cloud resource coordination method, which is applied to a target terminal, and the device-cloud resource coordination method includes:
向云服务器发送端云资源协同请求,其中,所述端云资源协同请求携带所述目标视频的视频类型信息和所述目标终端的视频播放能力信息,以供所述云服务器依据所述视频类型信息和所述视频播放能力信息,确定所述原始视频对应的编解码参数和对应的视频预处理协同信息,以及依据所述编解码参数和所述视频预处理协同信息,将所述原始视频转换为对应的目标视频码流,其中,所述编解码参数用于所述云服务器对所述原始视频进行编码,所述视频预处理协同信息用于所述云服务器在对所述原始视频进行编码之前确定所述原始视频的视频预处理策略;Sending a terminal-cloud resource coordination request to the cloud server, wherein the terminal-cloud resource coordination request carries video type information of the target video and video playback capability information of the target terminal, for the cloud server to use according to the video type information and the video playback capability information, determine the codec parameters corresponding to the original video and the corresponding video preprocessing coordination information, and convert the original video according to the codec parameters and the video preprocessing coordination information is the corresponding target video code stream, wherein the codec parameters are used by the cloud server to encode the original video, and the video preprocessing coordination information is used by the cloud server to encode the original video Before determining the video preprocessing strategy of the original video;
接收所述云服务器发送的所述编解码参数、所述视频预处理协同信息和所述目标视频码流;receiving the codec parameters, the video preprocessing coordination information and the target video code stream sent by the cloud server;
依据所述编解码参数和所述视频预处理协同信息,将所述目标视频码流转换为对应的待播放视频,其中,所述编解码参数用于所述目标终端对所述目标视频码流进行解码,所述视频预处理协同信息用于所述目标终端在对所述目标视频码流进行解码之后确定所述待播放视频的视频预处理策略。Converting the target video code stream into a corresponding video to be played according to the codec parameters and the video preprocessing coordination information, wherein the codec parameters are used by the target terminal to process the target video code stream For decoding, the video preprocessing coordination information is used for the target terminal to determine the video preprocessing policy of the video to be played after decoding the target video code stream.
为实现上述目的,本申请还提供一种端云资源协同装置,应用于云服务器,所述端云资源协同装置包括:In order to achieve the above purpose, the present application also provides a terminal-cloud resource coordination device, which is applied to a cloud server, and the terminal-cloud resource coordination device includes:
第一接收模块,用于接收到目标终端针对于原始视频发送的端云资源协同请求,其中,所述端云资源协同请求携带所述原始视频的视频类型信息和所述目标终端的视频播放能力信息;The first receiving module is configured to receive the device-cloud resource coordination request sent by the target terminal for the original video, wherein the device-cloud resource coordination request carries the video type information of the original video and the video playback capability of the target terminal information;
确定模块,用于依据所述视频类型信息和所述视频播放能力信息,确定所述原始视频对应的编解码参数和对应的视频预处理协同信息;A determining module, configured to determine the codec parameters corresponding to the original video and the corresponding video preprocessing coordination information according to the video type information and the video playback capability information;
第一转换模块,用于依据所述编解码参数和所述视频预处理协同信息,将所述原始视频转换为对应的目标视频码流,其中,所述编解码参数用于所述云服务器对所述原始视频进行编码,所述视频预处理协同信息用于所述云服务器在对所述原始视频进行编码之前确定所述原始视频的视频预处理策略;The first conversion module is configured to convert the original video into a corresponding target video code stream according to the codec parameters and the video preprocessing coordination information, wherein the codec parameters are used by the cloud server to The original video is encoded, and the video preprocessing coordination information is used by the cloud server to determine a video preprocessing strategy of the original video before encoding the original video;
第一发送模块,用于将所述编解码参数、所述视频预处理协同信息以及所述目标视频码流共同发送至所述目标终端,以供所述目标终端根据所述编解码参数和所述视频预处理协同信息,将所述目标视频码流转换为对应的待播放视频,其中,所述编解码参数用于所述目标终端对所述目标视频码流进行解码,所述视频预处理协同信息用于所述目标终端在对所述目标视频码流进行解码之后确定所述待播放视频的视频预处理策略。The first sending module is configured to jointly send the codec parameters, the video preprocessing coordination information, and the target video code stream to the target terminal for the target terminal to use according to the codec parameters and the The video preprocessing coordination information is used to convert the target video code stream into the corresponding video to be played, wherein the codec parameters are used by the target terminal to decode the target video code stream, and the video preprocessing The coordination information is used by the target terminal to determine the video preprocessing policy of the video to be played after decoding the target video code stream.
为实现上述目的,本申请还提供一种端云资源协同装置,应用于目标终端,所述端云资源协同装置包括:To achieve the above purpose, the present application also provides a device-cloud resource coordination device, which is applied to a target terminal, and the device-cloud resource coordination device includes:
第二发送模块,用于向云服务器发送端云资源协同请求,其中,所述端云资源协同请求携带所述目标视频的视频类型信息和所述目标终端的视频播放能力信息,以供所述云服务器依据所述视频类型信息和所述视频播放能力信息,确定所述原始视频对应的编解码参数和对应的视频预处理协同信息,以及依据所述编解码参数和所述视频预处理协同信息,将所述原始视频转换为对应的目标视频码流,其中,所述编解码参数用于所述云服务器对所述原始视频进行编码,所述视频预处理协同信息用于所述云服务器在对所述原始视频进行编码之前确定所述原始视频的视频预处理策略;The second sending module is configured to send a device-cloud resource coordination request to the cloud server, wherein the device-cloud resource coordination request carries the video type information of the target video and the video playback capability information of the target terminal for the The cloud server determines the codec parameters corresponding to the original video and the corresponding video preprocessing coordination information according to the video type information and the video playback capability information, and determines the codec parameters and the video preprocessing coordination information according to the codec parameters and the video preprocessing coordination information , converting the original video into a corresponding target video code stream, wherein the codec parameters are used by the cloud server to encode the original video, and the video preprocessing coordination information is used by the cloud server to Determining a video preprocessing strategy for the original video before encoding the original video;
第二接收模块,用于接收所述云服务器发送的所述编解码参数、所述视频预处理协同信息和所述目标视频码流;A second receiving module, configured to receive the codec parameters, the video preprocessing coordination information, and the target video code stream sent by the cloud server;
第二转换模块,用于依据所述编解码参数和所述视频预处理协同信息,将所述目标视频码流转换为对应的待播放视频,其中,所述编解码参数用于所述目标终端对所述目标视频码流进行解码,所述视频预处理协同信息用于所述目标终端在对所述目标视频码流进行解码之后确定所述待播放视频的视频预处理策略。The second conversion module is configured to convert the target video code stream into a corresponding video to be played according to the codec parameters and the video preprocessing coordination information, wherein the codec parameters are used for the target terminal The target video code stream is decoded, and the video preprocessing coordination information is used by the target terminal to determine a video preprocessing policy of the video to be played after decoding the target video code stream.
本申请还提供一种电子设备,所述电子设备包括:存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的所述端云资源协同方法的程序,所述端云资源协同方法的程序被处理器执行时可实现如上述的端云资源协同方法的步骤。The present application also provides an electronic device, the electronic device includes: a memory, a processor, and a program of the device-cloud resource collaboration method stored on the memory and operable on the processor, the device-cloud When the program of the resource coordination method is executed by the processor, the steps of the above-mentioned device-cloud resource coordination method can be realized.
本申请还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有实现端云资源协同方法的程序,所述端云资源协同方法的程序被处理器执行时实现如上述的端云资源协同方法的步骤。The present application also provides a computer-readable storage medium, where a program for implementing a device-cloud resource coordination method is stored on the computer-readable storage medium. When the program for the device-cloud resource coordination method is executed by a processor, the above-mentioned terminal Steps of a cloud resource collaboration method.
本申请还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述的端云资源协同方法的步骤。The present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned device-cloud resource coordination method are implemented.
本申请提供了一种端云资源协同方法、电子设备及可读存储介质,应用于云服务器,也即,接收到目标终端针对于原始视频发送的端云资源协同请求,其中,所述端云资源协同请求携带所述原始视频的视频类型信息和所述目标终端的视频播放能力信息;进而依据所述视频类型信息和所述视频播放能力信息,确定所述原始视频对应的编解码参数和对应的视频预处理协同信息,实现了通过云服务器和目标视频针对于目标视频的信息交互,交互式确定目标终端对应的编解码参数和对应的视频预处理协同信息的目的;依据所述编解码参数和所述视频预处理协同信息,将所述原始视频转换为对应的目标视频码流,其中,所述编解码参数用于所述云服务器对所述原始视频进行编码,所述视频预处理协同信息用于所述云服务器在对所述原始视频进行编码之前确定所述原始视频的视频预处理策略;将所述编解码参数、所述视频预处理协同信息以及所述目标视频码流共同发送至所述目标终端,以供所述目标终端根据所述编解码参数和所述视频预处理协同信息,将所述目标视频码流转换为对应的待播放视频,其中,所述编解码参数用于所述目标终端对所述目标视频码流进行解码,所述视频预处理协同信息用于所述目标终端在对所述目标视频码流进行解码之后确定所述待播放视频的视频预处理策略;由于视频预处理协同信息用于确定目标视频的视频预处理任务在目标终端和云服务器的任务分配情况,进而云服务器和目标终端根据任务分配情况,确定是否对视频预处理任务进行预处理,并且,由于编解码参数用于在云服务器根据所述视频预处理任务确定是否协同处理所述目标视频后,将所述目标视频编码为所述目标视频码流,以及在目标终端根据所述视频预处理任务确定是否协同处理所述目标视频前,将所述目标视频码流解码为目标视频编码,也即,即使在云服务器或目标终端存在视频预处理任务,对于目标视频的视频预处理也将在对目标视频进行编码前或解码后完成,进而并不会导致出现编码失真影响画质的情况,与此同时,视频预处理任务的分配依赖于视频播放能力信息,也即,在目标终端的服务资源足以对目标视频进行一定程度的内容分析和视频处理工作的情况下,根据视频播放能力分配的视频预处理任务将利用目标终端服务资源对目标视频进行视频预处理,而非只通过云服务器在视频编码前进行视频内容分析和视频预处理工作,也即,实现了对目标终端闲置服务资源的有效利用的目的,进而使得云服务器的有限服务资源也得到了充分的利用,所以克服了由于云服务器的服务资源管理效果不佳而导致目标视频的视频画质体验无法进一步提升的技术缺陷,也即,提升了目标视频的视频画面效果,所以,也提升了云游戏画面的画面效果。The present application provides a device-cloud resource coordination method, electronic equipment, and a readable storage medium, which are applied to a cloud server, that is, receiving a device-cloud resource coordination request sent by a target terminal for an original video, wherein the device-cloud The resource coordination request carries the video type information of the original video and the video playback capability information of the target terminal; then, according to the video type information and the video playback capability information, determine the codec parameters corresponding to the original video and the corresponding The video preprocessing coordination information realizes the purpose of interactively determining the codec parameters corresponding to the target terminal and the corresponding video preprocessing coordination information through the information interaction between the cloud server and the target video for the target video; according to the codec parameters Cooperate with the video pre-processing information to convert the original video into a corresponding target video code stream, wherein the codec parameters are used by the cloud server to encode the original video, and the video pre-processing is coordinated The information is used for the cloud server to determine the video preprocessing strategy of the original video before encoding the original video; and send the codec parameters, the video preprocessing coordination information and the target video code stream together to the target terminal, so that the target terminal converts the target video code stream into a corresponding video to be played according to the codec parameter and the video preprocessing coordination information, wherein the codec parameter is used The target terminal decodes the target video code stream, and the video preprocessing coordination information is used for the target terminal to determine the video preprocessing strategy of the video to be played after decoding the target video code stream ; Since the video preprocessing coordination information is used to determine the task assignment of the video preprocessing task of the target video in the target terminal and the cloud server, and then the cloud server and the target terminal determine whether to perform preprocessing on the video preprocessing task according to the task assignment, Moreover, since the codec parameters are used to encode the target video into the target video code stream after the cloud server determines whether to co-process the target video according to the video preprocessing task, and the target terminal The preprocessing task determines whether to decode the target video code stream into the target video code before co-processing the target video, that is, even if there is a video preprocessing task in the cloud server or the target terminal, the video preprocessing of the target video is also It will be completed before encoding or after decoding the target video, which will not cause encoding distortion to affect the picture quality. At the same time, the allocation of video preprocessing tasks depends on the video playback capability information, that is, the When the service resources of the target video are sufficient to perform a certain degree of content analysis and video processing on the target video, the video preprocessing task assigned according to the video playback capability will use the target terminal service resources to perform video preprocessing on the target video instead of only through the cloud The server performs video content analysis and video preprocessing before video encoding, that is, the purpose of effectively utilizing the idle service resources of the target terminal is realized, and the limited service resources of the cloud server are also fully utilized, so It overcomes the technical defect that the video quality experience of the target video cannot be further improved due to the poor service resource management effect of the cloud server, that is, the video picture effect of the target video is improved, so the picture of the cloud game screen is also improved Effect.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, In other words, other drawings can also be obtained from these drawings without paying creative labor.
图1为本申请端云资源协同方法第一实施例的流程示意图;FIG. 1 is a schematic flowchart of the first embodiment of the device-cloud resource coordination method of the present application;
图2为本申请端云资源协同方法云游戏场景的示意图;FIG. 2 is a schematic diagram of a cloud game scene of the device-cloud resource collaboration method of the present application;
图3为本申请端云资源协同方法云服务器进行视频内容分析的流程图;FIG. 3 is a flowchart of video content analysis performed by a cloud server of the device-cloud resource collaboration method of the present application;
图4为本申请端云资源协同方法目标终端进行视频内容分析的流程图;FIG. 4 is a flow chart of video content analysis performed by a target terminal in the device-cloud resource collaboration method of the present application;
图5为本申请端云资源协同方法第二视频增强任务的示意图;FIG. 5 is a schematic diagram of the second video enhancement task of the device-cloud resource collaboration method of the present application;
图6为本申请端云资源协同方法第二实施例的流程示意图;FIG. 6 is a schematic flowchart of the second embodiment of the device-cloud resource coordination method of the present application;
图7为本申请端云资源协同装置第三实施例的示意图;FIG. 7 is a schematic diagram of a third embodiment of the device-cloud resource coordination device of the present application;
图8为本申请端云资源协同装置第四实施例的示意图;FIG. 8 is a schematic diagram of a fourth embodiment of the device-cloud resource coordination device of the present application;
图9为本申请实施例中端云资源协同方法涉及的硬件运行环境的设备结构示意图。FIG. 9 is a schematic diagram of a device structure of a hardware operating environment involved in a device-cloud resource collaboration method in an embodiment of the present application.
本申请目的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose, functions and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
为使本发明的上述目的、特征和优点能够更加明显易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其它实施例,均属于本发明保护的范围。In order to make the above objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
实施例一Embodiment one
首先,应当理解的是,在目前云场景中的视频或图像处理过程而言,通常在云服务器端生成视频,进而采集到视频的视频图像后进行相应地视频图像处理,进而对处理后的视频图像进行编码,再由用户终端进行解码,最终显示视频图像,也即,目前对于用户终端的要求简化到了视频解码能力和视频播放能力,对于一些特定的用户终端而言,也只是对解码后的视频图像进行后处理,例如锐化处理、模糊处理或降噪处理等,但是,由于视频前处理工作均由云服务器完成,而云服务器和用户终端的信息无法互通,进而导致云服务器进行视频前处理时,只能根据云服务器搭载的用户终端的数量预设处理参数或根据既定处理参数,对视频图像进行前处理,但是,由于不同用户终端的服务性能和计算资源均存在差异,进而导致在不同用户终端的视频画质有好有坏,所以,用户终端的视频画质和用户预期的视频播放效果不适配,也即,易出现由于云服务器的服务资源管理效果不佳导致视频画面效果差的情况,与此同时,也未充分利用用户终端的闲置计算资源,以云游戏为例,为了减少视频编码失真对游戏画质造成的影响,云服务器需结合人眼视觉特性,在视频编码前对云游戏图像进行视频内容分析和视频前处理工作,这无疑会进一步加重云服务器的计算资源开销,在有限的云服务器计算资源和计算资源的此消彼长之下,云服务器无法为用户提供更优质的云游戏的画质体验,所以,目前亟需一种解决由于云服务器的服务资源管理效果不加而导致云游戏画面效果差的方法。First of all, it should be understood that in the current video or image processing process in the cloud scene, the video is usually generated on the cloud server side, and then the video image of the video is collected and processed accordingly, and then the processed video The image is encoded, and then decoded by the user terminal to finally display the video image. That is, the current requirements for the user terminal are simplified to the video decoding capability and video playback capability. For some specific user terminals, it is only for the decoded Video images are post-processed, such as sharpening, blurring, or noise reduction. However, since the video pre-processing work is completed by the cloud server, the information between the cloud server and the user terminal cannot communicate, which leads to the cloud server performing video pre-processing. During processing, the processing parameters can only be preset according to the number of user terminals carried by the cloud server or the pre-processing of video images can be performed according to the established processing parameters. However, due to differences in service performance and computing resources of different user terminals, this leads to The video quality of different user terminals is good or bad. Therefore, the video quality of the user terminal does not match the user's expected video playback effect. In the worst case, at the same time, the idle computing resources of the user terminal are not fully utilized. Taking cloud games as an example, in order to reduce the impact of video encoding distortion on game quality, the cloud server needs to combine the visual characteristics of the human eye to Performing video content analysis and video pre-processing work on cloud game images before will undoubtedly further increase the computing resource overhead of the cloud server. Under the limited cloud server computing resources and the ebb and flow of computing resources, the cloud server cannot serve users. To provide a better picture quality experience of cloud games, there is an urgent need for a method to solve the poor picture quality of cloud games caused by the ineffective management of service resources of cloud servers.
本申请实施例提供一种端云资源协同方法,应用于云服务器,在本申请端云资源协同方法的第一实施例中,参照图1,所述端云资源协同方法包括:The embodiment of the present application provides a device-cloud resource coordination method, which is applied to a cloud server. In the first embodiment of the device-cloud resource coordination method of the present application, referring to FIG. 1 , the device-cloud resource coordination method includes:
步骤S10,接收到目标终端针对于原始视频发送的端云资源协同请求,其中,所述端云资源协同请求携带所述原始视频的视频类型信息和所述目标终端的视频播放能力信息;Step S10, receiving a device-cloud resource coordination request sent by the target terminal for the original video, wherein the device-cloud resource coordination request carries video type information of the original video and video playback capability information of the target terminal;
步骤S20,依据所述视频类型信息和所述视频播放能力信息,确定所述原始视频对应的编解码参数和对应的视频预处理协同信息;Step S20, according to the video type information and the video playback capability information, determine the codec parameters corresponding to the original video and the corresponding video preprocessing coordination information;
在本实施例中,需要说明的是,所述目标终端和所述云服务器之间通信连接,其中,通信连接的方式可以为通过TCP(Transmission Control Protocol,通信传输协议)通信连接的方式,所述目标终端用于表征需要进行端云资源协同的智能终端,可以为存在计算闲置资源的智能终端或不存在计算闲置资源的智能终端,具体为智能手机、玩家游戏终端以及平板电脑等,所述云服务器用于表征进行端云资源协同的云服务器,所述端云资源协同方法应用于云场景下的视频或图像处理过程,用于同一云服务器和目标终端交互协议和数据格式,所述云场景具体可以为实时通信(Real-time Communications,RTC)场景,所述实时通信场景包括但不限于远程通话、远程办公、互动直播、云游戏以及视频会议等众多场景,在一种可实施的方式中,假设所述实时通信场景为云游戏场景,即便对于可图形处理和数据运算能力相对有限的用户终端,云服务器的云游戏技术也可使其运行高品质游戏,参照图2,图2为表示云游戏场景的示意图,用户11和用户终端12进行交互,进而由于云服务器12和用户终端13之间通信连接,且游戏在云服务器12中运行,进而云服务器12采集游戏视频图像,进而对游戏视频图像进行编码,通过网络传输将码流传输至用户终端13,用户终端13在对码流进行解码后,按照解码结果展示视频图像。In this embodiment, it should be noted that the communication connection between the target terminal and the cloud server, wherein the communication connection may be through a TCP (Transmission Control Protocol, communication transmission protocol) communication connection, so The above-mentioned target terminal is used to represent an intelligent terminal that requires terminal-cloud resource coordination, and may be an intelligent terminal that has idle computing resources or an intelligent terminal that does not have idle computing resources, specifically, a smart phone, a player game terminal, and a tablet computer. A cloud server is used to represent a cloud server that performs terminal-cloud resource collaboration. The terminal-cloud resource collaboration method is applied to the video or image processing process in the cloud scene, and is used for the interaction protocol and data format between the same cloud server and the target terminal. The cloud Specifically, the scene may be a real-time communication (Real-time Communications, RTC) scene, and the real-time communication scene includes but is not limited to many scenes such as remote call, remote office, interactive live broadcast, cloud game, and video conference. In the above, assuming that the real-time communication scene is a cloud game scene, even for a user terminal with relatively limited graphics processing and data computing capabilities, the cloud game technology of the cloud server can enable it to run high-quality games, refer to Figure 2, Figure 2 is A schematic diagram representing a cloud game scene, the
另外地,需要说明的是,所述原始视频由原始视频帧组成,具体为未进行视频预处理且等待发送至目标终端的视频,所述原始视频帧用于表征体现视频内容的视频关键帧,所述端云资源协同请求用于协同目标终端的服务资源和云服务器的服务资源,也即,由目标终端发送端云资源协同请求,由云服务器对目标终端的服务资源和云服务器的服务资源进行协同管理,进而通过云服务器和智能终端的配合协同,调配与目标终端的特性最适配的视频处理参数,所以当目标终端设备发送针对于端云资源协同请求时,端云资源协同请求中将携带目标视频的视频类型信息以及目标终端的视频播放能力信息,其中,所述视频播放能力信息用于表征所述目标视频的视频播放能力,所述视频类型信息用于表征所述目标视频的视频类型,例如,在一种可实施的方式中,假设所述目标视频为云游戏视频,对于不同云游戏视频对应的云游戏而言,对于游戏延时的要求不同,也即,对于云游戏视频编解码过程中的延时不同,进而对于游戏要求高的云游戏,则在云游戏画面满足用户的预期播放效果时,将编解码过程的延时做到最小,对于游戏要求低的云游戏,则在编解码过程的延时适宜的情况下,充分确保云游戏画面的清晰度。In addition, it should be noted that the original video is composed of original video frames, specifically videos that have not undergone video preprocessing and are waiting to be sent to the target terminal, and the original video frames are used to represent video key frames embodying video content, The device-cloud resource coordination request is used to coordinate the service resources of the target terminal and the service resources of the cloud server, that is, the target terminal sends the device-cloud resource coordination request, and the cloud server coordinates the service resources of the target terminal and the service resources of the cloud server Carry out collaborative management, and then deploy the video processing parameters that are most suitable for the characteristics of the target terminal through the cooperation and collaboration of the cloud server and the smart terminal. Therefore, when the target terminal device sends a request for device-cloud resource collaboration, The video type information of the target video and the video playback capability information of the target terminal will be carried, wherein the video playback capability information is used to characterize the video playback capability of the target video, and the video type information is used to characterize the video playback capability of the target video Video type, for example, in an implementable manner, assuming that the target video is a cloud game video, for cloud games corresponding to different cloud game videos, the requirements for game delay are different, that is, for cloud games The delay in the video encoding and decoding process is different. For cloud games with high game requirements, when the cloud game screen meets the user's expected playback effect, the delay in the encoding and decoding process should be minimized. For cloud games with low game requirements , when the delay of the encoding and decoding process is appropriate, the clarity of the cloud game screen can be fully ensured.
另外地,需要说明的是,所述视频播放能力信息包括视频编解码能力信息和视频处理能力信息,其中,所述视频编解码能力信息用于表征所述目标终端的视频编解码能力,所述视频编解码能力用于确定所述目标视频在云服务器和目标终端之间进行网络传输时的编解码参数,所述视频编解码能力可通过H265(High Efficiency Video Coding,高效视频压缩编码)、AV1(AOMedia Video 1,视频编码格式)、多路解码、码流SVC(Scalable VideoCoding,分层视频编码)、码流SCC(HEVC SCC Profile,屏幕内容编码)、YUV444、YUV422、HDR10(High Dynamic Range 10,高动态范围成像)、高性能模式以及低延时模式等是否支持进行体现,其中,YUV444和YUV422为未压缩视频的两种数据保存的格式,“Y”用于表征灰度值,“U”和“V”用于描述影像色彩及饱和度,也即,指定像素的颜色,其中,YUV444的三个分量采样为Y:U:V=4:4:4,YUV422的三个分量采样为Y:U:V=4:1:1,YUV444具备更细致及更准确的色彩,所述高性能模式为能够手动控制芯片的运行频率达到更高性能的模式,所述视频处理能力信息用于表征所述目标终端的视频处理能力,所述视频处理能力包括视频图像处理能力、视频后处理能力以及资源管理能力,其中,所述图像处理能力可通过处理帧率、处理平滑控制和图像模式的具体信息进行体现,例如,所述处理帧率可以为60fps或120fps等,所述处理平滑控制可以为是否支持处理丢帧策略,所述图像模式可以为影院模式或鲜艳模式等等,任一图像模式均由具体的对比度、亮度及饱和度等参数信息,所述视频后处理能力可通过是否支持黑屏检测、视频锐化、HDR显示以及视频超分等是否支持进行体现,其中,视频超分通过是否具备对应的指定视频超算法参数进行体现,视频锐化通过是否具备对应的指定锐化区域和对应的指定锐化算法参数进行体现,所述资源管理能力可通过解码器数量、解码Buffer数量、SurfaceView实例数、资源占用检测、CPU频率变化、解码芯片能力变化以及设备温度变化等具体信息进行体现。Additionally, it should be noted that the video playback capability information includes video codec capability information and video processing capability information, wherein the video codec capability information is used to characterize the video codec capability of the target terminal, and the The video codec capability is used to determine the codec parameters when the target video is transmitted over the network between the cloud server and the target terminal. (AOMedia Video 1, video coding format), multi-channel decoding, code stream SVC (Scalable Video Coding, layered video coding), code stream SCC (HEVC SCC Profile, screen content coding), YUV444, YUV422, HDR10 (High Dynamic Range 10 , high dynamic range imaging), high-performance mode, and low-latency mode, among others, YUV444 and YUV422 are the two data storage formats of uncompressed video, "Y" is used to represent the gray value, "U " and "V" are used to describe the color and saturation of the image, that is, the color of the specified pixel, where the three component samples of YUV444 are Y:U:V=4:4:4, and the three component samples of YUV422 are Y:U:V=4:1:1, YUV444 has more detailed and more accurate colors, the high-performance mode is a mode that can manually control the operating frequency of the chip to achieve higher performance, and the video processing capability information is used for To characterize the video processing capabilities of the target terminal, the video processing capabilities include video image processing capabilities, video post-processing capabilities, and resource management capabilities, wherein the image processing capabilities can be controlled by processing frame rates, processing smooth control, and image modes Specific information is embodied, for example, the processing frame rate can be 60fps or 120fps, etc., the processing smooth control can be whether to support the processing frame loss strategy, the image mode can be theater mode or vivid mode, etc., any image The mode is composed of specific parameter information such as contrast, brightness, and saturation. The video post-processing capability can be reflected by whether it supports black screen detection, video sharpening, HDR display, and video super-resolution. Among them, video super-resolution is passed Whether there are corresponding specified video super algorithm parameters is reflected. Video sharpening is reflected by whether there are corresponding specified sharpening areas and corresponding specified sharpening algorithm parameters. The resource management capability can be determined by the number of decoders, the number of decoding buffers, Specific information such as the number of SurfaceView instances, resource occupancy detection, CPU frequency changes, decoding chip capability changes, and device temperature changes are reflected.
另外地,需要说明的是,所述视频处理能力用于确定所述视频预处理协同信息,所述视频预处理协同信息用于所述云服务器在对所述原始视频进行编码之前确定所述原始视频的视频预处理策略,以及用于所述目标终端在对所述目标视频码流进行解码之后确定所述待播放视频的视频预处理策略,所述视频预处理策略用于分配视频预处理任务,所述视频预处理任务包括所述视频预处理任务均分配至所述云服务器、所述视频预处理任务均分配至所述目标终端以及所述视频预处理任务部分分配至所述云服务器和部分分配至所述目标终端,也即,所述视频预处理协同信息用于根据目标终端的视频处理能力,指示在云服务器和目标终端分配最合理的视频预处理任务,进而实现云服务器和目标终端分别处于预处理所述目标视频的最优视频处理配置,可实现云服务器和智能终端之间进行更合理的配合协同,进而提供更进一步的视频画面体验。In addition, it should be noted that the video processing capability is used to determine the video pre-processing coordination information, and the video pre-processing coordination information is used by the cloud server to determine the original A video preprocessing strategy for the video, and a video preprocessing strategy for the target terminal to determine the video to be played after decoding the target video code stream, the video preprocessing strategy is used to assign video preprocessing tasks , the video preprocessing tasks include that the video preprocessing tasks are all allocated to the cloud server, the video preprocessing tasks are all allocated to the target terminal, and the video preprocessing tasks are partially allocated to the cloud server and Part of it is allocated to the target terminal, that is, the video preprocessing coordination information is used to indicate the allocation of the most reasonable video preprocessing task between the cloud server and the target terminal according to the video processing capability of the target terminal, and then realize the cloud server and the target terminal. The terminals are respectively in the optimal video processing configuration for pre-processing the target video, which can realize more reasonable cooperation and collaboration between the cloud server and the smart terminal, thereby providing a further video experience.
另外地,需要说明的是,认定所述目标终端不具备视频处理能力指的是目标终端只具备基础的视频解码功能和视频播放功能,不具备由硬件配置实现的视频图像处理能力,认定所述目标终端具备视频处理能力指的是目标终端除了具备基础的视频播放能力之外,还具备硬件实现的视频图像处理能力,根据视频图像处理能力的不同,可以分为两种情况,第一类情况为在给定的视频帧率下,只能完成局部区域视频图像处理,不能完成全图处理,第二类情况为在给定的视频帧率下,只能完成整个视频图像处理任务的部分子流程,不能完成全部流程,例如,在1080p@60fps的视频应用场景下,智能设备A具备由硬件实现的特定视频锐化算法,但由于设备性能有限,在60fps的视频帧率下,只能处理540p大小的视频尺寸,此时认定设备A具备部分视频图像处理能力,具备完全视频处理能力指的是具备基础的视频播放功能以外,还具备由硬件实现的特定的视频图像处理能力,并且在给定的视频帧率下,能完成全部区域和全部流程的视频图像处理。In addition, it should be noted that determining that the target terminal does not have video processing capabilities means that the target terminal only has basic video decoding functions and video playback functions, and does not have video image processing capabilities realized by hardware configuration. The ability of the target terminal to have video processing means that the target terminal has not only the basic video playback capability, but also the video image processing capability implemented by hardware. According to the different video image processing capabilities, it can be divided into two situations. The first kind of situation Because at a given video frame rate, only partial area video image processing can be completed, and the whole image processing cannot be completed. The second type of situation is that at a given video frame rate, only part of the entire video image processing task can be completed. The entire process cannot be completed. For example, in a 1080p@60fps video application scenario, smart device A has a specific video sharpening algorithm implemented by hardware, but due to limited device performance, at a video frame rate of 60fps, it can only process The video size is 540p. At this time, it is determined that device A has partial video image processing capabilities. Having full video processing capabilities means that in addition to basic video playback functions, it also has specific video image processing capabilities implemented by hardware. Under a certain video frame rate, it can complete the video image processing of all regions and all processes.
作为一种示例,步骤S10至步骤S20包括:接收到目标终端针对于目标视频发送的端云资源协同请求,并获取所述端云资源协同请求对应的原始视频,其中,所述端云资源协同请求所述目标视频的视频类型信息和所述目标终端的视频播放能力信息;依据所述视频类型信息和所述视频播放能力信息,确定所述原始视频对应的编解码参数和对应的视频预处理协同信息。As an example, steps S10 to S20 include: receiving a device-cloud resource coordination request sent by the target terminal for the target video, and obtaining the original video corresponding to the device-cloud resource coordination request, wherein the device-cloud resource coordination request Request the video type information of the target video and the video playback capability information of the target terminal; determine the corresponding codec parameters and corresponding video preprocessing of the original video according to the video type information and the video playback capability information collaborative information.
其中,所述依据所述视频类型信息和所述视频播放能力信息,确定所述原始视频对应的编解码参数和对应的视频预处理协同信息的步骤包括:Wherein, the step of determining the codec parameters corresponding to the original video and the corresponding video preprocessing coordination information according to the video type information and the video playback capability information includes:
依据所述视频类型信息和所述视频编解码能力信息,确定所述原始视频对应的编解码参数,依据所述视频处理能力信息,确定所述原始视频对应的视频预处理协同信息。Determine the codec parameters corresponding to the original video according to the video type information and the video codec capability information, and determine the video preprocessing coordination information corresponding to the original video according to the video processing capability information.
步骤S30,依据所述编解码参数和所述视频预处理协同信息,将所述原始视频转换为对应的目标视频码流,其中,所述编解码参数用于所述云服务器对所述原始视频进行编码,所述视频预处理协同信息用于所述云服务器在对所述原始视频进行编码之前确定所述原始视频的视频预处理策略;Step S30, converting the original video into a corresponding target video stream according to the codec parameters and the video preprocessing coordination information, wherein the codec parameters are used by the cloud server to process the original video Encoding, the video preprocessing coordination information is used for the cloud server to determine the video preprocessing strategy of the original video before encoding the original video;
步骤S40,将所述编解码参数、所述视频预处理协同信息以及所述目标视频码流共同发送至所述目标终端,以供所述目标终端根据所述编解码参数和所述视频预处理协同信息,将所述目标视频码流转换为对应的待播放视频,其中,所述编解码参数用于所述目标终端对所述目标视频码流进行解码,所述视频预处理协同信息用于所述目标终端在对所述目标视频码流进行解码之后确定所述待播放视频的视频预处理策略。Step S40, sending the codec parameters, the video preprocessing coordination information, and the target video code stream to the target terminal, so that the target terminal can use the codec parameters and the video preprocessing Coordination information, converting the target video code stream into a corresponding video to be played, wherein the codec parameters are used by the target terminal to decode the target video code stream, and the video preprocessing coordination information is used for After the target terminal decodes the target video code stream, it determines the video preprocessing policy of the video to be played.
在本实施例中,需要说明的是,根据目标终端的设备能力的不同,视频预处理协同信息为目标终端和云服务器分配的视频预处理任务也不同,以目标视频的某一视频图像为例,目标终端可能具备对该视频图像的完全视频图像处理能力,也可能对该视频图像具备部分视频图像处理能力,亦可能不具备对该视频图像的视频图像处理能力,当目标终端具备完全视频图像处理能力时,则对于该视频图像,云服务器只负责该视频图像采样及编码,进而当云服务器将编码后的视频图像发送至目标终端后,目标终端对编码后的视频图像进行解码及处理,当目标终端不具备视频图像处理能力时,则云服务器继续负责运行及渲染等相关逻辑,而目标终端负责解码及播放,当目标终端具备部分视频图像时,通过将视频图像对应的处理任务进行合理划分,以供云服务器和目标终端,其中,处理任务的划分可以根据云服务器和目标终端的视频图像处理能力差异,对视频图像进行分区域图像处理,例如,假设视频图像划分为A和B两大区域,其中,A区域由云服务器通过自身的视频图像处理能力进行处理,B区域由目标终端通过自身的视频图像处理进行处理,进而对于目标视频而言,倘若视频预处理任务用于指示云服务器对组成目标视频的所有目标视频帧均不进行协同处理,则可认定目标终端具备完全视频处理能力,倘若视频预处理任务用于指示云服务器对组成目标视频的所有目标视频帧均进行协同处理,则可根据云服务器对各目标视频帧的处理方式,判定目标终端是否不具备视频处理能力,倘若各所述目标视频帧中存在任一目标帧的任一区域,是通过目标终端的视频处理能力进行处理的,均可认定目标终端具备部分视频处理能力,反之则可认定目标终端不具备视频处理能力,其中,云服务器进行视频图像处理的步骤在云服务器进行视频编码前完成,也即视频前预处理,目标终端进行视频图像处理的步骤在目标终端进行视频解码后完成,也即视频后预处理。In this embodiment, it should be noted that, according to the different device capabilities of the target terminal, the video preprocessing tasks assigned by the video preprocessing coordination information to the target terminal and the cloud server are also different. Taking a certain video image of the target video as an example , the target terminal may have the full video image processing capability of the video image, may also have the video image processing capability of the video image, or may not have the video image processing capability of the video image, when the target terminal has the full video image processing capability When the processing capacity is low, the cloud server is only responsible for sampling and encoding the video image, and then when the cloud server sends the encoded video image to the target terminal, the target terminal decodes and processes the encoded video image. When the target terminal does not have video image processing capabilities, the cloud server continues to be responsible for related logic such as running and rendering, while the target terminal is responsible for decoding and playing. When the target terminal has some video images, the corresponding processing tasks of the video images are reasonably Division, for the cloud server and the target terminal, wherein, the division of processing tasks can be based on the difference in video image processing capabilities of the cloud server and the target terminal, the video image is divided into regional image processing, for example, assuming that the video image is divided into A and B two Large areas, in which, area A is processed by the cloud server through its own video image processing capability, and area B is processed by the target terminal through its own video image processing, and for the target video, if the video preprocessing task is used to instruct the cloud If the server does not perform collaborative processing on all target video frames that make up the target video, it can be determined that the target terminal has full video processing capabilities. If the video preprocessing task is used to instruct the cloud server to perform collaborative processing on all target video frames that make up the target video , then it can be determined whether the target terminal does not have the video processing capability according to the processing method of the cloud server for each target video frame. It can be determined that the target terminal has some video processing capabilities; otherwise, it can be determined that the target terminal does not have video processing capabilities. Among them, the cloud server performs video image processing steps before the cloud server performs video encoding. That is, video In pre-preprocessing, the step of video image processing by the target terminal is completed after the target terminal performs video decoding, that is, video post-preprocessing.
作为一种示例,步骤S30至步骤S40包括:若所述视频预处理协同信息为确定所述目标视频的视频预处理任务存在分配至所述云服务器的第一视频预处理协同信息,则依据所述第一视频预处理协同信息对应的视频预处理任务,对所述目标视频进行视频预处理,并依据所述编解码参数,对进行视频预处理后的目标视频进行编码,得到所述目标视频码流,若所述视频预处理协同信息为确定所述目标视频的视频预处理任务不存在分配至所述云服务器的第二视频预处理协同信息,则依据所述编解码参数,对进行视频预处理后的目标视频进行编码,得到目标视频码流,其中,所述视频编解码参数具体可以为分辨率、码率以及帧率等;将所述编解码参数、所述视频预处理协同信息以及所述目标视频码流共同发送至所述目标终端,以供所述目标终端根据所述编解码参数和所述视频预处理协同信息,将所述目标视频码流转换为对应的待播放视频,其中,所述编解码参数用于所述目标终端对所述目标视频码流进行解码,所述视频预处理协同信息用于所述目标终端在对所述目标视频码流进行解码之后确定所述待播放视频的视频预处理策略,其中,所述协同处理的方式为对所述目标视频的所有目标视频帧均进行完全视频图像处理。As an example, steps S30 to S40 include: if the video preprocessing coordination information is to determine that there is first video preprocessing coordination information assigned to the cloud server for the video preprocessing task of the target video, then according to the A video preprocessing task corresponding to the first video preprocessing coordination information, performing video preprocessing on the target video, and encoding the target video after video preprocessing according to the codec parameters, to obtain the target video code stream, if the video preprocessing coordination information is to determine that there is no second video preprocessing coordination information assigned to the cloud server for the video preprocessing task of the target video, then according to the codec parameters, the video The preprocessed target video is encoded to obtain the target video code stream, wherein the video codec parameters may specifically be resolution, code rate, and frame rate, etc.; the codec parameters, the video preprocessing collaborative information And the target video code stream is jointly sent to the target terminal, so that the target terminal converts the target video code stream into a corresponding video to be played according to the codec parameters and the video preprocessing coordination information , wherein the codec parameters are used by the target terminal to decode the target video code stream, and the video preprocessing coordination information is used by the target terminal to determine the target video code stream after decoding the target video code stream. The video preprocessing strategy for the video to be played is described, wherein the collaborative processing method is to perform complete video image processing on all target video frames of the target video.
其中,所述依据所述编解码参数和所述视频预处理协同信息,将所述原始视频转换为对应的目标视频码流的步骤包括:Wherein, the step of converting the original video into a corresponding target video code stream according to the codec parameters and the video preprocessing coordination information includes:
步骤A10,依据所述视频预处理协同信息,确定是否协同预处理所述原始视频;Step A10, according to the video preprocessing collaboration information, determine whether to collaboratively preprocess the original video;
步骤A20,若是,则依据所述视频预处理协同信息,对所述原始视频进行视频预处理,得到预处理后的原始视频;Step A20, if yes, perform video preprocessing on the original video according to the video preprocessing coordination information to obtain the preprocessed original video;
步骤A30,依据所述编解码参数,对所述预处理后的原始视频进行编码,得到所述目标视频码流;Step A30, encoding the preprocessed original video according to the codec parameters to obtain the target video code stream;
步骤A40,若否,则依据所述编解码参数,对所述预处理后的原始视频进行编码,得到所述目标视频码流。Step A40, if not, encode the preprocessed original video according to the codec parameters to obtain the target video code stream.
作为一种示例,步骤A10至步骤A40包括:依据所述视频预处理协同信息,确定是否协同预处理所述原始视频;若确定协同预处理所述原始视频,则依据所述视频预处理协同信息,对所述原始视频进行视频预处理,得到预处理后的原始视频;依据所述编解码参数,对所述预处理后的原始视频进行编码,得到所述目标视频码流;若确定不协同预处理所述原始视频,则依据所述编解码参数,对所述预处理后的原始视频进行编码,得到所述目标视频码流。当云服务器不协同预处理所述原始视频时,则表示目标终端的视频播放能力信息足以表征目标终端具备完全视频处理能力,进而所述原始视频的视频预处理任务完全交由目标终端完成,也即,此时既利用了目标终端的闲置服务资源又节省了云服务器的服务资源,进行实现了基于简单的信息交互,对云服务器和目标终端之间的服务资源进行针对原始视频的合理协同的目的。As an example, steps A10 to A40 include: determining whether to cooperatively preprocess the original video according to the video preprocessing cooperation information; , performing video preprocessing on the original video to obtain the preprocessed original video; according to the codec parameters, encoding the preprocessed original video to obtain the target video code stream; if it is determined that there is no coordination Preprocessing the original video is encoding the preprocessed original video according to the codec parameters to obtain the target video code stream. When the cloud server does not cooperate to pre-process the original video, it means that the video playback capability information of the target terminal is sufficient to indicate that the target terminal has complete video processing capabilities, and then the video pre-processing task of the original video is completely handed over to the target terminal to complete. That is, at this time, not only the idle service resources of the target terminal are used, but also the service resources of the cloud server are saved, and the service resources between the cloud server and the target terminal are reasonably coordinated for the original video based on simple information interaction. Purpose.
其中,所述预处理后的原始视频包括单协同原始视频和多协同原始视频,所述依据所述视频预处理协同信息,对所述原始视频进行视频预处理,得到预处理后的原始视频的步骤包括:Wherein, the preprocessed original video includes single-cooperative original video and multi-cooperative original video, and according to the video preprocessing collaboration information, video preprocessing is performed on the original video to obtain the preprocessed original video Steps include:
步骤B10,确定所述视频预处理协同信息对应的视频预处理任务,其中,所述视频预处理任务包括视频分析任务和视频增强任务;Step B10, determining a video preprocessing task corresponding to the video preprocessing collaborative information, wherein the video preprocessing task includes a video analysis task and a video enhancement task;
步骤B20,若所述协同处理任务为多协同预处理任务,则依据所述视频分析任务,对所述原始视频进行协同分析,得到协同分析信息;Step B20, if the collaborative processing task is a multi-cooperative preprocessing task, perform collaborative analysis on the original video according to the video analysis task to obtain collaborative analysis information;
步骤B30,依据所述视频增强任务,协同增强所述目标视频,得到所述多协同原始视频;Step B30, according to the video enhancement task, collaboratively enhance the target video to obtain the multi-cooperative original video;
步骤B40,若所述协同处理任务为单协同预处理任务,则依据所述视频增强任务,协同增强所述目标视频,得到所述单协同原始视频。Step B40, if the collaborative processing task is a single collaborative preprocessing task, according to the video enhancement task, collaboratively enhance the target video to obtain the single collaborative original video.
在本实施例中,需要说明的是,视频预处理任务包括视频增强任务和视频分析任务,也即,所述协同处理任务包括单协同预处理任务和多协同预处理任务,所述单协同预处理任务为对所述目标视频仅进行视频图像增强的协同预处理任务,所述多协同预处理任务为对所述目标视频进行视频内容分析和视频图像增强的协同预处理任务,所述单协同原始视频为云服务器仅对所述目标视频仅进行视频图像增强后的目标视频,所述多协同原始视频为云服务器对所述目标视频进行视频图像增强和视频图像分析后的目标视频,其中,倘若所述协同处理任务为多协同处理任务,则可通过目标终端的计算能力,确定进行视频内容分析的终端为云服务器还是为目标终端,其中,所述视频内容分析用于指导视频处理协同和视频编解码协同,例如,在一种可实施的方式中,参照图3,图3为表示云服务器进行视频内容分析的流程图,当云服务器进行视频内容分析,也即,对目标视频进行视频图像分析时,其步骤在对目标视频进行视频图像增强的步骤之前,参照图4,图4表示目标终端进行视频内容分析的流程图,当目标终端进行视频内容分析,也即,对目标视频进行视频图像分析时,其步骤在对目标视频进行视频图像增强的步骤之前。In this embodiment, it should be noted that the video preprocessing task includes a video enhancement task and a video analysis task, that is, the collaborative processing task includes a single cooperative preprocessing task and a multi-cooperative preprocessing task, and the single cooperative preprocessing task The processing task is a collaborative preprocessing task that only performs video image enhancement on the target video, the multi-cooperative preprocessing task is a collaborative preprocessing task that performs video content analysis and video image enhancement on the target video, and the single collaborative preprocessing task The original video is the target video after the cloud server only performs video image enhancement on the target video, and the multi-cooperative original video is the target video after the cloud server performs video image enhancement and video image analysis on the target video, wherein, If the collaborative processing task is a multi-coordinated processing task, the computing capability of the target terminal can be used to determine whether the terminal performing video content analysis is a cloud server or a target terminal, wherein the video content analysis is used to guide video processing coordination and Video codec collaboration, for example, in an implementable manner, refer to FIG. 3, which is a flow chart showing the cloud server performing video content analysis. When the cloud server performs video content analysis, that is, the target video is video During image analysis, its steps are before the step of video image enhancement to the target video. With reference to FIG. 4, FIG. 4 shows the flow chart of the target terminal performing video content analysis. During video image analysis, the step is before the step of performing video image enhancement on the target video.
作为一种示例,步骤B10至步骤B40包括:依据所述目标终端的计算能力,确定所述视频预处理协同信息对应的视频预处理任务,若所述计算能力不大于预设计算能力阈值,则确定所述协同处理任务为多协同预处理任务,若所述计算能力大于所述预设计算能力阈值,则确定所述协同处理人物为单协同预处理任务;若所述协同处理任务为多协同预处理任务,则依据所述视频分析任务,对所述原始视频进行协同分析,得到协同分析信息,其中,所述协同分析信息用于指导所述云服务器协同增强所述目标视频;依据所述视频增强任务,协同增强所述目标视频,得到所述多协同原始视频;若所述协同预处理任务为单协同预处理任务,则依据所述视频增强任务,协同增强所述目标视频,得到所述单协同原始视频。As an example, steps B10 to B40 include: determining the video preprocessing task corresponding to the video preprocessing coordination information according to the computing capability of the target terminal, and if the computing capability is not greater than the preset computing capability threshold, then Determine that the collaborative processing task is a multi-cooperative preprocessing task, and if the computing capability is greater than the preset computing capability threshold, determine that the collaborative processing character is a single collaborative preprocessing task; if the collaborative processing task is a multi-cooperative The preprocessing task is to perform collaborative analysis on the original video according to the video analysis task to obtain collaborative analysis information, wherein the collaborative analysis information is used to guide the cloud server to cooperatively enhance the target video; according to the The video enhancement task is to cooperatively enhance the target video to obtain the multi-cooperative original video; if the cooperative preprocessing task is a single cooperative preprocessing task, then according to the video enhancement task, cooperatively enhance the target video to obtain the multi-cooperative original video. The description is coordinated with the original video.
其中,所述单协同原始视频包括整体协同增强原始视频和部分协同增强原始视频,所述依据所述视频增强任务,协同增强所述目标视频,得到所述单协同原始视频的步骤包括:Wherein, the single collaborative original video includes an overall collaborative enhanced original video and a partial collaborative enhanced original video, and the step of obtaining the single collaborative original video by collaboratively enhancing the target video according to the video enhancement task includes:
步骤C10,若所述视频增强任务为所述视频增强任务完全分配至所述云服务器的第一视频增强任务,则依据所述第一视频增强任务,对所述原始视频进行整体增强,得到所述整体协同增强目标视频;Step C10, if the video enhancement task is the first video enhancement task completely assigned to the cloud server by the video enhancement task, then according to the first video enhancement task, perform overall enhancement on the original video to obtain the The overall synergistic enhancement of the target video;
步骤C20,若所述视频增强任务为所述视频增强任务完全分配至所述云服务器的第一视频增强任务,则依据所述第一视频增强任务,对所述原始视频进行整体增强,得到所述整体协同增强目标视频。Step C20, if the video enhancement task is the first video enhancement task that the video enhancement task is completely assigned to the cloud server, perform overall enhancement on the original video according to the first video enhancement task to obtain the The overall collaborative enhancement of the target video is described.
在本实施例中,需要说明的是,所述第一视频增强任务用于表征云服务器通过相关算法协同预处理任务对所述目标视频的所有视频图像进行视频整体处理,所述第二视频增强任务用于表征通过部分算法协同预处理任务对所述目标视频的视频图像进行视频部分处理,其中,所述视频部分处理可以为所述目标视频存在目标视频帧由云服务器进行处理。In this embodiment, it should be noted that the first video enhancement task is used to represent that the cloud server performs overall video processing on all video images of the target video through the relevant algorithm and cooperative preprocessing tasks, and the second video enhancement task The task is used to represent that the video part of the video image of the target video is processed through part of the algorithm in cooperation with the preprocessing task, wherein the video part processing may be that the target video has a target video frame and is processed by the cloud server.
作为一种示例,步骤C10至步骤C20包括:若所述视频增强任务为所述视频增强任务完全分配至所述云服务器的第一视频增强任务,则依据所述第一视频增强任务,对所述原始视频进行整体增强,得到所述整体协同增强目标视频,其中,所述第一视频增强任务用于表征不存在视频增强子任务的视频增强任务;若所述视频增强任务为所述视频增强任务完全分配至所述云服务器的第一视频增强任务,则依据所述第一视频增强任务,对所述原始视频进行整体增强,得到所述整体协同增强目标视频。As an example, steps C10 to C20 include: if the video enhancement task is the first video enhancement task that the video enhancement task is fully assigned to the cloud server, according to the first video enhancement task, The overall enhancement of the original video is performed to obtain the overall collaborative enhancement target video, wherein the first video enhancement task is used to represent a video enhancement task that does not have a video enhancement subtask; if the video enhancement task is the video enhancement The task is completely assigned to the first video enhancement task of the cloud server, and the original video is overall enhanced according to the first video enhancement task to obtain the overall collaborative enhancement target video.
其中,所述依据所述第二视频增强任务,对所述原始视频进行部分增强,得到所述部分协同增强原始视频的步骤包括:Wherein, the step of performing partial enhancement on the original video according to the second video enhancement task to obtain the partial collaborative enhancement of the original video includes:
步骤D10,获取所述第二视频增强任务对应的视频增强子任务;Step D10, acquiring a video enhancement subtask corresponding to the second video enhancement task;
步骤D20,依据所述视频增强子任务,对所述原始视频进行部分增强,得到所述部分协同增强目标视频。Step D20, according to the video enhancement sub-task, perform partial enhancement on the original video to obtain the partial cooperatively enhanced target video.
在本实施例中,需要说明的是,所述第二视频增强任务用于表征存在视频增强子任务的视频增强任务,所述视频增强子任务可根据算法分别独立部署于云服务器或目标终端进行单独增强的任务,例如,在一种可实施的方式中,参照图5,图5为表示第二视频增强任务的示意图,其中,所述第二视频增强任务B由视频增强子任务b、视频增强子任务c和视频增强子任务d组成,视频增强子任务b通过处理算法x对目标视频的视频图像进行处理,协同处理子任务c通过处理算法y对目标视频的视频图像进行处理,协同处理任务d通过处理算法z对目标视频的视频图像进行处理,若所述第二增强视频任务的部分视频增强子任务在云服务器上运行,部分在目标终端运行,则可根据目标终端的计算能力,区分视频增强子任务对应的处理算法是运行在云服务器还是运行在目标终端,当第二视频增强任务均部署于云服务器,此时所述目标终端不具备视频处理能力,当存在视频增强子任务部署于云服务器,此时所述目标终端具备视频处理能力。In this embodiment, it should be noted that the second video enhancement task is used to represent a video enhancement task with a video enhancement subtask, and the video enhancement subtask can be independently deployed on a cloud server or a target terminal according to an algorithm. For a task of separate enhancement, for example, in an implementable manner, refer to FIG. 5, which is a schematic diagram showing a second video enhancement task, wherein the second video enhancement task B consists of video enhancement subtask b, video The enhancement subtask c and the video enhancement subtask d are composed. The video enhancement subtask b processes the video image of the target video through the processing algorithm x, and the cooperative processing subtask c processes the video image of the target video through the processing algorithm y, and the cooperative processing Task d processes the video image of the target video through the processing algorithm z. If part of the video enhancement subtasks of the second enhanced video task run on the cloud server and part run on the target terminal, then according to the computing power of the target terminal, Distinguish whether the processing algorithm corresponding to the video enhancement subtask is running on the cloud server or the target terminal. When the second video enhancement task is deployed on the cloud server, the target terminal does not have the video processing capability at this time. When there is a video enhancement subtask Deployed on the cloud server, the target terminal has video processing capability at this time.
作为一种示例,步骤D10至步骤D40包括:获取所述视频预处理协同信息对应的视频增强子任务;依据所述视频增强子任务,依据所述视频增强子任务,对所述原始视频进行部分增强,得到所述部分协同增强目标视频。As an example, step D10 to step D40 include: obtaining the video enhancement subtask corresponding to the video preprocessing collaboration information; according to the video enhancement subtask, performing partial processing on the original video Enhanced to obtain the part of the collaboratively enhanced target video.
其中,在所述将所述编解码参数、所述视频预处理协同信息以及所述目标视频码流共同发送至所述目标终端的步骤之后,所述端云资源协同方法还包括:Wherein, after the step of jointly sending the codec parameters, the video preprocessing coordination information, and the target video code stream to the target terminal, the device-cloud resource coordination method further includes:
步骤E10,若接收到所述目标终端发送的当前运行状态参数,则依据所述当前运行状态参数,预测在预设运行时间段内是否对所述编解码参数和所述视频预处理协同信息进行调整;Step E10, if the current running state parameter sent by the target terminal is received, predict whether to perform the codec parameter and the video preprocessing coordination information within the preset running time period according to the current running state parameter Adjustment;
步骤E20,若接收到所述目标终端发送的当前运行状态参数,则依据所述当前运行状态参数,预测在预设运行时间段内是否对所述编解码参数和所述视频预处理协同信息进行调整。Step E20, if the current running state parameter sent by the target terminal is received, predict whether to perform the codec parameter and the video preprocessing coordination information within the preset running time period according to the current running state parameter Adjustment.
在本实施例中,需要说明的是,在所述目标终端播放所述目标视频时,目标终会实时向云服务器上报自身的运行状态,所以,所述当前运行状态参数用于表征当前运行状态,所述当前运行状态参数包括CPU/GPU频率信息、硬件温度信息和功耗信息等等,云服务器在收到当前运行状态参数后,会智能预测未来时间段内可能出现卡顿的概率,当硬件资源不能满足性能需求,可与云服务器进行交互,对编解码参数、视频预处理协同信息进行动态调整,以保证视频画质体验。In this embodiment, it should be noted that when the target terminal plays the target video, the target will eventually report its own running state to the cloud server in real time, so the current running state parameter is used to represent the current running state , the current running state parameters include CPU/GPU frequency information, hardware temperature information, power consumption information, etc. After receiving the current running state parameters, the cloud server will intelligently predict the probability of freezing in the future time period. If the hardware resources cannot meet the performance requirements, it can interact with the cloud server to dynamically adjust the codec parameters and video preprocessing coordination information to ensure the video quality experience.
作为一种示例,步骤E10至步骤E20包括:若接收到所述目标终端发送的当前运行状态参数,则确定所述当前运行状态参数是否大于预设当前运行状态参数阈值,若大于,则预测在预设运行时间段内对所述视频播放协同策略进行调整,其中,可设定任一运行参数大于预设运行参数阈值时,均认定所述运行状态参数大于所述预设当前运行状态参数阈值,所述预设运行时间段由用户自行设定;若预测在所述预设运行时间段对所述视频播放协同策略进行调整,则调整所述编解码参数,得到调整后的编解码参数,以及调整所述视频预处理协同信息,得到调整后的视频预处理协同信息,并返回执行步骤:依据所述编解码参数和所述视频预处理协同信息,将所述原始视频转换为对应的目标视频码流,其中,调整的方式可以为根据目标终端的闲置计算资源进行调整的方式。As an example, step E10 to step E20 include: if the current operating state parameter sent by the target terminal is received, then determine whether the current operating state parameter is greater than the preset current operating state parameter threshold, and if it is greater, then predict the Adjusting the video playback coordination strategy within a preset running time period, wherein, when any running parameter can be set to be greater than a preset running parameter threshold, the running state parameter is determined to be greater than the preset current running state parameter threshold , the preset running time period is set by the user; if it is predicted that the video playback coordination strategy will be adjusted during the preset running time period, then adjust the codec parameters to obtain adjusted codec parameters, And adjust the video preprocessing coordination information, obtain the adjusted video preprocessing coordination information, and return to the execution step: convert the original video into a corresponding target according to the codec parameters and the video preprocessing coordination information For the video code stream, the adjustment manner may be an adjustment manner according to idle computing resources of the target terminal.
本申请实施例提供了一种端云资源协同方法,也即,接收到目标终端针对于原始视频发送的端云资源协同请求,其中,所述端云资源协同请求携带所述原始视频的视频类型信息和所述目标终端的视频播放能力信息;进而依据所述视频类型信息和所述视频播放能力信息,确定所述原始视频对应的编解码参数和对应的视频预处理协同信息,实现了通过云服务器和目标视频针对于目标视频的信息交互,交互式确定目标终端对应的编解码参数和对应的视频预处理协同信息的目的;依据所述编解码参数和所述视频预处理协同信息,将所述原始视频转换为对应的目标视频码流,其中,所述编解码参数用于所述云服务器对所述原始视频进行编码,所述视频预处理协同信息用于所述云服务器在对所述原始视频进行编码之前确定所述原始视频的视频预处理策略;将所述编解码参数、所述视频预处理协同信息以及所述目标视频码流共同发送至所述目标终端,以供所述目标终端根据所述编解码参数和所述视频预处理协同信息,将所述目标视频码流转换为对应的待播放视频,其中,所述编解码参数用于所述目标终端对所述目标视频码流进行解码,所述视频预处理协同信息用于所述目标终端在对所述目标视频码流进行解码之后确定所述待播放视频的视频预处理策略;由于视频预处理协同信息用于确定目标视频的视频预处理任务在目标终端和云服务器的任务分配情况,进而云服务器和目标终端根据任务分配情况,确定是否对视频预处理任务进行预处理,并且,由于编解码参数用于在云服务器根据所述视频预处理任务确定是否协同处理所述目标视频后,将所述目标视频编码为所述目标视频码流,以及在目标终端根据所述视频预处理任务确定是否协同处理所述目标视频前,将所述目标视频码流解码为目标视频编码,也即,即使在云服务器或目标终端存在视频预处理任务,对于目标视频的视频预处理也将在对目标视频进行编码前或解码后完成,进而并不会导致出现编码失真影响画质的情况,与此同时,视频预处理任务的分配依赖于视频播放能力信息,也即,在目标终端的服务资源足以对目标视频进行一定程度的内容分析和视频处理工作的情况下,根据视频播放能力分配的视频预处理任务将利用目标终端服务资源对目标视频进行视频预处理,而非只通过云服务器在视频编码前进行视频内容分析和视频预处理工作,也即,实现了对目标终端闲置服务资源的有效利用的目的,进而使得云服务器的有限服务资源也得到了充分的利用,所以克服了由于云服务器的服务资源管理效果不佳而导致目标视频的视频画质体验无法进一步提升的技术缺陷,也即,提升了目标视频的视频画面效果,所以,也提升了云游戏画面的画面效果。An embodiment of the present application provides a device-cloud resource coordination method, that is, receiving a device-cloud resource coordination request sent by a target terminal for an original video, wherein the device-cloud resource coordination request carries the video type of the original video information and the video playback capability information of the target terminal; then according to the video type information and the video playback capability information, determine the codec parameters corresponding to the original video and the corresponding video preprocessing coordination information, and realize the For information interaction of the target video, the server and the target video interactively determine the codec parameters corresponding to the target terminal and the corresponding video preprocessing coordination information; according to the codec parameters and the video preprocessing coordination information, the The original video is converted into a corresponding target video code stream, wherein the codec parameters are used by the cloud server to encode the original video, and the video preprocessing coordination information is used by the cloud server to encode the Determine the video preprocessing strategy of the original video before encoding the original video; send the codec parameters, the video preprocessing coordination information, and the target video code stream to the target terminal for the target The terminal converts the target video code stream into a corresponding video to be played according to the codec parameters and the video preprocessing coordination information, wherein the codec parameters are used by the target terminal to code the target video Stream decoding, the video preprocessing coordination information is used for the target terminal to determine the video preprocessing strategy of the video to be played after decoding the target video stream; since the video preprocessing coordination information is used to determine the target The task distribution of the video preprocessing task between the target terminal and the cloud server, and then the cloud server and the target terminal determine whether to preprocess the video preprocessing task according to the task distribution, and, because the codec parameters are used in the cloud server After determining whether to co-process the target video according to the video pre-processing task, encode the target video into the target video code stream, and determine whether to co-process the target video according to the video pre-processing task at the target terminal Before, the target video code stream is decoded into the target video encoding, that is, even if there is a video preprocessing task on the cloud server or the target terminal, the video preprocessing for the target video will be performed before encoding or after decoding the target video Complete, and then will not lead to the situation that the encoding distortion affects the image quality. At the same time, the allocation of video preprocessing tasks depends on the video playback capability information, that is, the service resources on the target terminal are sufficient to perform a certain degree of target video In the case of content analysis and video processing, the video preprocessing task assigned according to the video playback capability will use the target terminal service resources to perform video preprocessing on the target video, instead of only using the cloud server to perform video content analysis and video encoding before video encoding. The preprocessing work, that is, realizes the purpose of effectively utilizing the idle service resources of the target terminal, and then makes full use of the limited service resources of the cloud server, so it overcomes the service resource management efficiency of the cloud server. The technical defect that the video quality experience of the target video cannot be further improved due to poor results, that is, the video picture effect of the target video is improved, so the picture effect of the cloud game picture is also improved.
实施例二Embodiment two
进一步地,参照图6,在本申请另一实施例中,与上述实施例一相同或相似的内容,可以参考上文介绍,后续不再赘述。在此基础上,应用于目标终端,所述端云资源协同方法还包括:Further, referring to FIG. 6 , in another embodiment of the present application, for content that is the same as or similar to the first embodiment above, reference may be made to the introduction above, and details will not be repeated hereafter. On this basis, applied to the target terminal, the device-cloud resource collaboration method further includes:
步骤F10,向云服务器发送端云资源协同请求,其中,所述端云资源协同请求携带所述目标视频的视频类型信息和所述目标终端的视频播放能力信息,以供所述云服务器依据所述视频类型信息和所述视频播放能力信息,确定所述原始视频对应的编解码参数和对应的视频预处理协同信息,以及依据所述编解码参数和所述视频预处理协同信息,将所述原始视频转换为对应的目标视频码流,其中,所述编解码参数用于所述云服务器对所述原始视频进行编码,所述视频预处理协同信息用于所述云服务器在对所述原始视频进行编码之前确定所述原始视频的视频预处理策略;Step F10, sending a device-cloud resource coordination request to the cloud server, wherein the device-cloud resource coordination request carries the video type information of the target video and the video playback capability information of the target terminal, for the cloud server to use according to the specified The video type information and the video playback capability information, determine the codec parameters corresponding to the original video and the corresponding video preprocessing coordination information, and according to the codec parameters and the video preprocessing coordination information, convert the The original video is converted into a corresponding target video code stream, wherein the codec parameters are used by the cloud server to encode the original video, and the video preprocessing coordination information is used by the cloud server to encode the original video Determine the video preprocessing strategy of the original video before encoding the video;
步骤F20,接收所述云服务器发送的所述编解码参数、所述视频预处理协同信息和所述目标视频码流;Step F20, receiving the codec parameters, the video preprocessing coordination information and the target video code stream sent by the cloud server;
步骤F30,依据所述编解码参数和所述视频预处理协同信息,将所述目标视频码流转换为对应的待播放视频,其中,所述编解码参数用于所述目标终端对所述目标视频码流进行解码,所述视频预处理协同信息用于所述目标终端在对所述目标视频码流进行解码之后确定所述待播放视频的视频预处理策略。Step F30: Convert the target video code stream into a corresponding video to be played according to the codec parameters and the video preprocessing coordination information, wherein the codec parameters are used by the target terminal to The video code stream is decoded, and the video preprocessing coordination information is used for the target terminal to determine the video preprocessing policy of the video to be played after decoding the target video code stream.
在本实施例中,需要说明的是,所述视频显示指令用于触发目标终端自动收集所述目标视频的视频类型信息和所述目标终端的视频播放能力信息,进而生成端云资源协同请求,具体可由用户通过语音或按键等方式触发,对于协同处理后的目标视频,可通过I/O接口传输至所述目标终端的显示器,进而基于显示器进行显示播放处理,目标终端解码得到的目标视频可以为云服务器未进行视频分析任务且未进行视频增强任务的目标视频,也可以未进行视频分析任务但进行视频增强任务的目标视频,也可以为进行视频分析任务但未进行视频增强任务,所述视频增强任务可以为第一视频增强任务和第二视频增强任务,所述待播放视频为等待在目标终端的预设显示界面进行播放的视频,在获得待播放视频后,可通过视频播放指令播放所述待播放视频。In this embodiment, it should be noted that the video display instruction is used to trigger the target terminal to automatically collect the video type information of the target video and the video playback capability information of the target terminal, and then generate a device-cloud resource coordination request, Specifically, it can be triggered by the user through voice or button. For the target video after collaborative processing, it can be transmitted to the display of the target terminal through the I/O interface, and then display and play based on the display. The target video decoded by the target terminal can be It is the target video that the cloud server has not performed the video analysis task and has not performed the video enhancement task, or the target video that has not performed the video analysis task but has performed the video enhancement task, or it can be the target video that has performed the video analysis task but has not performed the video enhancement task. The video enhancement task can be a first video enhancement task and a second video enhancement task. The video to be played is a video waiting to be played on the preset display interface of the target terminal. After obtaining the video to be played, it can be played by a video playback instruction The video to be played.
作为一种示例,步骤F10至步骤F40包括:若检测到用户针对于目标视频输入的视频显示指令,则向云服务器发送端云资源协同请求,其中,所述端云资源协同请求携带所述目标视频的视频类型信息和所述目标终端的视频播放能力信息,以供所述云服务器依据所述视频类型信息和所述视频播放能力信息,确定所述原始视频对应的编解码参数和对应的视频预处理协同信息,以及依据所述编解码参数和所述视频预处理协同信息,将所述原始视频转换为对应的目标视频码流,其中,所述编解码参数用于所述云服务器对所述原始视频进行编码,所述视频预处理协同信息用于所述云服务器在对所述原始视频进行编码之前确定所述原始视频的视频预处理策略;接收所述云服务器发送的所述编解码参数、所述视频预处理协同信息和所述目标视频码流;依据所述编解码参数和所述视频预处理协同信息,将所述目标视频码流转换为对应的待播放视频,其中,所述编解码参数用于所述目标终端对所述目标视频码流进行解码,所述视频预处理协同信息用于所述目标终端在对所述目标视频码流进行解码之后确定所述待播放视频的视频预处理策略。As an example, steps F10 to F40 include: if it is detected that the user inputs a video display instruction for the target video, sending a device-cloud resource coordination request to the cloud server, wherein the device-cloud resource coordination request carries the target The video type information of the video and the video playback capability information of the target terminal are used for the cloud server to determine the codec parameters corresponding to the original video and the corresponding video playback capability information according to the video type information and the video playback capability information. Preprocessing the coordination information, and converting the original video into a corresponding target video code stream according to the codec parameters and the video preprocessing coordination information, wherein the codec parameters are used by the cloud server to The original video is encoded, and the video preprocessing coordination information is used by the cloud server to determine the video preprocessing strategy of the original video before encoding the original video; receiving the codec sent by the cloud server parameters, the video preprocessing coordination information, and the target video code stream; according to the codec parameters and the video preprocessing coordination information, convert the target video code stream into a corresponding video to be played, wherein the The codec parameters are used by the target terminal to decode the target video code stream, and the video preprocessing coordination information is used by the target terminal to determine the video to be played after decoding the target video code stream video preprocessing strategy.
在一种可实施的方式中,所述视频预处理协同信息确定的视频预处理任务的任务分配情况包括所述视频预处理任务均分配至所述云服务器、所述视频预处理任务均分配至所述目标终端以及所述视频预处理任务部分分配至所述云服务器和部分分配至所述目标终端,根据视频预处理任务对所述目标视频进行视频预处理的具体步骤可参照云服务器根据视频预处理任务对目标视频进行视频预处理的具体步骤,在此不再赘述。In an implementable manner, the task assignment of the video preprocessing tasks determined by the video preprocessing coordination information includes that the video preprocessing tasks are all assigned to the cloud server, and the video preprocessing tasks are all assigned to the cloud server. The target terminal and the video preprocessing task are partially allocated to the cloud server and partially allocated to the target terminal, and the specific steps for performing video preprocessing on the target video according to the video preprocessing task can refer to the cloud server according to the video The specific steps of the preprocessing task to perform video preprocessing on the target video will not be repeated here.
其中,在所述依据所述编解码参数和所述视频预处理协同信息,将所述目标视频码流转换为对应的待播放视频的步骤之后,所述端云资源协同方法还包括:Wherein, after the step of converting the target video code stream into a corresponding video to be played according to the codec parameters and the video preprocessing coordination information, the device-cloud resource coordination method further includes:
步骤G10,获取当前运行状态参数,并将所述当前运行状态参数发送至所述云服务器,以供所述云服务器根据所述当前运行状态参数,预测在预设运行时间段内是否对所述编解码参数和所述视频预处理协同信息进行调整。Step G10, obtaining the current operating state parameters, and sending the current operating state parameters to the cloud server, so that the cloud server can predict whether the Codec parameters and the video preprocessing coordination information are adjusted.
作为一种示例,步骤G10包括:获取取当前运行状态参数,并将所述当前运行状态参数发送至所述云服务器,以供所述云服务器根据所述当前运行状态参数,预测在预设运行时间段内是否对所述编解码参数和所述视频预处理协同信息进行调整,其中,所述云服务器根据所述当前运行状态参数,预测在预设运行时间段内是否对所述编解码参数和所述视频预处理协同信息进行调整可参照步骤E10至步骤E20的具体步骤,在此不再赘述。As an example, step G10 includes: obtaining the current operating state parameters, and sending the current operating state parameters to the cloud server, so that the cloud server can predict the preset operating state according to the current operating state parameters. Whether to adjust the codec parameters and the video preprocessing coordination information within a time period, wherein the cloud server predicts whether to adjust the codec parameters within a preset operation time period according to the current operation state parameters For adjusting with the video pre-processing coordination information, refer to the specific steps from step E10 to step E20, which will not be repeated here.
本申请实施例提供了一种端云资源协同方法,应用于目标终端,也即,向云服务器发送端云资源协同请求,其中,所述端云资源协同请求携带所述目标视频的视频类型信息和所述目标终端的视频播放能力信息,以供所述云服务器依据所述视频类型信息和所述视频播放能力信息,确定所述原始视频对应的编解码参数和对应的视频预处理协同信息,以及依据所述编解码参数和所述视频预处理协同信息,将所述原始视频转换为对应的目标视频码流,其中,所述编解码参数用于所述云服务器对所述原始视频进行编码,所述视频预处理协同信息用于所述云服务器在对所述原始视频进行编码之前确定所述原始视频的视频预处理策略;接收所述云服务器发送的所述编解码参数、所述视频预处理协同信息和所述目标视频码流;依据所述编解码参数和所述视频预处理协同信息,将所述目标视频码流转换为对应的待播放视频,其中,所述编解码参数用于所述目标终端对所述目标视频码流进行解码,所述视频预处理协同信息用于所述目标终端在对所述目标视频码流进行解码之后确定所述待播放视频的视频预处理策略。由于视频预处理协同信息用于确定目标视频的视频预处理任务在目标终端和云服务器的任务分配情况,进而云服务器和目标终端根据任务分配情况,确定是否对视频预处理任务进行预处理,并且,由于编解码参数用于在云服务器根据所述视频预处理任务确定是否协同处理所述目标视频后,将所述目标视频编码为所述目标视频码流,以及在目标终端根据所述视频预处理任务确定是否协同处理所述目标视频前,将所述目标视频码流解码为目标视频编码,也即,即使在云服务器或目标终端存在视频预处理任务,对于目标视频的视频预处理也将在对目标视频进行编码前或解码后完成,进而并不会导致出现编码失真影响画质的情况,与此同时,视频预处理任务的分配依赖于视频播放能力信息,也即,在目标终端的服务资源足以对目标视频进行一定程度的内容分析和视频处理工作的情况下,根据视频播放能力分配的视频预处理任务将利用目标终端服务资源对目标视频进行视频预处理,而非只通过云服务器在视频编码前进行视频内容分析和视频预处理工作,也即,实现了对目标终端闲置服务资源的有效利用的目的,进而使得云服务器的有限服务资源也得到了充分的利用,所以克服了由于云服务器的服务资源管理效果不佳而导致目标视频的视频画质体验无法进一步提升的技术缺陷,也即,提升了目标视频的视频画面效果,所以,也提升了云游戏画面的画面效果。An embodiment of the present application provides a device-cloud resource coordination method, which is applied to a target terminal, that is, a device-cloud resource coordination request is sent to a cloud server, wherein the device-cloud resource coordination request carries video type information of the target video and the video playback capability information of the target terminal, for the cloud server to determine the codec parameters corresponding to the original video and the corresponding video preprocessing coordination information according to the video type information and the video playback capability information, and converting the original video into a corresponding target video stream according to the codec parameters and the video preprocessing coordination information, wherein the codec parameters are used by the cloud server to encode the original video , the video preprocessing coordination information is used for the cloud server to determine the video preprocessing strategy of the original video before encoding the original video; receiving the codec parameters, the video Preprocessing the coordination information and the target video code stream; converting the target video code stream into a corresponding video to be played according to the codec parameters and the video preprocessing coordination information, wherein the codec parameters are used The target terminal decodes the target video code stream, and the video preprocessing coordination information is used for the target terminal to determine the video preprocessing strategy of the video to be played after decoding the target video code stream . Since the video preprocessing coordination information is used to determine the task assignment of the video preprocessing task of the target video between the target terminal and the cloud server, and then the cloud server and the target terminal determine whether to perform preprocessing on the video preprocessing task according to the task assignment, and , because the codec parameters are used to encode the target video into the target video code stream after the cloud server determines whether to co-process the target video according to the video preprocessing task, and the target terminal The processing task determines whether to decode the target video code stream into the target video code before co-processing the target video, that is, even if there is a video preprocessing task on the cloud server or the target terminal, the video preprocessing of the target video will also It is completed before encoding or after decoding the target video, which will not cause encoding distortion to affect the picture quality. At the same time, the allocation of video preprocessing tasks depends on the video playback capability information, that is, the When the service resources are sufficient to perform a certain degree of content analysis and video processing on the target video, the video preprocessing task assigned according to the video playback capability will use the target terminal service resources to perform video preprocessing on the target video instead of only through the cloud server Perform video content analysis and video preprocessing before video encoding, that is, to achieve the purpose of effectively utilizing the idle service resources of the target terminal, and then make full use of the limited service resources of the cloud server. The poor service resource management effect of the cloud server leads to a technical defect that the video quality experience of the target video cannot be further improved, that is, the video picture effect of the target video is improved, so the picture effect of the cloud game picture is also improved.
实施例三Embodiment Three
本申请实施例还提供一种端云资源协同装置,应用于云服务器,参照图7,所述端云资源协同装置包括:The embodiment of the present application also provides a terminal-cloud resource coordination device, which is applied to a cloud server. Referring to FIG. 7, the device-cloud resource coordination device includes:
第一接收模块101,用于接收到目标终端针对于原始视频发送的端云资源协同请求,其中,所述端云资源协同请求携带所述原始视频的视频类型信息和所述目标终端的视频播放能力信息;The
确定模块102,用于依据所述视频类型信息和所述视频播放能力信息,确定所述原始视频对应的编解码参数和对应的视频预处理协同信息;A determining
第一转换模块103,用于依据所述编解码参数和所述视频预处理协同信息,将所述原始视频转换为对应的目标视频码流,其中,所述编解码参数用于所述云服务器对所述原始视频进行编码,所述视频预处理协同信息用于所述云服务器在对所述原始视频进行编码之前确定所述原始视频的视频预处理策略;The
第一发送模块104,用于将所述编解码参数、所述视频预处理协同信息以及所述目标视频码流共同发送至所述目标终端,以供所述目标终端根据所述编解码参数和所述视频预处理协同信息,将所述目标视频码流转换为对应的待播放视频,其中,所述编解码参数用于所述目标终端对所述目标视频码流进行解码,所述视频预处理协同信息用于所述目标终端在对所述目标视频码流进行解码之后确定所述待播放视频的视频预处理策略。The
可选地,所述第一转换模块103还用于:Optionally, the
依据所述视频预处理协同信息,确定是否协同预处理所述原始视频;Determine whether to collaboratively preprocess the original video according to the video preprocessing collaboration information;
若是,则依据所述视频预处理协同信息,对所述原始视频进行视频预处理,得到预处理后的原始视频;If so, perform video preprocessing on the original video according to the video preprocessing coordination information to obtain the preprocessed original video;
依据所述编解码参数,对所述预处理后的原始视频进行编码,得到所述目标视频码流;Encoding the preprocessed original video according to the codec parameters to obtain the target video code stream;
若否,则依据所述编解码参数,对所述预处理后的原始视频进行编码,得到所述目标视频码流。If not, encode the preprocessed original video according to the codec parameters to obtain the target video code stream.
可选地,所述预处理后的原始视频包括单协同原始视频和多协同原始视频,所述转换模块103还用于:Optionally, the preprocessed original video includes a single collaborative original video and multiple collaborative original videos, and the
确定所述视频预处理协同信息对应的视频预处理任务,其中,所述视频预处理任务包括视频分析任务和视频增强任务;Determine a video preprocessing task corresponding to the video preprocessing collaborative information, where the video preprocessing task includes a video analysis task and a video enhancement task;
若所述协同处理任务为多协同预处理任务,则依据所述视频分析任务,对所述原始视频进行协同分析,得到协同分析信息;If the collaborative processing task is a multi-cooperative preprocessing task, performing collaborative analysis on the original video according to the video analysis task to obtain collaborative analysis information;
依据所述视频增强任务,协同增强所述目标视频,得到所述多协同原始视频;According to the video enhancement task, cooperatively enhance the target video to obtain the multi-cooperative original video;
若所述协同处理任务为单协同预处理任务,则依据所述视频增强任务,协同增强所述目标视频,得到所述单协同原始视频。If the collaborative processing task is a single collaborative preprocessing task, the target video is collaboratively enhanced according to the video enhancement task to obtain the single collaborative original video.
可选地,所述第一转换模块103还用于:Optionally, the
若所述视频增强任务为所述视频增强任务完全分配至所述云服务器的第一视频增强任务,则依据所述第一视频增强任务,对所述原始视频进行整体增强,得到所述整体协同增强目标视频;If the video enhancement task is the first video enhancement task that the video enhancement task is completely assigned to the cloud server, then according to the first video enhancement task, the original video is overall enhanced to obtain the overall coordination Enhance target video;
若所述视频增强任务为所述视频增强任务部分分配至所述云服务器的第二视频预处理任务,则依据所述第二视频增强任务,对所述原始视频进行部分增强,得到所述部分协同增强原始视频。If the video enhancement task is the second video preprocessing task assigned to the cloud server by the video enhancement task part, then according to the second video enhancement task, the original video is partially enhanced to obtain the part Cooperatively enhance raw video.
可选地,所述第一转换模块103还用于:Optionally, the
获取所述第二视频增强任务对应的视频增强子任务;Obtain a video enhancement subtask corresponding to the second video enhancement task;
依据所述视频增强子任务,对所述原始视频进行部分增强,得到所述部分协同增强目标视频。According to the video enhancement sub-task, partial enhancement is performed on the original video to obtain the partial cooperatively enhanced target video.
可选地,所述端云资源协同装置还用于:Optionally, the device-cloud resource coordination device is also used for:
若接收到所述目标终端发送的当前运行状态参数,则依据所述当前运行状态参数,预测在预设运行时间段内是否对所述编解码参数和所述视频预处理协同信息进行调整;If the current running state parameter sent by the target terminal is received, predict whether to adjust the codec parameter and the video preprocessing coordination information within a preset running time period according to the current running state parameter;
若是,则将调整后的编解码参数作为所述编解码参数,以及将调整后的视频预处理协同信息作为所述视频预处理协同信息,并返回执行步骤:依据所述编解码参数和所述视频预处理协同信息,将所述原始视频转换为对应的目标视频码流。If so, use the adjusted codec parameters as the codec parameters, and use the adjusted video preprocessing coordination information as the video preprocessing coordination information, and return to the execution step: according to the codec parameters and the Video preprocessing cooperates with information to convert the original video into a corresponding target video code stream.
本发明提供的端云资源协同装置,采用上述实施例中的端云资源协同方法,解决了由于云服务器的服务资源管理效果不佳而导致云游戏画面效果差的技术问题。与现有技术相比,本发明实施例提供的端云资源协同装置的有益效果与上述实施例提供的端云资源协同方法的有益效果相同,且该端云资源协同装置中的其他技术特征与上述实施例方法公开的特征相同,在此不做赘述。The terminal-cloud resource coordination device provided by the present invention adopts the terminal-cloud resource coordination method in the above-mentioned embodiments, and solves the technical problem of poor cloud game screen effect due to poor service resource management effect of the cloud server. Compared with the prior art, the beneficial effects of the device-cloud resource coordination device provided by the embodiment of the present invention are the same as those of the device-cloud resource coordination method provided by the above-mentioned embodiments, and other technical features of the device-cloud resource coordination device are the same as The features disclosed by the methods in the above embodiments are the same, and will not be repeated here.
实施例四Embodiment Four
本申请实施例还提供一种端云资源协同装置,应用于目标终端,参照图8,所述端云资源协同装置包括:The embodiment of the present application also provides a device-cloud resource coordination device, which is applied to a target terminal. Referring to FIG. 8, the device-cloud resource coordination device includes:
第二发送模块201,用于向云服务器发送端云资源协同请求,其中,所述端云资源协同请求携带所述目标视频的视频类型信息和所述目标终端的视频播放能力信息,以供所述云服务器依据所述视频类型信息和所述视频播放能力信息,确定所述原始视频对应的编解码参数和对应的视频预处理协同信息,以及依据所述编解码参数和所述视频预处理协同信息,将所述原始视频转换为对应的目标视频码流,其中,所述编解码参数用于所述云服务器对所述原始视频进行编码,所述视频预处理协同信息用于所述云服务器在对所述原始视频进行编码之前确定所述原始视频的视频预处理策略;The
第二接收模块202,用于接收所述云服务器发送的所述编解码参数、所述视频预处理协同信息和所述目标视频码流;The
第二转换模块203,用于依据所述编解码参数和所述视频预处理协同信息,将所述目标视频码流转换为对应的待播放视频,其中,所述编解码参数用于所述目标终端对所述目标视频码流进行解码,所述视频预处理协同信息用于所述目标终端在对所述目标视频码流进行解码之后确定所述待播放视频的视频预处理策略。The
可选地,所述端云资源协同装置还用于:Optionally, the device-cloud resource coordination device is also used for:
获取当前运行状态参数,并将所述当前运行状态参数发送至所述云服务器,以供所述云服务器根据所述当前运行状态参数,预测在预设运行时间段内是否对所述编解码参数和所述视频预处理协同信息进行调整。Obtaining the current running state parameters, and sending the current running state parameters to the cloud server, so that the cloud server can predict whether to change the encoding and decoding parameters within the preset running time period according to the current running state parameters Adjust with the video preprocessing information.
本发明提供的端云资源协同装置,采用上述实施例中的端云资源协同方法,解决了由于云服务器的服务资源管理效果不佳而导致云游戏画面效果差的技术问题。与现有技术相比,本发明实施例提供的端云资源协同装置的有益效果与上述实施例提供的端云资源协同方法的有益效果相同,且该端云资源协同装置中的其他技术特征与上述实施例方法公开的特征相同,在此不做赘述。The terminal-cloud resource coordination device provided by the present invention adopts the terminal-cloud resource coordination method in the above-mentioned embodiments, and solves the technical problem of poor cloud game screen effect due to poor service resource management effect of the cloud server. Compared with the prior art, the beneficial effects of the device-cloud resource coordination device provided by the embodiment of the present invention are the same as those of the device-cloud resource coordination method provided by the above-mentioned embodiments, and other technical features of the device-cloud resource coordination device are the same as The features disclosed by the methods in the above embodiments are the same, and will not be repeated here.
实施例五Embodiment five
本发明实施例提供一种电子设备,电子设备包括:至少一个处理器;以及,与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行上述实施例一中的端云资源协同方法。An embodiment of the present invention provides an electronic device. The electronic device includes: at least one processor; and a memory connected to the at least one processor in communication; wherein, the memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor. The processor executes, so that at least one processor can execute the device-cloud resource collaboration method in the first embodiment above.
下面参考图9,其示出了适于用来实现本公开实施例的电子设备的结构示意图。本公开实施例中的电子设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。图9示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring now to FIG. 9 , it shows a schematic structural diagram of an electronic device suitable for implementing an embodiment of the present disclosure. The electronic equipment in the embodiment of the present disclosure may include but not limited to such as mobile phone, notebook computer, digital broadcast receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable multimedia player), vehicle terminal (such as mobile terminals such as car navigation terminals) and fixed terminals such as digital TVs, desktop computers and the like. The electronic device shown in FIG. 9 is only an example, and should not limit the functions and application scope of the embodiments of the present disclosure.
如图9所示,电子设备可以包括处理装置1001(例如中央处理器、图形处理器等),其可以根据存储在只读存储器(ROM)1002中的程序或者从存储装置1003加载到随机访问存储器(RAM)1004中的程序而执行各种适当的动作和处理。在RAM1004中,还存储有电子设备操作所需的各种程序和数据。处理装置1001、ROM1002以及RAM1004通过总线1005彼此相连。输入/输出(I/O)接口1006也连接至总线。As shown in FIG. 9, the electronic device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which may be loaded into a random access memory according to a program stored in a read-only memory (ROM) 1002 or from a storage device 1003. (RAM) 1004 to execute various appropriate actions and processing. In RAM 1004, various programs and data necessary for the operation of the electronic device are also stored. The processing device 1001 , ROM 1002 , and RAM 1004 are connected to each other via a bus 1005 . An input/output (I/O) interface 1006 is also connected to the bus.
通常,以下系统可以连接至I/O接口1006:包括例如触摸屏、触摸板、键盘、鼠标、图像传感器、麦克风、加速度计、陀螺仪等的输入装置1007;包括例如液晶显示器(LCD)、扬声器、振动器等的输出装置1008;包括例如磁带、硬盘等的存储装置1003;以及通信装置1009。通信装置可以允许电子设备与其他设备进行无线或有线通信以交换数据。虽然图中示出了具有各种系统的电子设备,但是应理解的是,并不要求实施或具备所有示出的系统。可以替代地实施或具备更多或更少的系统。In general, the following systems can be connected to the I/O interface 1006: input devices 1007 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD), speakers, an output device 1008 of a vibrator or the like; a storage device 1003 including, for example, a magnetic tape, a hard disk, or the like; and a communication device 1009 . A communication device may allow an electronic device to communicate with other devices wirelessly or by wire to exchange data. While an electronic device is shown with various systems in the figures, it should be understood that implementing or having all of the systems shown is not a requirement. More or fewer systems may alternatively be implemented or provided.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置1009从网络上被下载和安装,或者从存储装置1003被安装,或者从ROM1002被安装。在该计算机程序被处理装置1001执行时,执行本公开实施例的方法中限定的上述功能。In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, where the computer program includes program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from the network via the communication means 1009, or from the storage means 1003, or from the ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are executed.
本发明提供的电子设备,采用上述实施例中的端云资源协同方法,解决了由于云服务器的服务资源管理效果不佳而导致云游戏画面效果差的技术问题。与现有技术相比,本发明实施例提供的电子设备的有益效果与上述实施例提供的端云资源协同方法的有益效果相同,且该电子设备中的其他技术特征与上述实施例方法公开的特征相同,在此不做赘述。The electronic device provided by the present invention adopts the terminal-cloud resource coordination method in the above-mentioned embodiments, and solves the technical problem of poor cloud game picture effect due to poor service resource management effect of the cloud server. Compared with the prior art, the beneficial effect of the electronic device provided by the embodiment of the present invention is the same as that of the device-cloud resource coordination method provided by the above embodiment, and other technical features of the electronic device are the same as those disclosed by the method of the above embodiment The features are the same, and will not be repeated here.
应当理解,本公开的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式的描述中,具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。It should be understood that various parts of the present disclosure may be implemented in hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics may be combined in any one or more embodiments or examples in an appropriate manner.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
实施例六Embodiment six
本实施例提供一种计算机可读存储介质,具有存储在其上的计算机可读程序指令,计算机可读程序指令用于执行上述实施例中的端云资源协同方法。This embodiment provides a computer-readable storage medium, which has computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the device-cloud resource collaboration method in the foregoing embodiments.
本发明实施例提供的计算机可读存储介质例如可以是U盘,但不限于电、磁、光、电磁、红外线、或半导体的系统、系统或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本实施例中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、系统或者器件使用或者与其结合使用。计算机可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。The computer-readable storage medium provided by the embodiments of the present invention may be, for example, a USB flash drive, but is not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, system, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, system or device. Program code embodied on a computer readable storage medium may be transmitted by any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
上述计算机可读存储介质可以是电子设备中所包含的;也可以是单独存在,而未装配入电子设备中。The above-mentioned computer-readable storage medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
上述计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被电子设备执行时,使得电子设备:接收到目标终端针对于原始视频发送的端云资源协同请求,其中,所述端云资源协同请求携带所述原始视频的视频类型信息和所述目标终端的视频播放能力信息;依据所述视频类型信息和所述视频播放能力信息,确定所述原始视频对应的编解码参数和对应的视频预处理协同信息;依据所述编解码参数和所述视频预处理协同信息,将所述原始视频转换为对应的目标视频码流,其中,所述编解码参数用于所述云服务器对所述原始视频进行编码,所述视频预处理协同信息用于所述云服务器在对所述原始视频进行编码之前确定所述原始视频的视频预处理策略;将所述编解码参数、所述视频预处理协同信息以及所述目标视频码流共同发送至所述目标终端,以供所述目标终端根据所述编解码参数和所述视频预处理协同信息,将所述目标视频码流转换为对应的待播放视频,其中,所述编解码参数用于所述目标终端对所述目标视频码流进行解码,所述视频预处理协同信息用于所述目标终端在对所述目标视频码流进行解码之后确定所述待播放视频的视频预处理策略。The computer-readable storage medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: receives a device-cloud resource coordination request sent by the target terminal for the original video, wherein the The device-cloud resource coordination request carries the video type information of the original video and the video playback capability information of the target terminal; according to the video type information and the video playback capability information, determine the codec parameters corresponding to the original video and corresponding video preprocessing coordination information; convert the original video into a corresponding target video stream according to the codec parameters and the video preprocessing coordination information, wherein the codec parameters are used in the cloud The server encodes the original video, and the video preprocessing coordination information is used by the cloud server to determine a video preprocessing strategy of the original video before encoding the original video; The video preprocessing coordination information and the target video code stream are jointly sent to the target terminal, so that the target terminal can convert the target video code stream according to the codec parameters and the video preprocessing coordination information is the corresponding video to be played, wherein the codec parameters are used by the target terminal to decode the target video code stream, and the video preprocessing coordination information is used by the target terminal to decode the target video code stream After the stream is decoded, the video preprocessing policy of the video to be played is determined.
或者向云服务器发送端云资源协同请求,其中,所述端云资源协同请求携带所述目标视频的视频类型信息和所述目标终端的视频播放能力信息,以供所述云服务器依据所述视频类型信息和所述视频播放能力信息,确定所述原始视频对应的编解码参数和对应的视频预处理协同信息,以及依据所述编解码参数和所述视频预处理协同信息,将所述原始视频转换为对应的目标视频码流,其中,所述编解码参数用于所述云服务器对所述原始视频进行编码,所述视频预处理协同信息用于所述云服务器在对所述原始视频进行编码之前确定所述原始视频的视频预处理策略;接收所述云服务器发送的所述编解码参数、所述视频预处理协同信息和所述目标视频码流;依据所述编解码参数和所述视频预处理协同信息,将所述目标视频码流转换为对应的待播放视频,其中,所述编解码参数用于所述目标终端对所述目标视频码流进行解码,所述视频预处理协同信息用于所述目标终端在对所述目标视频码流进行解码之后确定所述待播放视频的视频预处理策略。Or send a terminal-cloud resource coordination request to the cloud server, wherein the terminal-cloud resource coordination request carries the video type information of the target video and the video playback capability information of the target terminal, so that the cloud server can Type information and the video playback capability information, determine the codec parameters corresponding to the original video and the corresponding video pre-processing coordination information, and according to the codec parameters and the video pre-processing coordination information, convert the original video converted into a corresponding target video code stream, wherein the codec parameters are used by the cloud server to encode the original video, and the video preprocessing coordination information is used by the cloud server to encode the original video Determining the video preprocessing strategy of the original video before encoding; receiving the codec parameters, the video preprocessing coordination information and the target video code stream sent by the cloud server; according to the codec parameters and the Video preprocessing coordination information, converting the target video code stream into a corresponding video to be played, wherein the codec parameters are used by the target terminal to decode the target video code stream, and the video preprocessing coordination The information is used for the target terminal to determine the video preprocessing policy of the video to be played after decoding the target video code stream.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out the operations of the present disclosure can be written in one or more programming languages, or combinations thereof, including object-oriented programming languages—such as Java, Smalltalk, C++, and conventional Procedural Programming Language - such as "C" or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as through an Internet service provider). Internet connection).
附图中的流程图和框图,图示了按照本发明各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, program segment, or portion of code that contains one or more logical functions for implementing specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified functions or operations , or may be implemented by a combination of dedicated hardware and computer instructions.
描述于本公开实施例中所涉及到的模块可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,模块的名称在某种情况下并不构成对该单元本身的限定。The modules involved in the embodiments described in the present disclosure may be implemented by software or by hardware. Wherein, the name of the module does not constitute a limitation of the unit itself under certain circumstances.
本发明提供的计算机可读存储介质,存储有用于执行上述端云资源协同方法的计算机可读程序指令,解决了由于云服务器的服务资源管理效果不佳而导致云游戏画面效果差的技术问题。与现有技术相比,本发明实施例提供的计算机可读存储介质的有益效果与上述实施例提供的端云资源协同方法的有益效果相同,在此不做赘述。The computer-readable storage medium provided by the present invention stores computer-readable program instructions for executing the above-mentioned device-cloud resource collaboration method, and solves the technical problem of poor cloud game screen effects caused by poor service resource management of cloud servers. Compared with the prior art, the beneficial effect of the computer-readable storage medium provided by the embodiment of the present invention is the same as the beneficial effect of the device-cloud resource coordination method provided by the above-mentioned embodiment, and details are not repeated here.
实施例七Embodiment seven
本申请还提供一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现如上述的端云资源协同方法的步骤。The present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned device-cloud resource coordination method are realized.
本申请提供的计算机程序产品解决了由于云服务器的服务资源管理效果不佳而导致云游戏画面效果差的技术问题。与现有技术相比,本发明实施例提供的计算机程序产品的有益效果与上述实施例提供的端云资源协同方法的有益效果相同,在此不做赘述。The computer program product provided by this application solves the technical problem of poor cloud game screen effects due to poor management of cloud server service resources. Compared with the prior art, the beneficial effect of the computer program product provided by the embodiment of the present invention is the same as the beneficial effect of the device-cloud resource coordination method provided by the above-mentioned embodiment, and details are not repeated here.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利处理范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structures or equivalent process transformations made by using the description of the application and the accompanying drawings are directly or indirectly used in other related technical fields. , are all included in the patent processing scope of the present application in the same way.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211042637.8A CN115412559B (en) | 2022-08-29 | 2022-08-29 | End cloud resource collaboration method, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211042637.8A CN115412559B (en) | 2022-08-29 | 2022-08-29 | End cloud resource collaboration method, electronic equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115412559A true CN115412559A (en) | 2022-11-29 |
CN115412559B CN115412559B (en) | 2024-12-17 |
Family
ID=84161983
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211042637.8A Active CN115412559B (en) | 2022-08-29 | 2022-08-29 | End cloud resource collaboration method, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115412559B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120304235A1 (en) * | 2010-11-22 | 2012-11-29 | Huawei Technologies Co., Ltd. | Method and system for playing video file, and media resource server |
CN110393921A (en) * | 2019-08-08 | 2019-11-01 | 腾讯科技(深圳)有限公司 | Processing method, device, terminal, server and the storage medium of cloud game |
CN110881136A (en) * | 2019-11-14 | 2020-03-13 | 腾讯科技(深圳)有限公司 | Video frame rate control method and device, computer equipment and storage medium |
WO2021218653A1 (en) * | 2020-04-26 | 2021-11-04 | 华为技术有限公司 | Media resource transmission method, related apparatus and system |
CN114205359A (en) * | 2022-01-27 | 2022-03-18 | 腾讯科技(深圳)有限公司 | Video rendering coordination method, device and equipment |
CN114501062A (en) * | 2022-01-27 | 2022-05-13 | 腾讯科技(深圳)有限公司 | Video rendering coordination method, device, equipment and storage medium |
-
2022
- 2022-08-29 CN CN202211042637.8A patent/CN115412559B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120304235A1 (en) * | 2010-11-22 | 2012-11-29 | Huawei Technologies Co., Ltd. | Method and system for playing video file, and media resource server |
CN110393921A (en) * | 2019-08-08 | 2019-11-01 | 腾讯科技(深圳)有限公司 | Processing method, device, terminal, server and the storage medium of cloud game |
CN110881136A (en) * | 2019-11-14 | 2020-03-13 | 腾讯科技(深圳)有限公司 | Video frame rate control method and device, computer equipment and storage medium |
WO2021218653A1 (en) * | 2020-04-26 | 2021-11-04 | 华为技术有限公司 | Media resource transmission method, related apparatus and system |
CN114205359A (en) * | 2022-01-27 | 2022-03-18 | 腾讯科技(深圳)有限公司 | Video rendering coordination method, device and equipment |
CN114501062A (en) * | 2022-01-27 | 2022-05-13 | 腾讯科技(深圳)有限公司 | Video rendering coordination method, device, equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
刘秋妍;吕华章;李铭轩;张忠皓;李福昌;冯毅;朱常波;李佳俊;: "面向用户体验的5G视频业务边云协同策略", 自动化博览, no. 04, 15 April 2020 (2020-04-15) * |
Also Published As
Publication number | Publication date |
---|---|
CN115412559B (en) | 2024-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113015021B (en) | Cloud game implementation method, device, medium and electronic equipment | |
KR101634500B1 (en) | Media workload scheduler | |
WO2021068598A1 (en) | Encoding method and device for screen sharing, and storage medium and electronic equipment | |
WO2021036795A1 (en) | Video super-resolution processing method and device | |
CN113473126B (en) | Video stream processing method and device, electronic equipment and computer readable medium | |
US12155835B2 (en) | Video processing method, related apparatus, storage medium, and program product | |
CN116567346A (en) | Video processing method, device, storage medium and computer equipment | |
CN113301342B (en) | Video coding method, network live broadcasting method, device and terminal equipment | |
WO2023011408A1 (en) | Multi-window video communication method, device and system | |
CN112422876A (en) | Image processing method and server | |
CN115941965A (en) | Cloud desktop coding method, reconstruction method, display method and display system | |
US20240283930A1 (en) | Systems and methods for video encoding using image segmentation | |
WO2021147464A1 (en) | Video processing method and apparatus, and electronic device | |
US20140099039A1 (en) | Image processing device, image processing method, and image processing system | |
CN115412559B (en) | End cloud resource collaboration method, electronic equipment and readable storage medium | |
WO2023124461A1 (en) | Video coding/decoding method and apparatus for machine vision task, device, and medium | |
WO2021169817A1 (en) | Video processing method and electronic device | |
CN116112691A (en) | Picture stream intelligent analysis and inspection method and device, storage medium and terminal | |
CN113038276B (en) | Video playback method, device, electronic device and storage medium | |
US20240137502A1 (en) | Systems and methods for encoding and decoding video with memory-efficient prediction mode selection | |
CN114584786B (en) | Memory allocation method and system based on video decoding | |
CN113038277B (en) | Video processing method and device | |
CN117336531A (en) | Video picture rendering method, device, terminal, storage medium and program product | |
CN117097913A (en) | Video coding method, device, equipment and storage medium | |
CN116567297A (en) | Frame rate adjustment method, device, equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |