CN115733980A - Video transmission method, system, electronic device, storage medium and chip system - Google Patents
Video transmission method, system, electronic device, storage medium and chip system Download PDFInfo
- Publication number
- CN115733980A CN115733980A CN202111017380.6A CN202111017380A CN115733980A CN 115733980 A CN115733980 A CN 115733980A CN 202111017380 A CN202111017380 A CN 202111017380A CN 115733980 A CN115733980 A CN 115733980A
- Authority
- CN
- China
- Prior art keywords
- video
- data
- frame
- video frames
- frames
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
本申请适用于视频技术领域,提供了一种视频传输方法、系统、电子设备、存储介质及芯片系统,所述方法包括:根据目标视频的视频数据确定两组视频帧,每组视频帧中各视频帧的分辨率相同,且其中一组视频帧的分辨率大于另一组视频帧的分辨率,一组视频帧中的任意一个视频帧与另一组视频帧中的任意一个视频帧帧号不同,每组视频帧中均包括帧号间断的多个视频帧;分别对每组视频帧进行编码,得到每组视频帧对应的编码数据;发送各所述编码数据。通过编码传输不同分辨率的各编码数据,可以提高30%‑40%的压缩率,从而可以有效提高目标视频的视频数据的压缩率,减少传输视频数据时所占用的网络带宽资源,避免对网络带宽资源的浪费,降低传输视频数据的成本。
This application is applicable to the field of video technology, and provides a video transmission method, system, electronic equipment, storage medium and chip system. The method includes: determining two groups of video frames according to the video data of the target video, each group of video frames The resolutions of the video frames are the same, and the resolution of one group of video frames is greater than that of the other group of video frames, and any video frame in one group of video frames has the same frame number as any video frame in another group Differently, each group of video frames includes a plurality of video frames with intermittent frame numbers; each group of video frames is encoded separately to obtain the encoded data corresponding to each group of video frames; and each of the encoded data is sent. By encoding and transmitting each encoded data with different resolutions, the compression rate can be increased by 30%-40%, so that the compression rate of the video data of the target video can be effectively improved, the network bandwidth resources occupied by the transmission of video data can be reduced, and network bandwidth resources can be avoided. The waste of bandwidth resources reduces the cost of transmitting video data.
Description
技术领域technical field
本申请涉及视频技术领域,尤其涉及一种视频传输方法、系统、电子设备、存储介质及芯片系统。The present application relates to the field of video technology, and in particular to a video transmission method, system, electronic equipment, storage medium and chip system.
背景技术Background technique
随着数据流媒体的不断发展,视频数据所占用的存储空间不断增加。相应的,通过互联网传输视频数据也造成了网络带宽资源愈发紧张的情况。因此,有必要对视频数据进行压缩。With the continuous development of data streaming media, the storage space occupied by video data continues to increase. Correspondingly, the transmission of video data through the Internet has also caused increasingly tight network bandwidth resources. Therefore, it is necessary to compress the video data.
为了缓解传输视频数据占用网络带宽的情况,目前,发送端设备在向接收端设备发送视频数据的过程中,发送端设备可以先根据视频编码规则,对需要传输的视频数据进行压缩,之后向接收端设备发送压缩后的视频数据。但是,经过压缩后的视频数据在传输过程中仍然占用较多的网络带宽资源。In order to alleviate the situation of video data transmission occupying network bandwidth, currently, in the process of sending video data from the sending device to the receiving device, the sending device can first compress the video data to be transmitted according to the video coding rules, and then send the video data to the receiving device. The end device sends the compressed video data. However, the compressed video data still occupies more network bandwidth resources during transmission.
发明内容Contents of the invention
本申请提供一种视频传输方法、系统、电子设备、存储介质及芯片系统,解决了现有技术中在传输视频数据过程中仍然占用较多的网络带宽资源的问题。The present application provides a video transmission method, system, electronic equipment, storage medium and chip system, which solves the problem in the prior art that more network bandwidth resources are still occupied in the process of transmitting video data.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above object, the application adopts the following technical solutions:
第一方面,提供一种视频传输方法,所述方法应用于发送端设备和接收端设备所组成的视频传输系统,所述方法包括:In the first aspect, a video transmission method is provided, the method is applied to a video transmission system composed of a sending end device and a receiving end device, and the method includes:
所述发送端设备根据目标视频的视频数据确定两组视频帧,每组视频帧中各视频帧的分辨率相同,且其中一组视频帧的分辨率大于另一组视频帧的分辨率,一组视频帧中的任意一个视频帧的帧号与另一组视频帧中的任意一个视频帧的帧号不同,每组视频帧中均包括帧号间断的多个视频帧;The sending end device determines two groups of video frames according to the video data of the target video, the resolution of each video frame in each group of video frames is the same, and the resolution of one group of video frames is greater than the resolution of the other group of video frames, one group of video frames The frame number of any video frame in the group of video frames is different from the frame number of any video frame in another group of video frames, and each group of video frames includes a plurality of video frames with intermittent frame numbers;
所述发送端设备分别对每组视频帧进行编码,得到每组视频帧对应的编码数据;The sending end device encodes each group of video frames respectively, to obtain encoded data corresponding to each group of video frames;
所述发送端设备发送所述两组视频帧分别对应的第一编码数据和第二编码数据,所述第一编码数据对应的分辨率大于所述第二编码数据对应的分辨率;The sending end device sends first coded data and second coded data respectively corresponding to the two groups of video frames, the resolution corresponding to the first coded data is greater than the resolution corresponding to the second coded data;
所述接收端设备接收所述第一编码数据和所述第二编码数据;The receiver device receives the first coded data and the second coded data;
所述接收端设备分别对所述第一编码数据和所述第二编码数据进行解码,得到所述第一编码数据对应的第一解码数据和所述第二编码数据对应的第二解码数据,所述第一解码数据的分辨率大于所述第二解码数据的分辨率。Decoding the first encoded data and the second encoded data by the receiving end device respectively, to obtain first decoded data corresponding to the first encoded data and second decoded data corresponding to the second encoded data, The resolution of the first decoded data is greater than the resolution of the second decoded data.
发送端设备根据目标视频的视频数据确定两组视频帧,并对每组视频帧进行编码压缩,得到每组视频帧对应的编码数据,之后向接收端设备发送各编码数据,通过编码传输不同分辨率的各编码数据,可以提高30%-40%的压缩率,从而可以有效提高目标视频的视频数据的压缩率,减少传输视频数据时所占用的网络带宽资源,避免对网络带宽资源的浪费,降低传输视频数据的成本。The sending end device determines two groups of video frames according to the video data of the target video, and encodes and compresses each group of video frames to obtain the encoded data corresponding to each group of video frames, and then sends each encoded data to the receiving end device, and transmits different resolutions through encoding. Each coded data with high rate can increase the compression rate by 30%-40%, thereby effectively improving the compression rate of the video data of the target video, reducing the network bandwidth resources occupied when transmitting video data, and avoiding the waste of network bandwidth resources. Reduce the cost of transmitting video data.
接收端设备对第一编码数据和第二编码数据进行解码,得到第一解码数据和第二解码数据,再根据第一解码数据和第二解码数据进行合成,得到合成后的视频数据,接收端设备仅存储占用存储空间较少的第一编码数据和第二编码数据,即可实现播放目标视频的视频数据,无需存储高分辨率的目标视频的视频数据,可以减少占用的存储空间,提高存储空间的利用率。The receiving end device decodes the first encoded data and the second encoded data to obtain the first decoded data and the second decoded data, and then synthesizes the first decoded data and the second decoded data to obtain the synthesized video data, and the receiving end The device only stores the first coded data and the second coded data that occupy less storage space, and can realize the video data of the target video, without storing the video data of the high-resolution target video, which can reduce the occupied storage space and improve the storage capacity. Space utilization.
在第一方面的第一种可能的实现方式中,所述目标视频的视频数据包括:第一视频数据和第二视频数据;In a first possible implementation manner of the first aspect, the video data of the target video includes: first video data and second video data;
所述发送端设备根据目标视频的视频数据确定两组视频帧,包括:The sending end device determines two groups of video frames according to the video data of the target video, including:
所述发送端设备对所述第一视频数据进行降采样,得到所述第二视频数据,所述第一视频数据中各视频帧的分辨率高于所述第二视频数据中各视频帧的分辨率;The sending end device down-samples the first video data to obtain the second video data, and the resolution of each video frame in the first video data is higher than that of each video frame in the second video data resolution;
所述发送端设备从所述第一视频数据和所述第二视频数据中分别选取多个视频帧,得到所述两组视频帧。The sending device selects a plurality of video frames from the first video data and the second video data to obtain the two groups of video frames.
在第一方面的第二种可能的实现方式中,所述目标视频的视频数据中各视频帧的分辨率相同;In a second possible implementation manner of the first aspect, the resolutions of the video frames in the video data of the target video are the same;
所述发送端设备根据目标视频的视频数据确定两组视频帧,包括:The sending end device determines two groups of video frames according to the video data of the target video, including:
所述发送端设备从所述目标视频的视频数据中选取一部分视频帧,得到一组视频帧;The sending end device selects a part of video frames from the video data of the target video to obtain a set of video frames;
所述发送端设备对所述目标视频的视频数据中的另一部分视频帧进行降采样,得到另一组视频帧。The sending end device down-samples another part of video frames in the video data of the target video to obtain another group of video frames.
发送端设备通过不同的方式获取目标视频的视频数据,并采用与获取方式相对应的方式对目标视频的视频数据进行编码,可以提高获取视频数据的灵活性,也可以提高对目标视频的视频数据进行编码的灵活性。The sending end device obtains the video data of the target video in different ways, and encodes the video data of the target video in a way corresponding to the acquisition method, which can improve the flexibility of obtaining video data, and can also improve the video data of the target video. Coding flexibility.
基于第一方面的上述第一种或第二种可能的实现方式,在第一方面的第三种可能的实现方式中,在所述两组视频帧的分辨率较大的一组视频帧中,每两个相邻视频帧的帧号之间的差值为m,其中m为大于1的正整数。Based on the above-mentioned first or second possible implementation of the first aspect, in the third possible implementation of the first aspect, in a group of video frames with a larger resolution of the two groups of video frames , the difference between the frame numbers of every two adjacent video frames is m, where m is a positive integer greater than 1.
通过在分辨率较大的一组视频帧中排布视频帧的帧号不连续的各个视频帧,可以降低该组视频帧所占用的存储空间,提高对该组视频帧进行编码的压缩率。By arranging the video frames with discontinuous frame numbers in a group of video frames with relatively large resolution, the storage space occupied by the group of video frames can be reduced, and the compression rate of encoding the group of video frames can be improved.
基于第一方面的上述第一种至第三种中任意一种可能的实现方式,在第一方面的第四种可能的实现方式中,在所述两组视频帧的分辨率较小的一组视频帧中,包括多组帧号连续的视频帧,每组帧号连续的视频帧包括的视频帧的数量为n,其中n为大于或等于1的正整数。Based on any one of the above-mentioned first to third possible implementation manners of the first aspect, in the fourth possible implementation manner of the first aspect, in the one with the smaller resolution of the two groups of video frames A group of video frames includes multiple groups of video frames with consecutive frame numbers, and the number of video frames included in each group of video frames with consecutive frame numbers is n, where n is a positive integer greater than or equal to 1.
通过在分辨率较小的一组视频帧中排布视频帧的帧号连续或帧号不连续的各个视频帧,可以降低该组视频帧所占用的存储空间,提高对该组视频帧进行编码的压缩率。By arranging video frames with continuous frame numbers or discontinuous frame numbers in a group of video frames with a smaller resolution, the storage space occupied by the group of video frames can be reduced, and the encoding of the group of video frames can be improved. the compression rate.
基于第一方面的上述任意一种可能的实现方式,在第一方面的第五种可能的实现方式中,所述两组视频帧组合后得到的视频帧的帧号连续。Based on any one of the above possible implementation manners of the first aspect, in a fifth possible implementation manner of the first aspect, the frame numbers of the video frames obtained after combining the two groups of video frames are continuous.
两组视频帧中包括的各个视频帧的帧号连续,说明两组视频帧互补,可以提高恢复得到视频帧的准确度,从而可以提高合成后的视频数据的播放效果。The frame numbers of the video frames included in the two groups of video frames are consecutive, which means that the two groups of video frames are complementary, which can improve the accuracy of the recovered video frames, thereby improving the playback effect of the synthesized video data.
基于第一方面的上述任意一种可能的实现方式,在第一方面的第六种可能的实现方式中,在所述发送端设备根据目标视频的视频数据确定两组视频帧之前,所述方法还包括:Based on any of the above possible implementations of the first aspect, in a sixth possible implementation of the first aspect, before the sending device determines two groups of video frames according to the video data of the target video, the method Also includes:
所述发送端设备从存储空间中获取所述目标视频的视频数据;The sending end device obtains the video data of the target video from the storage space;
或者,所述发送端设备实时采集所述目标视频的视频数据。Alternatively, the sending end device collects video data of the target video in real time.
通过采用不同的方式获取视频数据,可以提高获取视频数据的灵活性,也可以采用与获取方式相对应的编码方式,对获取的视频数据进行编码。By adopting different ways to acquire video data, the flexibility of acquiring video data can be improved, and the acquired video data can also be encoded by using an encoding mode corresponding to the acquisition mode.
基于第一方面的上述任意一种可能的实现方式,在第一方面的第七种可能的实现方式中,所述发送端设备发送所述两组视频帧分别对应的第一编码数据和第二编码数据,包括:Based on any of the above possible implementations of the first aspect, in a seventh possible implementation of the first aspect, the sending end device sends the first coded data and the second coded data respectively corresponding to the two groups of video frames. Encoded data, including:
所述发送端设备向所述接收端设备发送所述两组视频帧分别对应的所述第一编码数据和所述第二编码数据;The sending end device sends the first encoded data and the second encoded data respectively corresponding to the two groups of video frames to the receiving end device;
或者,所述发送端设备向服务器发送所述两组视频帧分别对应的所述第一编码数据和所述第二编码数据,所述服务器用于向所述接收端设备转发所述两组视频帧分别对应的所述第一编码数据和所述第二编码数据。Alternatively, the sending end device sends the first encoded data and the second encoded data respectively corresponding to the two groups of video frames to the server, and the server is used to forward the two groups of video frames to the receiving end device The frames respectively correspond to the first encoded data and the second encoded data.
通过采用不同的方式发送编码数据,可以提高发送编码数据的灵活性。By sending encoded data in different ways, the flexibility of sending encoded data can be improved.
在第一方面的第八种可能的实现方式中,所述接收端设备根据所述第一解码数据,对所述第二解码数据进行处理,得到与所述第一解码数据的分辨率相同的还原帧,包括:In an eighth possible implementation manner of the first aspect, the receiver device processes the second decoded data according to the first decoded data to obtain a resolution that is the same as that of the first decoded data. Restoration frames, including:
所述接收端设备通过预先设置的人工智能AI超分模型,根据所述第一解码数据的视频帧,对所述第二解码数据的视频帧进行处理,得到所述还原帧。The receiver device processes the video frames of the second decoded data according to the video frames of the first decoded data through a preset artificial intelligence AI super-resolution model to obtain the restored frames.
接收端设备通过AI超分模型,根据帧号相邻的高分辨率视频帧对低分辨率的视频帧进行处理,利用了高分辨率视频帧的高频空域信息,可以降低超分网络的复杂度,从而可以降低AI超分模型的运行条件,能够实现通过便携式终端运行AI超分模型,提高了AI超分模型的通用性。The receiver device uses the AI super-resolution model to process the low-resolution video frames according to the high-resolution video frames adjacent to the frame number, and utilizes the high-frequency spatial information of the high-resolution video frames, which can reduce the complexity of the super-resolution network In this way, the operating conditions of the AI super-resolution model can be reduced, and the AI super-resolution model can be run through a portable terminal, which improves the versatility of the AI super-resolution model.
基于第一方面的上述第八种可能的实现方式,在第一方面的第九种可能的实现方式中,所述接收端设备通过预先设置的人工智能AI超分模型,根据所述第一解码数据的视频帧,对所述第二解码数据的视频帧进行处理,得到所述还原帧,包括:Based on the above-mentioned eighth possible implementation of the first aspect, in the ninth possible implementation of the first aspect, the receiver device uses a preset artificial intelligence AI super-resolution model, according to the first decoding The video frame of the data is processed to the video frame of the second decoded data to obtain the restored frame, including:
所述接收端设备将所述第二解码数据的第一视频帧、以及与所述第一视频帧的帧号连续的至少一个视频帧,输入所述AI超分模型,得到所述第一视频帧对应的还原帧。The receiving end device inputs the first video frame of the second decoded data and at least one video frame whose frame number is continuous with the first video frame into the AI super-resolution model to obtain the first video frame The frame corresponding to the restored frame.
接收端设备通过AI超分模型处理视频帧的过程中,可以根据低分辨率的视频帧获取缺失帧的信息,在节省网络带宽资源的同时,也降低了处理视频帧的复杂度,提高了还原帧的准确性。In the process of processing video frames through the AI super-resolution model, the receiver device can obtain information about missing frames based on low-resolution video frames. While saving network bandwidth resources, it also reduces the complexity of processing video frames and improves restoration. frame accuracy.
第二方面,提供一种视频传输方法,所述方法包括:In a second aspect, a video transmission method is provided, the method comprising:
根据目标视频的视频数据确定两组视频帧,每组视频帧中各视频帧的分辨率相同,且其中一组视频帧的分辨率大于另一组视频帧的分辨率,一组视频帧中的任意一个视频帧与另一组视频帧中的任意一个视频帧帧号不同,每组视频帧中均包括帧号间断的多个视频帧;Determine two groups of video frames according to the video data of the target video, the resolution of each video frame in each group of video frames is the same, and the resolution of one group of video frames is greater than the resolution of the other group of video frames, and the resolution of each group of video frames in a group of video frames Any video frame has a different frame number from any video frame in another group of video frames, and each group of video frames includes multiple video frames with intermittent frame numbers;
分别对每组视频帧进行编码,得到每组视频帧对应的编码数据;Encoding each group of video frames respectively to obtain encoded data corresponding to each group of video frames;
发送各所述编码数据。Each of said coded data is transmitted.
其中,帧号间断用于表示两个视频帧的帧号不连续。相应的,每组视频帧中均包括视频帧帧号之间的差值为大于1的正整数的相邻的视频帧。Wherein, the discontinuous frame number is used to indicate that the frame numbers of two video frames are discontinuous. Correspondingly, each group of video frames includes adjacent video frames whose frame number difference is a positive integer greater than 1.
在第二方面的第一种可能的实现方式中,所述目标视频的视频数据包括:第一视频数据和第二视频数据;In a first possible implementation manner of the second aspect, the video data of the target video includes: first video data and second video data;
所述根据目标视频的视频数据确定两组视频帧,包括:The said determination of two groups of video frames according to the video data of the target video includes:
对所述第一视频数据进行降采样,得到所述第二视频数据,所述第一视频数据中各视频帧的分辨率高于所述第二视频数据中各视频帧的分辨率;Downsampling the first video data to obtain the second video data, the resolution of each video frame in the first video data is higher than the resolution of each video frame in the second video data;
从所述第一视频数据和所述第二视频数据中分别选取多个视频帧,得到所述两组视频帧。Selecting a plurality of video frames from the first video data and the second video data to obtain the two groups of video frames.
在第二方面的第二种可能的实现方式中,所述目标视频的视频数据中各视频帧的分辨率相同;In a second possible implementation manner of the second aspect, the resolutions of the video frames in the video data of the target video are the same;
所述根据目标视频的视频数据确定两组视频帧,包括:The said determination of two groups of video frames according to the video data of the target video includes:
从所述目标视频的视频数据中选取一部分视频帧,得到一组视频帧;Selecting a part of video frames from the video data of the target video to obtain a set of video frames;
对所述目标视频的视频数据中的另一部分视频帧进行降采样,得到另一组视频帧。Downsampling is performed on another part of video frames in the video data of the target video to obtain another group of video frames.
基于第二方面的上述第一种或第二种可能的实现方式,在第二方面的第三种可能的实现方式中,在所述两组视频帧的分辨率较大的一组视频帧中,每两个相邻视频帧的帧号之间的差值为m,其中m为大于1的正整数。Based on the above-mentioned first or second possible implementation of the second aspect, in the third possible implementation of the second aspect, in a group of video frames with a larger resolution of the two groups of video frames , the difference between the frame numbers of every two adjacent video frames is m, where m is a positive integer greater than 1.
基于第二方面的上述第一种至第三种中任意一种可能的实现方式,在第二方面的第四种可能的实现方式中,在所述两组视频帧的分辨率较小的一组视频帧中,包括多组帧号连续的视频帧,每组帧号连续的视频帧包括的视频帧的数量为n,其中n为大于或等于1的正整数。Based on any one of the above-mentioned first to third possible implementation manners of the second aspect, in the fourth possible implementation manner of the second aspect, in the one with the smaller resolution of the two groups of video frames A group of video frames includes multiple groups of video frames with consecutive frame numbers, and the number of video frames included in each group of video frames with consecutive frame numbers is n, where n is a positive integer greater than or equal to 1.
基于第二方面的上述任意一种可能的实现方式,在第二方面的第五种可能的实现方式中,所述两组视频帧组合后得到的视频帧的帧号连续。Based on any one of the above possible implementation manners of the second aspect, in a fifth possible implementation manner of the second aspect, the frame numbers of the video frames obtained after combining the two groups of video frames are continuous.
基于第二方面的上述任意一种可能的实现方式,在第二方面的第六种可能的实现方式中,在所述根据目标视频的视频数据确定两组视频帧之前,所述方法还包括:Based on any of the above possible implementations of the second aspect, in a sixth possible implementation of the second aspect, before determining two groups of video frames according to the video data of the target video, the method further includes:
从存储空间中获取所述目标视频的视频数据;Acquiring the video data of the target video from the storage space;
或者,实时采集所述目标视频的视频数据。Alternatively, video data of the target video is collected in real time.
基于第二方面的上述任意一种可能的实现方式,在第二方面的第七种可能的实现方式中,所述发送各所述编码数据,包括:Based on any of the above possible implementation manners of the second aspect, in a seventh possible implementation manner of the second aspect, the sending each of the encoded data includes:
向接收端设备发送各所述编码数据;Send each of the encoded data to the receiving end device;
或者,向服务器发送各所述编码数据,所述服务器用于向接收端设备转发各所述编码数据。Alternatively, each of the encoded data is sent to a server, and the server is configured to forward each of the encoded data to the receiving end device.
第三方面,提供一种视频传输方法,所述方法包括:In a third aspect, a video transmission method is provided, the method comprising:
接收目标视频的第一编码数据和第二编码数据,所述第一编码数据和所述第二编码数据对应的分辨率不同;receiving first encoded data and second encoded data of the target video, where the resolutions corresponding to the first encoded data and the second encoded data are different;
分别对所述第一编码数据和所述第二编码数据进行解码,得到所述第一编码数据对应的第一解码数据和所述第二编码数据对应的第二解码数据,所述第一解码数据的分辨率大于所述第二解码数据的分辨率;Decoding the first encoded data and the second encoded data respectively to obtain first decoded data corresponding to the first encoded data and second decoded data corresponding to the second encoded data, the first decoded The resolution of the data is greater than the resolution of the second decoded data;
根据所述第一解码数据,对所述第二解码数据进行处理,得到与所述第一解码数据的分辨率相同的还原帧;Process the second decoded data according to the first decoded data to obtain a restored frame with the same resolution as the first decoded data;
对所述第一解码数据和所述还原帧进行组合,得到目标视频的视频数据。Combining the first decoded data and the restored frame to obtain video data of the target video.
在第三方面的第一种可能的实现方式中,所述根据所述第一解码数据,对所述第二解码数据进行处理,得到与所述第一解码数据的分辨率相同的还原帧,包括:In a first possible implementation manner of the third aspect, according to the first decoded data, the second decoded data is processed to obtain restored frames with the same resolution as the first decoded data, include:
通过预先设置的AI超分模型,根据所述第一解码数据的视频帧,对所述第二解码数据的视频帧进行处理,得到所述还原帧。The restored frame is obtained by processing the video frame of the second decoded data according to the video frame of the first decoded data through a preset AI super-resolution model.
基于第三方面的上述第一种可能的实现方式,在第三方面的第二种可能的实现方式中,所述通过预先设置的AI超分模型,根据所述第一解码数据的视频帧,对所述第二解码数据的视频帧进行处理,得到所述还原帧,包括:Based on the above-mentioned first possible implementation of the third aspect, in the second possible implementation of the third aspect, the preset AI super-resolution model, according to the video frame of the first decoded data, Processing the video frame of the second decoded data to obtain the restored frame includes:
将所述第二解码数据的第一视频帧、以及与所述第一视频帧的帧号连续的至少一个视频帧,输入所述AI超分模型,得到所述第一视频帧对应的还原帧。Inputting the first video frame of the second decoded data and at least one video frame whose frame number is continuous with the first video frame into the AI super-resolution model to obtain a restored frame corresponding to the first video frame .
第四方面,提供一种视频传输装置,所述装置包括:In a fourth aspect, a video transmission device is provided, the device comprising:
编码模块,用于根据目标视频的视频数据确定两组视频帧,每组视频帧中各视频帧的分辨率相同,且其中一组视频帧的分辨率大于另一组视频帧的分辨率,一组视频帧中的任意一个视频帧的帧号与另一组视频帧中的任意一个视频帧的帧号不同,每组视频帧中均包括帧号间断的多个视频帧;The encoding module is used to determine two groups of video frames according to the video data of the target video, the resolution of each video frame in each group of video frames is the same, and the resolution of one group of video frames is greater than the resolution of another group of video frames, one group of video frames The frame number of any video frame in the group of video frames is different from the frame number of any video frame in another group of video frames, and each group of video frames includes a plurality of video frames with intermittent frame numbers;
编码模块,还用于分别对每组视频帧进行编码,得到每组视频帧对应的编码数据;The encoding module is also used to encode each group of video frames respectively to obtain the corresponding encoded data of each group of video frames;
发送模块,用于发送各所述编码数据。A sending module, configured to send each of the coded data.
在第四方面的第一种可能的实现方式中,所述目标视频的视频数据包括:第一视频数据和第二视频数据;In a first possible implementation manner of the fourth aspect, the video data of the target video includes: first video data and second video data;
所述编码模块,具体用于对所述第一视频数据进行降采样,得到所述第二视频数据,所述第一视频数据中各视频帧的分辨率高于所述第二视频数据中各视频帧的分辨率;从所述第一视频数据和所述第二视频数据中分别选取多个视频帧,得到所述两组视频帧。The encoding module is specifically configured to down-sample the first video data to obtain the second video data, and the resolution of each video frame in the first video data is higher than that of each video frame in the second video data. The resolution of the video frame; respectively selecting a plurality of video frames from the first video data and the second video data to obtain the two groups of video frames.
在第四方面的第二种可能的实现方式中,所述目标视频的视频数据中各视频帧的分辨率相同;In a second possible implementation manner of the fourth aspect, the resolutions of the video frames in the video data of the target video are the same;
所述编码模块,具体用于从所述目标视频的视频数据中选取一部分视频帧,得到一组视频帧;对所述目标视频的视频数据中的另一部分视频帧进行降采样,得到另一组视频帧。The coding module is specifically used to select a part of video frames from the video data of the target video to obtain a set of video frames; down-sample another part of the video frames in the video data of the target video to obtain another set of video frames video frame.
基于第四方面的上述第一种或第二种可能的实现方式,在第四方面的第三种可能的实现方式中,在所述两组视频帧的分辨率较大的一组视频帧中,每两个相邻视频帧的帧号之间的差值为m,其中m为大于1的正整数。Based on the above-mentioned first or second possible implementation of the fourth aspect, in the third possible implementation of the fourth aspect, in the group of video frames with a larger resolution of the two groups of video frames , the difference between the frame numbers of every two adjacent video frames is m, where m is a positive integer greater than 1.
基于第四方面的上述第一种至第三种中任意一种可能的实现方式,在第四方面的第四种可能的实现方式中,在所述两组视频帧的分辨率较小的一组视频帧中,包括多组帧号连续的视频帧,每组帧号连续的视频帧包括的视频帧的数量为n,其中n为大于或等于1的正整数。Based on any one of the above-mentioned first to third possible implementations of the fourth aspect, in the fourth possible implementation of the fourth aspect, in the one with the smaller resolution of the two groups of video frames A group of video frames includes multiple groups of video frames with consecutive frame numbers, and the number of video frames included in each group of video frames with consecutive frame numbers is n, where n is a positive integer greater than or equal to 1.
基于第四方面的上述任意一种可能的实现方式,在第四方面的第五种可能的实现方式中,所述两组视频帧组合后得到的视频帧的帧号连续。Based on any one of the above possible implementation manners of the fourth aspect, in a fifth possible implementation manner of the fourth aspect, the frame numbers of the video frames obtained after combining the two groups of video frames are continuous.
基于第四方面的上述任意一种可能的实现方式,在第四方面的第六种可能的实现方式中,所述装置还包括:Based on any of the above possible implementation manners of the fourth aspect, in a sixth possible implementation manner of the fourth aspect, the device further includes:
获取模块,用于从存储空间中获取所述目标视频的视频数据;An acquisition module, configured to acquire video data of the target video from a storage space;
或者,获取模块,用于实时采集所述目标视频的视频数据。Or, an acquisition module, configured to acquire video data of the target video in real time.
基于第四方面的上述任意一种可能的实现方式,在第四方面的第七种可能的实现方式中,所述发送模块,具体用于向接收端设备发送各所述编码数据;Based on any one of the above possible implementation manners of the fourth aspect, in a seventh possible implementation manner of the fourth aspect, the sending module is specifically configured to send each of the encoded data to the receiving end device;
或者,所述发送模块,具体用于向服务器发送各所述编码数据,所述服务器用于向接收端设备转发各所述编码数据。Alternatively, the sending module is specifically configured to send each of the encoded data to a server, and the server is configured to forward each of the encoded data to a receiving end device.
第五方面,提供一种视频传输装置,所述装置包括:In a fifth aspect, a video transmission device is provided, the device comprising:
接收模块,用于接收目标视频的第一编码数据和第二编码数据,所述第一编码数据和所述第二编码数据对应的分辨率不同;A receiving module, configured to receive first encoded data and second encoded data of the target video, where the resolutions corresponding to the first encoded data and the second encoded data are different;
解码模块,用于分别对所述第一编码数据和所述第二编码数据进行解码,得到所述第一编码数据对应的第一解码数据和所述第二编码数据对应的第二解码数据,所述第一解码数据的分辨率大于所述第二解码数据的分辨率;a decoding module, configured to respectively decode the first encoded data and the second encoded data to obtain first decoded data corresponding to the first encoded data and second decoded data corresponding to the second encoded data, The resolution of the first decoded data is greater than the resolution of the second decoded data;
处理模块,用于根据所述第一解码数据,对所述第二解码数据进行处理,得到与所述第一解码数据的分辨率相同的还原帧;A processing module, configured to process the second decoded data according to the first decoded data, to obtain restored frames with the same resolution as the first decoded data;
处理模块,还用于对所述第一解码数据和所述还原帧进行组合,得到目标视频的视频数据。The processing module is further configured to combine the first decoded data and the restored frame to obtain video data of the target video.
在第五方面的第一种可能的实现方式中,所述处理模块,具体用于通过预先设置的AI超分模型,根据所述第一解码数据的视频帧,对所述第二解码数据的视频帧进行处理,得到所述还原帧。In a first possible implementation manner of the fifth aspect, the processing module is specifically configured to, according to the video frame of the first decoded data, process the The video frame is processed to obtain the restored frame.
基于第五方面的上述第一种可能的实现方式,在第五方面的第二种可能的实现方式中,所述处理模块,具体用于将所述第二解码数据的第一视频帧、以及与所述第一视频帧的帧号连续的至少一个视频帧,输入所述AI超分模型,得到所述第一视频帧对应的还原帧。Based on the foregoing first possible implementation of the fifth aspect, in a second possible implementation of the fifth aspect, the processing module is specifically configured to convert the first video frame of the second decoded data, and At least one video frame whose frame number is continuous with the first video frame is input to the AI super-resolution model to obtain a restored frame corresponding to the first video frame.
第六方面,提供一种视频传输系统,所述视频传输系统包括:发送端设备和接收端设备;In a sixth aspect, a video transmission system is provided, and the video transmission system includes: a sending end device and a receiving end device;
所述发送端设备用于执行如第二方面中任一项所述的视频传输方法;The sending end device is configured to execute the video transmission method according to any one of the second aspect;
所述接收端设备用于执行如第三方面中任一项所述的视频传输方法。The receiver device is configured to execute the video transmission method according to any one of the third aspect.
第七方面,提供一种电子设备,包括:处理器,所述处理器用于运行存储器中存储的计算机程序,以实现如第二方面或第三方面中任一项所述的视频传输方法。In a seventh aspect, an electronic device is provided, including: a processor, the processor is configured to run a computer program stored in a memory, so as to implement the video transmission method according to any one of the second aspect or the third aspect.
第八方面,提供一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如第二方面或第三方面中任一项所述的视频传输方法。In an eighth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any one of the second aspect or the third aspect is implemented. The video transmission method described in the item.
第九方面,提供一种芯片系统,所述芯片系统包括存储器和处理器,所述处理器执行所述存储器中存储的计算机程序,以实现如第二方面或第三方面中任一项所述的视频传输方法。According to the ninth aspect, there is provided a chip system, the chip system includes a memory and a processor, and the processor executes the computer program stored in the memory, so as to implement any one of the second aspect or the third aspect. video transmission method.
可以理解的是,上述第二方面至第九方面的有益效果可以参见上述第一方面的相关描述,在此不再赘述。It can be understood that, the beneficial effects of the above-mentioned second aspect to the ninth aspect can refer to the related description of the above-mentioned first aspect, which will not be repeated here.
附图说明Description of drawings
图1为本申请实施例提供的一种视频传输系统的系统框架的系统架构图;FIG. 1 is a system architecture diagram of a system framework of a video transmission system provided in an embodiment of the present application;
图2为本申请实施例提供的一种发送端设备和接收端设备传输视频数据的结构框图;FIG. 2 is a structural block diagram of transmitting video data between a sending end device and a receiving end device provided by an embodiment of the present application;
图3为本申请实施例提供的一种视频传输方法的示意性流程图;FIG. 3 is a schematic flowchart of a video transmission method provided by an embodiment of the present application;
图4A为本申请实施例提供的一种根据视频数据选取用于编码的视频帧的示意图;FIG. 4A is a schematic diagram of selecting a video frame for encoding according to video data provided by an embodiment of the present application;
图4B为本申请实施例提供的另一种根据视频数据选取用于编码的视频帧的示意图;FIG. 4B is another schematic diagram of selecting video frames for encoding according to video data provided by the embodiment of the present application;
图4C为本申请实施例提供的又一种根据视频数据选取用于编码的视频帧的示意图;FIG. 4C is another schematic diagram of selecting video frames for encoding according to video data provided by the embodiment of the present application;
图5A为本申请实施例提供的一种对视频数据中各视频帧进行分组的示意图;FIG. 5A is a schematic diagram of grouping video frames in video data according to an embodiment of the present application;
图5B为本申请实施例提供的另一种对视频数据中各视频帧进行分组的示意图;FIG. 5B is another schematic diagram of grouping video frames in video data provided by the embodiment of the present application;
图5C为本申请实施例提供的又一种对视频数据中各视频帧进行分组的示意图;FIG. 5C is another schematic diagram of grouping video frames in video data provided by the embodiment of the present application;
图6为本申请实施例提供的一种对编码数据进行解码的示意图;FIG. 6 is a schematic diagram of decoding encoded data provided by an embodiment of the present application;
图7为本申请实施例提供的一种通过AI超分模型生成还原帧的流程示意图;FIG. 7 is a schematic flow chart of generating a restored frame through an AI super-resolution model provided by an embodiment of the present application;
图8为本申请实施例提供的一种AI超分模型的框架架构图;FIG. 8 is a framework diagram of an AI super-resolution model provided by an embodiment of the present application;
图9为本申请实施例提供的另一种视频传输方法的示意性流程图;FIG. 9 is a schematic flowchart of another video transmission method provided by an embodiment of the present application;
图10为本申请实施例提供的又一种对视频数据中各视频帧进行分组的示意图;FIG. 10 is another schematic diagram of grouping video frames in video data provided by the embodiment of the present application;
图11为本申请实施例提供的一种视频传输装置的结构框;FIG. 11 is a structural frame of a video transmission device provided in an embodiment of the present application;
图12为本申请实施例提供的另一种视频传输装置的结构框;FIG. 12 is a structural frame of another video transmission device provided by the embodiment of the present application;
图13为本申请实施例提供的又一种视频传输装置的结构框;FIG. 13 is a structural frame of another video transmission device provided by the embodiment of the present application;
图14为本申请实施例提供的一种终端设备的结构示意图。FIG. 14 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的视频压缩方法、视频压缩标准、视频传输方法和电子设备的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known video compression methods, video compression standards, video transmission methods, and electronic devices are omitted so as not to obscure the description of the present application with unnecessary detail.
以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“所述”、“上述”和“该”旨在也包括例如“一个或多个”这种表达形式,除非其上下文中明确地有相反指示。The terms used in the following examples are for the purpose of describing particular examples only, and are not intended to limit the application. As used in the specification and appended claims of this application, the singular expressions "a", "the", "above" and "the" are intended to also include such terms as "one or more". expressions, unless the context clearly indicates otherwise.
首先,对本申请实施例所涉及的视频传输系统的系统框架进行介绍。参见图1,图1中示出的视频传输系统的系统框架包括:发送端设备110、接收端设备120和服务器130。First, the system framework of the video transmission system involved in the embodiment of the present application is introduced. Referring to FIG. 1 , the system framework of the video transmission system shown in FIG. 1 includes: a sending
其中,服务器130可以分别与发送端设备110和接收端设备120建立通信连接,发送端设备110也可以与接收端设备120建立通信连接。相对应的,在传输视频数据的过程中,发送端设备110可以向接收端设备120发送视频数据,也可以向服务器130发送视频数据,再通过服务器130向接收端设备120转发视频数据,本申请实施例对发送端设备110发送视频数据的方式不做限定。Wherein, the
下述以发送端设备110向接收端设备120传输目标视频的视频数据为例,介绍传输目标视频的视频数据的过程。The process of transmitting the video data of the target video will be introduced below by taking the transmission of the video data of the target video by the sending
参见图2,图2示出了一种发送端设备和接收端设备传输视频数据的结构框图,如图2所示,发送端设备110可以包括:数据采集模块1101和编码模块1102。Referring to FIG. 2 , FIG. 2 shows a structural block diagram of video data transmission between a sender device and a receiver device. As shown in FIG. 2 , the
其中,数据采集模块1101与编码模块1102连接。数据采集模块1101可以是发送端设备110的摄像头,编码模块1102可以包括:编码器。Wherein, the
在传输目标视频的视频数据之前,发送端设备110可以先通过数据采集模块1101采集得到目标视频的第一视频数据,之后对第一视频数据进行降采样,得到第二视频数据,其中第一视频数据的分辨率高于第二视频数据的分辨率。之后,编码模块1102中的编码器可以采用双线程的方式,并行对第一视频数据中的部分视频帧和第二视频数据中的部分视频帧进行编码处理,得到与第一视频数据对应的第一编码数据,以及与第二视频数据对应的第二编码数据,以便可以向接收端设备120或服务器130发送第一编码数据和第二编码数据。Before transmitting the video data of the target video, the sending
上述是针对实时拍摄得到的目标视频的视频数据进行编码压缩,而发送端设备110中还可以包括预先存储的目标视频的视频数据,发送端设备110也可以先对预先存储的目标视频的视频数据进行压缩,之后再向接收端设备120或服务器130发送第一编码数据和第二编码数据。The above is to encode and compress the video data of the target video obtained in real-time shooting, and the video data of the pre-stored target video can also be included in the sending
相应的,参见图2,发送端设备110还可以包括:存储模块1103,存储模块1103中可以包括预先存储的目标视频的视频数据。Correspondingly, referring to FIG. 2 , the sending
发送端设备110在对预先存储的目标视频的视频数据进行编码的过程中,发送端设备110可以先对存储模块1103中预先存储的目标视频的视频数据进行处理,得到高分辨率的多个连续视频帧,再按照预设规则对多个连续视频帧进行分组,得到两组视频帧。之后可以对其中一组视频帧进行降采样,得到低分辨率视频帧,从而可以得到一组高分辨率视频帧和一组低分辨率视频帧,进而可以通过编码模块1102的编码器,分别对两组不同分辨率的视频帧进行编码,得到第一编码数据和第二编码数据,以便可以向接收端设备120或服务器130发送第一编码数据和第二编码数据。In the process of encoding the pre-stored video data of the target video by the sending-
参见图2,接收端设备120可以包括:解码模块1201、合成模块1202、播放模块1203和存储模块1204。Referring to FIG. 2 , the
其中,解码模块1201分别与合成模块1202和存储模块1204连接,合成模块1202还与播放模块1203连接。而且,解码模块1201可以包括:解码器。Wherein, the
接收端设备120在接收不同分辨率对应的第一编码数据和第二编码数据后,可以通过解码模块1201的解码器,采用双线程的方式并行对第一编码数据和第二编码数据进行解码,得到第一解码数据和第二解码数据,也即是两组视频帧。合成模块1202则可以按照预先设置的人工智能(artificial intelligence,AI)超分模型,根据高分辨率的一组视频帧,对低分辨率的一组视频帧进行还原,得到还原帧。之后,合成模块1202可以根据高分辨率的一组视频帧和各个还原帧进行组合,得到合成后的视频数据。最后,播放模块1203可以播放合成后的视频数据。After receiving the first encoded data and the second encoded data corresponding to different resolutions, the receiving
解码模块1201在解码得到两组视频帧后,存储模块1204可以对该两组视频帧分别组成的第一解码数据和第二解码数据进行存储。进一步地,接收端设备120可以分别对第一解码数据和第二解码数据进行播放。After the
需要说明的是,图2示出的是发送端设备110可以采用点对点的传输方式,向接收端设备120发送第一编码数据和第二编码数据的过程。而在实际应用中,发送端设备110还可以先向服务器130发送第一编码数据和第二编码数据。之后,服务器130可以向接收端设备120转发接收的第一编码数据和第二编码数据,本申请实施例对向接收端设备120发送第一编码数据和第二编码数据的方式不做限定。It should be noted that FIG. 2 shows a process in which the sending
进一步地,本申请实施例提供的视频传输系统中,发送端设备110可以实时传输当前采集的视频数据。例如,视频传输系统可以应用在视频通话的场景中,也可以应用在远程会议的场景中,还可以应用在网络直播的场景中。Further, in the video transmission system provided in the embodiment of the present application, the sending
当然,本申请实施例提供的视频传输系统中,发送端设备110还可以传输预先存储的视频数据,本申请实施例对视频传输系统的应用时机和应用场景不做限定。Of course, in the video transmission system provided by the embodiment of the present application, the sending
另外,上述是以目标视频的视频数据中包括两个不同分辨率的视频数据为例进行说明,而在实际应用中,发送端设备110可以获取目标视频的多种分辨率对应的视频数据,本申请实施例对目标视频对应的视频数据的数目不做限定。In addition, the above description is based on the video data of the target video including two video data with different resolutions as an example. In practical applications, the sending
而且,发送端设备110也可以针对目标视频的视频数据,降采样得到多种分辨率对应的多组视频帧,本申请实施例对发送端设备110降采样得到的多种分辨率不做限定,对编码压缩得到的多组视频帧的数目也不做限定。Moreover, the sending
为了简便说明,下述以发送端设备110编码压缩得到两种分辨率对应的编码数据为例进行说明,即以发送端设备110向接收端设备120发送的编码数据包括第一编码数据和第二编码数据为例进行说明。For the sake of simplicity, the coded data corresponding to two resolutions obtained by encoding and compressing by the sending
图3是本申请实施例提供的一种视频传输方法的示意性流程图,作为示例而非限定,该方法可以应用于上述发送端设备和接收端设备中,参见图3,该方法包括:Fig. 3 is a schematic flowchart of a video transmission method provided by an embodiment of the present application. As an example but not a limitation, the method can be applied to the above-mentioned sending end device and receiving end device. See Fig. 3 , the method includes:
步骤301、发送端设备获取目标视频的视频数据。
发送端设备可以采用多种方式获取视频数据,具体地,发送端设备可以通过实时采集的方式获取目标视频的视频数据,也可以从预先设置的存储空间中获取预先存储的目标视频的视频数据,本申请实施例对获取目标视频的视频数据的方式不做限定。The sending end device can obtain video data in various ways. Specifically, the sending end device can obtain the video data of the target video through real-time collection, or obtain the pre-stored video data of the target video from the preset storage space. The embodiment of the present application does not limit the manner of acquiring the video data of the target video.
发送端设备可以采用下述任意一种方式获取目标视频的视频数据,参见下述方式一和方式二:The sending device can use any of the following methods to obtain the video data of the target video, see the following
方式一、发送端设备采集目标视频的视频数据。Method 1: The sending end device collects video data of the target video.
在发送端设备与接收端设备进行视频通话、远程会议或者视频直播的过程中,发送端设备可以通过预先设置的摄像头实时采集目标视频的视频数据。而且,为了便于后续步骤中对视频数据进行编码压缩,发送端设备可以根据调整后的应用程序接口(application programming interface,API)同时获取针对目标视频的多种分辨率的视频数据。During the video call, remote conference or live video broadcast between the sending device and the receiving device, the sending device can collect the video data of the target video in real time through the preset camera. Moreover, in order to facilitate encoding and compression of video data in subsequent steps, the sending end device may obtain video data of multiple resolutions for the target video at the same time according to the adjusted application programming interface (application programming interface, API).
例如,在视频通话的过程中,发送端设备可以实时采集摄像头拍摄的图像,并同时输出两种分辨率的视频数据,如高分辨率对应的第一视频数据,以及低分辨率对应的第二视频数据。其中,第二视频数据是对第一视频数据进行降采样后得到的。For example, during a video call, the sending device can collect images captured by the camera in real time, and simultaneously output video data of two resolutions, such as the first video data corresponding to high resolution, and the second video data corresponding to low resolution. video data. Wherein, the second video data is obtained after down-sampling the first video data.
需要说明的是,用于采集目标视频的视频数据的摄像头可以是发送端设备自带的,也可以是与发送端设备连接的外置摄像头,本申请实施例对此不做限定。例如,摄像头可以是手机自带的,也可以是与电脑相连接的外置摄像头。It should be noted that the camera used to collect the video data of the target video may be a self-contained camera of the sending device, or an external camera connected to the sending device, which is not limited in this embodiment of the present application. For example, the camera can be a built-in camera of the mobile phone, or an external camera connected to the computer.
方式二、发送端设备获取预先存储的目标视频的视频数据。Method 2: The sending end device acquires the video data of the target video stored in advance.
发送端设备不但可以向接收端设备发送实时采集的目标视频的视频数据,也可以向接收端设备发送预先存储的目标视频的视频数据。若发送端设备需要向接收端设备发送预先存储的目标视频的视频数据,则发送端设备可以从预先设置的存储空间中获取目标视频的视频数据。The sending end device can not only send the video data of the target video collected in real time to the receiving end device, but also send the pre-stored video data of the target video to the receiving end device. If the sending device needs to send the pre-stored video data of the target video to the receiving device, the sending device may obtain the video data of the target video from the preset storage space.
例如,发送端设备可以检测用户触发的操作,根据用户触发的操作确定用于传输的目标视频的视频数据的存储路径,之后可以根据该存储路径从相对应的存储空间中获取该目标视频的视频数据。For example, the sending end device can detect the operation triggered by the user, determine the storage path of the video data of the target video used for transmission according to the operation triggered by the user, and then obtain the video of the target video from the corresponding storage space according to the storage path data.
需要说明的是,在实际应用中,发送端设备获取视频数据的存储空间,可以是发送端设备自带的存储空间,也可以是与发送端设备相连接的外置存储设备,还可以是与发送端设备连接的服务器,也即是云存储空间,本申请实施例对存储空间不做限定。It should be noted that, in practical applications, the storage space for the sending device to obtain video data may be the storage space of the sending device itself, or an external storage device connected to the sending device, or an external storage device connected to the sending device. The server connected to the sending end device is the cloud storage space, and the embodiment of the present application does not limit the storage space.
步骤302、发送端设备对获取的目标视频的视频数据进行编码压缩,得到第一编码数据和第二编码数据。Step 302: The sending end device encodes and compresses the acquired video data of the target video to obtain first encoded data and second encoded data.
其中,第一编码数据为编码压缩后的高分辨率视频数据,第二编码数据为编码压缩后的低分辨率视频数据。Wherein, the first encoded data is encoded and compressed high-resolution video data, and the second encoded data is encoded and compressed low-resolution video data.
在步骤301中发送端设备可以采用不同的方式获取目标视频的视频数据,与步骤301相对应的,在步骤302中发送端设备可以根据目标视频的视频数据的不同获取方式,采用不同的方式进行编码压缩,得到第一编码数据和第二编码数据。In
与步骤301类似的,发送端设备也可以采用下述任意一种方式对获取的目标视频的视频数据进行压缩,参见下述方式一和方式二,其中步骤302的方式一与步骤301的方式一相对应,步骤302的方式二与步骤301的方式二相对应。Similar to step 301, the sending device can also use any of the following methods to compress the acquired video data of the target video, see the following
方式一、发送端设备按照预设规则,对第一视频数据和第二视频数据中的部分视频帧进行编码,得到第一编码数据和第二编码数据。Mode 1: The sending end device encodes some video frames in the first video data and the second video data according to preset rules to obtain the first encoded data and the second encoded data.
发送端设备在通过摄像头采集得到目标视频的第一视频数据和第二视频数据后,可以通过预先设置的编码器分别对第一视频数据和第二视频数据中的部分视频帧进行编码,从而可以得到由第一视频数据生成的第一编码数据和由第二视频数据生成的第二编码数据。After the sending end device acquires the first video data and the second video data of the target video through the camera, it can respectively encode part of the video frames in the first video data and the second video data through the preset encoder, so that First encoded data generated from the first video data and second encoded data generated from the second video data are obtained.
在对第一视频数据和第二视频数据中的部分视频帧进行编码的过程中,发送端设备可以根据第一视频数据中各个视频帧用于表示顺序的视频帧帧号,按照预设规则选取第一视频数据的部分视频帧,得到一组视频帧,之后通过编码器对选取的一组视频帧进行编码,得到第一编码数据。In the process of encoding some video frames in the first video data and the second video data, the sending end device can select according to preset rules according to the frame numbers of the video frames used to indicate the order of each video frame in the first video data. Part of the video frames of the first video data is obtained to obtain a group of video frames, and then the selected group of video frames is encoded by an encoder to obtain the first encoded data.
发送端设备可以对第二视频数据中的部分视频帧进行选取,得到另一组视频帧,之后编码器也可以按照与上述编码过程类似的方式,对另一组视频帧编码,得到第二编码数据。The sending end device can select some video frames in the second video data to obtain another set of video frames, and then the encoder can also encode another set of video frames in a manner similar to the above encoding process to obtain the second encoding data.
例如,参见图4A、图4B和图4C,图4A、图4B和图4C中均示出了第一视频数据和第二视频数据的视频帧,第一视频数据和第二视频数据均包括10帧视频帧,且第一视频数据的视频帧的分辨率高于第二视频数据的视频帧。发送端设备在通过编码器选取视频帧的过程中,参见图4A,发送端设备可以选取第一视频数据中的第1帧、第3帧、第5帧、第7帧和第9帧,并选取第二视频数据中的第2帧、第4帧、第6帧、第8帧和第10帧;或者,参见图4B,发送端设备可以选取第一视频数据中的第1帧、第4帧、第7帧和第10帧,并选取第二视频数据中的第2帧、第3帧、第5帧、第6帧、第8帧和第9帧;或者,参见图4C,发送端设备可以选取第一视频数据中的第1帧、第5帧和第9帧,并选取第二视频数据中的第2帧、第3帧、第4帧、第6帧、第7帧、第8帧和第10帧。之后,发送端设备可以通过编码器对从第一视频数据中选取的视频帧进行编码,得到第一编码数据,同时通过编码器对从第二视频数据中选取的视频帧分别进行编码,得到第二编码数据。For example, referring to Fig. 4A, Fig. 4B and Fig. 4C, Fig. 4A, Fig. 4B and Fig. 4C all show video frames of the first video data and the second video data, the first video data and the second video data all include 10 frames of video frames, and the resolution of the video frames of the first video data is higher than that of the video frames of the second video data. In the process of the sending end device selecting video frames through the encoder, referring to FIG. 4A, the sending end device can select the first frame, the third frame, the fifth frame, the seventh frame and the ninth frame in the first video data, and Select the 2nd frame, the 4th frame, the 6th frame, the 8th frame and the 10th frame in the second video data; or, referring to FIG. frame, the 7th frame and the 10th frame, and select the 2nd frame, the 3rd frame, the 5th frame, the 6th frame, the 8th frame and the 9th frame in the second video data; or, referring to Fig. 4C, the sending end The device may select the first frame, the fifth frame and the ninth frame in the first video data, and select the second frame, the third frame, the fourth frame, the sixth frame, the seventh frame, and the second frame in the second video data. Frame 8 and Frame 10. Afterwards, the sending end device can encode the video frames selected from the first video data through the encoder to obtain the first encoded data, and simultaneously use the encoder to encode the video frames selected from the second video data respectively to obtain the first encoded data. Two encoded data.
需要说明的是,发送端设备还可以根据预先设置的规则采用其他方式选取视频帧,本申请实施例对选取视频帧的方式不做限定。It should be noted that the sending end device may also select video frames in other ways according to preset rules, and this embodiment of the present application does not limit the way of selecting video frames.
方式二、发送端设备按照预设规则,对获取的目标视频的视频数据中的部分视频帧进行降采样,得到两组不同分辨率的视频帧,再分别对两组视频帧进行编码,得到第一编码数据和第二编码数据。Method 2: The sending end device down-samples some video frames in the video data of the acquired target video according to preset rules to obtain two sets of video frames with different resolutions, and then encodes the two sets of video frames respectively to obtain the second set of video frames. A coded data and a second coded data.
发送端设备在从存储空间中获取得到预先存储的目标视频的视频数据后,可以对该预先存储的目标视频的视频数据中的部分视频帧进行降采样,以得到两组不同分辨率的视频帧,从而可以通过预先设置的编码器对两组视频帧进行压缩,得到第一编码数据和第二编码数据。After the sending end device obtains the video data of the pre-stored target video from the storage space, it can down-sample some video frames in the video data of the pre-stored target video to obtain two sets of video frames with different resolutions , so that the two groups of video frames can be compressed by a preset encoder to obtain the first encoded data and the second encoded data.
具体地,发送端设备可以先按照预设规则,结合预先存储的视频数据中各个视频帧的视频帧帧号对各个视频帧进行分组,得到两组具有相同分辨率的视频帧。之后,发送端设备可以根据预设规则,对其中一组视频帧进行降采样,得到一组低分辨率的视频帧,结合未降采样的一组视频帧,可以得到两组不同分辨率的视频帧。Specifically, the sending end device may first group each video frame according to a preset rule in combination with the video frame number of each video frame in the pre-stored video data, so as to obtain two groups of video frames with the same resolution. Afterwards, the sending device can down-sample one of the video frames according to the preset rules to obtain a group of low-resolution video frames. Combined with a group of non-down-sampled video frames, two groups of videos with different resolutions can be obtained. frame.
之后,发送端设备可以采用与方式一类似的方式,通过编码器分别对两组视频帧进行编码压缩,得到第一编码数据和第二编码数据。Afterwards, the sending end device may encode and compress the two groups of video frames through an encoder in a manner similar to the first manner, to obtain the first encoded data and the second encoded data.
需要说明的是,方式一和方式二中获取的两组视频帧中,每组视频帧的各视频帧的分辨率相同,且其中一组视频帧的分辨率大于另一组视频帧的分辨率。但是,一组视频帧中的任意一个视频帧的帧号,与另一组编码数据中任意一个视频帧的帧号不同。而且,每组视频帧均可以包括视频帧帧号间断的多个视频帧。It should be noted that, among the two groups of video frames acquired in
而且,高分辨率的一组视频帧中的各个视频帧的帧号不连续,低分辨率的一组视频帧中的各个视频帧的帧号可以连续,也可以不连续。为了提高视频数据的压缩率,降低压缩数据所占用的存储空间和网络带宽资源,在高分辨率的一组视频帧中,每两个相邻视频帧的帧号之间的差值为m,其中m为大于1的正整数,在低分辨率的一组视频帧中可以包括多组帧号连续的视频帧,每组帧号连续的视频帧中包括的视频帧的数量为n,其中n为大于或等于1的正整数。例如,n可以大于等于1,且小于等于3。其中,每组视频帧中相邻的两个视频帧,表示在该组视频帧中两个视频帧之间不包括其他视频帧。例如,某组视频帧中包括帧号为1、3和5的视频帧,则帧号为1和帧号为3的两个视频帧相邻,帧号为3和帧号为5的两个视频帧相邻。Moreover, the frame numbers of each video frame in a group of high-resolution video frames are discontinuous, and the frame numbers of each video frame in a group of low-resolution video frames may be continuous or discontinuous. In order to improve the compression rate of video data and reduce the storage space and network bandwidth resources occupied by compressed data, in a group of high-resolution video frames, the difference between the frame numbers of every two adjacent video frames is m, Among them, m is a positive integer greater than 1. A group of low-resolution video frames may include multiple groups of video frames with continuous frame numbers. The number of video frames included in each group of video frames with continuous frame numbers is n, where n is a positive integer greater than or equal to 1. For example, n may be greater than or equal to 1 and less than or equal to 3. Wherein, two adjacent video frames in each group of video frames means that no other video frames are included between the two video frames in the group of video frames. For example, if a group of video frames includes video frames with
另外,第一编码数据对应的各个视频帧,与第二编码数据对应的各个视频帧互补。也即是,在将第一编码数据对应的各个视频帧与第二编码数据对应的各个视频帧进行组合后,可以组合得到视频帧帧号连续的各个视频帧,且各个连续的视频帧帧号与目标视频的视频帧帧号一一对应。In addition, each video frame corresponding to the first encoded data is complementary to each video frame corresponding to the second encoded data. That is, after combining each video frame corresponding to the first coded data and each video frame corresponding to the second coded data, each video frame with consecutive video frame frame numbers can be obtained by combining, and each consecutive video frame frame number One-to-one correspondence with the video frame number of the target video.
例如,参见图5A、图5B和图5C,图5A、图5B和图5C中示出了预先存储的视频数据的视频帧,预先存储的视频数据包括10帧视频帧。发送端设备可以按照预设规则对该10帧视频帧进行分组,参见图5A,如可以将第1帧、第3帧、第5帧、第7帧和第9帧作为第一组视频帧,并将第2帧、第4帧、第6帧、第8帧和第10帧作为第二组视频帧;或者,参见图5B,发送端设备可以将第1帧、第4帧、第7帧和第10帧作为第一组视频帧,并将第2帧、第3帧、第5帧、第6帧、第8帧和第9帧作为第二组视频帧;或者,参见图5C,发送端设备可以将第1帧、第5帧和第9帧作为第一组视频帧,并将第2帧、第3帧、第4帧、第6帧、第7帧、第8帧和第10帧作为第二组视频帧。之后,发送端设备可以对第二组视频帧进行降采样,得到一组低分辨率的视频帧。最后,发送端设备可以通过编码器对第一组视频帧进行编码,得到第一编码数据,并通过编码器对降采样后的第二组视频帧进行编码,得到第二编码数据。For example, referring to FIG. 5A, FIG. 5B and FIG. 5C, FIG. 5A, FIG. 5B and FIG. 5C show video frames of pre-stored video data, and the pre-stored video data includes 10 frames of video frames. The sending end device can group the 10 video frames according to preset rules, see Figure 5A, for example, the first frame, the third frame, the fifth frame, the seventh frame and the ninth frame can be used as the first group of video frames, And the 2nd frame, the 4th frame, the 6th frame, the 8th frame and the 10th frame are used as the second group of video frames; or, referring to Fig. 5B, the sending end device can use the 1st frame, the 4th frame, the 7th frame and the 10th frame as the first group of video frames, and the 2nd frame, the 3rd frame, the 5th frame, the 6th frame, the 8th frame and the 9th frame as the second group of video frames; or, referring to Fig. 5C, sending The end device can regard the 1st, 5th and 9th frames as the first group of video frames, and the 2nd, 3rd, 4th, 6th, 7th, 8th and 10th frames frame as the second set of video frames. Afterwards, the sending end device may perform down-sampling on the second group of video frames to obtain a group of low-resolution video frames. Finally, the sending end device may encode the first group of video frames through the encoder to obtain the first encoded data, and use the encoder to encode the down-sampled second group of video frames to obtain the second encoded data.
需要说明的是,在实际应用中,步骤301的方式一中发送端设备也可以只采集高分辨率的视频数据,之后通过步骤302的方式二进行编码压缩,本申请实施例对实时采集视频数据的方式不做限定,对编码压缩视频数据的方式也不做限定。It should be noted that in practical applications, the sending device in the first method of
步骤303、发送端设备向接收端设备发送第一编码数据和第二编码数据。
发送端设备在得到第一编码数据和第二编码数据后,可以采用双通道的方式,在占用较低网络带宽资源的情况下,向接收端设备发送第一编码数据和第二编码数据。After obtaining the first coded data and the second coded data, the sending device can send the first coded data and the second coded data to the receiving device in a dual-channel manner while occupying relatively low network bandwidth resources.
步骤304、接收端设备接收第一编码数据和第二编码数据。
步骤305、接收端设备分别对第一编码数据和第二编码数据进行解码,得到第一解码数据和第二解码数据。
接收端设备在接收到第一编码数据和第二编码数据之后,可以通过预先设置的解码器对第一编码数据进行解码,得到第一编码数据对应的第一解码数据,并通过解码器对第二编码数据进行解码,得到第二编码数据对应的第二解码数据,也即是得到第一编码数据和第二编码数据分别对应的视频帧。After receiving the first coded data and the second coded data, the receiver device can decode the first coded data through a preset decoder to obtain the first decoded data corresponding to the first coded data, and use the decoder to decode the first coded data The second encoded data is decoded to obtain second decoded data corresponding to the second encoded data, that is, to obtain video frames respectively corresponding to the first encoded data and the second encoded data.
同时,接收端设备可以存储第一解码数据和第二解码数据,从而可以节省接收端设备的存储空间。相应的,若接收端设备需要播放第一解码数据和第二解码数据对应的高分辨率视频数据时,接收端设备可以执行步骤306和步骤307,根据第一解码数据和第二解码数据进行播放。At the same time, the receiving end device can store the first decoded data and the second decoded data, so that the storage space of the receiving end device can be saved. Correspondingly, if the receiving-end device needs to play the high-resolution video data corresponding to the first decoded data and the second decoded data, the receiving-end device can perform
需要说明的是,接收端设备在接收编码数据的过程中,可以实时对接收的编码数据进行解码,得到解码后的视频帧,然后根据多个解码后的视频帧组成解码数据。例如,参见图6,接收端设备在接收到部分第一编码数据和部分第二编码数据后,即可对接收的编码数据进行解码,从而可以根据部分第一编码数据解码得到第1帧和第3帧,并根据部分第二编码数据解码得到第2帧和第4帧,同时接收端设备还可以继续接收发送端设备发送的剩余的第一编码数据和第二编码数据。It should be noted that, during the process of receiving encoded data, the receiving end device may decode the received encoded data in real time to obtain decoded video frames, and then compose decoded data according to multiple decoded video frames. For example, referring to FIG. 6, after receiving part of the first coded data and part of the second coded data, the receiving device can decode the received coded data, so that the first frame and the first frame can be obtained according to the decoding of part of the first coded data. 3 frames, and decode according to part of the second encoded data to obtain the second frame and the fourth frame, and at the same time, the receiving end device can continue to receive the remaining first encoded data and second encoded data sent by the sending end device.
步骤306、接收端设备根据第一解码数据和第二解码数据进行合成,得到合成后的视频数据。
接收端设备在解码得到第一编码数据和第二编码数据分别对应的第一解码数据和第二解码数据后,可以根据第一解码数据包括的高分辨率视频帧,通过预先设置的AI超分模型,对第二解码数据包括的视频帧进行还原,得到高分辨率的还原帧。之后,接收端设备可以根据第一解码数据包括的高分辨率视频帧、以及高分辨率的还原帧进行组合,得到由多个高分辨率的连续视频帧合成的目标视频的视频数据。After the receiver device decodes the first decoded data and the second decoded data respectively corresponding to the first encoded data and the second encoded data, it can use the preset AI super resolution according to the high-resolution video frame included in the first decoded data. The model restores the video frame included in the second decoded data to obtain a restored frame with high resolution. Afterwards, the receiver device can combine the high-resolution video frames included in the first decoded data and the high-resolution restoration frames to obtain video data of the target video synthesized from multiple high-resolution continuous video frames.
具体地,参见图7,图7示出了接收端设备通过AI超分模型生成高分辨率的还原帧的流程示意图,AI超分模型中包括多个神经网络卷积层。若接收端设备需要对第二解码数据包括的第一视频帧进行恢复,则接收端设备可以根据第一视频帧的视频帧帧号,从第一解码数据包括的多个高分辨率视频帧中,结合各个高分辨率视频帧的视频帧帧号,选取与第一视频帧的帧号连续的高分辨率视频帧。之后,接收端设备可以将选取的第一视频帧和对应的高分辨率视频帧输入预先设置的AI超分模型,通过AI超分模型结合对应的高分辨率视频帧,对第一视频帧进行恢复,得到与第一视频帧对应的高分辨率的还原帧。Specifically, referring to FIG. 7 , FIG. 7 shows a schematic flowchart of generating a high-resolution restored frame by the receiving device through the AI super-resolution model, and the AI super-resolution model includes multiple neural network convolution layers. If the receiving end device needs to recover the first video frame included in the second decoded data, the receiving end device can, according to the frame number of the video frame of the first video frame, select from the multiple high-resolution video frames included in the first decoded data , combining the video frame frame numbers of each high-resolution video frame, selecting high-resolution video frames that are continuous with the frame number of the first video frame. Afterwards, the receiver device can input the selected first video frame and the corresponding high-resolution video frame into the pre-set AI super-resolution model, and combine the corresponding high-resolution video frame with the AI super-resolution model to process the first video frame. Restoring to obtain a restored frame with high resolution corresponding to the first video frame.
其中,第一视频帧可以为第二解码数据中的任意一个视频帧。与第一视频帧的视频帧帧号连续的高分辨率视频帧,可以为在该低分辨率视频帧之前的帧号连续的视频帧,也可以为在该低分辨率视频帧之后的帧号连续的视频帧。例如,第一视频帧的视频帧帧号为2,则连续视频帧的视频帧帧号可以为1,也可以为3,本申请实施例对此不做限定。Wherein, the first video frame may be any video frame in the second decoded data. The high-resolution video frame whose frame number is continuous with the video frame of the first video frame can be a video frame with a continuous frame number before the low-resolution video frame, or a frame number after the low-resolution video frame Consecutive video frames. For example, if the video frame number of the first video frame is 2, then the video frame number of consecutive video frames may be 1 or 3, which is not limited in this embodiment of the present application.
在对第二解码数据对应的各个低分辨率视频帧后进行恢复后,接收端设备可以根据第一解码数据对应的各个高分辨率视频帧的视频帧帧号、以及各个还原帧对应的低分辨率视频帧的视频帧帧号,对各个高分辨率视频帧和各个还原帧进行排序组合,得到高分辨率的合成后的视频数据。After recovering each low-resolution video frame corresponding to the second decoded data, the receiver device can use the video frame number of each high-resolution video frame corresponding to the first decoded data, and the low-resolution video frame corresponding to each restored frame The video frame number of the high-resolution video frame is sorted and combined for each high-resolution video frame and each restored frame to obtain high-resolution synthesized video data.
进一步地,参见图8,图8示出了AI超分模型的框架架构图,AI超分模型可以通过第一输入端(input_1)获取1个参数为1*540*960*6的高分辨率视频帧,其中,1表示视频帧的数目,540*960表示视频帧的分辨率,6表示AI超分模型获取视频帧的通道数,下述中各个视频帧的参数意义与该高分辨率视频帧的参数意义类似,在此不再赘述。类似的,AI超分模型可以通过第二输入端(input_2)获取1个参数为1*270*480*6的低分辨率视频帧,AI超分模型可以先对高分辨率视频帧进行空间转深度操作(SpaceToDepth),转换得到参数为1*270*480*24的视频帧,之后可以对转换后的高分辨率视频帧和低分辨率视频帧进行关联操作(Concatenation),将转换后的高分辨率视频帧和低分辨率视频帧进行拼接,并叠加维数,得到关联后参数为1*270*480*30的视频帧。Further, referring to Fig. 8, Fig. 8 shows the framework diagram of the AI super-resolution model, the AI super-resolution model can obtain a high-resolution parameter of 1*540*960*6 through the first input terminal (input_1) Video frame, where 1 represents the number of video frames, 540*960 represents the resolution of the video frame, and 6 represents the number of channels for the AI super-resolution model to obtain the video frame. The meaning of the parameters of each video frame in the following is the same as that of the high-resolution video The meanings of the parameters of the frame are similar, and will not be repeated here. Similarly, the AI super-resolution model can obtain a low-resolution video frame with a parameter of 1*270*480*6 through the second input terminal (input_2), and the AI super-resolution model can first perform spatial transformation on the high-resolution video frame Depth operation (SpaceToDepth), convert the video frame whose parameters are 1*270*480*24, and then perform the association operation (Concatenation) on the converted high-resolution video frame and low-resolution video frame, and convert the converted high-resolution video frame The high-resolution video frame and the low-resolution video frame are spliced, and the dimensions are superimposed to obtain a video frame with associated parameters of 1*270*480*30.
之后,AI超分模型对关联后的视频帧进行多次卷积(Conv2D)并通过激活函数(Relu)修正后,将卷积后的视频帧与关联后的视频帧进行叠加(Add),再对叠加后的视频帧进行深度转空间操作(DepthToSpace),最后输出(Identity)得到参数为1*540*960*6的还原后的视频帧。After that, the AI super-resolution model performs multiple convolutions (Conv2D) on the associated video frames and corrects them through the activation function (Relu), then superimposes (Add) the convolved video frames and the associated video frames, and then Perform a depth-to-space operation (DepthToSpace) on the superimposed video frame, and finally output (Identity) to obtain a restored video frame with a parameter of 1*540*960*6.
其中,在通过卷积层对各个视频帧进行卷积时,每个卷积层中卷积核的参数均不相同。参见图8,在对参数为1*270*480*30的视频帧进行第一次卷积时,卷积核(filter)的参数为6*3*3*30,误差(bias)参数为6,得到参数为1*270*480*6的视频帧;之后,可以再对该参数为1*270*480*6的视频帧进行卷积,卷积核的参数为12*3*3*6,误差参数为12,得到参数为1*270*480*12的视频帧;最后,再次对该参数为1*270*480*12的视频帧进行卷积,该卷积核的参数为24*1*1*12,误差参数为24,得到参数为1*270*480*24的视频帧。Wherein, when each video frame is convoluted by the convolution layer, the parameters of the convolution kernel in each convolution layer are different. Referring to Figure 8, when performing the first convolution on a video frame with a parameter of 1*270*480*30, the parameter of the convolution kernel (filter) is 6*3*3*30, and the parameter of the error (bias) is 6 , to obtain a video frame with a parameter of 1*270*480*6; after that, the video frame with a parameter of 1*270*480*6 can be convolved again, and the parameter of the convolution kernel is 12*3*3*6 , the error parameter is 12, and the video frame with the parameter of 1*270*480*12 is obtained; finally, the video frame with the parameter of 1*270*480*12 is convolved again, and the parameter of the convolution kernel is 24* 1*1*12, the error parameter is 24, and the video frame with the parameter of 1*270*480*24 is obtained.
另外,AI超分模型还可以对参数为1*270*480*30的视频帧(即关联后的视频帧)采用另一种方式再次进行卷积,该卷积核的参数为24*1*1*30,误差参数为24,得到另一个参数为1*270*480*24的视频帧,以便对两个参数为1*270*480*24的视频帧进行叠加操作,得到叠加后的视频帧。In addition, the AI super-resolution model can also convolute the video frame with a parameter of 1*270*480*30 (that is, the associated video frame) in another way. The parameter of the convolution kernel is 24*1* 1*30, the error parameter is 24, and another video frame with a parameter of 1*270*480*24 is obtained, so that two video frames with a parameter of 1*270*480*24 can be superimposed to obtain the superimposed video frame.
而且,上述举例的AI超分模型中可以包括4个卷积层,且卷积核的通道数很小,需要的计算量很低,接收端设备作为手机、平板或其他便携移动设备时,满足AI超分模型恢复视频帧的条件,可以恢复得到还原帧。Moreover, the above-mentioned AI super-resolution model can include 4 convolutional layers, and the number of channels of the convolution kernel is very small, and the amount of calculation required is very low. When the receiving end device is used as a mobile phone, tablet or other portable mobile device, it can satisfy The AI super-resolution model restores the conditions of the video frame, which can be restored to obtain the restored frame.
需要说明的是,上述视频帧中的各个像素是采用YUV格式表示的。相对应的,在向AI超分模型输入视频帧之前,可以先对各个视频帧的YUV格式的数据进行转换,得到6通道的YUV格式的数据。其中,前4个通道可以为表示明亮度的Y数据,后2个通道可以分别为表示色彩及饱和度的U数据和V数据。It should be noted that each pixel in the above video frame is expressed in YUV format. Correspondingly, before inputting video frames to the AI super-resolution model, the data in YUV format of each video frame can be converted first to obtain data in 6-channel YUV format. Wherein, the first 4 channels may be Y data representing brightness, and the latter 2 channels may be U data and V data representing color and saturation respectively.
另外,上述仅是以一个高分辨率视频帧还原一个低分辨率视频帧为例进行说明,在实际应用中,接收端设备可以向AI超分模型输入多个高分辨率视频帧,以还原一个低分辨率视频帧。例如,需要还原的低分辨率视频帧的视频帧帧号为2,则输入AI超分模型的高分辨率视频帧的视频帧帧号可以为1和3,本申请实施例对此不做限定。In addition, the above is only an example of restoring a low-resolution video frame from a high-resolution video frame. In practical applications, the receiving device can input multiple high-resolution video frames to the AI super-resolution model to restore a Low resolution video frame. For example, if the video frame number of the low-resolution video frame to be restored is 2, then the video frame number of the high-resolution video frame input to the AI super-resolution model can be 1 and 3, which is not limited in the embodiment of the present application .
此外,若第二解码数据的视频帧中包括帧号连续的视频帧,则在还原该帧号连续的视频帧的过程中,接收端设备可以通过第一解码数据包括的视频帧中与该连续的视频帧相邻的视频帧进行还原,也可以通过相邻的还原帧对该连续的视频帧中剩余的视频帧进行恢复。而恢复连续的视频帧的过程,与上述恢复低分辨率视频帧的过程类似,在此不再赘述。In addition, if the video frames of the second decoded data include video frames with continuous frame numbers, in the process of restoring the video frames with continuous frame numbers, the receiver device can use the video frames included in the first decoded data to The adjacent video frames of the video frame can be restored, and the remaining video frames in the continuous video frames can also be restored through the adjacent restored frames. The process of restoring continuous video frames is similar to the above-mentioned process of restoring low-resolution video frames, and will not be repeated here.
例如,第一解码数据包括帧号为1的视频帧,第二解码数据包括帧号为2、3和4的3帧连续的视频帧,接收端设备可以将帧号为1、2、3和4的各个视频帧均输入AI超分模型,AI超分模型即可对帧号为2、3和4的视频帧进行处理,得到帧号为2、3和4的视频帧分别对应的还原帧。For example, the first decoded data includes a video frame whose frame number is 1, and the second decoded data includes 3 consecutive video frames whose frame numbers are 2, 3, and 4. Each video frame of 4 is input into the AI super-resolution model, and the AI super-resolution model can process the video frames with
或者,接收端设备可以将帧号为1和2视频帧均输入AI超分模型,AI超分模型即可根据帧号为1的视频帧,对帧号为2的视频帧进行处理,得到帧号为2的视频帧对应的还原帧,之后再输入帧号为3的视频帧,通过帧号为2的视频帧所对应的还原帧,对帧号为3的视频帧进行处理,得到帧号为3的视频帧对应的还原帧。接收端设备可以按照与处理帧号为3的视频帧类似的方式,继续对帧号为4的视频帧进行恢复处理,从而完成对帧号连续的各视频帧恢复处理。Alternatively, the receiver device can input the video frames with
步骤307、接收端设备播放合成后的视频数据。
接收端设备在根据第一解码数据和第二解码数据得到合成后的视频数据后,可以播放该合成后的视频数据,从而可以通过占用较小的网络带宽和较小的存储空间,得到高分辨率的视频数据。After the receiving end device obtains the synthesized video data according to the first decoded data and the second decoded data, it can play the synthesized video data, so that high-resolution images can be obtained by occupying less network bandwidth and less storage space. rate video data.
在实际应用中,接收端设备不但可以对第一解码数据和第二解码数据合成后的视频数据进行播放,也可以单独对存储的第一解码数据和第二解码数据进行播放,本申请实施例对此不做限定。In practical applications, the receiver device can not only play the video data synthesized from the first decoded data and the second decoded data, but also play the stored first decoded data and the second decoded data separately. There is no limit to this.
另外,参见图9,发送端设备也可以向服务器发送第一编码数据和第二编码数据,通过服务器向接收端设备转发该第一编码数据和第二编码数据。In addition, referring to FIG. 9 , the sending end device may also send the first encoded data and the second encoded data to the server, and the server forwards the first encoded data and the second encoded data to the receiving end device.
进一步地,发送端设备可以不对目标视频的视频数据进行编码压缩,而是向服务器发送高分辨率的目标视频的视频数据,之后通过服务器对目标视频的视频数据进行编码压缩,得到第一编码数据和第二编码数据,服务器再向接收端设备发送编码后的第一编码数据和第二编码数据,本申请实施例对发送端设备向服务器发送的视频数据的格式不做限定。Further, the sending end device may not encode and compress the video data of the target video, but send the video data of the high-resolution target video to the server, and then encode and compress the video data of the target video through the server to obtain the first coded data and the second coded data, the server then sends the coded first coded data and second coded data to the receiving end device. The embodiment of the present application does not limit the format of the video data sent by the sending end device to the server.
需要说明的是,上述实施例中仅是以发送端设备向接收端设备发送两种不同分辨率分别对应的压缩数据,而在实际应用中,发送端设备还可以先获取三组或更多组不同分辨率的视频帧,之后对各组视频帧进行压缩,再向接收端设备发送各个压缩得到的压缩数据。It should be noted that, in the above-mentioned embodiment, the sending end device only sends compressed data corresponding to two different resolutions to the receiving end device, but in practical applications, the sending end device can also obtain three or more sets of Video frames with different resolutions are compressed for each group of video frames, and then the compressed data obtained by each compression is sent to the receiving end device.
例如,参见图10,图10中示出了预先存储的视频数据的视频帧,预先存储的视频数据包括10帧视频帧。发送端设备可以按照预设规则,将视频数据的10帧视频帧划分为3组视频帧,如可以将第1帧、第5帧和第9帧作为第一组,并将第2帧、第4帧、第6帧、第8帧和第10帧作为第二组,同时可以将第3帧和第7帧作为第三组。之后,发送端设备可以分别对第二组视频帧和第三组视频帧进行降采样,得到两组低分辨率的视频帧,而且第三组视频帧对应的分辨率低于第二组视频帧对应的分辨率。最后,发送端设备可以通过编码器分别对第一组视频帧、降采样后的第二组视频帧和降采样后的第三组视频帧进行编码,得到第一编码数据、第二编码数据和第三编码数据。For example, referring to FIG. 10 , FIG. 10 shows video frames of pre-stored video data, and the pre-stored video data includes 10 frames of video frames. The sending end device can divide the 10 video frames of video data into 3 groups of video frames according to preset rules, for example, the 1st frame, the 5th frame and the 9th frame can be used as the first group, and the 2nd frame, the The 4th frame, the 6th frame, the 8th frame and the 10th frame are used as the second group, and the 3rd frame and the 7th frame can be used as the third group. Afterwards, the sending device can down-sample the second group of video frames and the third group of video frames respectively to obtain two groups of low-resolution video frames, and the resolution of the third group of video frames is lower than that of the second group of video frames corresponding resolution. Finally, the sending end device can respectively encode the first group of video frames, the second group of downsampled video frames, and the third group of downsampled video frames through the encoder to obtain the first encoded data, the second encoded data and third encoded data.
相对应的,接收端设备可以接收发送端设备发送的多个编码数据,并对多个编码数据进行解码,得到多组不同分辨率的视频帧。之后可以通过预先设置的AI超分模型,基于不同分辨率的视频帧,对不同分辨率的视频帧进行恢复,得到还原帧,从而可以提高恢复得到的各个还原帧的准确度。Correspondingly, the receiver device may receive multiple coded data sent by the sender device, and decode the multiple coded data to obtain multiple sets of video frames with different resolutions. Afterwards, the pre-set AI super-resolution model can be used to restore video frames of different resolutions based on video frames of different resolutions to obtain restored frames, thereby improving the accuracy of restored restored frames.
综上所述,本申请实施例提供的视频传输方法,发送端设备根据目标视频的视频数据确定两组视频帧,并对每组视频帧进行编码压缩,得到每组视频帧对应的编码数据,之后向接收端设备发送各编码数据,通过编码传输不同分辨率的各编码数据,可以提高30%-40%的压缩率,从而可以有效提高目标视频的视频数据的压缩率,减少传输视频数据时所占用的网络带宽资源,避免对网络带宽资源的浪费,降低传输视频数据的成本。To sum up, in the video transmission method provided by the embodiment of the present application, the sending device determines two sets of video frames according to the video data of the target video, and encodes and compresses each set of video frames to obtain the encoded data corresponding to each set of video frames. Afterwards, each encoded data is sent to the receiving end device, and the encoded data of different resolutions can be transmitted by encoding, which can increase the compression rate by 30%-40%, thereby effectively improving the compression rate of the video data of the target video and reducing the time spent on transmitting video data. Occupied network bandwidth resources, avoiding the waste of network bandwidth resources, and reducing the cost of transmitting video data.
而且,接收端设备对第一编码数据和第二编码数据进行解码,得到第一解码数据和第二解码数据,再根据第一解码数据和第二解码数据进行合成,得到合成后的视频数据,接收端设备仅存储占用存储空间较少的第一编码数据和第二编码数据,即可实现播放目标视频的视频数据,无需存储高分辨率的目标视频的视频数据,可以减少占用的存储空间,提高存储空间的利用率。Moreover, the receiving end device decodes the first encoded data and the second encoded data to obtain the first decoded data and the second decoded data, and then synthesizes the first decoded data and the second decoded data to obtain the synthesized video data, The receiving end device only stores the first encoded data and the second encoded data which occupy less storage space, and can realize playing the video data of the target video, without storing the video data of the high-resolution target video, which can reduce the occupied storage space, Improve storage space utilization.
类似的,服务器中无需存储目标视频的多个分辨率的视频数据,可以减少目标视频的视频数据在服务器中占用的存储空间,提高服务器的存储空间的利用率,降低服务器的维护成本。Similarly, there is no need to store video data of multiple resolutions of the target video in the server, which can reduce the storage space occupied by the video data of the target video in the server, improve the utilization rate of the storage space of the server, and reduce the maintenance cost of the server.
另外,发送端设备通过不同的方式获取目标视频的视频数据,并采用与获取方式相对应的方式对目标视频的视频数据进行编码,可以提高获取视频数据的灵活性,也可以提高对目标视频的视频数据进行编码的灵活性。In addition, the sending device obtains the video data of the target video in different ways, and encodes the video data of the target video in a manner corresponding to the acquisition method, which can improve the flexibility of obtaining video data and improve the accuracy of the target video. Video data is encoded with flexibility.
此外,编码得到第一编码数据和第二编码数据的过程,以及解码得到第一解码数据和第二解码数据的过程独立于标准编解码阶段之外,可以兼容任何标准编解码技术,提高了传输视频数据的兼容性。In addition, the process of encoding to obtain the first coded data and the second coded data, and the process of decoding to obtain the first decoded data and the second decoded data are independent of the standard codec stage, and can be compatible with any standard codec technology, improving the transmission efficiency. Compatibility of video data.
进一步地,接收端设备通过预先设置的AI超分模型,对视频帧可以互补的第一解码数据和第二解码数据进行合成,可以提高恢复得到视频帧的准确度,从而可以提高合成后的视频数据的播放效果。Furthermore, the receiver device synthesizes the first decoded data and the second decoded data that can complement the video frame through the preset AI super-resolution model, which can improve the accuracy of the restored video frame, thereby improving the synthesized video. Data playback effect.
而且,接收端设备通过AI超分模型,根据帧号相邻的高分辨率视频帧对低分辨率的视频帧进行处理,利用了高分辨率视频帧的高频空域信息,可以降低超分网络的复杂度,从而可以降低AI超分模型的运行条件,能够实现通过便携式终端运行AI超分模型,提高了AI超分模型的通用性。Moreover, the receiver device uses the AI super-resolution model to process the low-resolution video frames according to the high-resolution video frames adjacent to the frame number, and utilizes the high-frequency spatial information of the high-resolution video frames, which can reduce the super-resolution network The complexity of the AI super-resolution model can be reduced, and the AI super-resolution model can be run through a portable terminal, which improves the versatility of the AI super-resolution model.
另外,接收端设备通过AI超分模型处理视频帧的过程中,可以根据低分辨率的视频帧获取缺失帧的信息,在节省网络带宽资源的同时,也降低了处理视频帧的复杂度,提高了还原帧的准确性。In addition, in the process of processing video frames through the AI super-resolution model, the receiver device can obtain information about missing frames based on low-resolution video frames, which not only saves network bandwidth resources, but also reduces the complexity of processing video frames and improves to improve the accuracy of the restored frame.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the steps in the above embodiments do not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.
对应于上文实施例所述的视频传输方法,图11是本申请实施例提供的一种视频传输装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。Corresponding to the video transmission method described in the above embodiments, FIG. 11 is a structural block diagram of a video transmission device provided in the embodiments of the present application. For ease of description, only parts related to the embodiments of the present application are shown.
参照图11,该装置包括:Referring to Figure 11, the device includes:
编码模块1101,用于根据目标视频的视频数据确定两组视频帧,每组视频帧中各视频帧的分辨率相同,且其中一组视频帧的分辨率大于另一组视频帧的分辨率,一组视频帧中的任意一个视频帧的帧号与另一组视频帧中的任意一个视频帧的帧号不同,每组视频帧中均包括帧号间断的多个视频帧;The
编码模块1101,还用于分别对每组视频帧进行编码,得到每组视频帧对应的编码数据;The
发送模块1102,用于发送各该编码数据。A sending
可选的,该目标视频的视频数据包括:第一视频数据和第二视频数据;Optionally, the video data of the target video includes: first video data and second video data;
该编码模块1101,具体用于对该第一视频数据进行降采样,得到该第二视频数据,该第一视频数据中各视频帧的分辨率高于该第二视频数据中各视频帧的分辨率;从该第一视频数据和该第二视频数据中分别选取多个视频帧,得到该两组视频帧。The
可选的,该目标视频的视频数据中各视频帧的分辨率相同;Optionally, each video frame in the video data of the target video has the same resolution;
该编码模块1101,具体用于从该目标视频的视频数据中选取一部分视频帧,得到一组视频帧;对该目标视频的视频数据中的另一部分视频帧进行降采样,得到另一组视频帧。The
可选的,在该两组视频帧的分辨率较大的一组视频帧中,每两个相邻视频帧的帧号之间的差值为m,其中m为大于1的正整数。Optionally, in the group of video frames with a higher resolution of the two groups of video frames, the difference between the frame numbers of every two adjacent video frames is m, where m is a positive integer greater than 1.
可选的,在该两组视频帧的分辨率较小的一组视频帧中,包括多组帧号连续的视频帧,每组帧号连续的视频帧包括的视频帧的数量为n,其中n为大于或等于1的正整数。Optionally, in the group of video frames with smaller resolutions of the two groups of video frames, multiple groups of video frames with continuous frame numbers are included, and the number of video frames included in each group of video frames with continuous frame numbers is n, where n is a positive integer greater than or equal to 1.
可选的,该两组视频帧组合后得到的视频帧的帧号连续。Optionally, the frame numbers of the video frames obtained after combining the two groups of video frames are continuous.
可选的,参见图12,该装置还包括:Optionally, referring to Figure 12, the device also includes:
获取模块1103,用于从存储空间中获取该目标视频的视频数据;Obtaining
或者,获取模块1103,用于实时采集该目标视频的视频数据。Alternatively, the obtaining
可选的,该发送模块1102,具体用于向接收端设备发送各该编码数据;Optionally, the sending
或者,该发送模块,具体用于向服务器发送各该编码数据,该服务器用于向接收端设备转发各该编码数据。Alternatively, the sending module is specifically configured to send the coded data to a server, and the server is used to forward the coded data to the receiving end device.
图13是本申请实施例提供的另一种视频传输装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。FIG. 13 is a structural block diagram of another video transmission device provided by the embodiment of the present application. For convenience of description, only parts related to the embodiment of the present application are shown.
参照图13,该装置包括:Referring to Figure 13, the device includes:
接收模块1301,用于接收目标视频的第一编码数据和第二编码数据,该第一编码数据和该第二编码数据对应的分辨率不同;The
解码模块1302,用于分别对该第一编码数据和该第二编码数据进行解码,得到该第一编码数据对应的第一解码数据和该第二编码数据对应的第二解码数据,该第一解码数据的分辨率大于该第二解码数据的分辨率;A
处理模块1303,用于根据该第一解码数据,对该第二解码数据进行处理,得到与该第一解码数据的分辨率相同的还原帧;A
处理模块1303,还用于对该第一解码数据和该还原帧进行组合,得到目标视频的视频数据。The
可选的,该处理模块1303,具体用于通过预先设置的AI超分模型,根据该第一解码数据的视频帧,对该第二解码数据的视频帧进行处理,得到该还原帧。Optionally, the
可选的,该处理模块1303,具体用于将该第二解码数据的第一视频帧、以及与该第一视频帧的帧号连续的至少一个视频帧,输入该AI超分模型,得到该第一视频帧对应的还原帧。Optionally, the
综上所述,本申请实施例提供的视频传输装置,发送端设备对目标视频的视频数据进行编码压缩,得到并向接收端设备发送高分辨率的第一编码数据和低分辨率的第二编码数据,通过压缩并传输不同分辨率的第一编码数据和第二编码数据,可以提高30%-40%的压缩率,从而可以有效提高目标视频的视频数据的压缩率,减少传输视频数据时所占用的网络带宽资源,避免对网络带宽资源的浪费,降低传输视频数据的成本。To sum up, in the video transmission device provided by the embodiment of the present application, the sending end device encodes and compresses the video data of the target video, obtains and sends the high-resolution first encoded data and the low-resolution second encoded data to the receiving end device. Encoded data, by compressing and transmitting the first encoded data and the second encoded data of different resolutions, the compression rate can be increased by 30%-40%, so that the compression rate of the video data of the target video can be effectively improved, and the time for transmitting video data can be reduced. Occupied network bandwidth resources, avoiding the waste of network bandwidth resources, and reducing the cost of transmitting video data.
下面以电子设备为例,对本申请实施例涉及的发送端设备和接收端设备进行介绍,请参阅图14,图14是本申请实施例提供的一种电子设备的结构示意图。The following takes electronic equipment as an example to introduce the sending end equipment and the receiving end equipment involved in the embodiment of the present application. Please refer to FIG. 14 , which is a schematic structural diagram of an electronic device provided in the embodiment of the present application.
电子设备可以包括处理器1410,外部存储器接口1420,内部存储器1421,通用串行总线(universal serial bus,USB)接口1430,充电管理模块1440,电源管理模块1441,电池1442,天线1,天线2,移动通信模块1450,无线通信模块1460,音频模块1470,扬声器1470A,受话器1470B,麦克风1470C,耳机接口1470D,传感器模块1480,按键1490,马达1491,指示器1492,摄像头1493,显示屏1494,以及用户标识模块(subscriber identification module,SIM)卡接口1495等。其中传感器模块1480可以包括压力传感器1480A,陀螺仪传感器1480B,气压传感器1480C,磁传感器1480D,加速度传感器1480E,距离传感器1480F,接近光传感器1480G,指纹传感器1480H,温度传感器1480J,触摸传感器1480K,环境光传感器1480L,骨传导传感器1480M等。The electronic device may include a
可以理解的是,本发明实施例示意的结构并不构成对电子设备的具体限定。在本申请另一些实施例中,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structure shown in the embodiment of the present invention does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the illustrations, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
处理器1410可以包括一个或多个处理单元,例如:处理器1410可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The
其中,控制器可以是电子设备的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Wherein, the controller may be the nerve center and command center of the electronic equipment. The controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
处理器1410中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器1410中的存储器为高速缓冲存储器。该存储器可以保存处理器1410刚用过或循环使用的指令或数据。如果处理器1410需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器1410的等待时间,因而提高了系统的效率。A memory may also be provided in the
在一些实施例中,处理器1410可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments,
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器1410可以包含多组I2C总线。处理器1410可以通过不同的I2C总线接口分别耦合触摸传感器1480K,充电器,闪光灯,摄像头1493等。例如:处理器1410可以通过I2C接口耦合触摸传感器1480K,使处理器1410与触摸传感器1480K通过I2C总线接口通信,实现电子设备的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (serial data line, SDA) and a serial clock line (derail clock line, SCL). In some embodiments,
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器1410与无线通信模块1460。例如:处理器1410通过UART接口与无线通信模块1460中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块1470可以通过UART接口向无线通信模块1460传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the
MIPI接口可以被用于连接处理器1410与显示屏1494,摄像头1493等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器1410和摄像头1493通过CSI接口通信,实现电子设备的拍摄功能。处理器1410和显示屏1494通过DSI接口通信,实现电子设备的显示功能。The MIPI interface can be used to connect the
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器1410与摄像头1493,显示屏1494,无线通信模块1460,音频模块1470,传感器模块1480等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the
USB接口1430是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口1430可以用于连接充电器为电子设备充电,也可以用于电子设备与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 1430 is an interface conforming to the USB standard specification, specifically, it may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 1430 can be used to connect a charger to charge the electronic device, and can also be used to transmit data between the electronic device and peripheral devices. It can also be used to connect headphones and play audio through them. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备的结构限定。在本申请另一些实施例中,电子设备也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
电源管理模块1441用于连接电池1442,充电管理模块1440与处理器1410。电源管理模块1441接收电池1442和/或充电管理模块1440的输入,为处理器1410,内部存储器1421,外部存储器,显示屏1494,摄像头1493,和无线通信模块1460等供电。电源管理模块1441还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块1441也可以设置于处理器1410中。在另一些实施例中,电源管理模块1441和充电管理模块1440也可以设置于同一个器件中。The power management module 1441 is used for connecting the battery 1442 , the
电子设备的无线通信功能可以通过天线1,天线2,移动通信模块1450,无线通信模块1460,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device can be realized by the
天线1和天线2用于发射和接收电磁波信号。电子设备中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块1450可以提供应用在电子设备上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块1450可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块1450可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块1450还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块1450的至少部分功能模块可以被设置于处理器1410中。在一些实施例中,移动通信模块1450的至少部分功能模块可以与处理器1410的至少部分模块被设置在同一个器件中。The
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器1470A,受话器1470B等)输出声音信号,或通过显示屏1494显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器1410,与移动通信模块1450或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Wherein, the modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator sends the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is passed to the application processor after being processed by the baseband processor. The application processor outputs sound signals through audio equipment (not limited to
无线通信模块1460可以提供应用在电子设备上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块1460可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块1460经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器1410。无线通信模块1460还可以从处理器1410接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The
在一些实施例中,电子设备的天线1和移动通信模块1450耦合,天线2和无线通信模块1460耦合,使得电子设备可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision multiple access,CDMA),宽带码分多址(wideband code division multipleaccess,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidounavigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellitesystem,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the
电子设备通过GPU,显示屏1494,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏1494和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器1410可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device realizes the display function through the GPU, the display screen 1494, and the application processor. The GPU is a microprocessor for image processing, connected to the display screen 1494 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
显示屏1494用于显示图像,视频等。显示屏1494包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,电子设备可以包括1个或N个显示屏1494,N为大于1的正整数。The display screen 1494 is used to display images, videos and the like. Display 1494 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light emitting diode). , AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 1494, where N is a positive integer greater than 1.
电子设备可以通过ISP,摄像头1493,视频编解码器,GPU,显示屏1494以及应用处理器等实现拍摄功能。The electronic device can realize the shooting function through ISP, camera 1493 , video codec, GPU, display screen 1494 and application processor.
ISP用于处理摄像头1493反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头1493中。The ISP is used to process the data fed back by the camera 1493 . For example, when taking a picture, open the shutter, the light is transmitted to the photosensitive element of the camera through the lens, and the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be located in the camera 1493.
摄像头1493用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备可以包括1个或N个摄像头1493,N为大于1的正整数。Camera 1493 is used to capture still images or video. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a complementary metal-oxide-semiconductor (complementary metal-oxide-semiconductor, CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other image signals. In some embodiments, the electronic device may include 1 or N cameras 1493, where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when an electronic device selects a frequency point, a digital signal processor is used to perform Fourier transform on the frequency point energy, etc.
视频编解码器用于对数字视频压缩或解压缩。电子设备可以支持一种或多种视频编解码器。这样,电子设备可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. An electronic device may support one or more video codecs. In this way, the electronic device can play or record videos in various encoding formats, such as: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By referring to the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process input information and continuously learn by itself. Applications such as intelligent cognition of electronic devices can be realized through NPU, such as: image recognition, face recognition, speech recognition, text understanding, etc.
外部存储器接口1420可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备的存储能力。外部存储卡通过外部存储器接口1420与处理器1410通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The
内部存储器1421可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器1410通过运行存储在内部存储器1421的指令,从而执行电子设备的各种功能应用以及数据处理。内部存储器1421可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器1421可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 1421 may be used to store computer-executable program codes including instructions. The
电子设备可以通过音频模块1470,扬声器1470A,受话器1470B,麦克风1470C,耳机接口1470D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device can implement audio functions through the
音频模块1470用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块1470还可以用于对音频信号编码和解码。在一些实施例中,音频模块1470可以设置于处理器1410中,或将音频模块1470的部分功能模块设置于处理器1410中。The
扬声器1470A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备可以通过扬声器1470A收听音乐,或收听免提通话。
受话器1470B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备接听电话或语音信息时,可以通过将受话器1470B靠近人耳接听语音。
麦克风1470C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风1470C发声,将声音信号输入到麦克风1470C。电子设备可以设置至少一个麦克风1470C。在另一些实施例中,电子设备可以设置两个麦克风1470C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备还可以设置三个,四个或更多麦克风1470C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口1470D用于连接有线耳机。耳机接口1470D可以是USB接口1430,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The
压力传感器1480A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器1480A可以设置于显示屏1494。压力传感器1480A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器1480A,电极之间的电容改变。电子设备根据电容的变化确定压力的强度。当有触摸操作作用于显示屏1494,电子设备根据压力传感器1480A检测所述触摸操作强度。电子设备也可以根据压力传感器1480A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 1480A is used to sense the pressure signal and convert the pressure signal into an electrical signal. In some embodiments, pressure sensor 1480A may be located on display screen 1494 . There are many types of pressure sensors 1480A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may be comprised of at least two parallel plates with conductive material. When a force is applied to the pressure sensor 1480A, the capacitance between the electrodes changes. Electronics determine the strength of the pressure based on the change in capacitance. When a touch operation acts on the display screen 1494, the electronic device detects the intensity of the touch operation according to the pressure sensor 1480A. The electronic device may also calculate the touched position according to the detection signal of the pressure sensor 1480A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
加速度传感器1480E可检测电子设备在各个方向上(一般为三轴)加速度的大小。当电子设备静止时可检测出重力的大小及方向。还可以用于识别电子设备的姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 1480E can detect the acceleration of the electronic device in various directions (generally three axes). When the electronic device is stationary, the magnitude and direction of gravity can be detected. It can also be used to recognize the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
触摸传感器1480K,也称“触控面板”。触摸传感器1480K可以设置于显示屏1494,由触摸传感器1480K与显示屏1494组成触摸屏,也称“触控屏”。触摸传感器1480K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏1494提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器1480K也可以设置于电子设备的表面,与显示屏1494所处的位置不同。Touch sensor 1480K, also known as "touch panel". The touch sensor 1480K can be arranged on the display screen 1494, and the touch sensor 1480K and the display screen 1494 form a touch screen, also called “touch screen”. The touch sensor 1480K is used to detect a touch operation acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to touch operations can be provided through the display screen 1494 . In some other embodiments, the touch sensor 1480K may also be disposed on the surface of the electronic device, which is different from the position of the display screen 1494 .
按键1490包括开机键,音量键等。按键1490可以是机械按键。也可以是触摸式按键。电子设备可以接收按键输入,产生与电子设备的用户设置以及功能控制有关的键信号输入。The keys 1490 include a power key, a volume key, and the like. Key 1490 may be a mechanical key. It can also be a touch button. The electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.
指示器1492可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 1492 can be an indicator light, and can be used to indicate charging status, power change, and can also be used to indicate messages, missed calls, notifications, and the like.
SIM卡接口1495用于连接SIM卡。SIM卡可以通过插入SIM卡接口1495,或从SIM卡接口1495拔出,实现和电子设备的接触和分离。电子设备可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口1495可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口1495可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口1495也可以兼容不同类型的SIM卡。SIM卡接口1495也可以兼容外部存储卡。电子设备通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备中,不能和电子设备分离。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Completion of modules means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware It can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the above system, reference may be made to the corresponding process in the foregoing method embodiments, and details will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the system embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到电子设备的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the procedures in the methods of the above embodiments in the present application can be completed by instructing related hardware through computer programs, and the computer programs can be stored in a computer-readable storage medium. The computer program When executed by a processor, the steps in the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying computer program codes to electronic equipment, recording media, computer memory, read-only memory (ROM, Read-Only Memory), random-access memory (RAM, Random Access Memory), electrical carrier signals, telecommunication signals, and software distribution media. Such as U disk, mobile hard disk, magnetic disk or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunication signals under legislation and patent practice.
最后应说明的是:以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。Finally, it should be noted that: the above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto, and any changes or replacements within the technical scope disclosed in the application shall be covered by this application. within the scope of the application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.
Claims (23)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111017380.6A CN115733980A (en) | 2021-08-31 | 2021-08-31 | Video transmission method, system, electronic device, storage medium and chip system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111017380.6A CN115733980A (en) | 2021-08-31 | 2021-08-31 | Video transmission method, system, electronic device, storage medium and chip system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115733980A true CN115733980A (en) | 2023-03-03 |
Family
ID=85291911
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111017380.6A Pending CN115733980A (en) | 2021-08-31 | 2021-08-31 | Video transmission method, system, electronic device, storage medium and chip system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115733980A (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150109406A1 (en) * | 2013-10-22 | 2015-04-23 | Microsoft Corporation | Controlling Resolution of Encoded Video |
| CN108391127A (en) * | 2018-04-27 | 2018-08-10 | 腾讯科技(深圳)有限公司 | Method for video coding, device, storage medium and equipment |
| CN111586412A (en) * | 2020-05-06 | 2020-08-25 | 华为技术有限公司 | High-definition video processing method, master device, slave device and chip system |
| CN112055170A (en) * | 2020-08-05 | 2020-12-08 | 浙江大华技术股份有限公司 | Video processing method and device and computer storage medium |
-
2021
- 2021-08-31 CN CN202111017380.6A patent/CN115733980A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20150109406A1 (en) * | 2013-10-22 | 2015-04-23 | Microsoft Corporation | Controlling Resolution of Encoded Video |
| CN108391127A (en) * | 2018-04-27 | 2018-08-10 | 腾讯科技(深圳)有限公司 | Method for video coding, device, storage medium and equipment |
| CN111586412A (en) * | 2020-05-06 | 2020-08-25 | 华为技术有限公司 | High-definition video processing method, master device, slave device and chip system |
| CN112055170A (en) * | 2020-08-05 | 2020-12-08 | 浙江大华技术股份有限公司 | Video processing method and device and computer storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12279079B2 (en) | Projection display method and electronic device | |
| CN110381485B (en) | Bluetooth communication method, TWS (two way communication system) Bluetooth headset and terminal | |
| CN110086985A (en) | A kind of method for recording and electronic equipment of time-lapse photography | |
| CN113810601B (en) | Terminal image processing method, device and terminal equipment | |
| CN113810600B (en) | Image processing method, device and terminal device for terminal | |
| CN111552451B (en) | Display control method and device, computer readable medium and terminal equipment | |
| CN112954251B (en) | Video processing method, video processing device, storage medium and electronic equipment | |
| US12406322B2 (en) | Casting control method and apparatus | |
| CN113473013A (en) | Display method and device for beautifying effect of image and terminal equipment | |
| CN114005016A (en) | Image processing method, electronic equipment, image processing system and chip system | |
| CN113852755A (en) | Shooting method, device, computer-readable storage medium, and program product | |
| CN113436576A (en) | OLED display screen dimming method and device applied to two-dimensional code scanning | |
| CN117440194A (en) | A screen projection screen processing method and related devices | |
| CN112637481B (en) | Image scaling method and device | |
| CN115706869A (en) | Terminal image processing method and device and terminal equipment | |
| CN113923528B (en) | Screen sharing method, terminal and storage medium | |
| CN113497851A (en) | Control display method and electronic equipment | |
| CN117593236A (en) | Image display method, device and terminal equipment | |
| CN111626931B (en) | Image processing method, image processing device, storage medium and electronic apparatus | |
| CN115733980A (en) | Video transmission method, system, electronic device, storage medium and chip system | |
| CN111294905B (en) | Image processing method, image processing device, storage medium and electronic apparatus | |
| CN115623213A (en) | Video coding method, device and system and electronic equipment | |
| CN115801987A (en) | Video frame insertion method and device | |
| CN118175441B (en) | Image sensor, image processing method, electronic device, storage medium and product | |
| CN118628475B (en) | A lithium battery detection method, system, electronic device and 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 |