[go: up one dir, main page]

CN101977322A - Screen coding system based on universal video coding standard - Google Patents

Screen coding system based on universal video coding standard Download PDF

Info

Publication number
CN101977322A
CN101977322A CN 201010539275 CN201010539275A CN101977322A CN 101977322 A CN101977322 A CN 101977322A CN 201010539275 CN201010539275 CN 201010539275 CN 201010539275 A CN201010539275 A CN 201010539275A CN 101977322 A CN101977322 A CN 101977322A
Authority
CN
China
Prior art keywords
screen
image
encoder
video coding
color space
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 201010539275
Other languages
Chinese (zh)
Inventor
谢伟凯
金磊
张智强
鲁晨平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Jiao Tong University
Original Assignee
Shanghai Jiao Tong University
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 Shanghai Jiao Tong University filed Critical Shanghai Jiao Tong University
Priority to CN 201010539275 priority Critical patent/CN101977322A/en
Publication of CN101977322A publication Critical patent/CN101977322A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

一种视频图像处理技术领域的基于通用视频编码标准的屏幕编码系统,包括:屏幕信息获取模块、颜色空间转换模块和改进型通用编码器,屏幕信息获取模块与颜色空间转换模块相连接并传输原始屏幕图像和变化区域信息,颜色空间转换模块与改进型通用编码器相连接并传输变化区域信息以及编码输入图像,改进型通用编码器输出编码压缩后的数据。本发明能够有效降低CPU占用率。

A screen coding system based on a general video coding standard in the technical field of video image processing, including: a screen information acquisition module, a color space conversion module and an improved general encoder, the screen information acquisition module is connected with the color space conversion module and transmits the original The screen image and the changed area information, the color space conversion module is connected with the improved universal encoder to transmit the changed area information and encoded input image, and the improved universal encoder outputs encoded and compressed data. The invention can effectively reduce the CPU occupation rate.

Description

基于通用视频编码标准的屏幕编码系统 Screen Coding System Based on Universal Video Coding Standard

技术领域technical field

本发明涉及的是一种视频图像处理技术领域的系统,具体是一种基于通用视频编码标准的屏幕编码系统。The present invention relates to a system in the technical field of video image processing, in particular to a screen coding system based on general video coding standards.

背景技术Background technique

在计算机远程网络教学、监控系统、网络会议等方面,计算机屏幕视频压缩是一种重要的环节,由于屏幕图像分辨率较高,且内容复杂,屏幕图像对网络带宽要求较高。视频编码是指把数字视频流序列用更少的数据位进行存放的方法,而屏幕视频的编码以下简称屏幕编码,是指数字视频流序列由屏幕图像产生。这一技术可以有效地减少需要传输的数据量,从而降低对网络的压力。In computer remote network teaching, monitoring system, network conference, etc., computer screen video compression is an important link. Due to the high resolution and complex content of the screen image, the screen image requires high network bandwidth. Video coding refers to a method of storing digital video stream sequences with fewer data bits, and screen video coding is hereinafter referred to as screen coding, which means that digital video stream sequences are generated from screen images. This technology can effectively reduce the amount of data that needs to be transmitted, thereby reducing the pressure on the network.

与普通视频相比,屏幕视频有着分辨率高,帧与帧之间变化不显著等特点。而通用视频编码标准,考虑到一般视频中,图像内容和物体运动很复杂,通用视频编码标准提供了丰富的压缩工具,因此为了达到较好的压缩效果,通常需要大量的计算。如果将通用视频编码标准直接用于屏幕编码,会占用大量的CPU时间,特别应用于实时直播场景,这样高的CPU占用率是难以接受的。Compared with ordinary video, screen video has the characteristics of high resolution and insignificant frame-to-frame changes. As for the general video coding standard, considering the complex image content and object motion in general video, the general video coding standard provides a wealth of compression tools, so in order to achieve a better compression effect, a large number of calculations are usually required. If the general video coding standard is directly used for screen coding, it will take up a lot of CPU time, especially for real-time live broadcast scenarios, such a high CPU usage is unacceptable.

所以针对屏幕视频压缩,通常采样专用的屏幕视频编码方法进行压缩。但屏幕编码方法对屏幕视频内容有着较大的局限性,当屏幕图像变化剧烈,特别是播放一段视频时,压缩效果就会变差。Therefore, for screen video compression, a dedicated screen video coding method is usually sampled for compression. However, the screen encoding method has great limitations on the screen video content. When the screen image changes drastically, especially when a video is played, the compression effect will become worse.

经对现有技术的文献检索发现,中国专利文献号CN101014127A的专利普适环境下的远程桌面同步方法提出了一种基于变化子区域的运动预测和补偿的屏幕视频编码方案,该方案具有一定优点,但屏幕图像的持续变化剧烈变化会导致压缩率会下降,使用有一定局限性。After searching the literature of the prior art, it is found that the remote desktop synchronization method in the patented pervasive environment of the Chinese Patent Document No. CN101014127A proposes a screen video coding scheme based on motion prediction and compensation of changing sub-regions, which has certain advantages , but the continuous and drastic changes of the screen image will cause the compression rate to drop, and the use has certain limitations.

