[go: up one dir, main page]

CN104253996A - Video data sending and receiving methods, video data sending and receiving devices and video data transmission system - Google Patents

Video data sending and receiving methods, video data sending and receiving devices and video data transmission system Download PDF

Info

Publication number
CN104253996A
CN104253996A CN201410478748.2A CN201410478748A CN104253996A CN 104253996 A CN104253996 A CN 104253996A CN 201410478748 A CN201410478748 A CN 201410478748A CN 104253996 A CN104253996 A CN 104253996A
Authority
CN
China
Prior art keywords
code stream
background frame
main
stream
auxiliary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410478748.2A
Other languages
Chinese (zh)
Other versions
CN104253996B (en
Inventor
田永鸿
邢培银
王耀威
黄铁军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Peking University
China Security and Fire Technology Co Ltd
Original Assignee
Peking University
China Security and Fire Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peking University, China Security and Fire Technology Co Ltd filed Critical Peking University
Priority to CN201410478748.2A priority Critical patent/CN104253996B/en
Publication of CN104253996A publication Critical patent/CN104253996A/en
Application granted granted Critical
Publication of CN104253996B publication Critical patent/CN104253996B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本发明公开了一种视频数据的发送、接收方法及其装置以及传输系统,该发送方法包括:根据用于表示当前帧为背景帧和/或非背景帧的标识信息,确定视频图像的原始编码码流中的背景帧;将确定的每一背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装,形成辅码流;将原始编码码流中每一非背景帧加入主码流标识后进行封装,形成主码流;发送所述辅码流和主码流。由于将背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装形成辅码流,后续发送辅码流和主码流,避免了直接传输背景帧,减少因码流传输中图像瞬时码率过高造成后续非背景帧的延时或丢失,同时也没有降低作为背景帧的高质量背景图像的质量,兼顾了传输带宽和图像质量。

The invention discloses a method for sending and receiving video data, its device, and a transmission system. The sending method includes: determining the original code of the video image according to the identification information used to indicate that the current frame is a background frame and/or a non-background frame The background frame in the code stream; each determined background frame is divided into at least two data packets, which are respectively added to the auxiliary code stream identifier and then encapsulated to form the auxiliary code stream; each non-background frame in the original coded code stream is added to the main After the code stream is identified, it is encapsulated to form a main code stream; and the auxiliary code stream and the main code stream are sent. Since the background frame is divided into at least two data packets, which are added to the sub-code stream identifier and encapsulated to form a sub-code stream, the sub-code stream and the main code stream are sent later, which avoids the direct transmission of the background frame and reduces the number of images in the transmission due to the code stream. The instantaneous bit rate is too high, resulting in delay or loss of subsequent non-background frames, and at the same time, it does not reduce the quality of the high-quality background image used as the background frame, taking into account the transmission bandwidth and image quality.

Description

视频数据的发送、接收方法及其装置以及传输系统Video data sending and receiving method and its device and transmission system

技术领域technical field

本发明涉及视频编解码技术,尤其涉及一种视频数据的发送、接收方法及其装置以及传输系统。The present invention relates to video coding and decoding technology, in particular to a method for sending and receiving video data, a device thereof, and a transmission system.

背景技术Background technique

目前,对于数字视频的访问终端已从传统个人计算机(PC)向智能手机、个人数码助理(Personal Digital Assistant,PDA)、平板等多种终端发展。数字视频信号也面临着不同的传输环境,包括无线网络、第三代移动通信(3G)网络等。不同的接收终端具有不同的处理能力和存储能力,不同的网络环境具有不同的传输带宽,这对数字视频的传输提出了很大的挑战。At present, access terminals for digital video have developed from traditional personal computers (PCs) to smart phones, personal digital assistants (Personal Digital Assistant, PDA), tablets and other terminals. Digital video signals are also faced with different transmission environments, including wireless networks, third-generation mobile communication (3G) networks, and so on. Different receiving terminals have different processing capabilities and storage capabilities, and different network environments have different transmission bandwidths, which pose a great challenge to digital video transmission.

基于上述原因,能降低对网络的传输带宽要求的视频压缩技术也越来越受到重视。通常,数字视频中通常包含大量的冗余信息,例如:空间冗余、时间冗余和信息熵冗余。视频压缩主要目的就是去除数字视频中的冗余信息。由于视频信号数据量较大,需要很大的传输带宽,因此在传输数字视频信号之前需要对视频信号进行压缩。此外,视频压缩有两个要求:a)一定的压缩比;b)保证一定的质量。Based on the above reasons, more and more attention has been paid to the video compression technology that can reduce the requirement on the transmission bandwidth of the network. Usually, digital video usually contains a lot of redundant information, such as: spatial redundancy, time redundancy and information entropy redundancy. The main purpose of video compression is to remove redundant information in digital video. Because the video signal has a large amount of data and requires a large transmission bandwidth, it is necessary to compress the video signal before transmitting the digital video signal. In addition, video compression has two requirements: a) a certain compression ratio; b) guarantee a certain quality.

预测编码是消除数字视频中冗余信息的重要技术手段之一。预测编码即利用信号间的相关性,用前面一个或多个信号作为当前信号的预测值,对当前信号的实际值与预测值的差进行编码。在帧间预测编码中,作为当前信号预测值的图像称为参考图像,参考图像常常具有较高的质量和码率。Predictive coding is one of the important technical means to eliminate redundant information in digital video. Predictive coding is to use the correlation between signals, use one or more previous signals as the predicted value of the current signal, and encode the difference between the actual value and the predicted value of the current signal. In inter-frame predictive coding, the image used as the predictive value of the current signal is called a reference image, and the reference image usually has higher quality and bit rate.

通常,背景帧会作为后续图像的参考图像,然而,对于固定带宽和低带宽的网络传输环境,背景帧成为传输的瓶颈。这是因为,背景帧是由序列中图像建模得到的高质量背景图像,如果建模理想的话,会得到没有任何前景的一幅图像,为了后续图像高效压缩(参考背景帧),通常对背景帧采用高质量编码方法,其编码过程就是采用了编码关键帧(I帧)的过程,编码后数据量较大,具有较高的质量。若直接传输背景帧,容易导致码流传输中图像瞬时码率过高造成后续非背景帧的延时或丢失;若降低作为背景帧的高质量背景图像的质量,将影响后续需要参考该高质量的背景图像进行编码的非背景帧的压缩效果,造成整体性能的下降。因此,现有技术中针对含有背景帧的视频数据进行传输时,存在不能兼顾传输带宽和图像质量的问题。Usually, the background frame will be used as a reference image for subsequent images. However, for fixed bandwidth and low bandwidth network transmission environments, the background frame becomes the bottleneck of transmission. This is because the background frame is a high-quality background image modeled by the image in the sequence. If the modeling is ideal, an image without any foreground will be obtained. For efficient compression of subsequent images (refer to the background frame), usually the background The frame adopts a high-quality encoding method, and its encoding process adopts the process of encoding a key frame (I frame). After encoding, the amount of data is large and the quality is relatively high. If the background frame is directly transmitted, it is easy to cause the instantaneous bit rate of the image in the bit stream transmission to be too high, resulting in delay or loss of the subsequent non-background frame; if the quality of the high-quality background image used as the background frame is reduced, it will affect the subsequent need to refer to the high-quality The compression effect of the non-background frames encoded by the background image, resulting in a decrease in overall performance. Therefore, when transmitting video data containing background frames in the prior art, there is a problem that both transmission bandwidth and image quality cannot be considered.

发明内容Contents of the invention

有鉴于此,本发明实施例提供了一种视频数据的发送、接收方法及其装置以及传输系统,用以解决现有技术中不能兼顾传输带宽和图像质量的问题。In view of this, the embodiments of the present invention provide a method for sending and receiving video data, its device, and a transmission system, so as to solve the problem in the prior art that transmission bandwidth and image quality cannot be balanced.

本发明实施例提供一种视频数据的发送、接收方法及其装置以及传输系统,具体如下:Embodiments of the present invention provide a method for sending and receiving video data, a device thereof, and a transmission system, specifically as follows:

第一方面,一种视频数据的发送方法,所述方法包括:In a first aspect, a method for sending video data, the method includes:

根据用于表示当前帧为背景帧和/或非背景帧的标识信息,确定视频图像的原始编码码流中的背景帧;Determine the background frame in the original coded stream of the video image according to the identification information used to indicate that the current frame is a background frame and/or a non-background frame;

将确定的每一背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装,形成辅码流;Divide each determined background frame into at least two data packets, add sub-code stream identifiers respectively, and then encapsulate to form a sub-code stream;

将原始编码码流中每一非背景帧加入主码流标识后进行封装,形成主码流;Add each non-background frame in the original encoded code stream to the main code stream mark and then encapsulate it to form the main code stream;

发送所述辅码流和主码流。Send the auxiliary code stream and the main code stream.

通过这种可能的实施方式,将背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装形成辅码流,后续发送辅码流和主码流,避免了直接传输背景帧,减少因码流传输中图像瞬时码率过高造成后续非背景帧的延时或丢失,同时也没有降低作为背景帧的高质量背景图像的质量,不会影响后续需要参考该高质量的背景图像进行编码的非高质量背景图像的压缩效果,兼顾了传输带宽和图像质量。Through this possible implementation, the background frame is divided into at least two data packets, which are respectively added with the sub-code stream identifier and then encapsulated to form a sub-code stream, and the sub-code stream and the main code stream are sent later, avoiding the direct transmission of the background frame. Reduce the delay or loss of subsequent non-background frames caused by the high instantaneous bit rate of the image in the bit stream transmission, and at the same time, it does not reduce the quality of the high-quality background image used as the background frame, and will not affect the subsequent need to refer to the high-quality background image The compression effect of non-high-quality background images for encoding, taking into account transmission bandwidth and image quality.

结合第一方面,在第一种可能的实现方式中,所述发送所述辅码流和主码流,包括:With reference to the first aspect, in a first possible implementation manner, the sending the auxiliary code stream and the main code stream includes:

分时发送所述辅码流和主码流,其中,所述辅码流的发送完毕时间点不晚于需要该辅码流进行解码的主码流的发送完毕时间点。The auxiliary code stream and the main code stream are sent in time division, wherein the time point of completion of sending the auxiliary code stream is no later than the time point of completion of sending of the main code stream that requires the auxiliary code stream to be decoded.

结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述将确定的每一背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装,形成辅码流,包括:In combination with the first possible implementation of the first aspect, in the second possible implementation, each of the determined background frames is divided into at least two data packets, which are respectively added with sub-stream identifiers and then encapsulated, Form a secondary code stream, including:

根据背景帧的数据量大小、当前带宽下的信道容量和网络协议中对数据包的要求,将确定的每一背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装,形成辅码流。According to the data size of the background frame, the channel capacity under the current bandwidth, and the requirements for data packets in the network protocol, each determined background frame is divided into at least two data packets, which are respectively added to the sub-code stream identifier and then encapsulated to form Secondary stream.

结合第一方面,第一方面的第一种可能的实现方式或者第一方面的第二种可能的实现方式,在第三种可能的实现方式中,所述原始编码码流中包含用于表示各帧图像的播放顺序的图像序列号,所述方法还包括:With reference to the first aspect, the first possible implementation of the first aspect or the second possible implementation of the first aspect, in the third possible implementation, the original encoded code stream includes The image serial number of the playback sequence of each frame image, the method also includes:

确定原始编码码流中的图像序列号的最大值小于所述原始编码码流中包含的图像帧数量;determining that the maximum value of the image sequence number in the original coded stream is less than the number of image frames contained in the original coded stream;

生成各主码流和各辅码流在原始编码码流中的位置偏移量,该位置偏移量表示相对于原始编码码流中的序列头位置的偏移量;Generate position offsets of each main code stream and each auxiliary code stream in the original code stream, where the position offset represents an offset relative to the position of the sequence header in the original code stream;

所述发送所述主码流和辅码流包括:The sending the main code stream and the auxiliary code stream includes:

发送主码流时,将该主码流的位置偏移量随同该主码流发送;When sending the main stream, send the position offset of the main stream along with the main stream;

发送辅码流时,将该辅码流的位置偏移量随同该辅码流发送。When sending the sub-code stream, the position offset of the sub-code stream is sent along with the sub-code stream.

结合第一方面,第一方面的第一种可能的实现方式或者第一方面的第二种可能的实现方式,在第四种可能的实现方式中,所述原始编码码流中包含用于表示各帧图像的播放顺序的图像序列号,所述方法还包括:With reference to the first aspect, the first possible implementation of the first aspect or the second possible implementation of the first aspect, in a fourth possible implementation, the original encoded code stream includes The image serial number of the playback sequence of each frame image, the method also includes:

确定原始编码码流中的图像序列号的最大值等于所述原始编码码流中包含的图像帧数量;Determining that the maximum value of the image sequence numbers in the original coded stream is equal to the number of image frames contained in the original coded stream;

在所述将确定的每一背景帧分割为至少两个数据包之后,分别加入辅码流标识后进行封装之前,所述方法还包括:After said dividing each determined background frame into at least two data packets, before encapsulating after respectively adding auxiliary code stream identification, said method also includes:

对分割得到的所述数据包进行编号,将编号加入相应的数据包,所述编号用于确定该数据包所属的背景帧的图像序列号以及该数据包中的数据在该背景帧中的位置。Numbering the data packets obtained by segmentation, adding the numbers to the corresponding data packets, the numbering is used to determine the image sequence number of the background frame to which the data packet belongs and the position of the data in the data packet in the background frame .

第二方面,一种视频数据的接收方法,所述方法包括:In a second aspect, a method for receiving video data, the method includes:

接收视频数据码流,所述视频数据码流包括含有主码流标识的主码流和含有辅码流标识的辅码流,所述辅码流是将确定的每一背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装形成的,所述主码流是将原始编码码流中每一非背景帧加入主码流标识后进行封装形成的;Receive video data code stream, described video data code stream comprises main code stream that contains main code stream identification and auxiliary code stream that contains auxiliary code stream identification, and described auxiliary code stream is that each determined background frame is divided into at least two data packets, which are formed by encapsulation after adding the sub-code stream identifier respectively, and the main code stream is formed by adding each non-background frame in the original code stream to the main code stream identifier and then encapsulating;

根据码流中包含的标识,确定接收的码流中的主码流和辅码流;Determine the main code stream and auxiliary code stream in the received code stream according to the identifier contained in the code stream;

将确定的主码流和辅码流还原为视频图像的原始编码码流,供解码器解码。Restore the determined main code stream and auxiliary code stream to the original coded code stream of the video image for decoding by the decoder.

通过这种可能的实施方式,由于接收的是将背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装形成辅码流以及主码流,减少因码流传输中图像瞬时码率过高造成后续非背景帧的延时或丢失,同时也没有降低作为背景帧的高质量背景图像的质量,不会影响后续需要参考该高质量的背景图像进行编码的非高质量背景图像的压缩效果,兼顾了传输带宽和图像质量。Through this possible implementation, since the received background frame is divided into at least two data packets, which are respectively added with the auxiliary code stream identifier and then encapsulated to form the auxiliary code stream and the main code stream, reducing the image transient code caused by the code stream transmission. If the rate is too high, the delay or loss of subsequent non-background frames will not be reduced, and the quality of the high-quality background image used as the background frame will not be reduced, and the quality of the subsequent non-high-quality background image that needs to be coded with reference to the high-quality background image will not be affected. The compression effect takes into account the transmission bandwidth and image quality.

结合第二方面,在第一种可能的实现方式中,接收的每一个主码流或辅码流中随同有该主码流或辅码流的在原始编码码流中的位置偏移量,该位置偏移量是相对于原始编码码流中的序列头位置的偏移量;With reference to the second aspect, in the first possible implementation manner, each received main code stream or auxiliary code stream is accompanied by a position offset of the main code stream or auxiliary code stream in the original encoded code stream, The position offset is an offset relative to the position of the sequence header in the original encoded code stream;

所述将确定的主码流和辅码流还原为视频图像的原始编码码流,供解码器解码,包括:Said restoring the determined main code stream and auxiliary code stream to the original coded code stream of the video image for decoding by the decoder includes:

利用接收的每一个主码流或辅码流中随同有该主码流或辅码流的在原始编码码流中的位置偏移量,将确定的主码流和辅码流还原为视频图像的原始编码码流,供解码器解码。Restore the determined main code stream and auxiliary code stream to a video image by using the position offset of each received main code stream or auxiliary code stream in the original encoded code stream along with the main code stream or auxiliary code stream The original encoded code stream for the decoder to decode.

结合第二方面,在第二种可能的实现方式中,所述辅码流中包括编号,所述主码流中包括图像序列号,所述图像序列号用于表示各帧图像的播放顺序,所述编号用于确定该辅码流包含的数据包所属的背景帧的图像序列号以及该数据包中的数据在该背景帧中的位置;With reference to the second aspect, in a second possible implementation manner, the auxiliary code stream includes numbers, the main code stream includes image sequence numbers, and the image sequence numbers are used to indicate the playback order of each frame of images, The number is used to determine the image sequence number of the background frame to which the data packet contained in the sub-code stream belongs and the position of the data in the data packet in the background frame;

所述将确定的主码流和辅码流还原为视频图像的原始编码码流,供解码器解码,包括:Said restoring the determined main code stream and auxiliary code stream to the original coded code stream of the video image for decoding by the decoder includes:

利用所述编号将确定的辅码流还原为背景帧,以及确定还原的背景帧的图像序列号;Using the serial number to restore the determined secondary stream to a background frame, and determine the image sequence number of the restored background frame;

利用还原的背景帧的图像序列号和主码流中包括的图像序列号,将该背景帧和主码流还原为原始编码码流,供解码器解码。Using the image serial number of the restored background frame and the image serial number included in the main code stream, the background frame and the main code stream are restored to the original encoded code stream for decoding by the decoder.

第三方面,所述装置包括:In a third aspect, the device includes:

第一确定单元,用于根据用于表示当前帧为背景帧和/或非背景帧的标识信息,确定视频图像的原始编码码流中的背景帧;The first determining unit is used to determine the background frame in the original coded stream of the video image according to the identification information used to indicate that the current frame is a background frame and/or a non-background frame;

辅码流形成单元,用于将确定的每一背景帧分割为至少两个数据包,加入辅码流标识后进行封装,形成辅码流;A sub-code stream forming unit, configured to divide each determined background frame into at least two data packets, add sub-code stream identifiers and then encapsulate to form a sub-code stream;

主码流形成单元,用于将原始编码码流中每一非背景帧加入主码流标识后进行封装,形成主码流;The main code stream forming unit is used for encapsulating each non-background frame in the original encoded code stream after adding the main code stream identifier to form the main code stream;

发送单元,用于发送所述辅码流和主码流。A sending unit, configured to send the auxiliary code stream and the main code stream.

通过这种可能的实施方式,将背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装形成辅码流,后续发送辅码流和主码流,避免了直接传输背景帧,减少因码流传输中图像瞬时码率过高造成后续非背景帧的延时或丢失,同时也没有降低作为背景帧的高质量背景图像的质量,不会影响后续需要参考该高质量的背景图像进行编码的非高质量背景图像的压缩效果,兼顾了传输带宽和图像质量。Through this possible implementation, the background frame is divided into at least two data packets, which are respectively added with the sub-code stream identifier and then encapsulated to form a sub-code stream, and the sub-code stream and the main code stream are sent later, avoiding the direct transmission of the background frame. Reduce the delay or loss of subsequent non-background frames caused by the high instantaneous bit rate of the image in the bit stream transmission, and at the same time, it does not reduce the quality of the high-quality background image used as the background frame, and will not affect the subsequent need to refer to the high-quality background image The compression effect of non-high-quality background images for encoding, taking into account transmission bandwidth and image quality.

结合第三方面,在第一种可能的实现方式中,所述发送单元,进一步用于分时发送所述辅码流和主码流,其中,所述辅码流的发送完毕时间点不晚于需要该辅码流进行解码的主码流的发送完毕时间点。With reference to the third aspect, in a first possible implementation manner, the sending unit is further configured to time-divisionally send the auxiliary code stream and the main code stream, wherein the sending completion time of the auxiliary code stream is not later At the point in time when the main code stream that requires the auxiliary code stream to be decoded is sent.

结合第三方面,在第二种可能的实现方式中,所述辅码流形成单元,进一步用于根据背景帧的数据量大小、当前带宽下的信道容量和网络协议中对数据包的要求,将确定的每一背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装,形成辅码流。In conjunction with the third aspect, in a second possible implementation, the auxiliary code stream forming unit is further configured to: Each determined background frame is divided into at least two data packets, which are respectively added with sub-code stream identifiers and then encapsulated to form sub-code streams.

结合第三方面,第三方面的第一种可能的实现方式或者第三方面的第二种可能的实现方式,在第三种可能的实现方式中,所述装置还包括:With reference to the third aspect, the first possible implementation of the third aspect, or the second possible implementation of the third aspect, in the third possible implementation, the device further includes:

第二确定单元,用于确定原始编码码流中的图像序列号的最大值小于所述原始编码码流中包含的图像帧数量;The second determination unit is configured to determine that the maximum value of the image sequence number in the original encoded code stream is less than the number of image frames contained in the original encoded code stream;

位置偏移量生成单元,用于生成各主码流和各辅码流在原始编码码流中的位置偏移量,该位置偏移量表示相对于原始编码码流中的序列头位置的偏移量。The position offset generation unit is used to generate the position offset of each main code stream and each auxiliary code stream in the original code stream, and the position offset represents the offset relative to the position of the sequence header in the original code stream. displacement.

所述发送单元,进一步用于发送主码流时,将该主码流的位置偏移量随同该主码流发送;发送辅码流时,将该辅码流的位置偏移量随同该辅码流发送。The sending unit is further configured to send the position offset of the main code stream along with the main code stream when sending the main code stream; when sending the auxiliary code stream, send the position offset of the auxiliary code stream along with the auxiliary code stream Stream sending.

结合第三方面,第三方面的第一种可能的实现方式或者第三方面的第二种可能的实现方式,在第四种可能的实现方式中,所述装置还包括:With reference to the third aspect, the first possible implementation of the third aspect, or the second possible implementation of the third aspect, in a fourth possible implementation, the device further includes:

第三确定单元,用于确定原始编码码流中的图像序列号的最大值等于所述原始编码码流中包含的图像帧数量;A third determining unit, configured to determine that the maximum value of the image sequence number in the original encoded code stream is equal to the number of image frames contained in the original encoded code stream;

编号单元,用于在所述将确定的每一背景帧分割为至少两个数据包之后,分别加入辅码流标识后进行封装之前,对分割得到的所述数据包进行编号,将编号加入相应的数据包,所述编号用于确定该数据包所属的背景帧的图像序列号以及该数据包中的数据在该背景帧中的位置。The numbering unit is used for numbering the divided data packets after dividing each determined background frame into at least two data packets, respectively adding the sub-stream identifier and encapsulating, and adding the numbers to the corresponding The number is used to determine the image sequence number of the background frame to which the data packet belongs and the position of the data in the data packet in the background frame.

第四方面,一种视频数据的接收装置,所述装置包括:In a fourth aspect, a device for receiving video data, the device includes:

接收单元,用于接收视频数据码流,所述视频数据码流包括含有主码流标识的主码流和含有辅码流标识的辅码流,所述辅码流是将确定的每一背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装形成的,所述主码流是将原始编码码流中每一非背景帧加入主码流标识后进行封装形成的;The receiving unit is used to receive the video data code stream, the video data code stream includes the main code stream containing the main code stream identification and the auxiliary code stream containing the auxiliary code stream identification, and the auxiliary code stream is each background to be determined The frame is divided into at least two data packets, which are formed by encapsulation after adding the auxiliary code stream identifier respectively, and the main code stream is formed by adding each non-background frame in the original code stream to the main code stream identifier and then encapsulating;

码流类型确定单元,用于根据码流中包含的标识,确定接收的码流中的主码流和辅码流;A code stream type determining unit, configured to determine the main code stream and the auxiliary code stream in the received code stream according to the identifier contained in the code stream;

还原单元,用于将确定的主码流和辅码流还原为视频图像的原始编码码流,供解码器解码。The restoration unit is used to restore the determined main code stream and auxiliary code stream to the original coded code stream of the video image for decoding by the decoder.

通过这种可能的实施方式,由于接收的是将背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装形成辅码流以及主码流,减少因码流传输中图像瞬时码率过高造成后续非背景帧的延时或丢失,同时也没有降低作为背景帧的高质量背景图像的质量,不会影响后续需要参考该高质量的背景图像进行编码的非高质量背景图像的压缩效果,兼顾了传输带宽和图像质量。Through this possible implementation, since the received background frame is divided into at least two data packets, which are respectively added with the auxiliary code stream identifier and then encapsulated to form the auxiliary code stream and the main code stream, reducing the image transient code caused by the code stream transmission. If the rate is too high, the delay or loss of subsequent non-background frames will not be reduced, and the quality of the high-quality background image used as the background frame will not be reduced, and the quality of the subsequent non-high-quality background image that needs to be coded with reference to the high-quality background image will not be affected. The compression effect takes into account the transmission bandwidth and image quality.

结合第四方面,在第一种可能的实现方式中,接收的每一个主码流或辅码流中随同有该主码流或辅码流的在原始编码码流中的位置偏移量,该位置偏移量是相对于原始编码码流中的序列头位置的偏移量;With reference to the fourth aspect, in the first possible implementation manner, each received main code stream or auxiliary code stream is accompanied by a position offset of the main code stream or auxiliary code stream in the original encoded code stream, The position offset is an offset relative to the position of the sequence header in the original encoded code stream;

所述还原单元,进一步用于利用接收的每一码流中随同有该码流的在原始编码码流中的位置偏移量,将确定的主码流和辅码流还原为视频图像的原始编码码流,供解码器解码。The restoration unit is further used to restore the determined main code stream and auxiliary code stream to the original code stream of the video image by using the position offset of each received code stream accompanied by the code stream in the original encoded code stream Encoded code stream for decoder to decode.

结合第四方面,在第二种可能的实现方式中,所述辅码流中包括编号,所述主码流中包括图像序列号,所述图像序列号用于表示各帧图像的播放顺序,所述编号用于确定该辅码流包含的数据包所属的背景帧的图像序列号以及该数据包中的数据在该背景帧中的位置;With reference to the fourth aspect, in a second possible implementation manner, the auxiliary code stream includes numbers, the main code stream includes image sequence numbers, and the image sequence numbers are used to indicate the playback order of each frame of images, The number is used to determine the image sequence number of the background frame to which the data packet contained in the sub-code stream belongs and the position of the data in the data packet in the background frame;

所述还原单元,进一步用于利用所述编号将确定的辅码流还原为背景帧,以及确定还原的背景帧的图像序列号;The restoration unit is further used to restore the determined secondary code stream to a background frame by using the serial number, and determine the image sequence number of the restored background frame;

利用还原的背景帧的图像序列号和主码流中包括的图像序列号,将该背景帧和主码流还原为原始编码码流,供解码器解码。Using the image serial number of the restored background frame and the image serial number included in the main code stream, the background frame and the main code stream are restored to the original encoded code stream for decoding by the decoder.

第五方面,一种视频数据的传输系统,所述系统包括:上述任一视频数据的发送装置和上述任一视频数据的接收装置。According to a fifth aspect, a video data transmission system, the system includes: any video data sending device mentioned above and any video data receiving device mentioned above.

通过这种可能的实施方式,将背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装形成辅码流,后续发送辅码流和主码流,避免了直接传输背景帧,减少因码流传输中图像瞬时码率过高造成后续非背景帧的延时或丢失,同时也没有降低作为背景帧的高质量背景图像的质量,不会影响后续需要参考该高质量的背景图像进行编码的非高质量背景图像的压缩效果,兼顾了传输带宽和图像质量。Through this possible implementation, the background frame is divided into at least two data packets, which are respectively added with the sub-code stream identifier and then encapsulated to form a sub-code stream, and the sub-code stream and the main code stream are sent later, avoiding the direct transmission of the background frame. Reduce the delay or loss of subsequent non-background frames caused by the high instantaneous bit rate of the image in the bit stream transmission, and at the same time, it does not reduce the quality of the high-quality background image used as the background frame, and will not affect the subsequent need to refer to the high-quality background image The compression effect of non-high-quality background images for encoding, taking into account transmission bandwidth and image quality.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.

图1为本发明实施例一中的一种视频数据的发送方法的流程图;FIG. 1 is a flow chart of a method for sending video data in Embodiment 1 of the present invention;

图2为本发明实施例一中的将原始码流数据提取出来加入标识后重新封装形成主码流和辅码流的示意图;Fig. 2 is a schematic diagram of repackaging and forming a main code stream and an auxiliary code stream after the original code stream data is extracted and added with an identifier in Embodiment 1 of the present invention;

图3为本发明实施例一中的视频序列的编码层次示意图;FIG. 3 is a schematic diagram of coding levels of a video sequence in Embodiment 1 of the present invention;

图4为本发明实施例一中的对图3所示的视频序列进行编码后得到的层次的码流结构示意图;FIG. 4 is a schematic diagram of a layered stream structure obtained after encoding the video sequence shown in FIG. 3 in Embodiment 1 of the present invention;

图5为本发明实施例一中的另一种视频数据的发送方法的流程图;FIG. 5 is a flow chart of another method for sending video data in Embodiment 1 of the present invention;

图6为本发明实施例二中的一种视频数据的接收方法的流程图;FIG. 6 is a flow chart of a method for receiving video data in Embodiment 2 of the present invention;

图7为本发明实施例二中利用接收的码流确定出主码流和辅码流后还原为原始编码码流的示意图;7 is a schematic diagram of determining the main code stream and the auxiliary code stream by using the received code stream in Embodiment 2 of the present invention and restoring them to the original coded code stream;

图8为本发明实施例三中的一种视频数据的发送装置的结构示意图之一;FIG. 8 is one of the structural schematic diagrams of a device for sending video data in Embodiment 3 of the present invention;

图9为本发明实施例三中的一种视频数据的发送装置的结构示意图之二;FIG. 9 is the second structural schematic diagram of a device for sending video data in Embodiment 3 of the present invention;

图10为本发明实施例三中的一种视频数据的发送装置的结构示意图之三;FIG. 10 is a third structural schematic diagram of a device for sending video data in Embodiment 3 of the present invention;

图11为本发明实施例四中的视频数据的接收装置的结构示意图;FIG. 11 is a schematic structural diagram of a device for receiving video data in Embodiment 4 of the present invention;

图12为本发明实施例五中的视频数据的传输系统的结构示意图。FIG. 12 is a schematic structural diagram of a video data transmission system in Embodiment 5 of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, rather than all embodiments . Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

为了解决现有技术中的不能兼顾传输带宽和图像质量的问题,本发明实施例提供一种视频数据的发送、接收方法及其装置以及传输系统。In order to solve the problem in the prior art that transmission bandwidth and image quality cannot be balanced, an embodiment of the present invention provides a method for sending and receiving video data, a device thereof, and a transmission system.

下面通过具体实施例对本发明方案进行详细描述,当然,本发明并不限于以下实施例。The solution of the present invention will be described in detail below through specific examples. Of course, the present invention is not limited to the following examples.

实施例一Embodiment one

本发明实施例一提供一种视频数据的发送方法,其流程图如图1所示,具体包括以下步骤:Embodiment 1 of the present invention provides a method for sending video data, the flow chart of which is shown in Figure 1, specifically comprising the following steps:

步骤101:根据用于表示当前帧为背景帧和/或非背景帧的标识信息,确定视频图像的原始编码码流中的背景帧;Step 101: Determine the background frame in the original coded stream of the video image according to the identification information indicating that the current frame is a background frame and/or a non-background frame;

通常,视频编码中的图像类型有5种,分别为帧内编码帧(Intra picture,I帧,也称关键帧)、前向预测编码帧(Predictive-frame,P帧)、双向预测内插编码帧(Bi-directional interpolated prediction frame,B帧)、背景帧(backGround frame,G帧)和切换帧(Switched,S帧)。其中,I帧、P帧、B帧和S帧可以称为非背景帧。当然,并不限于上述图像类型,也可以根据实际需要定义其它图像类型。将视频利用帧的编码方式进行编码后,即得到视频图像的原始编码码流;码流中会有标志位标识当前帧是何种帧的标识信息,如标志位或起始码信息。Usually, there are five image types in video coding, which are Intra picture (I frame, also known as key frame), forward predictive coding frame (Predictive-frame, P frame), bidirectional predictive interpolation coding Frame (Bi-directional interpolated prediction frame, B frame), background frame (backGround frame, G frame) and switching frame (Switched, S frame). Among them, I frame, P frame, B frame and S frame may be called non-background frames. Of course, it is not limited to the above image types, and other image types may also be defined according to actual needs. After the video is encoded using the frame encoding method, the original encoded code stream of the video image is obtained; there will be flag bits in the code stream to identify what kind of frame the current frame is, such as flag bits or start code information.

以背景帧为高质量的码流,其他帧为高压缩率的码流的音视频编码标准(Audio Video coding Standard,AVS)为例,背景帧和非背景帧是在同一个码流中,AVS码流中会有标志位标识当前帧是否是背景帧。更具体的,如果码流中存在背景,背景图像标志位(background_picture_flag)且为1,且背景图像输出标志位(background_picture_output_flag)标志位为0,则确定当前帧为背景帧。Take the Audio Video coding Standard (AVS) in which the background frame is a high-quality code stream and other frames are high-compression code streams as an example. The background frame and the non-background frame are in the same code stream. AVS There will be a flag in the code stream to indicate whether the current frame is a background frame. More specifically, if there is a background in the code stream, the background picture flag (background_picture_flag) is 1, and the background picture output flag (background_picture_output_flag) is 0, then it is determined that the current frame is a background frame.

步骤102:将确定的每一背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装,形成辅码流;Step 102: Divide each determined background frame into at least two data packets, add sub-code stream identifiers respectively, and then encapsulate to form a sub-code stream;

较优的,本步骤102包括:Preferably, this step 102 includes:

根据背景帧的数据量大小、当前带宽下的信道容量和网络协议中对数据包的要求,将确定的每一背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装,形成辅码流。According to the data size of the background frame, the channel capacity under the current bandwidth, and the requirements for data packets in the network protocol, each determined background frame is divided into at least two data packets, which are respectively added to the sub-code stream identifier and then encapsulated to form Secondary stream.

上述步骤102具体包括:将对背景帧的图像进行编码后得到原始码流分割后得到的每段码流分别依次加入应用层协议数据单元(Protocol Data Unit,PDU)、传输层的PDU、网络层的PDU和数据链路层的PDU,即得到对背景帧进行分割后的数据包,最后加上辅码流标识进行封装,转成辅码流从物理层出来。The above-mentioned step 102 specifically includes: each code stream obtained after encoding the image of the background frame to obtain the original code stream and dividing it into the application layer Protocol Data Unit (Protocol Data Unit, PDU), the PDU of the transport layer, and the network layer respectively in turn. The PDU of the data link layer and the PDU of the data link layer, that is, the data packet obtained by dividing the background frame, and finally adding the sub-code stream identifier for encapsulation, and converting it into a sub-code stream from the physical layer.

更进一步地,上述步骤102的优选步骤还可以进一步具体为以下步骤A至步骤D:Furthermore, the preferred steps of the above step 102 can also be further specifically the following steps A to D:

