CN103200408B - A kind of video coding-decoding method - Google Patents
A kind of video coding-decoding method Download PDFInfo
- Publication number
- CN103200408B CN103200408B CN201310143178.7A CN201310143178A CN103200408B CN 103200408 B CN103200408 B CN 103200408B CN 201310143178 A CN201310143178 A CN 201310143178A CN 103200408 B CN103200408 B CN 103200408B
- Authority
- CN
- China
- Prior art keywords
- frame
- encoded video
- module
- key frame
- memory module
- 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.)
- Active
Links
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The present invention relates to field of multimedia communication, particularly relate to a kind of video coding-decoding method, it is characterized in that, comprising: by the first key frame order buffer of distance present frame different time sections in the first memory module; Coding generation module for reference frame is encoded to original video stream, generates multiple first encoded video frame with each first key frame; Output module Sequential output first encoded video frame, when the first encoded video frame exported is key frame, output module is automatically tackled the first encoded video frame of current output and is transferred the next one first key frame continuation output be close to thereafter; Receiver module sequence reception inputs the first encoded video frame, input the first encoded video frame by inverse quantization and inverse transformation prediction of output error frame, decoding output module is decoded according to input first encoded video frame and predication error frame and the second key frame, obtains decoded video streams.Method of the present invention effectively reduces information redundancy, improves the compression ratio of video data.
Description
Technical field
The present invention relates to field of multimedia communication, particularly relate to a kind of video coding-decoding method.
Background technology
Current video-frequency compression method mainly compresses from time-domain and spatial domain two dimensions.Wherein, most of video compression algorithm mainly carries out compression process to image spatial domain, and this method, by utilizing the redundant information in spatial domain, improves the compression ratio of video data, but fails the information redundancy that employs one's time to the best advantage on territory.Therefore, in order to improve the compression ratio of video data on wireless link further, someone proposes by storing a certain amount of data compression state information at data sending terminal and receiving terminal, and what utilize the repeatability that exists in data flow to reduce information redundancy in time-domain has state compaction coding method.But existing have state compaction coding method just to make use of the correlation of video data on short-term time scale, do not consider the correlation in long time scale.
Summary of the invention
For above-mentioned technical problem, the present invention has designed and developed a kind of video coding-decoding method, and object is from spatial domain and time-domain, to carry out compression process to image simultaneously, effectively reduces information redundancy, improves the compression ratio of video data.
Technical scheme provided by the invention is:
A kind of video coding-decoding method, comprises the following steps:
Step one, the first key frame of distance present frame different time sections is buffered in the first memory module according to the time sequencing gathering original video stream;
Step 2, coding generation module respectively with each described first key frame for reference frame, original video stream is encoded, generates multiple first encoded video frame;
Step 3, output module exports described first encoded video frame according to the time sequencing of generation first encoded video frame, when the first encoded video frame exported is key frame, the key frame of the original video stream prestored in described key frame and described comparison module is compared confirmation by the comparison module that output module inside is arranged, if determine, the first encoded video frame exported is key frame, then the first encoded video frame of current output tackled automatically by described output module, and continue to export by the next one first key frame that the first encoded video frame that data transmission network transfers current output in described coding generation module is close to thereafter,
Step 4, receiver module sequence reception input the first encoded video frame, described input first encoded video frame is by variable-length decoder, inverse quantizer and inverse discrete cosine variator prediction of output error frame, described input first encoded video frame that decoding output module transmits according to receiver module and corresponding predication error frame and be buffered in the distance present frame different time sections in the second memory module corresponding second key frame to described input first encoded video frame decoding, obtain decoded video streams;
Wherein, there are mapping relations in the first key frame in the second key frame in described second memory module and described first memory module, when output module of decoding is decoded, the corresponding position of the second key frame in the second memory module of the distance present frame different time sections that the position of described input first encoded video frame that receiver module transmits in the first memory module is recorded and be buffered in the second memory module is recorded identical, when the first encoded video frame exported is key frame, the location transmission of described first encoded video frame in coding generation module is given described second memory module by data transmission network by described output module, second key frame corresponding with it is deleted by described second memory module.
Preferably, in described video coding-decoding method, the acquisition time of the first key frame in described first memory module that the acquisition time of the second key frame in described second memory module next-door neighbour is corresponding and lag behind the acquisition time of the first key frame in described first memory module.
Preferably, in described video coding-decoding method, described coding generation module comprises multiple coding generation unit, and multiple coding generation unit is encoded to each key frame simultaneously.
Preferably, in described video coding-decoding method, other frame of video required when described first memory module also stores encoded video streams, as P frame.
Video coding-decoding method of the present invention has following beneficial effect: the first key frame and second key frame of buffer memory multiple distance present frame different time sections carry out encoding and decoding in the first memory module and the second memory module, take full advantage of the correlation in video scene in long time scale, input the first encoded video frame simultaneously and pass through variable-length decoder, inverse quantizer and inverse discrete cosine variator prediction of output error frame, decoding output module according to input first encoded video frame and corresponding predication error frame and the second key frame to described input first encoded video frame decoding, obtain decoded video streams, effectively reduce the information redundancy in spatial domain, improve the compression ratio of video data.
Accompanying drawing explanation
Fig. 1 is the flow chart of video coding-decoding method of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail, can implement according to this with reference to specification word to make those skilled in the art.
The invention provides a kind of video coding-decoding method, comprise the following steps:
Step one, be buffered in the first memory module by the first key frame of distance present frame different time sections according to the time sequencing gathering original video stream, the time interval of the first key frame is relevant with the coding method adopted with the change of actual video scene;
Step 2, coding generation module respectively with each described first key frame for reference frame, original video stream is encoded, generate multiple first encoded video frame, the position of first the first encoded video frame in coding generation module of generation is recorded as l, and later increases progressively successively;
Step 3, output module exports described first encoded video frame according to the time sequencing of generation first encoded video frame, when the first encoded video frame exported is key frame, such as position is recorded as first encoded video frame of 5, the key frame of the original video stream prestored in described key frame and described comparison module is compared confirmation by the comparison module that output module inside is arranged, if determine, the first encoded video frame exported is key frame, then the first encoded video frame of current output tackled automatically by described output module, and continue to export by the next one first key frame that the first encoded video frame that data transmission network transfers current output in described coding generation module is close to thereafter, put of ascending the throne is first encoded video frame of 6, the first key frame of buffer memory can be made like this to follow video scene and to carry out real-time update, so that the first key frame of the first memory module buffer memory is immediate with present frame all the time, the key frame that correlation is maximum, be conducive to giving full play to the advantage of the correlation utilized in long time scale,
Step 4, receiver module sequence reception inputs the first encoded video frame, i.e. above-mentioned output first encoded video frame, described input first encoded video frame passes through variable-length decoder, inverse quantizer and inverse discrete cosine variator prediction of output error frame, predication error frame is sent to decoding output module by data transmission network, described input first encoded video frame that decoding output module transmits according to receiver module and corresponding predication error frame and be buffered in the distance present frame different time sections in the second memory module corresponding second key frame to described input first encoded video frame decoding, mutually correct between three, thus obtain decoded video streams more accurately,
Wherein, there are mapping relations in the first key frame in the second key frame in described second memory module and described first memory module, when output module of decoding is decoded, the corresponding position of the second key frame in the second memory module of the distance present frame different time sections that the position of described input first encoded video frame that receiver module transmits in the first memory module is recorded and be buffered in the second memory module is recorded identical, the acquisition time of the first key frame in the first memory module of the acquisition time next-door neighbour correspondence of the second key frame in the second memory module, shift to an earlier date or lag behind the acquisition time of the first key frame in the first memory module, when the first encoded video frame exported is key frame, put of ascending the throne is first encoded video frame of 5, the position 5 of described first encoded video frame in coding generation module is transferred to described second memory module by data transmission network by described output module, described second memory module is by second key frame corresponding with it, namely same position is recorded as the second key frame deletion of 5.
In described video coding-decoding method, the acquisition time of the first key frame in described first memory module that the acquisition time next-door neighbour of the second key frame in described second memory module is corresponding and lag behind the acquisition time of the first key frame in described first memory module, if before the acquisition time of first key frame of the acquisition time of the second key frame in the second memory module in the first memory module, then may occur that the first key frame in the first memory module is first the first key frame, the first key frame is not had to supply the second memory module buffer memory above, affect the accuracy of decoded video streams.
In described video coding-decoding method, described coding generation module comprises multiple coding generation unit, and corresponding first key value of each coding generation unit, based on the first key value of correspondence, multiple coding generation unit is encoded to each key frame simultaneously.
In described video coding-decoding method, other frame of video required when described first memory module also stores encoded video streams, as P frame, other frame of video also can store separately.
Although embodiment of the present invention are open as above, but it is not restricted to listed in specification and execution mode utilization, it can be applied to various applicable the field of the invention completely, for those skilled in the art, can easily realize other amendment, therefore do not deviating under the universal that claim and equivalency range limit, the present invention is not limited to specific details and illustrates here and the legend described.
Claims (3)
1. a video coding-decoding method, is characterized in that, comprises the following steps:
Step one, the first key frame of distance present frame different time sections is buffered in the first memory module according to the time sequencing gathering original video stream;
Step 2, coding generation module respectively with each described first key frame for reference frame, original video stream is encoded, generates multiple first encoded video frame;
Step 3, output module exports described first encoded video frame according to the time sequencing of generation first encoded video frame, when the first encoded video frame exported is key frame, the key frame of the original video stream prestored in described key frame and described comparison module is compared confirmation by the comparison module that output module inside is arranged, if determine, the first encoded video frame exported is key frame, then the first encoded video frame of current output tackled automatically by described output module, and continue to export by the next one first key frame that the first encoded video frame that data transmission network transfers current output in described coding generation module is close to thereafter,
Step 4, receiver module sequence reception input the first encoded video frame, described input first encoded video frame is by variable-length decoder, inverse quantizer and inverse discrete cosine variator prediction of output error frame, described input first encoded video frame that decoding output module transmits according to receiver module and corresponding predication error frame and be buffered in the distance present frame different time sections in the second memory module corresponding second key frame to described input first encoded video frame decoding, obtain decoded video streams;
Wherein, there are mapping relations in the first key frame in the second key frame in described second memory module and described first memory module, when output module of decoding is decoded, the corresponding position of the second key frame in the second memory module of the distance present frame different time sections that the position of described input first encoded video frame that receiver module transmits in the first memory module is recorded and be buffered in the second memory module is recorded identical, when the first encoded video frame exported is key frame, the location transmission of described first encoded video frame in coding generation module is given described second memory module by data transmission network by described output module, second key frame corresponding with it is deleted by described second memory module, the acquisition time of the first key frame in described first memory module that the acquisition time next-door neighbour of the second key frame in described second memory module is corresponding and lag behind the acquisition time of the first key frame in described first memory module.
2. video coding-decoding method as claimed in claim 1, it is characterized in that, described coding generation module comprises multiple coding generation unit, and multiple coding generation unit is encoded to each key frame simultaneously.
3. video coding-decoding method as claimed in claim 2, is characterized in that, other frame of video required when described first memory module also stores encoded video streams.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310143178.7A CN103200408B (en) | 2013-04-23 | 2013-04-23 | A kind of video coding-decoding method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310143178.7A CN103200408B (en) | 2013-04-23 | 2013-04-23 | A kind of video coding-decoding method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103200408A CN103200408A (en) | 2013-07-10 |
CN103200408B true CN103200408B (en) | 2016-03-30 |
Family
ID=48722749
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310143178.7A Active CN103200408B (en) | 2013-04-23 | 2013-04-23 | A kind of video coding-decoding method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103200408B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108259904B (en) * | 2016-12-29 | 2022-04-05 | 法法汽车(中国)有限公司 | Method, encoder and electronic device for encoding image data |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2004008775A1 (en) * | 2002-07-15 | 2004-01-22 | Hitachi, Ltd. | Moving picture encoding method and decoding method |
WO2004080078A1 (en) * | 2003-03-03 | 2004-09-16 | Lg Electronics, Inc. | Coding method for moving picture |
EP1565001A1 (en) * | 2002-11-22 | 2005-08-17 | Kabushiki Kaisha Toshiba | Moving picture encoding/decoding method and device |
CN101389018A (en) * | 2007-09-14 | 2009-03-18 | 华为技术有限公司 | Image encoding/decoding method, apparatus and a image processing method, system |
CN101729898A (en) * | 2009-11-16 | 2010-06-09 | 中国人民解放军国防科学技术大学 | Video coding and decoding methods and devices |
CN101980533A (en) * | 2010-11-12 | 2011-02-23 | 中国华录集团有限公司 | Method for implementing stunt mode function of transport stream file based on indexed file |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8923393B2 (en) * | 2006-11-02 | 2014-12-30 | Qualcomm Incorporated | Apparatus and method of reduced reference frame search in video encoding |
US20100296579A1 (en) * | 2009-05-22 | 2010-11-25 | Qualcomm Incorporated | Adaptive picture type decision for video coding |
-
2013
- 2013-04-23 CN CN201310143178.7A patent/CN103200408B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2004008775A1 (en) * | 2002-07-15 | 2004-01-22 | Hitachi, Ltd. | Moving picture encoding method and decoding method |
EP1565001A1 (en) * | 2002-11-22 | 2005-08-17 | Kabushiki Kaisha Toshiba | Moving picture encoding/decoding method and device |
WO2004080078A1 (en) * | 2003-03-03 | 2004-09-16 | Lg Electronics, Inc. | Coding method for moving picture |
CN101389018A (en) * | 2007-09-14 | 2009-03-18 | 华为技术有限公司 | Image encoding/decoding method, apparatus and a image processing method, system |
CN101729898A (en) * | 2009-11-16 | 2010-06-09 | 中国人民解放军国防科学技术大学 | Video coding and decoding methods and devices |
CN101980533A (en) * | 2010-11-12 | 2011-02-23 | 中国华录集团有限公司 | Method for implementing stunt mode function of transport stream file based on indexed file |
Also Published As
Publication number | Publication date |
---|---|
CN103200408A (en) | 2013-07-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101010964B (en) | Method and apparatus for using frame rate up conversion techniques in scalable video coding | |
CN101945096B (en) | Video live broadcast system facing to set-top box and PC of mobile phone and working method thereof | |
CN103139559B (en) | Multi-media signal transmission method and device | |
CN101729898B (en) | Video coding and decoding methods and devices | |
CN103002283A (en) | Multi-view distributed video compression side information generation method | |
CN104838660A (en) | Method for signaling step-wise temporal sub-layer access sample | |
CN103618903B (en) | The high-speed low-power-consumption radio sensing network video compress method of sampling | |
CN110324623A (en) | A kind of bidirectional interframe predictive method and device | |
CN104639900B (en) | RTMP turns M3U8 video segment system and method | |
CN101005621A (en) | Distributive vide frequency coding method based self adaptive Hashenhege type vector quantization | |
JP2021506180A (en) | Video data inter-prediction method and equipment | |
JP2010050634A (en) | Coder, decoder and coding system | |
CN104539948A (en) | Video processing system and video processing method | |
CN102572428B (en) | Side information estimating method oriented to distributed coding and decoding of multimedia sensor network | |
WO2011137841A1 (en) | Method and device for compression encoding, method and device for decompression decoding, and communication system | |
CN113132735A (en) | Video coding method based on video frame generation | |
CN103596010A (en) | Video coding and decoding system based on dictionary learning and compressed sensing | |
CN105103192A (en) | Method and apparatus for vertex error correction | |
CN104333757A (en) | Video coding and decoding method based on multiple description CS measurement value | |
CN102438152A (en) | Scalable video coding (SVC) fault-tolerant transmission method, coder, device and system | |
CN109922340A (en) | Image coding/decoding method, device, system and storage medium | |
CN103200408B (en) | A kind of video coding-decoding method | |
CN102223537B (en) | Multi-view distributed video coding-decoding system and method based on compressed sensing | |
KR20180074692A (en) | A method for encoding a stream of video data based on an image group (GOP) | |
CN101980466A (en) | Bit stream transmission method combing SPIHT compression and unequal error protection coding |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |