WO2017107206A1 - Method and system for video compression - Google Patents
Method and system for video compression Download PDFInfo
- Publication number
- WO2017107206A1 WO2017107206A1 PCT/CN2015/099028 CN2015099028W WO2017107206A1 WO 2017107206 A1 WO2017107206 A1 WO 2017107206A1 CN 2015099028 W CN2015099028 W CN 2015099028W WO 2017107206 A1 WO2017107206 A1 WO 2017107206A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- file
- compressed
- ratio
- video
- original
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/41—Bandwidth or redundancy reduction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/91—Television signal processing therefor
- H04N5/917—Television signal processing therefor for bandwidth reduction
Definitions
- the present invention relates to the field of images, and in particular, to a video compression method and system.
- Video refers to various technologies that capture, record, process, store, transmit, and reproduce a series of still images as electrical signals.
- continuous image changes exceed 24 frames per second, the human eye cannot distinguish a single static image according to the principle of visual persistence; it looks like a smooth continuous visual effect, so that the continuous picture is called video.
- Video technology was first developed for television systems, but has now evolved into a variety of formats for consumers to record video. The development of network technology has also caused video recording segments to exist on the Internet in the form of streaming media and can be received and played by computers. Video and film belong to different technologies, and the latter uses photography to capture dynamic images as a series of still photos.
- the existing video formats include H.264, MPEG-4, MPEG-6 and other formats.
- the existing video software compresses the video, but the existing compression has damage to the video, which is usually called lossy rate.
- the existing video compression method has a high loss rate, which affects the clarity of the video.
- the application provides a compression method of video software. It solves the shortcomings of the prior art video compression loss rate is too high.
- a method of compressing video software comprising the steps of:
- the original video file is compressed by using a lossless compression process.
- the method further includes:
- the compressed file will be sent.
- the method further includes: transmitting the losslessly compressed video file over an IP network.
- a compression system for video software comprising:
- a lossy compression unit configured to perform lossy compression processing on the original video file to obtain a compressed file
- a calculation unit configured to calculate a ratio of the compressed file to the original file
- the lossless compression unit is configured to compress the original video file by using a lossless compression process if the ratio is less than a set threshold.
- system further includes:
- the sending unit is configured to send the lossy compressed file if the ratio is greater than a set threshold.
- the sending unit is further configured to send the lossless compressed video file over an IP network. This method is to avoid the waste of traffic through other wireless networks.
- the technical solution provided by the present invention compresses the original file of the video, so it has the advantage of low loss rate.
- FIG. 1 is a flowchart of a method for compressing video software according to a first preferred embodiment of the present invention
- FIG. 2 is a structural diagram of a compression system of video software according to a second preferred embodiment of the present invention.
- FIG. 1 is a method for compressing video software according to a first preferred embodiment of the present invention. The method is as shown in FIG.
- Step S101 Perform a lossy compression process on the original video file to obtain a compressed file.
- Step S102 Calculate a ratio of the compressed file to the original file
- Step S103 If the ratio is less than the set threshold, the original video file is compressed by using a lossless compression process.
- the technical solution provided by the invention compares and treats the lossy compressed file, and replaces the lossy compression into lossless compression when determining that the lossy compressed file is lower than a set value, thereby reducing the loss rate of the video compression. .
- the foregoing method may further include:
- the compressed file will be sent.
- the foregoing method may further include:
- the losslessly compressed video file is sent over an IP network. This method is to avoid the waste of traffic through other wireless networks.
- FIG. 2 is a video system compression system according to a second preferred embodiment of the present invention.
- the system is as shown in FIG. 2, and includes:
- the lossy compression unit 201 is configured to perform lossy compression processing on the original video file to obtain a compressed file.
- the calculating unit 202 is configured to calculate a ratio of the compressed file to the original file
- the lossless compression unit 203 is configured to compress the original video file by using a lossless compression process if the ratio is less than the set threshold.
- the technical solution provided by the invention compares and treats the lossy compressed file, and replaces the lossy compression into lossless compression when determining that the lossy compressed file is lower than a set value, thereby reducing the loss rate of the video compression. .
- the above system may further include:
- the sending unit 204 is configured to send the lossy compressed file if the ratio is greater than a set threshold.
- the sending unit 204 is further configured to send the losslessly compressed video file over an IP network. This method is to avoid the waste of traffic through other wireless networks.
- the program may be stored in a computer readable storage medium, and the storage medium may include: Flash drive, read-only memory (English: Read-Only Memory, referred to as: ROM), random accessor (English: Random Access Memory, referred to as: RAM), disk or CD.
- ROM Read-Only Memory
- RAM Random Access Memory
Abstract
Disclosed in the present invention is a method for compressing a video software, the method comprising the following steps: performing loss compression on an original video file to obtain a compressed file; calculating a ratio between the compressed file and the original file; if the ratio is smaller than a threshold value, compressing the original video file through lossless compression. The technical solution provided in the present invention has the advantage of lowering loss rate.
Description
本发明涉及图像领域,尤其涉及一种视频压缩方法及系统。 The present invention relates to the field of images, and in particular, to a video compression method and system.
视频(Video)泛指将一系列静态影像以电信号的方式加以捕捉、纪录、处理、储存、传送与重现的各种技术。连续的图像变化每秒超过24帧(frame)画面以上时,根据视觉暂留原理,人眼无法辨别单幅的静态画面;看上去是平滑连续的视觉效果,这样连续的画面叫做视频。视频技术最早是为了电视系统而发展,但现在已经发展为各种不同的格式以利消费者将视频记录下来。网络技术的发达也促使视频的纪录片段以串流媒体的形式存在于因特网之上并可被电脑接收与播放。视频与电影属于不同的技术,后者是利用照相术将动态的影像捕捉为一系列的静态照片。Video refers to various technologies that capture, record, process, store, transmit, and reproduce a series of still images as electrical signals. When continuous image changes exceed 24 frames per second, the human eye cannot distinguish a single static image according to the principle of visual persistence; it looks like a smooth continuous visual effect, so that the continuous picture is called video. Video technology was first developed for television systems, but has now evolved into a variety of formats for consumers to record video. The development of network technology has also caused video recording segments to exist on the Internet in the form of streaming media and can be received and played by computers. Video and film belong to different technologies, and the latter uses photography to capture dynamic images as a series of still photos.
现有的视频格式有H.264,MPEG-4、MPEG-6等多种格式,现有的视频软件对视频均有压缩,但是现有的压缩对视频均有损伤,通常称为有损率,现有的视频压缩方法的有损率较高,影响视频的清晰度。The existing video formats include H.264, MPEG-4, MPEG-6 and other formats. The existing video software compresses the video, but the existing compression has damage to the video, which is usually called lossy rate. The existing video compression method has a high loss rate, which affects the clarity of the video.
本申请提供一种视频软件的压缩方法。其解决现有技术的视频压缩有损率过高的缺点。 The application provides a compression method of video software. It solves the shortcomings of the prior art video compression loss rate is too high.
一方面,提供一种视频软件的压缩方法,所述方法包括如下步骤:In one aspect, a method of compressing video software is provided, the method comprising the steps of:
将视频原文件进行有损压缩处理得到压缩后的文件;Performing lossy compression processing on the original video file to obtain a compressed file;
计算压缩后的文件与原文件的比值;Calculate the ratio of the compressed file to the original file;
如比值小于设定阈值,则采用无损压缩处理的方式对视频原文件进行压缩。If the ratio is less than the set threshold, the original video file is compressed by using a lossless compression process.
可选的,所述方法还包括:Optionally, the method further includes:
如比值大于设定阈值,则将有损压缩后的文件发送。If the ratio is greater than the set threshold, the compressed file will be sent.
可选的,所述方法还包括:将无损压缩的视频文件通过IP网络发送。Optionally, the method further includes: transmitting the losslessly compressed video file over an IP network.
另一方面,提供一种视频软件的压缩系统,所述系统包括:In another aspect, a compression system for video software is provided, the system comprising:
有损压缩单元,用于将视频原文件进行有损压缩处理得到压缩后的文件;A lossy compression unit, configured to perform lossy compression processing on the original video file to obtain a compressed file;
计算单元,用于计算压缩后的文件与原文件的比值;a calculation unit, configured to calculate a ratio of the compressed file to the original file;
无损压缩单元,用于如比值小于设定阈值,则采用无损压缩处理的方式对视频原文件进行压缩。The lossless compression unit is configured to compress the original video file by using a lossless compression process if the ratio is less than a set threshold.
可选的,所述系统还包括:Optionally, the system further includes:
发送单元,用于如比值大于设定阈值,则将有损压缩后的文件发送。The sending unit is configured to send the lossy compressed file if the ratio is greater than a set threshold.
可选的,所述发送单元,还可以用于将无损压缩的视频文件通过IP网络发送。此方式是为了避免通过其他无线网络浪费流量的出现。Optionally, the sending unit is further configured to send the lossless compressed video file over an IP network. This method is to avoid the waste of traffic through other wireless networks.
本发明提供的技术方案对视频的原文件进行压缩,所以其具有有损率低的优点。 The technical solution provided by the present invention compresses the original file of the video, so it has the advantage of low loss rate.
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1为本发明第一较佳实施方式提供的一种视频软件的压缩方法的流程图;1 is a flowchart of a method for compressing video software according to a first preferred embodiment of the present invention;
图2为本发明第二较佳实施方式提供的一种视频软件的压缩系统的结构图。2 is a structural diagram of a compression system of video software according to a second preferred embodiment of the present invention.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
请参考图1,图1是本发明第一较佳实施方式提出的一种视频软件的压缩方法,该方法如图1所示,包括如下步骤:Please refer to FIG. 1. FIG. 1 is a method for compressing video software according to a first preferred embodiment of the present invention. The method is as shown in FIG.
步骤S101、将视频原文件进行有损压缩处理得到压缩后的文件;Step S101: Perform a lossy compression process on the original video file to obtain a compressed file.
步骤S102、计算压缩后的文件与原文件的比值;Step S102: Calculate a ratio of the compressed file to the original file;
步骤S103、如比值小于设定阈值,则采用无损压缩处理的方式对视频原文件进行压缩。Step S103: If the ratio is less than the set threshold, the original video file is compressed by using a lossless compression process.
本发明提供的技术方案对有损压缩的文件进行处理比较,当确定有损压缩的文件低于一个设定值的前提下,将有损压缩更换成无损压缩,这样降低视频压缩的有损率。The technical solution provided by the invention compares and treats the lossy compressed file, and replaces the lossy compression into lossless compression when determining that the lossy compressed file is lower than a set value, thereby reducing the loss rate of the video compression. .
可选的,上述方法在步骤S103之后还可以包括:Optionally, after the step S103, the foregoing method may further include:
如比值大于设定阈值,则将有损压缩后的文件发送。If the ratio is greater than the set threshold, the compressed file will be sent.
可选的,上述方法在步骤S103之后还可以包括:Optionally, after the step S103, the foregoing method may further include:
将无损压缩的视频文件通过IP网络发送。此方式是为了避免通过其他无线网络浪费流量的出现。The losslessly compressed video file is sent over an IP network. This method is to avoid the waste of traffic through other wireless networks.
请参考图2,图2是本发明第二较佳实施方式提出的一种视频软件的压缩系统,该系统如图2所示,包括:Please refer to FIG. 2. FIG. 2 is a video system compression system according to a second preferred embodiment of the present invention. The system is as shown in FIG. 2, and includes:
有损压缩单元201,用于将视频原文件进行有损压缩处理得到压缩后的文件;The lossy compression unit 201 is configured to perform lossy compression processing on the original video file to obtain a compressed file.
计算单元202,用于计算压缩后的文件与原文件的比值;The calculating unit 202 is configured to calculate a ratio of the compressed file to the original file;
无损压缩单元203,用于如比值小于设定阈值,则采用无损压缩处理的方式对视频原文件进行压缩。The lossless compression unit 203 is configured to compress the original video file by using a lossless compression process if the ratio is less than the set threshold.
本发明提供的技术方案对有损压缩的文件进行处理比较,当确定有损压缩的文件低于一个设定值的前提下,将有损压缩更换成无损压缩,这样降低视频压缩的有损率。The technical solution provided by the invention compares and treats the lossy compressed file, and replaces the lossy compression into lossless compression when determining that the lossy compressed file is lower than a set value, thereby reducing the loss rate of the video compression. .
可选的,上述系统还可以包括:Optionally, the above system may further include:
发送单元204,用于如比值大于设定阈值,则将有损压缩后的文件发送。The sending unit 204 is configured to send the lossy compressed file if the ratio is greater than a set threshold.
可选的,上述发送单元204,还可以用于将无损压缩的视频文件通过IP网络发送。此方式是为了避免通过其他无线网络浪费流量的出现。Optionally, the sending unit 204 is further configured to send the losslessly compressed video file over an IP network. This method is to avoid the waste of traffic through other wireless networks.
需要说明的是,对于前述的各个方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某一些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing various method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the parts that are not described in detail in a certain embodiment can be referred to the related descriptions of other embodiments.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(英文:Read-Only
Memory ,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。A person skilled in the art may understand that all or part of the various steps of the foregoing embodiments may be performed by a program to instruct related hardware. The program may be stored in a computer readable storage medium, and the storage medium may include: Flash drive, read-only memory (English: Read-Only
Memory, referred to as: ROM), random accessor (English: Random Access Memory, referred to as: RAM), disk or CD.
以上对本发明实施例所提供的内容下载方法及相关设备、系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The content downloading method and the related device and system provided by the embodiments of the present invention are described in detail above. The principles and implementation manners of the present invention are described in the specific examples. The description of the above embodiments is only used to help understand the present invention. The method of the invention and its core idea; at the same time, for the person of ordinary skill in the art, according to the idea of the present invention, there are some changes in the specific embodiment and the scope of application. In summary, the content of the specification should not be understood. To limit the invention.
Claims (6)
- 一种视频软件的压缩方法,其特征在于,所述方法包括如下步骤: A method for compressing video software, characterized in that the method comprises the following steps:将视频原文件进行有损压缩处理得到压缩后的文件;Performing lossy compression processing on the original video file to obtain a compressed file;计算压缩后的文件与原文件的比值;Calculate the ratio of the compressed file to the original file;如比值小于设定阈值,则采用无损压缩处理的方式对视频原文件进行压缩。If the ratio is less than the set threshold, the original video file is compressed by using a lossless compression process.
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:如比值大于设定阈值,则将有损压缩后的文件发送。If the ratio is greater than the set threshold, the compressed file will be sent.
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:将无损压缩的视频文件通过IP网络发送。The method of claim 1, further comprising transmitting the losslessly compressed video file over an IP network.
- 一种视频软件的压缩系统,其特征在于,所述系统包括:A compression system for video software, characterized in that the system comprises:有损压缩单元,用于将视频原文件进行有损压缩处理得到压缩后的文件;A lossy compression unit, configured to perform lossy compression processing on the original video file to obtain a compressed file;计算单元,用于计算压缩后的文件与原文件的比值;a calculation unit, configured to calculate a ratio of the compressed file to the original file;无损压缩单元,用于如比值小于设定阈值,则采用无损压缩处理的方式对视频原文件进行压缩。The lossless compression unit is configured to compress the original video file by using a lossless compression process if the ratio is less than a set threshold.
- 根据权利要求4所述的系统,其特征在于,所述系统还包括:The system of claim 4, wherein the system further comprises:发送单元,用于如比值大于设定阈值,则将有损压缩后的文件发送。The sending unit is configured to send the lossy compressed file if the ratio is greater than a set threshold.
- 根据权利要求5所述的系统,其特征在于,The system of claim 5 wherein:所述发送单元,还可以用于将无损压缩的视频文件通过IP网络发送。此方式是为了避免通过其他无线网络浪费流量的出现。The sending unit may be further configured to send the losslessly compressed video file over an IP network. This method is to avoid the waste of traffic through other wireless networks.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2015/099028 WO2017107206A1 (en) | 2015-12-25 | 2015-12-25 | Method and system for video compression |
CN201580001362.5A CN107211107A (en) | 2015-12-25 | 2015-12-25 | A kind of video-frequency compression method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2015/099028 WO2017107206A1 (en) | 2015-12-25 | 2015-12-25 | Method and system for video compression |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017107206A1 true WO2017107206A1 (en) | 2017-06-29 |
Family
ID=59088763
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/099028 WO2017107206A1 (en) | 2015-12-25 | 2015-12-25 | Method and system for video compression |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107211107A (en) |
WO (1) | WO2017107206A1 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008235966A (en) * | 2007-03-16 | 2008-10-02 | Kyocera Mita Corp | Image compression apparatus, image forming apparatus, and still image compression method |
JP2011120080A (en) * | 2009-12-04 | 2011-06-16 | Canon Inc | Image forming apparatus |
CN103417232A (en) * | 2012-05-11 | 2013-12-04 | X环技术有限公司 | Method and system for lossy compression and decompression of computed tomography data |
CN103514920A (en) * | 2012-06-21 | 2014-01-15 | 联发科技股份有限公司 | Method and device for buffering image to buffer |
-
2015
- 2015-12-25 CN CN201580001362.5A patent/CN107211107A/en active Pending
- 2015-12-25 WO PCT/CN2015/099028 patent/WO2017107206A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008235966A (en) * | 2007-03-16 | 2008-10-02 | Kyocera Mita Corp | Image compression apparatus, image forming apparatus, and still image compression method |
JP2011120080A (en) * | 2009-12-04 | 2011-06-16 | Canon Inc | Image forming apparatus |
CN103417232A (en) * | 2012-05-11 | 2013-12-04 | X环技术有限公司 | Method and system for lossy compression and decompression of computed tomography data |
CN103514920A (en) * | 2012-06-21 | 2014-01-15 | 联发科技股份有限公司 | Method and device for buffering image to buffer |
Also Published As
Publication number | Publication date |
---|---|
CN107211107A (en) | 2017-09-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2015060638A1 (en) | Adaptive real-time transcoding method and streaming server therefor | |
JP2003524909A (en) | Method and apparatus for achieving a multimedia network interface | |
CN107592551B (en) | Method and device for cloud streaming service | |
WO2017124294A1 (en) | Conference recording method and system for network video conference | |
KR20180086114A (en) | Media playback apparatus and method including delay prevention system | |
WO2017124292A1 (en) | Venue connecting method and system for network video conference | |
CN107277457A (en) | A kind of multi-channel video capturing for being used to impart knowledge to students and processing equipment and method | |
WO2017107206A1 (en) | Method and system for video compression | |
WO2017107210A1 (en) | Method and system for inserting advertisement in video software | |
JP2000295597A (en) | Reception and transmission system for media data | |
WO2017107208A1 (en) | Decoding method and system for video software | |
WO2017124291A1 (en) | Venue allocating method and system for network video conferences | |
WO2017107138A1 (en) | Method and system for processing image of video software | |
WO2017124340A1 (en) | Figure recognition method and system for network video conference | |
WO2012119571A1 (en) | Intra-frame prediction method and device | |
WO2017117809A1 (en) | Video network uploading method and system | |
WO2017107139A1 (en) | Method and system for sharing video software | |
WO2017124293A1 (en) | Conference discussion method and system for video conference | |
KR100899666B1 (en) | Dispersed multistreaming transmission apparatus | |
WO2017124224A1 (en) | Network video conferencing method and system | |
WO2017113049A1 (en) | Image transfer method and system for video advertisements | |
WO2017124228A1 (en) | Image tracking method and system of video network | |
WO2017107209A1 (en) | Method and system for image recognition in video software | |
WO2017107207A1 (en) | Encoding method and system for video software | |
WO2017124290A1 (en) | Microphone control method and system for network video conference |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15911203 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15911203 Country of ref document: EP Kind code of ref document: A1 |