发明内容Contents of the invention

本发明针对现有技术存在的上述不足,提供一种基于通用视频编码标准的屏幕编码系统,能够有效降低CPU占用率。The present invention aims at the above-mentioned deficiencies in the prior art, and provides a screen coding system based on a general video coding standard, which can effectively reduce CPU usage.

本发明是通过以下技术方案实现的,本发明包括:屏幕信息获取模块、颜色空间转换模块和改进型通用编码器,其中:屏幕信息获取模块与颜色空间转换模块相连接并传输原始屏幕图像和变化区域信息,颜色空间转换模块与改进型通用编码器相连接并传输变化区域信息以及编码输入图像,改进型通用编码器输出编码压缩后的数据。The present invention is achieved through the following technical solutions, and the present invention includes: a screen information acquisition module, a color space conversion module and an improved universal encoder, wherein: the screen information acquisition module is connected with the color space conversion module and transmits the original screen image and the changed The area information, color space conversion module is connected with the improved universal encoder and transmits the changed area information and encodes the input image, and the improved universal encoder outputs encoded and compressed data.

所述的编码输入图像是指:符合改进型通用编码器输入图像格式要求的图像;The coded input image refers to an image that meets the requirements of the input image format of the improved general encoder;

所述的屏幕信息获取模块用于从计算机显示子系统获取当前屏幕图像信息以及变化区域信息,其中:变化区域信息是指:由矩形的坐标描述的当前屏幕图像与前一帧图像相比发生变化的像素组成的图像区域的最小外接矩形所围成的区域。The screen information acquisition module is used to obtain current screen image information and change area information from the computer display subsystem, wherein: change area information refers to: the current screen image described by the coordinates of the rectangle changes compared with the previous frame image The area enclosed by the smallest circumscribed rectangle of the image area composed of pixels.

所述的颜色空间转换模块用于将屏幕信息获取模块中获取的原始屏幕图像进行颜色空间转换并输出一幅符合改进的基于通用视频编码标准的编码器输入图像格式要求的图像;The color space conversion module is used to perform color space conversion on the original screen image obtained in the screen information acquisition module and output an image that meets the requirements of an improved universal video coding standard-based encoder input image format;

所述的通用视频编码标准是指:将图像切分成指定大小的像素块,即宏块,以宏块为单位进行编码压缩;并且支持以“跳过”的压缩模进行编码,即当已压缩的前一帧图像存在与当前宏块内容完全一致的宏块,即预测宏块,预测宏块与当前宏块在图像中位置相同,当压缩该当前宏块时仅记录预测宏块的位置信息和“跳过”模式的标志,不记录其他关于当前宏块的信息。The general video coding standard refers to: dividing an image into pixel blocks of a specified size, that is, macroblocks, and encoding and compressing them in units of macroblocks; and supporting encoding with a "skip" compression mode, that is, when compressed There is a macroblock completely consistent with the content of the current macroblock in the previous frame of the image, that is, the predicted macroblock. The predicted macroblock and the current macroblock have the same position in the image. When compressing the current macroblock, only the position information of the predicted macroblock is recorded. and "skip" mode flags, no other information about the current macroblock is recorded.

所述的改进型通用编码器用于对编码输入图像进行编码压缩并输出压缩数据,该改进型通用编码器包括:基于通用视频编码标准的编码器和一个新增的内嵌在通用视频编码器中的“跳过”模式快速检测单元,其中:“跳过”模式快速检测单元,用于对不在变化区域内的宏块,即未变化宏块,为其直接选择“跳过”模式来进行压缩。The improved general encoder is used to encode and compress the encoded input image and output the compressed data. The improved general encoder includes: an encoder based on the general video coding standard and a newly-added embedded in the general video encoder The "skip" mode fast detection unit, wherein: the "skip" mode fast detection unit is used to directly select the "skip" mode for the macroblock that is not in the changed area, that is, the unchanged macroblock, for compression .

本发明可解决当屏幕中播放视频时,使用传统的屏幕专用编码方案压缩效果较差的问题,并且相比使用通用视频编码标准编码器进行屏幕编码时,该系统能够有效降低CPU占用率。本发明的系统可以广泛地应用于计算机远程网络教学、监控系统、网络会议、计算机远程控制系统等领域。The invention can solve the problem that the traditional screen-specific encoding scheme has poor compression effect when playing video on the screen, and the system can effectively reduce the CPU occupation rate compared with the use of a general video encoding standard encoder for screen encoding. The system of the invention can be widely used in the fields of computer remote network teaching, monitoring system, network conference, computer remote control system and the like.

附图说明Description of drawings

图1是本发明系统结构图。Fig. 1 is a system structure diagram of the present invention.

图2是实施例2中系统结构图。Fig. 2 is a system structure diagram in Embodiment 2.

图3是实施例2中颜色空间转换模块的操作示意图。FIG. 3 is a schematic diagram of the operation of the color space conversion module in Embodiment 2.

图4是实施例2中改进的h.264通用视频编码器的操作流程图。FIG. 4 is an operation flow chart of the improved h.264 general-purpose video encoder in Embodiment 2.

具体实施方式Detailed ways

下面对本发明的实施例作详细说明,本实施例在以本发明技术方案为前提下进行实施,给出了详细的实施方式和具体的操作过程,但本发明的保护范围不限于下述的实施例。The embodiments of the present invention are described in detail below. This embodiment is implemented on the premise of the technical solution of the present invention, and detailed implementation methods and specific operating procedures are provided, but the protection scope of the present invention is not limited to the following implementation example.

实施例1Example 1

如图1所示,本实施例包括:屏幕信息获取模块110、颜色空间转换模块120和改进型通用编码器130,其中:屏幕信息获取模块110与颜色空间转换模块120相连接并传输原始屏幕图像101和变化区域信息102,颜色空间转换模块与改进型通用编码器相连接,并传输变化区域信息,以及一幅符合改进型通用编码器输入图像格式要求的图像,以下简称为编码输入图像103,改进型通用编码器输出编码压缩后的数据104。As shown in Figure 1, this embodiment includes: a screen information acquisition module 110, a color space conversion module 120 and an improved universal encoder 130, wherein: the screen information acquisition module 110 is connected with the color space conversion module 120 and transmits the original screen image 101 and change area information 102, the color space conversion module is connected to the improved general encoder, and transmits the change area information, as well as an image that meets the requirements of the input image format of the improved general encoder, hereinafter referred to as the encoded input image 103, The modified universal encoder outputs coded compressed data 104 .

所述的屏幕信息获取模块110用于从计算机显示子系统获取当前屏幕图像信息以及变化区域信息102,其中:变化区域信息102是指:由矩形的坐标描述的当前屏幕图像与前一帧图像相比发生变化的像素组成的图像区域的最小外接矩形所围成的区域。The screen information obtaining module 110 is used to obtain the current screen image information and the change area information 102 from the computer display subsystem, wherein: the change area information 102 refers to: the current screen image described by the coordinates of the rectangle is the same as the previous frame image The area enclosed by the smallest circumscribed rectangle of the image area composed of pixels whose ratio has changed.

所述的颜色空间转换模块120用于将屏幕信息获取模块110中获取的原始屏幕图像进行颜色空间转换并输出一幅符合改进的基于通用视频编码标准的编码器输入图像格式要求的图像,该通用视频编码标准是指:首先将图像切分成指定大小的像素块,即宏块,以宏块为单位进行编码压缩,然后以“跳过”的压缩模进行编码,即当已压缩的前一帧图像存在与当前宏块内容完全一致的宏块,即预测宏块,且预测宏块与当前宏块在图像中位置相同,当压缩该当前宏块时仅记录预测宏块的位置信息和“跳过”模式的标志,不记录其他关于当前宏块的信息。The color space conversion module 120 is used to perform color space conversion on the original screen image acquired in the screen information acquisition module 110 and output an image that meets the requirements of the input image format of the encoder based on the improved general video coding standard. The video coding standard refers to: first divide the image into pixel blocks of a specified size, that is, macroblocks, encode and compress in units of macroblocks, and then encode with a "skip" compression mode, that is, when the compressed previous frame There is a macroblock in the image that is completely consistent with the content of the current macroblock, that is, the predicted macroblock, and the position of the predicted macroblock and the current macroblock in the image is the same. When compressing the current macroblock, only the position information of the predicted macroblock and the "jump" are recorded Over" mode flag, do not record other information about the current macroblock.

所述的改进型通用编码器130用于对编码输入图像进行编码压缩并输出压缩数据,该改进型通用编码器130包括:基于通用视频编码标准的编码器和一个新增的内嵌在通用视频编码器中的“跳过”模式快速检测单元,其中:“跳过”模式快速检测单元,用于对不在变化区域内的宏块,即未变化宏块,为其直接选择“跳过”模式来进行压缩。The improved general encoder 130 is used to encode and compress the encoded input image and output compressed data. The improved general encoder 130 includes: an encoder based on the general video coding standard and a new embedded general video The "skip" mode fast detection unit in the encoder, wherein: the "skip" mode fast detection unit is used to directly select the "skip" mode for the macroblocks that are not in the changed area, that is, the unchanged macroblocks to compress.

在基于通用编码标准的屏幕编码系统中,屏幕信息获取模块110首先获取当前屏幕图像以及变化区域等信息,将这些信息放入缓冲区,而颜色空间转换模块120,从缓冲区中取出屏幕图像,根据变化区域信息102进行颜色空间的转换,输出符合改进的基于通用视频编码标准的编码器输入格式要求的图像,即所谓的编码输入图像,改进型通用编码器130利用变化区域对编码输入图像进行压缩。通用视频编码器中包含一个“跳过”模式快速检测装置131,其作用是依据屏幕信息获取模块110提供的变化区域,快速判断当前宏块是否可用“跳过”模式进行压缩,即对于不在变化区域内的宏块,都应该直接使用“跳过”模式。最后,通用视频编码器将压缩后的数据输出。以上过程称为屏幕录制。In the screen coding system based on the universal coding standard, the screen information acquisition module 110 first obtains information such as the current screen image and the changed area, and puts these information into the buffer, and the color space conversion module 120 takes out the screen image from the buffer, Convert the color space according to the change area information 102, and output an image that meets the requirements of the input format of the encoder based on the improved universal video coding standard, that is, the so-called encoded input image. The improved general encoder 130 uses the changed area to encode the input image. compression. A "skip" mode fast detection device 131 is included in the general video encoder, and its function is to quickly judge whether the current macroblock can be compressed in the "skip" mode according to the change area provided by the screen information acquisition module 110, that is, for the non-changing The macroblocks in the area should use the "skip" mode directly. Finally, the general video encoder outputs the compressed data. The above process is called screen recording.

实施例2Example 2

如图2所示的是基于通用编码标准的屏幕编码系统的一个实施例,该实施例系统使用Windows操作系统下的Mirror Driver机制来获取屏幕信息,采用通用视频编码标准h.264对屏幕图像序列形成的视频进行压缩。h.264标准将视频图像切割成大小为16*16的宏块进行压缩,并且包含一种P_Skip模式来表示当前宏块与预测宏块内容相同的情况。As shown in Figure 2 is an embodiment of the screen coding system based on the general coding standard, this embodiment system uses the Mirror Driver mechanism under the Windows operating system to obtain screen information, adopts the general video coding standard h.264 to screen image sequence The resulting video is compressed. The h.264 standard cuts video images into macroblocks with a size of 16*16 for compression, and includes a P_Skip mode to indicate that the content of the current macroblock is the same as that of the predicted macroblock.

Windows操作系统屏幕图像的格式为彩色位图,称为RGB格式;本实施例系统采用h.264的高级简表high profile,该简表支持的输入图像颜色格式为YUV,所以颜色空间转换模块120,负责将RGB转换成YUV。The format of the Windows operating system screen image is a color bitmap, called RGB format; the advanced profile high profile of h.264 is adopted by the present embodiment system, and the input image color format supported by this profile is YUV, so the color space conversion module 120 , responsible for converting RGB to YUV.

该实施例系统包括以下5个模块:Mirror driver屏幕信息获取模块221,RGB到YUV转换模块222,改进的h.264通用视频编码器223,计时器224和用户界面225。其中的计时器,用于控制屏幕编码系统根据指定的频率进行屏幕录制,直到人为结束屏幕录制过程。其中的用户界面,使用户能够指定屏幕编码的参数以及控制屏幕录制的开始和结束。This embodiment system includes following 5 modules: Mirror driver screen information acquisition module 221, RGB to YUV conversion module 222, improved h.264 universal video encoder 223, timer 224 and user interface 225. The timer in it is used to control the screen encoding system to perform screen recording according to the specified frequency until the screen recording process is ended artificially. The user interface in it enables the user to specify the parameters of the screen encoding as well as control the start and end of the screen recording.

首先,由Mirror driver屏幕信息获取模块221获取屏幕信息,包括屏幕图像,变化区域,还包括当前屏幕的分辨率和颜色格式。First, the screen information is obtained by the Mirror driver screen information acquisition module 221, including the screen image, the changed area, and the resolution and color format of the current screen.

计算机屏幕的分辨率为1024*768或者更高,获取屏幕图像前,系统会自动将屏幕的分辨率改为800*600,这是为了避免编码过程中数据量太大,屏幕录制结束时,系统会自动将分辨率调整回原来的值。获取的颜色格式一般为32位RGB位图,具体为32位BGRA。The resolution of the computer screen is 1024*768 or higher. Before acquiring the screen image, the system will automatically change the screen resolution to 800*600. This is to avoid too much data during the encoding process. When the screen recording ends, the system will The resolution is automatically adjusted back to the original value. The acquired color format is generally a 32-bit RGB bitmap, specifically a 32-bit BGRA.

实施例系统使用Mirror Driver获取屏幕信息,Mirror Driver是Windows提供一种虚拟显示驱动器技术,将实际的视频设备如显示屏上物理操作在一片内存空间进行模拟。因此可以通过这一机制获取屏幕图像准确的矩形变化区域。实施例系统将变化屏幕图像切分成4*4的16个矩形子区域,对每个矩形区域分别获取最小的矩形变化区域,每个矩形变化区域由左上角和右下角的坐标表示,一共16组坐标。The embodiment system uses Mirror Driver to obtain screen information. Mirror Driver is a virtual display driver technology provided by Windows, which simulates the physical operation of actual video equipment such as a display screen in a piece of memory space. Therefore, the accurate rectangular change area of the screen image can be obtained through this mechanism. The embodiment system divides the changing screen image into 16 rectangular sub-areas of 4*4, and obtains the smallest rectangular changing area for each rectangular area, and each rectangular changing area is represented by the coordinates of the upper left corner and the lower right corner, a total of 16 groups coordinate.