步骤A:判断确定的背景帧的数据量是否大于当前带宽下的信道容量;若判断结果为是,则执行步骤B,若判断结果为否,则执行步骤C;Step A: Judging whether the data volume of the determined background frame is greater than the channel capacity under the current bandwidth; if the judgment result is yes, then execute step B, if the judgment result is no, then execute step C;

步骤B:依据当前带宽下的信道容量和网络协议中对数据包的数据量的要求,将该确定的背景帧分割为至少两个数据包,将该至少两个数据包分别加入辅码流标识后进行封装,形成辅码流,上述至少两个数据包中的任一数据包的大小均不大于当前带宽下的信道容量;Step B: Divide the determined background frame into at least two data packets according to the channel capacity under the current bandwidth and the data volume requirements of the network protocol, and add the at least two data packets to the sub-stream identifier respectively Afterwards, encapsulation is carried out to form a sub-code stream, and the size of any data packet in the above-mentioned at least two data packets is not greater than the channel capacity under the current bandwidth;

步骤C:判断上述确定的背景帧的数据量是否大于网络协议中对数据包的数据量的最大值的限定,若是,则执行步骤D;若否,则执行步骤E;Step C: judging whether the data volume of the above-mentioned determined background frame is greater than the limitation of the maximum data volume of the data packet in the network protocol, if so, then perform step D; if not, then perform step E;

步骤D:则按照网络协议中对数据包的数据量的要求,将该确定的背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装,形成辅码流。Step D: Divide the determined background frame into at least two data packets according to the data volume requirements of the data packets in the network protocol, add the sub-code stream identifiers respectively, and then encapsulate to form a sub-code stream.

执行步骤E:直接将确定的背景帧加入辅码流标识后进行封装,形成辅码流。Executing step E: directly adding the determined background frame into the sub-stream identifier and then encapsulating it to form a sub-stream.

较优的,为了获得分割后的数据包在原始码流中的位置信息,便于后续接收方对背景帧进行还原,在上述将确定的每一背景帧分割为至少两个数据包之后,分别加入辅码流标识后进行封装之前,上述方法还包括:Preferably, in order to obtain the position information of the divided data packets in the original code stream, so that the subsequent receiver can restore the background frame, after the above-mentioned division of each determined background frame into at least two data packets, add Before encapsulation after the secondary code stream is identified, the above method also includes:

对分割得到的数据包进行编号,将编号加入相应的数据包,该编号用于确定该数据包所属的背景帧以及该数据包中的数据在该背景帧中的位置。The divided data packets are numbered, and the number is added to the corresponding data packet, and the number is used to determine the background frame to which the data packet belongs and the position of the data in the data packet in the background frame.

步骤103:将原始编码码流中每一非背景帧加入主码流标识后进行封装,形成主码流;Step 103: adding each non-background frame in the original encoded code stream to the main code stream identifier and then encapsulating to form the main code stream;

具体实现时确定原始编码码流中的背景帧后,剩余的编码码流即为非背景帧。During specific implementation, after the background frames in the original coded stream are determined, the remaining coded streams are non-background frames.

考虑到背景帧是由视频序列中的图像建模得到的高质量背景图像,编码后数据量较大(例如:AVS中背景帧通常是I帧的几倍),较大的数据量意味着较高瞬时码率,若将背景帧和非背景帧在同一码流中进行传输,在带宽较低的情况下,将会导致背景帧的不能及时传输,这就会造成对需要该背景图像作为参考帧进行解码的后续帧的解码延时,因此,上述步骤102和步骤103中将背景帧和非背景帧重新组织成不同的码流,并且对背景帧进行分割,分割为至少两个数据包,避免了直接传输背景帧,减少因码流传输中图像瞬时码率过高造成后续非背景帧的延时或丢失的出现。Considering that the background frame is a high-quality background image modeled by the image in the video sequence, the amount of data after encoding is large (for example: the background frame in AVS is usually several times that of the I frame), and the large amount of data means that it is relatively large. High instantaneous bit rate, if the background frame and non-background frame are transmitted in the same bit stream, in the case of low bandwidth, the background frame will not be transmitted in time, which will cause the need for the background image as a reference The decoding delay of the subsequent frame after the frame is decoded, therefore, in the above step 102 and step 103, the background frame and the non-background frame are reorganized into different code streams, and the background frame is divided into at least two data packets, It avoids the direct transmission of background frames, and reduces the occurrence of delay or loss of subsequent non-background frames caused by the high instantaneous bit rate of images in bit stream transmission.

步骤102和步骤103中的辅码流标识及主码流标识可以是一个标识位,例如:用0标识主码流,用1标识辅码流;The auxiliary code stream identification and the main code stream identification in step 102 and step 103 can be an identification bit, for example: identify the main code stream with 0, and identify the auxiliary code stream with 1;

需要说明的是,上述中是先执行步骤102后执行步骤103,也可以步骤102和步骤103可以同时进行,还可以先执行步骤103后执行步骤102。It should be noted that, in the above, step 102 is executed first and then step 103 is executed, step 102 and step 103 may also be executed simultaneously, or step 103 may be executed first and then step 102 is executed.

图2给出了将原始码流数据提取出来加入标识后重新封装形成主码流和辅码流的示意图;从图2中可知原始编码码流中包括序列头、图像数据(也即非背景帧)、高质量图像数据(也即背景帧);提取出来加入标识后变为由图像数据构成的主码流和由高质量图像数据构成的辅码流,需要说明的是图2中辅码流中的高质量图像数据是对原始编码码流中的高质量图像数据分割后得到的高质量图像数据。Figure 2 provides a schematic diagram of extracting the original code stream data and adding the logo to repackage to form the main code stream and auxiliary code stream; from Figure 2, it can be known that the original code stream includes sequence header, image data (that is, non-background frame ), high-quality image data (that is, the background frame); after being extracted and added to the logo, it becomes the main code stream composed of image data and the auxiliary code stream composed of high-quality image data. It should be noted that the auxiliary code stream in Figure 2 The high-quality image data in is the high-quality image data obtained by dividing the high-quality image data in the original code stream.

步骤104:发送上述辅码流和主码流。Step 104: Send the above-mentioned auxiliary code stream and main code stream.

较优的,本步骤104包括:Preferably, this step 104 includes:

分时发送上述辅码流和主码流,其中,上述辅码流的发送完毕时间点不晚于需要该辅码流进行解码的主码流的发送完毕时间点。The auxiliary code stream and the main code stream are transmitted in time division, wherein the time point of completion of sending the above auxiliary code stream is no later than the time point of completion of transmission of the main code stream that requires the auxiliary code stream to be decoded.

具体地,将辅码流分散到主码流之间后发送,可实现分时发送。Specifically, the sub-code streams are distributed among the main code streams before being sent, so that time-division transmission can be realized.

由于视频序列中背景帧的个数通常较少,并且在码流中位于需要参考其进行解码的非背景帧之前的位置,因此,分时发送由背景帧分割后得到的数据包转化的辅码流和由非背景帧转化的主码流,并且保证该辅码流的发送完毕时间点不晚于需要该辅码流进行解码的主码流的发送完毕时间点,可使构成背景帧的数据包优先发送,确保非背景帧需要背景帧进行解码时该背景帧已经传输完毕,可避免因背景帧的传输不及时造成的对需要该背景帧作为参考帧进行解码的非背景帧的解码延时。Since the number of background frames in the video sequence is usually small, and it is located before the non-background frames that need to be decoded in the code stream, therefore, the auxiliary code converted from the data packet obtained by dividing the background frame is sent in time division stream and the main code stream converted from non-background frames, and ensure that the sending completion time point of the auxiliary code stream is not later than the sending completion time point of the main code stream that needs to be decoded by the auxiliary code stream, so that the data constituting the background frame The packet is sent first to ensure that the background frame has been transmitted when the non-background frame needs to be decoded by the background frame, which can avoid the decoding delay of the non-background frame that needs the background frame as a reference frame to be decoded due to the untimely transmission of the background frame .

进一步地,尽管辅码流的实质是对背景帧进行分割得到的数据包,但由于分割得到的数据包的数据量仍然较大,将两个或多个辅码流集中发送,仍然可能会引起码流的瞬时发送速率突增,为了避免码流瞬时发送速率的突增,将辅码流分散到主码流之间后发送,其中,与每一辅码流相邻的码流均为主码流,可实现分时发送。Furthermore, although the essence of the auxiliary code stream is the data packet obtained by segmenting the background frame, since the data volume of the data packet obtained by segmentation is still relatively large, sending two or more auxiliary code streams together may still cause The sudden increase of the instantaneous transmission rate of the code stream, in order to avoid the sudden increase of the instantaneous transmission rate of the code stream, the auxiliary code streams are distributed between the main code streams and then sent. Among them, the code streams adjacent to each auxiliary code stream are the main code streams Code stream, which can realize time-sharing transmission.

此外,编码器对视频图像进行编码后,每帧图像的编码码流中均包含用于表示该帧图像的播放顺序的图像序列号(Picture Order Count,POC);下面通过图3和图4对该图像序列号在编码码流中的位置进行说明:In addition, after the encoder encodes the video image, the coded code stream of each frame of image contains a picture sequence number (Picture Order Count, POC) used to indicate the playback order of the frame of image; The position of the image serial number in the encoded code stream is explained:

图3中所示为视频序列的编码层次示意图;其中,视频序列由图像组成;图像由片组成;片由编码块组成。FIG. 3 is a schematic diagram of coding layers of a video sequence; wherein, a video sequence is composed of images; images are composed of slices; and slices are composed of coding blocks.

图4为对图3所示的视频序列进行编码后得到的层次的码流结构示意图,由图4可知,视频的原始编码码流由序列组成;序列包含序列头和图像数据;图像数据包含图像头和片数据;片数据包含片头和宏块数据;其中,图像头中包括图像序列号。Figure 4 is a schematic diagram of the hierarchical code stream structure obtained after encoding the video sequence shown in Figure 3. It can be seen from Figure 4 that the original coded code stream of the video is composed of sequences; the sequence includes sequence headers and image data; the image data includes image Header and slice data; slice data includes slice header and macroblock data; wherein, the image header includes image sequence number.

由于每帧图像的原始编码码流中均包含图像序列号,图像序列号用于表示各帧图像的播放顺序,因此,在将主码流和辅码流发送出去之后,通常可以利用该图像序列号进行码流的还原;然而,考虑到一部分编码器编码出的图像序列号的位数较小(例如只有2个字节),故图像序列号最大值是255,超过255后重新从0开始编号;本发明实施例中由于是将辅码流分散到主码流后发送的,图像帧的发送顺序并不是按照图像序列号的顺序进行的,因此,该被分散的辅码流的图像序列号可能会与后续的其它码流的图像序列号出现重复,这将可能导致接收方的解码出现错误,为了确保接收方正确还原出出原始编码码流,进而正确进行解码,较优的,上述视频数据的发送方法还包括以下步骤,其流程如图5所示。Since the original encoded code stream of each frame of image contains the image sequence number, which is used to indicate the playback order of each frame of image, therefore, after the main code stream and auxiliary code stream are sent out, the image sequence number can usually be used However, considering that the number of image serial numbers encoded by some encoders has a small number of digits (for example, only 2 bytes), the maximum value of the image serial number is 255, and restarts from 0 after exceeding 255 number; in the embodiment of the present invention, since the auxiliary code stream is distributed to the main code stream and sent, the sending order of the image frames is not carried out in accordance with the order of the image sequence numbers. Therefore, the image sequence of the dispersed auxiliary code stream The number may be repeated with the image sequence numbers of other subsequent code streams, which may cause errors in the decoding of the receiver. In order to ensure that the receiver correctly restores the original code stream, and then decodes correctly, preferably, the above The method for sending video data also includes the following steps, the flow of which is shown in FIG. 5 .

步骤501:判断确定原始编码码流中的图像序列号的最大值是否小于上述原始编码码流中包含的图像帧数量;若是,执行步骤502;若否,执行步骤503。Step 501: Determine whether the maximum value of the image sequence number in the original encoded code stream is smaller than the number of image frames contained in the original encoded code stream; if yes, execute step 502; if not, execute step 503.

