CN104768021A - Ultra-low time delay H.264 coding method and coder - Google Patents
Ultra-low time delay H.264 coding method and coder Download PDFInfo
- Publication number
- CN104768021A CN104768021A CN201510191983.6A CN201510191983A CN104768021A CN 104768021 A CN104768021 A CN 104768021A CN 201510191983 A CN201510191983 A CN 201510191983A CN 104768021 A CN104768021 A CN 104768021A
- Authority
- CN
- China
- Prior art keywords
- result
- unit
- buffer memory
- video
- carried out
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The invention discloses an ultra-low time delay H.264 coding method and coder, and relates to the field of video signal coding. According to the technical scheme, the ultra-low time delay H.264 coding method comprises the steps of preprocessing input video, conducting cache on multiple video lines in the preprocessed video, conducting frame prediction on the multiple video lines, conducting DCT coding and quantization on frame prediction results in sequence, conducting entropy coding on a quantization result and a motion vector, outputting the result of the entropy coding after the result is buffered and the like.
Description
Technical field
The present invention relates to video encoding techniques, especially one H.264 coding techniques.
Background technology
In the strong Internet video chat of interactivity or video conference, video time delay is crucial systematic function quality index.If slowed-down video is bigger than normal, the interchange perception of user so can be had a strong impact on.
In addition, in unmanned aerial vehicle (UAV) control field, existing unmanned aerial vehicle (UAV) control is that the streaming media image beamed back based on remote control controls as feedback signal.In order to control unmanned plane, the time delay showing from transducer transmission video to compression engine to decoded picture is less than 100 milliseconds usually.
But existing transmission of video all exists time delay, it comprises encoding time delay, transmission delay, decoding time delay, and wherein encoding time delay account for the very most of of transmission delay.The time delay of current most of Video coding is all more than 200 milliseconds, and for above specific application, time delay can not meet the demands.
Summary of the invention
Technical problem to be solved by this invention is: for above-mentioned Problems existing, provides a kind of H.264 coding method of ultralow time delay.
H.264 the coding method of a kind of ultralow time delay provided by the invention, comprising:
Step 1: preliminary treatment is carried out to the video of input;
Step 2: several video lines in the pretreated video of buffer memory;
Step 3: frame prediction is carried out to described some video lines;
Step 4: frame is predicted the outcome and carries out DCT coding and quantification successively;
Step 5: the quantized result in step 4 and motion vector are carried out entropy code;
Step 6: the result of entropy code is carried out cushioning rear output;
Wherein, described frame prediction comprises further:
Step 31: the result that front some video lines and operations for motion compensation obtain is carried out superposing and buffer memory;
Step 32: the content of the content of step 31 buffer memory and step 2 buffer memory is carried out estimation and obtains motion vector;
Step 33: the content of motion vector and step 31 buffer memory is carried out operations for motion compensation;
Step 34: the result deducting operations for motion compensation from the content of step 2 buffer memory obtains the result of frame prediction.
Further, the acquisition methods of described front some video lines comprises:
Step 311: the result of step 4 is carried out inverse quantization;
Step 312: the result of inverse quantization is carried out IDCT computing.
Further, described some video lines are 16 video lines.
Present invention also offers a kind of H.264 encoder of ultralow time delay, comprising:
Pretreatment unit, for carrying out preliminary treatment by the video of input;
First frame buffer unit, for the some video lines in the pretreated video of buffer memory;
Frame predicting unit, for carrying out frame prediction to described some video lines;
DCT coding unit, for carrying out DCT coding to the result after frame prediction;
Quantifying unit, for quantizing the result after DCT coding;
Entropy code unit, for carrying out entropy code by quantized result and motion vector;
Buffer cell, for being undertaken cushioning rear output by the result of entropy code;
Wherein, described frame predicting unit comprises further:
Adder unit, the result for front some video lines and operations for motion compensation being obtained carries out superposing and buffer memory;
Second frame buffer unit, for the result that buffer memory adder unit exports;
Motion estimation unit, obtains motion vector for the content of the content of the second buffer unit buffer memory and the first buffer unit buffer memory is carried out estimation;
Motion compensation units, for carrying out operations for motion compensation by the content of motion vector and the second buffer unit buffer memory;
Subtrator, the result for deducting operations for motion compensation in the content from the first buffer unit buffer memory obtains the result of frame prediction.
Further, also comprise:
Inverse quantization unit, carries out inverse quantization for result quantifying unit exported;
IDCT unit, obtains front some video lines for the result of inverse quantization being carried out IDCT computing.
In sum, owing to have employed technique scheme, the invention has the beneficial effects as follows:
The present invention only prestores when encoding the some video lines in frame of video instead of the complete frame of video that prestores, greatly reduce the time of prestoring, reduce coding delay, compared to common coding delay more than 200 milliseconds, time delay can be reduced within 1 millisecond by the present invention, can be good at meeting Video chat or unmanned aerial vehicle (UAV) control to the ultralow delay requirement of Video coding.
Accompanying drawing explanation
Examples of the present invention will be described by way of reference to the accompanying drawings, wherein:
Fig. 1 is FB(flow block) of encoding in the present invention.
Embodiment
All features disclosed in this specification, or the step in disclosed all methods or process, except mutually exclusive feature and/or step, all can combine by any way.
Arbitrary feature disclosed in this specification, unless specifically stated otherwise, all can be replaced by other equivalences or the alternative features with similar object.That is, unless specifically stated otherwise, each feature is an example in a series of equivalence or similar characteristics.
Traditional H.264 coding delay represents with frame usually, as must cushion time of a whole frame before compression starts.Suppose that coding rate can improve, so double to reduce coding delay by means of only frame rate, that is, when frame rate is 30fps, every frame time delay is 33 milliseconds, and when frame rate is 60fps, every frame time delay is then 16.5 milliseconds.
But such low time delay still can not meet the requirement of some specific occasion to ultralow time delay.
The present invention, by optimizing frame buffer module when H.264 encoding, when not buffer memory and the complete frame of video of non-caching one, only cushions several video lines, just starts compressed encoding, reduce coding delay further.
As shown in Figure 1, a specific embodiment of coding method of the present invention comprises:
Step 1: preliminary treatment is carried out to the video of input;
Step 2: several video lines in the pretreated video of buffer memory;
Step 3: frame prediction is carried out to described some video lines;
Step 4: frame is predicted the outcome and carries out DCT coding and quantification successively;
Step 5: the quantized result in step 4 and motion vector are carried out entropy code;
Step 6: the result of entropy code is carried out cushioning rear output;
Wherein, described frame prediction comprises further:
Step 31: the result that front some video lines and operations for motion compensation obtain is carried out superposing and buffer memory;
Step 32: the content of the content of step 31 buffer memory and step 2 buffer memory is carried out estimation and obtains motion vector;
Step 33: the content of motion vector and step 31 buffer memory is carried out operations for motion compensation;
Step 34: the result deducting operations for motion compensation from the content of step 2 buffer memory obtains the result of frame prediction.
The acquisition methods of described front some video lines comprises:
Step 311: the result of step 4 is carried out inverse quantization;
Step 312: the result of inverse quantization is carried out IDCT computing.
The preliminary treatment mentioned in the present invention, DCT coding, quantification, entropy code, inverse quantization, IDCT, estimation and motion compensation are the technology in H.264 coding standard, do not repeat them here its detailed step.
In a preferred embodiment, the video line number of buffer memory is 16, but should not be interpreted as restriction of the present invention by 16, can the video line of buffer memory varying number according to concrete delay requirement, but can affect code efficiency when the video line of buffer memory is very few.
For the video flowing of 1080p30 frame, (frame rate is 30fps, 1080p represents that 1080 row are lined by line scan), time delay when adopting the inventive method coding is 16/1080/30=494 microsecond, and time delay is less than 500 microseconds (16 video lines represent 16 row in whole frame 1080 row).And for 480p30 video flowing, time delay is then lower than 1 millisecond.Cushion 16 video lines, compare and cushion a whole frame, code efficiency reduces about 20%, but coding delay reduces to 500 microseconds from 33 milliseconds.For the special applications of some ultralow delay requirement, be effectively like this.
The present invention is not limited to aforesaid embodiment.The present invention expands to any new feature of disclosing in this manual or any combination newly, and the step of the arbitrary new method disclosed or process or any combination newly.
Claims (6)
1. a H.264 coding method for ultralow time delay, is characterized in that, comprising:
Step 1: preliminary treatment is carried out to the video of input;
Step 2: several video lines in the pretreated video of buffer memory;
Step 3: frame prediction is carried out to described some video lines;
Step 4: frame is predicted the outcome and carries out DCT coding and quantification successively;
Step 5: the quantized result in step 4 and motion vector are carried out entropy code;
Step 6: the result of entropy code is carried out cushioning rear output;
Wherein, described frame prediction comprises further:
Step 31: the result that front some video lines and operations for motion compensation obtain is carried out superposing and buffer memory;
Step 32: the content of the content of step 31 buffer memory and step 2 buffer memory is carried out estimation and obtains motion vector;
Step 33: the content of motion vector and step 31 buffer memory is carried out operations for motion compensation;
Step 34: the result deducting operations for motion compensation from the content of step 2 buffer memory obtains the result of frame prediction.
2. the H.264 coding method of a kind of ultralow time delay according to claim 1, is characterized in that, the acquisition methods of described front some video lines comprises:
Step 311: the result of step 4 is carried out inverse quantization;
Step 312: the result of inverse quantization is carried out IDCT computing.
3. the H.264 coding method of a kind of ultralow time delay according to claim 1, is characterized in that, described some video lines are 16 video lines.
4. a H.264 encoder for ultralow time delay, is characterized in that, comprising:
Pretreatment unit, for carrying out preliminary treatment by the video of input;
First frame buffer unit, for the some video lines in the pretreated video of buffer memory;
Frame predicting unit, for carrying out frame prediction to described some video lines;
DCT coding unit, for carrying out DCT coding to the result after frame prediction;
Quantifying unit, for quantizing the result after DCT coding;
Entropy code unit, for carrying out entropy code by quantized result and motion vector;
Buffer cell, for being undertaken cushioning rear output by the result of entropy code;
Wherein, described frame predicting unit comprises further:
Adder unit, the result for front some video lines and operations for motion compensation being obtained carries out superposing and buffer memory;
Second frame buffer unit, for the result that buffer memory adder unit exports;
Motion estimation unit, obtains motion vector for the content of the content of the second buffer unit buffer memory and the first buffer unit buffer memory is carried out estimation;
Motion compensation units, for carrying out operations for motion compensation by the content of motion vector and the second buffer unit buffer memory;
Subtrator, the result for deducting operations for motion compensation in the content from the first buffer unit buffer memory obtains the result of frame prediction.
5. the H.264 encoder of a kind of ultralow time delay according to claim 4, is characterized in that, also comprise:
Inverse quantization unit, carries out inverse quantization for result quantifying unit exported;
IDCT unit, obtains front some video lines for the result of inverse quantization being carried out IDCT computing.
6. the H.264 encoder of a kind of ultralow time delay according to claim 4, is characterized in that, described some video lines are 16 video lines.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510191983.6A CN104768021A (en) | 2015-04-22 | 2015-04-22 | Ultra-low time delay H.264 coding method and coder |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510191983.6A CN104768021A (en) | 2015-04-22 | 2015-04-22 | Ultra-low time delay H.264 coding method and coder |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104768021A true CN104768021A (en) | 2015-07-08 |
Family
ID=53649576
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510191983.6A Pending CN104768021A (en) | 2015-04-22 | 2015-04-22 | Ultra-low time delay H.264 coding method and coder |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104768021A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112511838A (en) * | 2021-02-05 | 2021-03-16 | 北京欣博电子科技有限公司 | Method, device, equipment and readable medium for reducing video transcoding delay |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5212742A (en) * | 1991-05-24 | 1993-05-18 | Apple Computer, Inc. | Method and apparatus for encoding/decoding image data |
EP0720374A1 (en) * | 1994-12-30 | 1996-07-03 | Daewoo Electronics Co., Ltd | Apparatus for parallel decoding of digital video signals |
CN1126411A (en) * | 1995-01-06 | 1996-07-10 | 大宇电子株式会社 | Apparatus for parallel encoding/decoding of digital video signals |
CN102196256A (en) * | 2010-03-11 | 2011-09-21 | 中国科学院微电子研究所 | Video encoding method and device |
CN102724489A (en) * | 2012-04-20 | 2012-10-10 | 苏州汉辰数字科技有限公司 | Method for reducing video coding time delay |
-
2015
- 2015-04-22 CN CN201510191983.6A patent/CN104768021A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5212742A (en) * | 1991-05-24 | 1993-05-18 | Apple Computer, Inc. | Method and apparatus for encoding/decoding image data |
EP0720374A1 (en) * | 1994-12-30 | 1996-07-03 | Daewoo Electronics Co., Ltd | Apparatus for parallel decoding of digital video signals |
CN1126411A (en) * | 1995-01-06 | 1996-07-10 | 大宇电子株式会社 | Apparatus for parallel encoding/decoding of digital video signals |
CN102196256A (en) * | 2010-03-11 | 2011-09-21 | 中国科学院微电子研究所 | Video encoding method and device |
CN102724489A (en) * | 2012-04-20 | 2012-10-10 | 苏州汉辰数字科技有限公司 | Method for reducing video coding time delay |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112511838A (en) * | 2021-02-05 | 2021-03-16 | 北京欣博电子科技有限公司 | Method, device, equipment and readable medium for reducing video transcoding delay |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11616972B2 (en) | Decoder side MV derivation and refinement | |
US11930187B2 (en) | Interactions between decoder-side intra mode derivation and adaptive intra prediction modes | |
US8121191B1 (en) | AVC to SVC transcoder | |
US9210432B2 (en) | Lossless inter-frame video coding | |
EP3061233B1 (en) | Representing blocks with hash values in video and image coding and decoding | |
US7340103B2 (en) | Adaptive entropy encoding/decoding for screen capture content | |
EP1805995B1 (en) | Method for generating multiple transcoded outputs based on a single video input | |
US11671577B2 (en) | Method and apparatus for point cloud compression | |
US20040252768A1 (en) | Computing apparatus and encoding program | |
US11120581B2 (en) | Method and apparatus for point cloud compression | |
US20170347094A1 (en) | Block size adaptive directional intra prediction | |
JP2022516251A (en) | Methods, equipment, and computer programs for video coding | |
US20170094291A1 (en) | Re-encoding image sets using frequency-domain differences | |
CN1949877A (en) | Adaptive quantization controller and method thereof | |
JP2022515222A (en) | Methods, devices and programs for video coding | |
EP3993413A1 (en) | Method and device for determining video bitrate, computer apparatus, and storage medium | |
US20180184089A1 (en) | Target bit allocation for video coding | |
US9369732B2 (en) | Lossless intra-prediction video coding | |
US20180302643A1 (en) | Video coding with degradation of residuals | |
US11949879B2 (en) | Video coding method and apparatus, computer device, and storage medium | |
US11627321B2 (en) | Adaptive coding of prediction modes using probability distributions | |
JP2022502950A (en) | Video coding and decoding methods and equipment and computer programs | |
CN104768021A (en) | Ultra-low time delay H.264 coding method and coder | |
CN102811349B (en) | No-feedback multi-description distributed video coder-decoder capable of adjusting redundancy automatically and coding method thereof | |
KR20230003539A (en) | Content Adaptation Online Training Using Feature Substitution in Neural Image Compression |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150708 |