实施例系统选用通用编码器130是遵循的h.264标准的开源编码器x264,该编码器速度快,压缩效果好,在视频编码领域被广泛使用,该编码器支持的输入图像颜色空间具体为YUV420。因此,RGB到YUV转换模块将BGRA格式的屏幕图像转换成YUV420格式的编码输入图像。如图3所示,操作时,对变化区域内的像素进行颜色空间转换图3a,并将这些像素复制到前一帧图像的相应位置图3b,覆盖因变化而无效的区域图3c。The general encoder 130 used in the embodiment system is an open source encoder x264 that follows the h.264 standard. This encoder is fast and has a good compression effect, and is widely used in the field of video encoding. The input image color space supported by this encoder is specifically YUV420. Therefore, the RGB to YUV conversion module converts the screen image in BGRA format into an encoded input image in YUV420 format. As shown in Figure 3, during operation, color space conversion is performed on the pixels in the changed area Figure 3a, and these pixels are copied to the corresponding position Figure 3b of the previous frame image, covering the invalid area Figure 3c due to the change.

x.264视频编码器包括以下几个主要模块:The x.264 video encoder includes the following main modules:

1)宏块切分装置,用于将输入图像切分成16*16的像素宏块。1) The macroblock segmentation device is used to segment the input image into 16*16 pixel macroblocks.

2)帧类型判断器,判断待编码图像的帧类型。在x264中,有三种帧类型,关键帧称为I帧,单向预测帧称为P帧,双向预测帧B帧。考虑到本实施例主要面向实时应用,故将B帧的功能关闭。其中,I帧中不能包括“跳过P_Skip”模式的模块。X264根据图像变化程度scenecut和预设的图片组长度GOP,判断当前图像是否为关键I帧。本实施例系统设scenecut=40,GOP=100。2) A frame type determiner, which determines the frame type of the image to be encoded. In x264, there are three frame types, key frames are called I frames, unidirectional predictive frames are called P frames, and bidirectional predictive frames are B frames. Considering that this embodiment is mainly oriented to real-time applications, the function of the B frame is disabled. Wherein, the I frame cannot include the modules of the "skip P_Skip" mode. X264 judges whether the current image is a key I frame according to the image change degree scenecut and the preset GOP length. The system of this embodiment sets scenecut=40, GOP=100.

3)压缩模式决策器,用于判断当前宏块的压缩模式。其中包含一个“跳过P_Skip”模式快速检测装置,其作用是依据屏幕信息获取模块110提供的变化区域,快速判断当前宏块是否可用“跳过P_Skip”模式进行压缩,即对于不在变化区域内的宏块,都应该直接使用“跳过P_Skip”模式。3) A compression mode decider, used to determine the compression mode of the current macroblock. Which includes a "skip P_Skip" mode fast detection device, its function is to quickly judge whether the current macroblock can be compressed in the "skip P_Skip" mode according to the change area provided by the screen information acquisition module 110, that is, for the area not in the change area Macroblocks should use the "Skip P_Skip" mode directly.

4)压缩器,用于根据选择的预测模式进行数据压缩,并将压缩后的数据写成一个视频文件。4) A compressor, configured to perform data compression according to the selected prediction mode, and write the compressed data into a video file.

如图4所示,编码输入图像进行宏块切分和帧类型判断之后,由压缩模式决策器进行压缩模式的选择,如果该帧不是关键帧,则首先由“跳过”模式快速检测装置根据变化区域信息102,检测当前宏块是否位于变化区域中,当宏块不在变化区域中,为其选择“跳过P_Skip”模式。对于变化区域中的宏块,x264的宏块压缩模式决策器会为其选择适当的压缩模式。对于关键帧,x264压缩模式决策器将按照默认的策略进行模式决策。最后,压缩器根据压缩模式进行数据压缩,并将压缩后的数据写成一个视频文件。As shown in Figure 4, after the coded input image is segmented into macroblocks and judged by the frame type, the compression mode is selected by the compression mode decider. The change area information 102 detects whether the current macroblock is in the change area, and when the macroblock is not in the change area, select the "Skip P_Skip" mode for it. For macroblocks in the change area, x264's macroblock compression mode decider will select the appropriate compression mode for it. For key frames, the x264 compression mode decider will make mode decisions according to the default strategy. Finally, the compressor performs data compression according to the compression mode, and writes the compressed data into a video file.