该步骤501可在上述步骤101-步骤103之后或之前的任一步骤执行,也可以与步骤101-步骤103中的任一步骤同时执行。This step 501 may be performed after or before any of the above steps 101-103, or may be performed simultaneously with any of the steps 101-103.

步骤502:生成各主码流和各辅码流在原始编码码流中的位置偏移量,该位置偏移量表示相对于原始编码码流中的序列头位置的偏移量。Step 502: Generate position offsets of each main code stream and each auxiliary code stream in the original encoded code stream, where the position offset represents an offset relative to the position of the sequence header in the original encoded code stream.

具体地,上述位置偏移量可用偏移序列头多少个单位来表示,其中每一单位表示一个主码流或一个辅码流。Specifically, the above position offset can be represented by the number of units offset from the sequence head, where each unit represents a main code stream or a secondary code stream.

该步骤502可在上述步骤103之后且步骤104之前执行。This step 502 may be performed after the above step 103 and before step 104 .

在完成这里的步骤502后,发送主码流时,将该主码流的位置偏移量随同该主码流发送;发送辅码流时,将该辅码流的位置偏移量随同该辅码流发送。After completing step 502 here, when sending the main code stream, send the position offset of the main code stream along with the main code stream; when sending the auxiliary code stream, send the position offset of the auxiliary code stream with the auxiliary code stream Stream sending.

步骤503:判断确定原始编码码流中的图像序列号的最大值是否等于上述原始编码码流中包含的图像帧数量;若是,执行步骤504;若否,则提示编码码流出错。Step 503: Determine whether the maximum value of the image sequence number in the original coded stream is equal to the number of image frames contained in the original coded stream; if yes, perform step 504; if not, prompt that the coded stream is wrong.

步骤504:在上述将确定的每一背景帧分割为至少两个数据包之后,分别加入辅码流标识后进行封装之前,对分割得到的数据包进行编号,将编号加入相应的数据包,该编号用于确定该数据包所属的背景帧的图像序列号以及该数据包中的数据在该背景帧中的位置。Step 504: After dividing each determined background frame into at least two data packets, adding sub-stream identifiers respectively before encapsulation, numbering the divided data packets, and adding the numbers to corresponding data packets, the The number is used to determine the image sequence number of the background frame to which the data packet belongs and the position of the data in the data packet in the background frame.

下面通过一个具体的例子对上述视频数据的发送方法进行更为详细地说明。The above method for sending video data will be described in more detail below through a specific example.

假设原始编码码流为:I1 P2 P3 P4 P5 P6 P7 P8 P9 P10 P11 P12 P13 P14 P15G16 P17 P18。Suppose the original code stream is: I1 P2 P3 P4 P5 P6 P7 P8 P9 P10 P11 P12 P13 P14 P15G16 P17 P18.

其中,I1中的I是表示帧内编码帧,1是表示该I帧的图像序列号为1;P2中的P是表示前向预测编码帧,2是表示该P帧的图像序列号为2,G16中的G是表示背景帧,16是表示该G帧的图像序列号为16,其余类似,不再赘述。Among them, the I in I1 represents an intra-frame coding frame, and 1 represents that the image sequence number of the I frame is 1; the P in P2 represents a forward predictive coding frame, and 2 represents that the image sequence number of the P frame is 2 , G in G16 means the background frame, and 16 means that the image sequence number of the G frame is 16, and the rest are similar and will not be repeated here.

第一步:确定原始编码码流中的背景帧为G16;Step 1: Determine that the background frame in the original encoded code stream is G16;

第二步:将确定的背景帧G16分割为10个数据包,对分割得到的数据包进行编号,下标用abcdefghij表示,分别加入辅码流标识后封装,形成的辅码流为:G16a G16b G16c G16d G16e G16f G16g G16h G16i G16j;Step 2: Divide the determined background frame G16 into 10 data packets, number the divided data packets, and denote the subscript with abcdefghij, add the sub-code stream identifiers and package them respectively, and the formed sub-code streams are: G16a G16b G16c G16d G16e G16f G16g G16h G16i G16j;

第三步:将每一非背景帧加入主码流标识后进行封装,形成的主码流为:I1 P2 P3 P4 P5 P6 P7 P8 P9 P10 P11 P12 P13 P14P15 P17 P18;Step 3: Add each non-background frame to the main stream logo and then encapsulate it. The main stream is: I1 P2 P3 P4 P5 P6 P7 P8 P9 P10 P11 P12 P13 P14P15 P17 P18;

第四步:分时发送第二步中的辅码流和第三步中的主码流,其中,辅码流G16a G16b G16c G16d G16e G16f G16g G16h G16i G16j的发送完毕时间点不晚于需要该辅码流进行解码的主码流P17、P18的发送完毕时间点。Step 4: Time-sharing sending of the auxiliary code stream in the second step and the main code stream in the third step, wherein the sending completion time of the auxiliary code stream G16a G16b G16c G16d G16e G16f G16g G16h G16i G16j is not later than the required The time point at which the primary code stream P17 and P18 for which the secondary code stream is decoded is completed.

满足上述辅码流G16a G16b G16c G16d G16e G16f G16g G16hG16i G16j的发送完毕时间点不晚于需要该辅码流进行解码的主码流P17、P18的发送完毕时间点这一条件的一种可能的发送结果为:I1 G16a P2 G16bP3 G16c P4 G16d P5 G16e P6 G16f P7 G16g G16h P8 G16iP9 G16j P10 P11 P12 P13 P14 P15 P17 P18。A possible transmission that satisfies the condition that the above auxiliary code stream G16a G16b G16c G16d G16e G16f G16g G16hG16i G16j is not later than the main code stream P17, P18 that needs to be decoded by the auxiliary code stream. The result is: I1 G16a P2 G16bP3 G16c P4 G16d P5 G16e P6 G16f P7 G16g G16h P8 G16iP9 G16j P10 P11 P12 P13 P14 P15 P17 P18.

当然,也可以为其它发送结果,只要满足将第二步中的辅码流和第三步中的主码流分时发送,且确保辅码流的发送完毕时间点不晚于需要该辅码流进行解码的主码流的发送完毕时间点即可。Of course, other sending results can also be used, as long as the auxiliary code stream in the second step and the main code stream in the third step are sent in time division, and it is ensured that the sending of the auxiliary code stream is not later than the time when the auxiliary code is needed The time point at which the main code stream for which the stream is decoded is completed is sufficient.

由上述具体的例子可知,本实施例的方案中实现了提前传送G帧数据,并且构成G帧的数据包不是同时传送的(每个构成G帧的数据包提前的时间不同),也就是将数据打散之后分时传输。As can be seen from the above specific examples, in the solution of this embodiment, the G frame data is transmitted in advance, and the data packets constituting the G frame are not transmitted at the same time (the advance time of each data packet constituting the G frame is different), that is, the After the data is broken up, it is time-shared and transmitted.

在本发明实施例一的技术方案中,将背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装形成辅码流,后续发送辅码流和主码流,避免了直接传输背景帧,减少因码流传输中图像瞬时码率过高造成后续非背景帧的延时或丢失,同时也没有降低作为背景帧的高质量背景图像的质量,不会影响后续需要参考该高质量的背景图像进行编码的非高质量背景图像的压缩效果,兼顾了传输带宽和图像质量。In the technical solution of Embodiment 1 of the present invention, the background frame is divided into at least two data packets, which are respectively added to the sub-code stream identifier and then encapsulated to form a sub-code stream, and the sub-code stream and the main code stream are subsequently sent, avoiding direct transmission Background frame, reducing the delay or loss of subsequent non-background frames caused by the high instantaneous bit rate of the image in the bit stream transmission, and at the same time, it does not reduce the quality of the high-quality background image used as the background frame, and will not affect the subsequent need to refer to the high-quality The compression effect of the non-high-quality background image encoded by the background image takes into account the transmission bandwidth and image quality.

实施例二Embodiment two

基于与实施例一的同一发明构思,本发明实施例二提供一种视频数据的接收方法,其流程如图6所示,包括以下步骤:Based on the same inventive concept as in Embodiment 1, Embodiment 2 of the present invention provides a method for receiving video data, the process of which is shown in FIG. 6 , including the following steps:

步骤601:接收视频数据码流,该视频数据码流包括含有主码流标识的主码流和含有辅码流标识的辅码流,该辅码流是将确定的每一背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装形成的,该主码流是将原始编码码流中每一非背景帧加入主码流标识后进行封装形成的;Step 601: Receive the video data stream, the video data stream includes the main code stream containing the main code stream identification and the auxiliary code stream containing the auxiliary code stream identification, the auxiliary code stream is to divide each determined background frame into at least Two data packets are formed by encapsulation after adding the sub-stream identifier respectively. The main stream is formed by adding each non-background frame in the original code stream to the main stream identifier and then encapsulating;

步骤602:根据码流中包含的标识,确定接收的码流中的主码流和辅码流;Step 602: Determine the main code stream and auxiliary code stream in the received code stream according to the identifier contained in the code stream;

步骤603:将确定的主码流和辅码流还原为视频图像的原始编码码流,供解码器解码。Step 603: Restore the determined primary code stream and secondary code stream to the original coded code stream of the video image for decoding by the decoder.

由于接收的视频数据码流中通常包含图像序列号,因此,在本发明实施例二的方案中,可利用码流中包含的图像序列号,将确定的主码流和辅码流还原为视频图像的原始编码码流,供解码器解码。Since the received video data code stream usually contains the image serial number, therefore, in the solution of Embodiment 2 of the present invention, the determined main code stream and auxiliary code stream can be restored to video The original encoded code stream of the image for the decoder to decode.

图7给出了利用接收的码流确定出主码流和辅码流后还原为原始编码码流的示意图;Figure 7 shows a schematic diagram of determining the main code stream and the auxiliary code stream by using the received code stream and restoring them to the original coded code stream;

较优的,上述辅码流的接收完毕时间点不晚于需要该辅码流进行解码的主码流的接收完毕时间点。此时,也即确保了非背景帧需要背景帧进行解码时该背景帧已经传输完毕,避免了因背景帧的传输不及时造成的对需要该背景帧作为参考帧进行解码的非背景帧的解码延时。Preferably, the receiving completion time point of the auxiliary code stream is no later than the receiving completion time point of the main code stream that requires the auxiliary code stream to be decoded. At this time, it is ensured that the background frame has been transmitted when the non-background frame needs to be decoded by the background frame, and the decoding of the non-background frame that needs the background frame as a reference frame to be decoded due to the untimely transmission of the background frame is avoided delay.

较优的,为了便于正确的还原原码流,在上述接收的每一主码流或辅码流中随同有该主码流或辅码流的在原始编码码流中的位置偏移量时,利用接收的每一主码流或辅码流中随同有该主码流或辅码流的在原始编码码流中的位置偏移量,将确定的主码流和辅码流还原为视频图像的原始编码码流,供解码器解码,该位置偏移量是相对于原始编码码流中的序列头位置的偏移量。Preferably, in order to restore the original code stream correctly, each of the above-mentioned received main code streams or auxiliary code streams is accompanied by the position offset of the main code stream or auxiliary code stream in the original encoded code stream , use each received main stream or auxiliary stream along with the position offset of the main stream or auxiliary stream in the original encoded stream to restore the determined main stream and auxiliary stream to the video The original coded stream of the image is for the decoder to decode, and the position offset is relative to the sequence header position in the original coded stream.

在上述辅码流中包括编号,上述主码流中包括图像序列号时,利用上述编号将确定的辅码流还原为背景帧,以及确定还原的背景帧的图像序列号;利用还原的背景帧的图像序列号和主码流中包括的图像序列号,将该背景帧和主码流还原为原始编码码流,供解码器解码,上述图像序列号用于表示各帧图像的播放顺序,该编号用于确定该辅码流包含的数据包所属的背景帧的图像序列号以及该数据包中的数据在该背景帧中的位置。When the above-mentioned sub-code stream includes a number, and when the above-mentioned main code stream includes an image sequence number, use the above-mentioned number to restore the determined sub-code stream to a background frame, and determine the image sequence number of the restored background frame; use the restored background frame The image serial number included in the main code stream and the background frame and the main code stream are restored to the original encoded code stream for decoding by the decoder. The above image serial number is used to indicate the playback order of each frame image. The number is used to determine the image sequence number of the background frame to which the data packet included in the sub-code stream belongs and the position of the data in the data packet in the background frame.

下面通过一个具体的例子对本发明实施例二中的视频数据的接收方法进行说明。The method for receiving video data in Embodiment 2 of the present invention will be described below through a specific example.

假设接收到的是实施例一中发送的I1 G16a P2 G16b P3 G16c P4G16d P5 G16e P6 G16f P7 G16g G16h P8 G16i P9 G16j P10P11 P12 P13 P14 P15 P17 P18码流,此时,可知接收的辅码流中包括编号,上述主码流中包括图像序列号,则利用本发明实施例二中的视频数据的接收方法,具体执行的步骤如下:Assuming that what is received is the I1 G16a P2 G16b P3 G16c P4G16d P5 G16e P6 G16f P7 G16g G16h P8 G16i P9 G16j P10P11 P12 P13 P14 P15 P17 P18 code stream sent in the first embodiment. Numbering, the above-mentioned main code stream includes the image serial number, then utilize the receiving method of video data in the second embodiment of the present invention, the specific execution steps are as follows:

第一步:解封装数据包,在该数据包中包含的标识为主码流标识时,确定该码流为主码流,在该数据包纵包含的标识为辅码流标识时,确定该码流为辅码流;此时确定出主码流为I1 P2 P3 P4 P5 P6 P7 P8P9 P10 P11 P12 P13 P14 P15 P17 P18,辅码流为:G16a G16b G16cG16d G16e G16f G16g G16h G16i G16j;Step 1: Decapsulate the data packet. When the identification contained in the data packet is the main code stream identification, determine the main code stream; when the identification contained in the data packet is the auxiliary code stream identification, determine the The code stream is the auxiliary code stream; at this time, it is determined that the main code stream is I1 P2 P3 P4 P5 P6 P7 P8P9 P10 P11 P12 P13 P14 P15 P17 P18, and the auxiliary code stream is: G16a G16b G16cG16d G16e G16f G16g G16h G16i G16j;

第二步:利用辅码流中包含的编码16a 16b 16c 16d 16e 16f 16g16h 16i 16j将辅码流还原为背景帧G,以及确定该背景帧的图像序列号为16;Second step: utilize the coding 16a 16b 16c 16d 16e 16f 16g16h 16i 16j contained in the auxiliary code stream to restore the auxiliary code stream to the background frame G, and determine that the image sequence number of the background frame is 16;

第三步:利用各主码流的图像序列号和确定的背景帧的图像序列号,将主码流和还原的上述背景帧G还原为原始编码码流,即为:I1 P2 P3 P4 P5 P6 P7P8 P9 P10 P11 P12 P13 P14 P15 G16 P17 P18。Step 3: Using the image serial numbers of each main stream and the determined image serial number of the background frame, restore the main stream and the restored background frame G to the original encoded stream, namely: I1 P2 P3 P4 P5 P6 P7P8 P9 P10 P11 P12 P13 P14 P15 G16 P17 P18.

在本发明实施例二的方案中,由于接收的辅码流是将确定的每一背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装形成的,因此,很大程度上避免了码流传输中图像瞬时码率过高造成后续非背景帧的延时或丢失,使得接收到的码流较大程度上为完整的码流,并且是压缩效果较好的图像的码流,因此,还原后得到的原始编码码流完整性较高,为后续解码出高质量的视频图像提供了较好的基础。In the solution of the second embodiment of the present invention, since the received sub-code stream is formed by dividing each determined background frame into at least two data packets, adding sub-code stream identifiers and encapsulating them respectively, therefore, to a large extent It avoids the delay or loss of subsequent non-background frames caused by the high instantaneous bit rate of the image in the bit stream transmission, so that the received bit stream is a complete bit stream to a large extent, and it is the bit stream of the image with better compression effect , therefore, the integrity of the original coded stream obtained after restoration is relatively high, which provides a good basis for subsequent decoding of high-quality video images.

实施例三Embodiment Three

基于与实施例一的同一发明构思,本发明实施例三提供一种视频数据的发送装置,其结构示意图如图8所示,包括:第一确定单元81、辅码流形成单元82、主码流形成单元83和发送单元84;其中:Based on the same inventive concept as that of Embodiment 1, Embodiment 3 of the present invention provides a device for sending video data. Its structural diagram is shown in FIG. Stream forming unit 83 and sending unit 84; wherein:

第一确定单元81,用于根据用于表示当前帧为背景帧和/或非背景帧的标识信息,确定视频图像的原始编码码流中的背景帧;The first determining unit 81 is configured to determine the background frame in the original encoded code stream of the video image according to the identification information used to indicate that the current frame is a background frame and/or a non-background frame;

辅码流形成单元82,用于将确定的每一背景帧分割为至少两个数据包,加入辅码流标识后进行封装,形成辅码流;The sub-code stream forming unit 82 is used to divide each determined background frame into at least two data packets, add the sub-code stream identifier and then encapsulate to form a sub-code stream;

主码流形成单元83,用于将原始编码码流中每一非背景帧加入主码流标识后进行封装,形成主码流;The main code stream forming unit 83 is used for encapsulating each non-background frame in the original encoded code stream after adding the main code stream identifier to form the main code stream;

发送单元84,用于发送辅码流和主码流。The sending unit 84 is configured to send the auxiliary code stream and the main code stream.

较优的,上述发送单元84,进一步用于分时发送上述辅码流和主码流,其中,上述辅码流的发送完毕时间点不晚于需要该辅码流进行解码的主码流的发送完毕时间点。Preferably, the sending unit 84 is further configured to time-divisionally send the above-mentioned auxiliary code stream and the main code stream, wherein, the time point at which the above-mentioned auxiliary code stream is sent is not later than that of the main code stream that requires the auxiliary code stream to be decoded. The time when the sending is completed.

较优的,上述辅码流形成单元82,进一步用于根据背景帧的数据量大小、当前带宽下的信道容量和网络协议中对数据包的要求,将确定的每一背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装,形成辅码流。Preferably, the auxiliary stream forming unit 82 is further configured to divide each determined background frame into at least two according to the data size of the background frame, the channel capacity under the current bandwidth and the requirements for data packets in the network protocol. Each data packet is added to the sub-code stream identifier and then encapsulated to form a sub-code stream.

在上述图8上述的装置的基础上,本发明实施例二还提出一种视频数据的发送装置,该装置的结构示意图如图9所示,除包括图8上述的装置中的单元外,还包括:On the basis of the above-mentioned device in FIG. 8, Embodiment 2 of the present invention also proposes a video data sending device. The structural diagram of the device is shown in FIG. 9. In addition to the units in the above-mentioned device in FIG. include:

第二确定单元91,用于确定原始编码码流中的图像序列号的最大值小于上述原始编码码流中包含的图像帧数量;The second determining unit 91 is configured to determine that the maximum value of the image sequence number in the original encoded code stream is less than the number of image frames contained in the original encoded code stream;

位置偏移量生成单元92,用于生成各主码流和各辅码流在原始编码码流中的位置偏移量,该位置偏移量表示相对于原始编码码流中的序列头位置的偏移量。The position offset generation unit 92 is used to generate the position offset of each main code stream and each auxiliary code stream in the original code stream, and the position offset represents the position relative to the sequence head position in the original code stream Offset.

上述发送单元84,进一步用于发送主码流时,将该主码流的位置偏移量随同该主码流发送;发送辅码流时,将该辅码流的位置偏移量随同该辅码流发送。The above-mentioned sending unit 84 is further used to send the position offset of the main code stream along with the main code stream when sending the main code stream; Stream sending.

在上述图8上述的装置的基础上,本发明实施例二还提出一种视频数据的发送装置,该装置的结构示意图如图10所示,除包括图8上述的装置中的单元外,还包括:On the basis of the above-mentioned device in FIG. 8 , Embodiment 2 of the present invention also proposes a video data sending device. The structural diagram of the device is shown in FIG. 10 . include:

第三确定单元1001,用于确定原始编码码流中的图像序列号的最大值等于上述原始编码码流中包含的图像帧数量;The third determination unit 1001 is configured to determine that the maximum value of the image sequence number in the original encoded code stream is equal to the number of image frames contained in the original encoded code stream;

编号单元1002,用于在上述将确定的每一背景帧分割为至少两个数据包之后,分别加入辅码流标识后进行封装之前,对分割得到的上述数据包进行编号,将编号加入相应的数据包,该编号用于确定该数据包所属的背景帧的图像序列号以及该数据包中的数据在该背景帧中的位置。The numbering unit 1002 is used for numbering the above-mentioned data packets obtained by dividing after dividing each determined background frame into at least two data packets, respectively adding sub-stream identifiers and encapsulating them, and adding the numbers to corresponding Data packet, the number is used to determine the image sequence number of the background frame to which the data packet belongs and the position of the data in the data packet in the background frame.

实施例四Embodiment four

基于与实施例二的同一发明构思,本发明实施例四提供一种视频数据的接收装置,其结构示意图如图11所示,包括:接收单元111、码流类型确定单元112和还原单元113;其中:Based on the same inventive concept as that of Embodiment 2, Embodiment 4 of the present invention provides a device for receiving video data. Its structural diagram is shown in FIG. in:

接收单元111,用于接收视频数据码流,该视频数据码流含有主码流标识的主码流和含有辅码流标识的辅码流,上述辅码流是将确定的每一背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装形成的,上述主码流是将原始编码码流中每一非背景帧加入主码流标识后进行封装形成的;The receiving unit 111 is used to receive the video data code stream, the video data code stream contains the main code stream identified by the main code stream and the auxiliary code stream containing the auxiliary code stream identification, and the above-mentioned auxiliary code stream is to divide each determined background frame At least two data packets are formed by encapsulation after adding auxiliary code stream identifiers respectively, and the above-mentioned main code stream is formed by adding each non-background frame in the original code stream to the main code stream identifier and then encapsulating;

码流类型确定单元112,用于根据码流中包含的标识,确定接收的码流中的主码流和辅码流;A code stream type determination unit 112, configured to determine the main code stream and the auxiliary code stream in the received code stream according to the identifier contained in the code stream;

还原单元113,用于将确定的主码流和辅码流还原为视频图像的原始编码码流,供解码器解码。The restore unit 113 is configured to restore the determined main code stream and auxiliary code stream to the original coded code stream of the video image for the decoder to decode.

较优的,上述接收的每一码流中随同有该码流的在原始编码码流中的位置偏移量,该位置偏移量是相对于原始编码码流中的序列头位置的偏移量;Preferably, each code stream received above is accompanied by a position offset of the code stream in the original encoded code stream, and the position offset is an offset relative to the position of the sequence head in the original encoded code stream quantity;

上述还原单元113,进一步用于利用接收的每一码流中随同有该码流的在原始编码码流中的位置偏移量,将确定的主码流和辅码流还原为视频图像的原始编码码流,供解码器解码。The above-mentioned restoration unit 113 is further configured to restore the determined main code stream and auxiliary code stream to the original code stream of the video image by using the position offset in the original encoded code stream accompanying the code stream in each code stream received. Encoded code stream for decoder to decode.

较优的,上述辅码流中包括编号,上述主码流中包括图像序列号,上述图像序列号用于表示各帧图像的播放顺序,上述编号用于确定该辅码流包含的数据包所属的背景帧的图像序列号以及该数据包中的数据在该背景帧中的位置。Preferably, the above-mentioned sub-code stream includes numbers, the above-mentioned main code stream includes image sequence numbers, the above-mentioned image sequence numbers are used to indicate the playback order of each frame of images, and the above-mentioned numbers are used to determine the data packets contained in the sub-code stream belong to The image sequence number of the background frame and the position of the data in the packet in the background frame.

上述还原单元113,进一步用于利用上述编号将确定的辅码流还原为背景帧,以及确定还原的背景帧的图像序列号;利用还原的背景帧的图像序列号和主码流中包括的图像序列号,将该背景帧和主码流还原为原始编码码流,供解码器解码。The above-mentioned restoration unit 113 is further used to restore the determined auxiliary code stream to a background frame by using the above-mentioned number, and determine the image sequence number of the restored background frame; use the image sequence number of the restored background frame and the image included in the main code stream Serial number, restore the background frame and main stream to the original encoded stream for decoding by the decoder.

实施例五Embodiment five

基于与本发明实施例一至实施例四的同一发明构思,本发明实施例五提供一种视频数据的传输系统,其结构示意图如图12所示,上述系统包括:视频数据的发送装置120和视频数据的接收装置121;Based on the same inventive concepts as those of Embodiment 1 to Embodiment 4 of the present invention, Embodiment 5 of the present invention provides a video data transmission system. Data receiving device 121;

其中,上述视频数据的发送装置120为实施例三中的任一视频数据的发送装置,上述视频数据的接收装置121为实施例四中的任一视频数据的接收装置。Wherein, the video data sending device 120 is any video data sending device in the third embodiment, and the video data receiving device 121 is any video data receiving device in the fourth embodiment.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (17)

1.一种视频数据的发送方法,其特征在于,所述方法包括:1. A method for sending video data, characterized in that the method comprises: 根据用于表示当前帧为背景帧和/或非背景帧的标识信息,确定视频图像的原始编码码流中的背景帧;Determine the background frame in the original coded stream of the video image according to the identification information used to indicate that the current frame is a background frame and/or a non-background frame; 将确定的每一背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装,形成辅码流;Divide each determined background frame into at least two data packets, add sub-code stream identifiers respectively, and then encapsulate to form a sub-code stream; 将原始编码码流中每一非背景帧加入主码流标识后进行封装,形成主码流;Add each non-background frame in the original encoded code stream to the main code stream mark and then encapsulate it to form the main code stream; 发送所述辅码流和主码流。Send the auxiliary code stream and the main code stream. 2.如权利要求1所述的视频数据的发送方法,其特征在于,所述发送所述辅码流和主码流,包括:2. The sending method of video data as claimed in claim 1, is characterized in that, described sending described sub-code stream and primary code stream, comprises: 分时发送所述辅码流和主码流,其中,所述辅码流的发送完毕时间点不晚于需要该辅码流进行解码的主码流的发送完毕时间点。The auxiliary code stream and the main code stream are sent in time division, wherein the time point of completion of sending the auxiliary code stream is no later than the time point of completion of sending of the main code stream that requires the auxiliary code stream to be decoded. 3.如权利要求1所述的视频数据的发送方法,其特征在于,所述将确定的每一背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装,形成辅码流,包括:3. The sending method of video data as claimed in claim 1, is characterized in that, described each background frame that is determined is divided into at least two data packets, adds sub-code stream mark respectively and carries out encapsulation, forms sub-code stream ,include: 根据背景帧的数据量大小、当前带宽下的信道容量和网络协议中对数据包的要求,将确定的每一背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装,形成辅码流。According to the data size of the background frame, the channel capacity under the current bandwidth, and the requirements for data packets in the network protocol, each determined background frame is divided into at least two data packets, which are respectively added to the sub-code stream identifier and then encapsulated to form Secondary stream. 4.如权利要求1-3任一所述的视频数据的发送方法,其特征在于,所述原始编码码流中包含用于表示各帧图像的播放顺序的图像序列号,所述方法还包括:4. The sending method of video data as claimed in any one of claims 1-3, wherein the original coded code stream includes an image sequence number for representing the playback order of each frame image, and the method also includes : 确定原始编码码流中的图像序列号的最大值小于所述原始编码码流中包含的图像帧数量;determining that the maximum value of the image sequence number in the original coded stream is less than the number of image frames contained in the original coded stream; 生成各主码流和各辅码流在原始编码码流中的位置偏移量,该位置偏移量表示相对于原始编码码流中的序列头位置的偏移量;Generate position offsets of each main code stream and each auxiliary code stream in the original code stream, where the position offset represents an offset relative to the position of the sequence header in the original code stream; 所述发送所述主码流和辅码流包括:The sending the main code stream and the auxiliary code stream includes: 发送主码流时,将该主码流的位置偏移量随同该主码流发送;When sending the main stream, send the position offset of the main stream along with the main stream; 发送辅码流时,将该辅码流的位置偏移量随同该辅码流发送。When sending the sub-code stream, the position offset of the sub-code stream is sent along with the sub-code stream. 5.如权利要求1-3任一所述的视频数据的发送方法,其特征在于,所述原始编码码流中包含用于表示各帧图像的播放顺序的图像序列号,所述方法还包括:5. The sending method of video data as claimed in any one of claims 1-3, wherein the original coded code stream includes an image sequence number for representing the playback order of each frame image, and the method also includes : 确定原始编码码流中的图像序列号的最大值等于所述原始编码码流中包含的图像帧数量;Determining that the maximum value of the image sequence numbers in the original coded stream is equal to the number of image frames contained in the original coded stream; 在所述将确定的每一背景帧分割为至少两个数据包之后,分别加入辅码流标识后进行封装之前,所述方法还包括:After said dividing each determined background frame into at least two data packets, before encapsulating after respectively adding auxiliary code stream identification, said method also includes: 对分割得到的所述数据包进行编号,将编号加入相应的数据包,所述编号用于确定该数据包所属的背景帧的图像序列号以及该数据包中的数据在该背景帧中的位置。Numbering the data packets obtained by segmentation, adding the numbers to the corresponding data packets, the numbering is used to determine the image sequence number of the background frame to which the data packet belongs and the position of the data in the data packet in the background frame . 6.一种视频数据的接收方法,其特征在于,所述方法包括:6. A method for receiving video data, characterized in that the method comprises: 接收视频数据码流,所述视频数据码流包括含有主码流标识的主码流和含有辅码流标识的辅码流,所述辅码流是将确定的每一背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装形成的,所述主码流是将原始编码码流中每一非背景帧加入主码流标识后进行封装形成的;Receive video data code stream, described video data code stream comprises main code stream that contains main code stream identification and auxiliary code stream that contains auxiliary code stream identification, and described auxiliary code stream is that each determined background frame is divided into at least two data packets, which are formed by encapsulation after adding the sub-code stream identifier respectively, and the main code stream is formed by adding each non-background frame in the original code stream to the main code stream identifier and then encapsulating; 根据码流中包含的标识,确定接收的码流中的主码流和辅码流;Determine the main code stream and auxiliary code stream in the received code stream according to the identifier contained in the code stream; 将确定的主码流和辅码流还原为视频图像的原始编码码流,供解码器解码。Restore the determined main code stream and auxiliary code stream to the original coded code stream of the video image for decoding by the decoder. 7.如权利要求6所述的视频数据的接收方法,其特征在于,接收的每一个主码流或辅码流中随同有该主码流或辅码流的在原始编码码流中的位置偏移量,该位置偏移量是相对于原始编码码流中的序列头位置的偏移量;7. The receiving method of video data as claimed in claim 6, characterized in that, in each main code stream or auxiliary code stream received, the position in the original encoded code stream of the main code stream or auxiliary code stream is accompanied Offset, the position offset is an offset relative to the position of the sequence header in the original encoded code stream; 所述将确定的主码流和辅码流还原为视频图像的原始编码码流,供解码器解码,包括:Said restoring the determined main code stream and auxiliary code stream to the original coded code stream of the video image for decoding by the decoder includes: 利用接收的每一个主码流或辅码流中随同有该主码流或辅码流的在原始编码码流中的位置偏移量,将确定的主码流和辅码流还原为视频图像的原始编码码流,供解码器解码。Restore the determined main code stream and auxiliary code stream to a video image by using the position offset of each received main code stream or auxiliary code stream in the original encoded code stream along with the main code stream or auxiliary code stream The original encoded code stream for the decoder to decode. 8.如权利要求6所述的视频数据的接收方法,其特征在于,所述辅码流中包括编号,所述主码流中包括图像序列号,所述图像序列号用于表示各帧图像的播放顺序,所述编号用于确定该辅码流包含的数据包所属的背景帧的图像序列号以及该数据包中的数据在该背景帧中的位置;8. The method for receiving video data as claimed in claim 6, wherein the auxiliary code stream includes a serial number, and the main code stream includes an image serial number, and the image serial number is used to represent each frame image The playback sequence, the number is used to determine the image sequence number of the background frame to which the data packet contained in the auxiliary stream belongs and the position of the data in the data packet in the background frame; 所述将确定的主码流和辅码流还原为视频图像的原始编码码流,供解码器解码,包括:Said restoring the determined main code stream and auxiliary code stream to the original coded code stream of the video image for decoding by the decoder includes: 利用所述编号将确定的辅码流还原为背景帧,以及确定还原的背景帧的图像序列号;Using the serial number to restore the determined secondary stream to a background frame, and determine the image sequence number of the restored background frame; 利用还原的背景帧的图像序列号和主码流中包括的图像序列号,将该背景帧和主码流还原为原始编码码流,供解码器解码。Using the image serial number of the restored background frame and the image serial number included in the main code stream, the background frame and the main code stream are restored to the original encoded code stream for decoding by the decoder. 9.一种视频数据的发送装置,其特征在于,所述装置包括:9. A sending device for video data, characterized in that the device comprises: 第一确定单元,用于根据用于表示当前帧为背景帧和/或非背景帧的标识信息,确定视频图像的原始编码码流中的背景帧;The first determining unit is used to determine the background frame in the original coded stream of the video image according to the identification information used to indicate that the current frame is a background frame and/or a non-background frame; 辅码流形成单元,用于将确定的每一背景帧分割为至少两个数据包,加入辅码流标识后进行封装,形成辅码流;A sub-code stream forming unit, configured to divide each determined background frame into at least two data packets, add sub-code stream identifiers and then encapsulate to form a sub-code stream; 主码流形成单元,用于将原始编码码流中每一非背景帧加入主码流标识后进行封装,形成主码流;The main code stream forming unit is used for encapsulating each non-background frame in the original encoded code stream after adding the main code stream identifier to form the main code stream; 发送单元,用于发送所述辅码流和主码流。A sending unit, configured to send the auxiliary code stream and the main code stream. 10.如权利要求9所述的视频数据的发送装置,其特征在于,所述发送单元,进一步用于分时发送所述辅码流和主码流,其中,所述辅码流的发送完毕时间点不晚于需要该辅码流进行解码的主码流的发送完毕时间点。10. The sending device of video data as claimed in claim 9, is characterized in that, described sending unit is further used for time-sharing sending described sub-code stream and main code stream, wherein, the transmission of described sub-code stream is completed The time point is no later than the time point of completion of sending the main code stream that requires the auxiliary code stream to be decoded. 11.如权利要求9所述的视频数据的发送装置,其特征在于,所述辅码流形成单元,进一步用于根据背景帧的数据量大小、当前带宽下的信道容量和网络协议中对数据包的要求,将确定的每一背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装,形成辅码流。11. The sending device of video data as claimed in claim 9, it is characterized in that, described sub-code stream formation unit is further used for according to the data volume size of background frame, the channel capacity under the current bandwidth and network protocol data According to the requirements of the package, each determined background frame is divided into at least two data packets, which are respectively added with sub-code stream identifiers and then encapsulated to form sub-code streams. 12.如权利要求9-11任一所述的视频数据的发送装置,其特征在于,所述装置还包括:12. The sending device of video data according to any one of claims 9-11, characterized in that said device further comprises: 第二确定单元,用于确定原始编码码流中的图像序列号的最大值小于所述原始编码码流中包含的图像帧数量;The second determination unit is configured to determine that the maximum value of the image sequence number in the original encoded code stream is less than the number of image frames contained in the original encoded code stream; 位置偏移量生成单元,用于生成各主码流和各辅码流在原始编码码流中的位置偏移量,该位置偏移量表示相对于原始编码码流中的序列头位置的偏移量;The position offset generation unit is used to generate the position offset of each main code stream and each auxiliary code stream in the original code stream, and the position offset represents the offset relative to the position of the sequence header in the original code stream. displacement; 所述发送单元,进一步用于发送主码流时,将该主码流的位置偏移量随同该主码流发送;发送辅码流时,将该辅码流的位置偏移量随同该辅码流发送。The sending unit is further configured to send the position offset of the main code stream along with the main code stream when sending the main code stream; when sending the auxiliary code stream, send the position offset of the auxiliary code stream along with the auxiliary code stream Stream sending. 13.如权利要求9-11任一所述的视频数据的发送装置,其特征在于,所述装置还包括:13. The device for sending video data according to any one of claims 9-11, wherein the device further comprises: 第三确定单元,用于确定原始编码码流中的图像序列号的最大值等于所述原始编码码流中包含的图像帧数量;A third determining unit, configured to determine that the maximum value of the image sequence number in the original encoded code stream is equal to the number of image frames contained in the original encoded code stream; 编号单元,用于在所述将确定的每一背景帧分割为至少两个数据包之后,分别加入辅码流标识后进行封装之前,对分割得到的所述数据包进行编号,将编号加入相应的数据包,所述编号用于确定该数据包所属的背景帧的图像序列号以及该数据包中的数据在该背景帧中的位置。The numbering unit is used for numbering the divided data packets after dividing each determined background frame into at least two data packets, respectively adding the sub-stream identifier and encapsulating, and adding the numbers to the corresponding The number is used to determine the image sequence number of the background frame to which the data packet belongs and the position of the data in the data packet in the background frame. 14.一种视频数据的接收装置,其特征在于,所述装置包括:14. A receiving device for video data, characterized in that the device comprises: 接收单元,用于接收视频数据码流,所述视频数据码流包括含有主码流标识的主码流和含有辅码流标识的辅码流,所述辅码流是将确定的每一背景帧分割为至少两个数据包,分别加入辅码流标识后进行封装形成的,所述主码流是将原始编码码流中每一非背景帧加入主码流标识后进行封装形成的;The receiving unit is used to receive the video data code stream, the video data code stream includes the main code stream containing the main code stream identification and the auxiliary code stream containing the auxiliary code stream identification, and the auxiliary code stream is each background to be determined The frame is divided into at least two data packets, which are formed by encapsulation after adding the auxiliary code stream identifier respectively, and the main code stream is formed by adding each non-background frame in the original code stream to the main code stream identifier and then encapsulating; 码流类型确定单元,用于根据码流中包含的标识,确定接收的码流中的主码流和辅码流;A code stream type determining unit, configured to determine the main code stream and the auxiliary code stream in the received code stream according to the identifier contained in the code stream; 还原单元,用于将确定的主码流和辅码流还原为视频图像的原始编码码流,供解码器解码。The restoration unit is used to restore the determined main code stream and auxiliary code stream to the original coded code stream of the video image for decoding by the decoder. 15.如权利要求14所述的视频数据的接收装置,其特征在于,接收的每一个主码流或辅码流中随同有该主码流或辅码流的在原始编码码流中的位置偏移量,该位置偏移量是相对于原始编码码流中的序列头位置的偏移量;15. The receiving device of video data as claimed in claim 14, characterized in that, each received main code stream or auxiliary code stream is accompanied by the position of the main code stream or auxiliary code stream in the original encoded code stream Offset, the position offset is relative to the offset of the sequence header position in the original encoded code stream; 所述还原单元,进一步用于利用接收的每一码流中随同有该码流的在原始编码码流中的位置偏移量,将确定的主码流和辅码流还原为视频图像的原始编码码流,供解码器解码。The restoration unit is further used to restore the determined main code stream and auxiliary code stream to the original code stream of the video image by using the position offset of each received code stream accompanied by the code stream in the original encoded code stream Encoded code stream for decoder to decode. 16.如权利要求14所述的视频数据的接收装置,其特征在于,所述辅码流中包括编号,所述主码流中包括图像序列号,所述图像序列号用于表示各帧图像的播放顺序,所述编号用于确定该辅码流包含的数据包所属的背景帧的图像序列号以及该数据包中的数据在该背景帧中的位置;16. The device for receiving video data according to claim 14, wherein the sub-code stream includes a serial number, and the main code stream includes an image sequence number, and the image sequence number is used to represent each frame image The playback sequence, the number is used to determine the image sequence number of the background frame to which the data packet contained in the auxiliary stream belongs and the position of the data in the data packet in the background frame; 所述还原单元,进一步用于利用所述编号将确定的辅码流还原为背景帧,以及确定还原的背景帧的图像序列号;The restoration unit is further used to restore the determined secondary code stream to a background frame by using the serial number, and determine the image sequence number of the restored background frame; 利用还原的背景帧的图像序列号和主码流中包括的图像序列号,将该背景帧和主码流还原为原始编码码流,供解码器解码。Using the image serial number of the restored background frame and the image serial number included in the main code stream, the background frame and the main code stream are restored to the original encoded code stream for decoding by the decoder. 17.一种视频数据的传输系统,其特征在于,所述系统包括:权利要求9-13任一所述的视频数据的发送装置和权利要求14-16任一所述的视频数据的接收装置。17. A video data transmission system, characterized in that the system comprises: the video data sending device according to any one of claims 9-13 and the video data receiving device according to any one of claims 14-16 .
CN201410478748.2A 2014-09-18 2014-09-18 The sending, receiving method and its device and Transmission system of video data Expired - Fee Related CN104253996B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410478748.2A CN104253996B (en) 2014-09-18 2014-09-18 The sending, receiving method and its device and Transmission system of video data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410478748.2A CN104253996B (en) 2014-09-18 2014-09-18 The sending, receiving method and its device and Transmission system of video data