本实施例在通用视频编码器x264的基础上,增加了一个“跳过P_Skip”模式快速检测模块,该模块利用变化区域信息102对无变化的宏块进行压缩模式的快速决策。对于颜色空间转换模块120,本实施例利用变化区域信息102,减少了需要进行颜色空间转换的图像区域。因此,本实施例系统相对于未使用变化区域信息102的一般基于通用编码器130的屏幕录制系统,运算量有明显的减小。In this embodiment, on the basis of the general video encoder x264, a "Skip P_Skip" mode fast detection module is added, and this module uses the changed area information 102 to make a fast decision on the compression mode of the unchanged macroblock. For the color space conversion module 120 , this embodiment uses the change area information 102 to reduce the image area that needs color space conversion. Therefore, compared with the general screen recording system based on the universal encoder 130 that does not use the change region information 102, the system of this embodiment has significantly reduced computation.

在配置在CPU core 2duo2.0GHz,内存1G的笔记本电脑上用vTune9.0测试运行该屏幕录制系统的CPU的使用情况。得到的数据显示,利用变化区域进行优化后的颜色空间转换和编码操作时间比起没有优化的操作时间,占用的CPU时钟数分别减少了99.58%和54.84%,整个系统占用的CPU时钟数减少了62%。另外XP给出的,含“跳过”模式快速检测的基于x264屏幕录制系统的CPU使用率,也从未改进系统的的44%降低到25%。Use vTune9.0 to test the CPU usage of the screen recording system on a notebook computer configured with CPU core 2duo2.0GHz and memory 1G. The obtained data shows that compared with the operation time without optimization, the operation time of color space conversion and encoding after using the change area is reduced by 99.58% and 54.84%, respectively, and the number of CPU clocks occupied by the whole system is reduced. 62%. In addition, the CPU usage of the x264 screen recording system based on the "skip" mode fast detection given by XP has also been reduced from 44% of the unimproved system to 25%.

上述实验结果表明,基于通用视频编码标准的屏幕编码系统,相比于使用通用视频编码标准编码器进行屏幕编码时,该系统能够有效降低CPU占用率。The above experimental results show that the screen coding system based on the general video coding standard can effectively reduce the CPU usage compared with the screen coding using the general video coding standard encoder.

Claims (6)

1.一种基于通用视频编码标准的屏幕编码系统,其特征在于,包括:屏幕信息获取模块、颜色空间转换模块和改进型通用编码器,其中:屏幕信息获取模块与颜色空间转换模块相连接并传输原始屏幕图像和变化区域信息,颜色空间转换模块与改进型通用编码器相连接并传输变化区域信息以及编码输入图像,改进型通用编码器输出编码压缩后的数据。1. A screen encoding system based on general video encoding standards, characterized in that it comprises: a screen information acquisition module, a color space conversion module and an improved general encoder, wherein: the screen information acquisition module is connected with the color space conversion module and The original screen image and the changed area information are transmitted, the color space conversion module is connected with the improved general encoder and transmits the changed area information and encoded input image, and the improved general encoder outputs encoded and compressed data. 2.根据权利要求1所述的基于通用视频编码标准的屏幕编码系统,其特征是,所述的编码输入图像是指:符合改进型通用编码器输入图像格式要求的图像。2. The screen coding system based on the universal video coding standard according to claim 1, characterized in that, said coded input image refers to an image conforming to the input image format requirements of the improved universal coder. 3.根据权利要求1所述的基于通用视频编码标准的屏幕编码系统,其特征是,所述的屏幕信息获取模块用于从计算机显示子系统获取当前屏幕图像信息以及变化区域信息,其中:变化区域信息是指:由矩形的坐标描述的当前屏幕图像与前一帧图像相比发生变化的像素组成的图像区域的最小外接矩形所围成的区域。3. The screen coding system based on the universal video coding standard according to claim 1, wherein the screen information acquisition module is used to obtain current screen image information and change area information from the computer display subsystem, wherein: change The area information refers to the area enclosed by the smallest circumscribed rectangle of the image area composed of pixels whose current screen image has changed compared with the previous frame image described by the coordinates of the rectangle. 4.根据权利要求1所述的基于通用视频编码标准的屏幕编码系统,其特征是,所述的颜色空间转换模块用于将屏幕信息获取模块中获取的原始屏幕图像进行颜色空间转换并输出一幅符合改进的基于通用视频编码标准的编码器输入图像格式要求的图像。4. The screen coding system based on the universal video coding standard according to claim 1, wherein the color space conversion module is used to perform color space conversion on the original screen image obtained in the screen information acquisition module and output a A picture that conforms to the requirements of the input picture format of the modified common video coding standard-based encoder. 5.根据上述任一权利要求所述的基于通用视频编码标准的屏幕编码系统,其特征是,所述的通用视频编码标准是指:将图像切分成指定大小的像素块,即宏块,以宏块为单位进行编码压缩;并且支持以“跳过”的压缩模进行编码,即当已压缩的前一帧图像存在与当前宏块内容完全一致的宏块,即预测宏块,预测宏块与当前宏块在图像中位置相同,当压缩该当前宏块时仅记录预测宏块的位置信息和“跳过”模式的标志,不记录其他关于当前宏块的信息。5. The screen coding system based on the general video coding standard according to any one of the preceding claims, wherein the general video coding standard refers to: dividing an image into pixel blocks of a specified size, i.e. macroblocks, to Encoding and compression is performed in units of macroblocks; and encoding is supported by the "skip" compression mode, that is, when the compressed previous frame image has a macroblock that is completely consistent with the content of the current macroblock, that is, the predicted macroblock, the predicted macroblock It is the same as the position of the current macroblock in the image. When compressing the current macroblock, only the position information of the predicted macroblock and the flag of the "skip" mode are recorded, and other information about the current macroblock is not recorded. 6.根据权利要求1或2所述的基于通用视频编码标准的屏幕编码系统,其特征是,所述的改进型通用编码器用于对编码输入图像进行编码压缩并输出压缩数据,该改进型通用编码器包括:基于通用视频编码标准的编码器和一个新增的内嵌在通用视频编码器中的“跳过”模式快速检测单元,其中:“跳过”模式快速检测单元,用于对不在变化区域内的宏块,即未变化宏块,为其直接选择“跳过”模式来进行压缩。6. The screen coding system based on the universal video coding standard according to claim 1 or 2, wherein the improved universal encoder is used to encode and compress the encoded input image and output compressed data, and the improved universal encoder The encoder includes: an encoder based on general video coding standards and a newly added "skip" mode fast detection unit embedded in the general video coder, wherein: the "skip" mode fast detection unit is used for For the macroblocks in the changed area, that is, the unchanged macroblocks, the "skip" mode is directly selected for compression.
CN 201010539275 2010-11-10 2010-11-10 Screen coding system based on universal video coding standard Pending CN101977322A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010539275 CN101977322A (en) 2010-11-10 2010-11-10 Screen coding system based on universal video coding standard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010539275 CN101977322A (en) 2010-11-10 2010-11-10 Screen coding system based on universal video coding standard

Publications (1)

Publication Number Publication Date
CN101977322A true CN101977322A (en) 2011-02-16

Family

ID=43577164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010539275 Pending CN101977322A (en) 2010-11-10 2010-11-10 Screen coding system based on universal video coding standard

Country Status (1)

Country Link
CN (1) CN101977322A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821278A (en) * 2012-07-27 2012-12-12 深信服网络科技(深圳)有限公司 Remote desktop image transmission method and remote desktop image transmission system
CN103414890A (en) * 2013-07-08 2013-11-27 宇龙计算机通信科技(深圳)有限公司 Realization method of remote desktop and device thereof
WO2015034793A1 (en) * 2013-09-05 2015-03-12 Microsoft Corporation Universal screen content codec
WO2016082285A1 (en) * 2014-11-28 2016-06-02 广州华多网络科技有限公司 Video processing apparatus and method and terminal device
CN105677279A (en) * 2016-01-08 2016-06-15 全时云商务服务股份有限公司 Desktop area sharing method and system and corresponding sharing terminal and watching terminal
WO2017041551A1 (en) * 2015-09-11 2017-03-16 中兴通讯股份有限公司 Spice protocol-based image transmission method and apparatus
CN106681679A (en) * 2017-01-19 2017-05-17 深圳市云点科技有限公司 Remote desktop picture transmission method and device
CN107079192A (en) * 2014-10-24 2017-08-18 英特尔公司 Shown using on the active screen of compressed video data
CN109309867A (en) * 2017-07-28 2019-02-05 中兴通讯股份有限公司 Display methods, display terminal and the computer readable storage medium of terminal
CN111741093A (en) * 2020-06-12 2020-10-02 喻军 Screen-based data transmission method, screen-based data reception device, screen-based data setting system, and readable storage medium
CN111953986A (en) * 2020-07-23 2020-11-17 西安万像电子科技有限公司 Image processing method and device
CN115955573A (en) * 2023-03-15 2023-04-11 广州思涵信息科技有限公司 Real-time remote synchronous projection method for two-dimensional image

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1455372A (en) * 2003-05-29 2003-11-12 上海交通大学 Screen sharing and synchronous recording method based on IP network
US20040249980A1 (en) * 2003-06-03 2004-12-09 Kevin Hutler System, computer program product, and method for transmitting compressed screen images from one computer to another or many computers.
CN1622618A (en) * 2004-12-24 2005-06-01 北京中星微电子有限公司 A screen broadcasting method
CN101014127A (en) * 2007-01-26 2007-08-08 华中科技大学 Remote desktop synchronizing method in ubiquitous environment
US20100104021A1 (en) * 2008-10-27 2010-04-29 Advanced Micro Devices, Inc. Remote Transmission and Display of Video Data Using Standard H.264-Based Video Codecs

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1455372A (en) * 2003-05-29 2003-11-12 上海交通大学 Screen sharing and synchronous recording method based on IP network
US20040249980A1 (en) * 2003-06-03 2004-12-09 Kevin Hutler System, computer program product, and method for transmitting compressed screen images from one computer to another or many computers.
CN1622618A (en) * 2004-12-24 2005-06-01 北京中星微电子有限公司 A screen broadcasting method
CN101014127A (en) * 2007-01-26 2007-08-08 华中科技大学 Remote desktop synchronizing method in ubiquitous environment
US20100104021A1 (en) * 2008-10-27 2010-04-29 Advanced Micro Devices, Inc. Remote Transmission and Display of Video Data Using Standard H.264-Based Video Codecs

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821278B (en) * 2012-07-27 2015-03-11 深信服网络科技(深圳)有限公司 Remote desktop image transmission method and remote desktop image transmission system
CN102821278A (en) * 2012-07-27 2012-12-12 深信服网络科技(深圳)有限公司 Remote desktop image transmission method and remote desktop image transmission system
CN103414890A (en) * 2013-07-08 2013-11-27 宇龙计算机通信科技(深圳)有限公司 Realization method of remote desktop and device thereof
CN103414890B (en) * 2013-07-08 2016-12-28 宇龙计算机通信科技(深圳)有限公司 The implementation method of remote desktop and device
WO2015034793A1 (en) * 2013-09-05 2015-03-12 Microsoft Corporation Universal screen content codec
CN107079192A (en) * 2014-10-24 2017-08-18 英特尔公司 Shown using on the active screen of compressed video data
CN107079192B (en) * 2014-10-24 2020-02-07 英特尔公司 Dynamic on-screen display using compressed video streams
WO2016082285A1 (en) * 2014-11-28 2016-06-02 广州华多网络科技有限公司 Video processing apparatus and method and terminal device
CN106534859A (en) * 2015-09-11 2017-03-22 中兴通讯股份有限公司 Image transmission method and device based on SPICE protocol
WO2017041551A1 (en) * 2015-09-11 2017-03-16 中兴通讯股份有限公司 Spice protocol-based image transmission method and apparatus
CN106534859B (en) * 2015-09-11 2021-01-15 中兴通讯股份有限公司 Image transmission method and device based on SPICE protocol
CN105677279A (en) * 2016-01-08 2016-06-15 全时云商务服务股份有限公司 Desktop area sharing method and system and corresponding sharing terminal and watching terminal
CN106681679A (en) * 2017-01-19 2017-05-17 深圳市云点科技有限公司 Remote desktop picture transmission method and device
CN109309867A (en) * 2017-07-28 2019-02-05 中兴通讯股份有限公司 Display methods, display terminal and the computer readable storage medium of terminal
CN111741093A (en) * 2020-06-12 2020-10-02 喻军 Screen-based data transmission method, screen-based data reception device, screen-based data setting system, and readable storage medium
CN111741093B (en) * 2020-06-12 2023-06-30 喻军 Screen-based data transmitting method, receiving device, setting system and readable storage medium
CN111953986A (en) * 2020-07-23 2020-11-17 西安万像电子科技有限公司 Image processing method and device
CN115955573A (en) * 2023-03-15 2023-04-11 广州思涵信息科技有限公司 Real-time remote synchronous projection method for two-dimensional image