Publications (2)

Publication Number Publication Date
CN104253996A true CN104253996A (en) 2014-12-31
CN104253996B CN104253996B (en) 2018-02-09

Family

ID=52188474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410478748.2A Expired - Fee Related CN104253996B (en) 2014-09-18 2014-09-18 The sending, receiving method and its device and Transmission system of video data

Country Status (1)

Country Link
CN (1) CN104253996B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104661021A (en) * 2015-02-12 2015-05-27 国家电网公司 Method and device for evaluating video stream quality
WO2017133237A1 (en) * 2016-02-04 2017-08-10 中兴通讯股份有限公司 Method and device for adjusting display fluidity and mobile terminal
WO2017197828A1 (en) * 2016-05-17 2017-11-23 华为技术有限公司 Video encoding and decoding method and device
CN108288996A (en) * 2018-04-18 2018-07-17 惠州学院 Based on unmanned plane shooting video high-fidelity teletransmission method, apparatus, storage medium and electronic equipment
CN110691212A (en) * 2018-07-04 2020-01-14 阿里巴巴集团控股有限公司 Method and system for coding and decoding data
CN112843677A (en) * 2021-02-08 2021-05-28 脸萌有限公司 System delay determination method, device, equipment and storage medium
CN113438512A (en) * 2021-05-28 2021-09-24 福州市拾联信息科技有限公司 Control system and control method for fast switching image quality and low code stream of video data
CN114173153A (en) * 2021-12-03 2022-03-11 北京数码视讯技术有限公司 Video processing method, apparatus and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3824332B2 (en) * 1995-07-31 2006-09-20 株式会社エクシング Video information supply system
CN102413320A (en) * 2011-12-21 2012-04-11 上海大学 Method for realizing wireless network intelligent video monitoring system
CN103220530A (en) * 2013-04-22 2013-07-24 郑永春 System and method for processing high-definition picture for intelligent monitoring
CN103532923A (en) * 2012-11-14 2014-01-22 Tcl集团股份有限公司 Real-time media stream transmission method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3824332B2 (en) * 1995-07-31 2006-09-20 株式会社エクシング Video information supply system
CN102413320A (en) * 2011-12-21 2012-04-11 上海大学 Method for realizing wireless network intelligent video monitoring system
CN103532923A (en) * 2012-11-14 2014-01-22 Tcl集团股份有限公司 Real-time media stream transmission method and system
CN103220530A (en) * 2013-04-22 2013-07-24 郑永春 System and method for processing high-definition picture for intelligent monitoring

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104661021A (en) * 2015-02-12 2015-05-27 国家电网公司 Method and device for evaluating video stream quality
CN104661021B (en) * 2015-02-12 2017-03-08 国家电网公司 Quality evaluation method of video stream
WO2017133237A1 (en) * 2016-02-04 2017-08-10 中兴通讯股份有限公司 Method and device for adjusting display fluidity and mobile terminal
WO2017197828A1 (en) * 2016-05-17 2017-11-23 华为技术有限公司 Video encoding and decoding method and device
US11025952B2 (en) 2016-05-17 2021-06-01 Huawei Technologies Co., Ltd. Video encoding/decoding method and device
CN108288996A (en) * 2018-04-18 2018-07-17 惠州学院 Based on unmanned plane shooting video high-fidelity teletransmission method, apparatus, storage medium and electronic equipment
CN110691212A (en) * 2018-07-04 2020-01-14 阿里巴巴集团控股有限公司 Method and system for coding and decoding data
CN112843677A (en) * 2021-02-08 2021-05-28 脸萌有限公司 System delay determination method, device, equipment and storage medium
CN113438512A (en) * 2021-05-28 2021-09-24 福州市拾联信息科技有限公司 Control system and control method for fast switching image quality and low code stream of video data
CN114173153A (en) * 2021-12-03 2022-03-11 北京数码视讯技术有限公司 Video processing method, apparatus and electronic device

Also Published As

Publication number Publication date
CN104253996B (en) 2018-02-09

Similar Documents

Publication Publication Date Title
CN104253996B (en) The sending, receiving method and its device and Transmission system of video data
CN104333762A (en) Video decoding method
EP2946556B1 (en) Decoder and encoder and methods for coding of a video sequence
MX2014010252A (en) Packet transmission/reception apparatus and method using forward error correction scheme.
CN103379333B (en) The decoding method and its corresponding device of decoding method, video sequence code stream
CN114257818B (en) Video encoding and decoding methods, devices, equipment and storage medium
CN111464812B (en) Method, system, device, storage medium and processor for encoding and decoding
CN115134629B (en) Video transmission method, system, equipment and storage medium
CN108419041B (en) Video data processing method and device
CN103747258A (en) Encryption processing method for high-performance video coding standard
CN109245863B (en) Apparatus and method for transmitting and receiving forward error correction packet
UA129306C2 (en) ENCODER, DECODER AND CORRESPONDING METHODS OF ADAPTIVE CONTINUOUS FILTERING
JP2012227929A (en) Coding method and coding device for coding 3d video signal, and corresponding decoding method and decoding device
US20140092995A1 (en) Electronic devices for signaling a random access point picture message
US10477246B2 (en) Method for encoding streams of video data based on groups of pictures (GOP)
WO2021196960A1 (en) Encrypted video call method and apparatus, and device and storage medium
KR102296987B1 (en) Apparatus, method and system for hevc decoding image based on distributed system and machine learning model using block chain network
CN115348456B (en) Video image processing method, device, equipment and storage medium
CN101296166B (en) Index-based multimedia data measurement method
JP6197708B2 (en) Moving picture transmission system, moving picture encoding apparatus, moving picture decoding apparatus, moving picture encoding computer program, and moving picture decoding computer program
WO2012095030A1 (en) Slice encoding method and device and slice decoding method and device
KR20220082578A (en) Forensic marking device and method with secret sharing technology applied
CN103327336B (en) A kind of method and apparatus of 3-dimensional encoding
US20120183094A1 (en) Data transmitting device and data transmitting/receiving method
CN104320644A (en) Method, system and device of encoding and decoding depth information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180209

Termination date: 20200918