Similar Documents

Publication Publication Date Title
CN101977322A (en) Screen coding system based on universal video coding standard
CN116156197B (en) Video decoding, encoding method and device, computer equipment and storage medium
US9497469B2 (en) Devices for identifying a leading picture
WO2017041551A1 (en) Spice protocol-based image transmission method and apparatus
CN105681791A (en) Self-adaptive remote desktop transmission method and system
US10924744B2 (en) Selective coding
CN101883284B (en) Video encoding/decoding method and system based on background modeling and optional differential mode
CN112449182B (en) Video encoding method, device, equipment and storage medium
CN105872556B (en) Video encoding method and apparatus
CN114071161B (en) Image encoding method, image decoding method and related devices
KR102589712B1 (en) Video decoding methods and devices, storage media
WO2021004153A1 (en) Image prediction method, coder, decoder, and storage medium
KR20130089461A (en) Method and apparatus for image encoding based on region characteristics, method and apparatus for image decoding based on region characteristics
CN114286098B (en) A video encoding and decoding method, system, device and storage medium
CN108063947A (en) A kind of lossless reference frame compression method based on pixel texture
CN101651827B (en) Code rate control method of screen coding
CN113630619A (en) Program recording method and device
CN102883164B (en) A kind of decoding method of enhancement layer block unit, corresponding device
WO2024078066A1 (en) Video decoding method and apparatus, video encoding method and apparatus, storage medium, and device
CN105554375A (en) Method and device of video preview in digital video recorder
CN117750030A (en) Video encoding method, device, equipment and storage medium
CN103747257B (en) A kind of method of video data high efficient coding
CN105376585B (en) Method for improving video transmission speed by frame image combination
CN111406404B (en) Compression method, decompression method, system and storage medium for obtaining video file
CN103634603A (en) Method, device and system for video encoding and decoding

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20110216