Research on Real Time Video Compression Techniques and Algorithims Based on H.264
- Author
- Jamil-ur-Rehman
- Advisor
- ZhangZuo
- School
- Harbin Institute of Technology
- Major
- Information and Communication Engineering
- Classification
- TN919.81 Image coding
- Degree
- Doctoral dissertation
- Year
- 2007
- Downloads
- 865
- Citations
- 0
Abstract
High speed connections to the home are commonplace and the storage power of flash memories, hard disks and optical media is more than ever before. The cost per transmitted or stored bit is falling continuously, then why video compression is needed and why there is such a momentous effort to make it better? Video compression has two important advantages. First, it makes it feasible to use digital video in transmission and storage environments that would not support uncompressed video. Second, video compression allows more professional use of storage and transmission resources.Image and video compression has been a very active topic of research and development for over 20 years. Different algorithms and systems for compression and decompression have been projected and developed. In order to promote competition and increased choice, it has been essential to define standard methods of compression for encoding and decoding to allow products from different companies to communicate efficiently. This has initiated to the development of a number of International Standards for image and video compression, together with the JPEG, MPEG and H.26×series of standards.Video compression algorithms work by removing redundancies in the temporal, spatial and frequency domains. By removing different types of redundancies it is possible to compress the data considerably at the cost of a certain amount of information loss. More compression can be attained by encoding the processed data using an entropy coding technique like Huffman coding or Arithmetic coding. H.264 has appreciably enhanced the coding performance in both low and high bit rates as compared with earlier coding standards ( H.263, MPEG-2 and MPEG-4).H.264/MPEG4 part 10 uses the rate distortion optimization (RDO) technique to obtain the best result in terms of visual and coding performance. In order to perform RDO, the encoder encodes video by fully searching the best mode in the RD sense among different predefined modes. Consequently, the computational complexity of the encoder is dramatically increased, which makes it hard for practical applications such as real time video communication. This dissertation addresses how to reduce the computational complexity associated with H.264/MPEG4 part 10. The major achievements in this dissertation are summarized below.We proposed fast intra prediction mode decision using parallel processing. In the scenarios of real-time multimedia, computational complexity becomes a key constraint. Several attempts have been made to explore fast algorithms for intra prediction mode decision. Most existing“fast”intra prediction algorithms reduce computation by decreasing the number of candidates. A reduction in computational complexity of video encoders affects decoded video quality. The full search algorithm in H.264 computes and compares all modes, so it is sure to choose the best mode. We used parallel processing to solve this problem because parallelism cuts down significantly on the time it takes to reach a solution to a research problem, and increase the size of the problem scientists can tackle. We selected FPGA (Field Programmable Gate Array) platform for parallel processing. Hardware circuits such as the FPGA run in parallel, because each sub circuit executes their function independently. We implemented nine intra 4×4 luma modes on FPGA using both approaches i.e serial and parallel processing. Experimental results show that the time to find the best intra prediction mode by parallel processing is much less than the time by serial processing with no performance degradation.We proposed efficient techniques for signaling intra prediction modes number. The choice of intra prediction mode for each 4×4 block must be signaled to the decoder and this could potentially require a large number of bits. However, intra modes for neighbouring 4×4 blocks are often correlated. To take advantage of this correlation, predictive coding is used to signal 4×4 intra modes. At the boundaries of frame, we can’t apply all modes because of the limitation of available pixels for prediction. Now question arises, is it feasible to use same technique to signal less number of modes as for nine modes? We proposed different techniques than the given technique for signaling 4×4 intra prediction modes. The proposed technique for signaling three modes (1, 2 and 8) of upper frame/slice boundary is as following. The encoder sends a flag for each 4×4 block, previous intra 4×4 prediction mode, if the flag is‘1’, the most probable prediction mode is used. If the flag is‘0’, another one bit is sent to indicate remaining two modes. We proposed three different techniques for signaling four modes (0, 2, 3 and 7) of left frame/slice boundary, the best technique is as following. The encoder sends a flag for each 4×4 block, previous intra 4×4 prediction mode, if the flag is‘1’, the most probable prediction mode is used. If flag is‘0’, another flag is sent to indicate the next most probable mode, if this flag also‘0’, another one bit is sent to indicate remaining two modes. Experimental results show that the proposed techniques outperform the existing technique.We proposed another technique for fast intra prediction mode decision by selecting fewer number of modes. As we mentioned in the previous paragraph, it is not practical to apply all 4×4 luma intra prediction modes at the frame/slice boundaries, bits can be saved for signaling fewer intra prediction modes. Only three 4×4 intra prediction modes (1, 2 and 8) can be applied at the upper frame/slice boundary, four intra prediction modes (0, 2, 3 and 7) can be applied at the left frame/slice boundary, seven 4×4 intra prediction modes (0, 1, 2, 4, 5, 6 and 8) can be applied at the right frame/slice boundary and nine intra prediction modes can be applied at the rest of 4×4 blocks. On the right frame slice boundary we selected only five modes instead of seven modes and computed RD performance of different combinations of five modes. Similarly instead of using nine modes we selected only five modes and computed RD performance of different combinations of five modes. After analyzing experimental results we have come to know that the combination of five modes (0, 1, 2, 4 and 8) on right boundary gives best results. And the combination of five modes (0, 1, 3, 4 and 8) for rest of 4×4 blocks gives best RD performance. The proposed technique for signaling five intra prediction modes is as following. The encoder sends a flag for each 4×4 block, previous intra 4×4 prediction mode. If the flag is‘1’, the most probable prediction mode is used. If the flag is‘0’, another parameter (2 bits) remaining intra 4×4 prediction modes is sent to signal remaining four modes. Experimental results show that the increase in the number of bits for encoding residual coefficients is approximately same as decrease in the number of bits required to signal intra prediction modes, providing almost same PSNR (peak signal to noise ratio). By using proposed techniques, computational speed for finding best 4×4 intra prediction mode is increased by about 45% without significant performance degradation.We also studied the effect of adaptive probability updating of look-up table values for encoding Coefficient Token. In the new H.264/AVC standard, when entropy coding mode is set to zero, residual block data is coded using a context adaptive variable length coding (CAVLC) scheme. The first VLC, coefficient token, encodes both the total number of nonzero coefficients and the number of trailing ones. There are four choices of look-up table to use for encoding coefficient token for a 4×4 block. We studied the results of assigning shorter codes to more probable pairs (Total coefficients, T1s) adaptively and vice versa. There are big gaps between the probability lines of three pairs((0,0),(1,1) and (2,2)), so adaptive probability updating can’t give better results. The probability lines of other pairs intersect each other and adaptive probability updating gives better results, but the probability (≈10 %) of these pairs is very small.
Table of contents
Abstract 4-7
Abstract 7-18
Chapter 1 Introduction 18-24
1.1 The Aim of Study 18-19
1.2 Overview 19-21
1.3 Literature Survey 21-23
1.4 Thesis Structure 23-24
Chapter 2 Video and its Coding Techniques 24-37
2.1 Digital Video 24-25
2.2 Colour Models 25-28
2.3 Video Quality 28-29
2.4 Video Compression 29-30
2.5 CODEC 30
2.6 Temporal Model 30-32
2.6.1 Motion Estimation and Motion Compensation 31-32
2.6.2 Block size and Sub-Pixel 32
2.7 Spatial Model 32-36
2.7.1 Transform Coding 33
2.7.2 Quantization 33-34
2.7.3 Reordering 34-36
2.8 Entropy Encoder 36
2.9 Summary 36-37
Chapter 3 Video Compression Standards 37-54
3.1 H.264 / MPEG-4 Part 10 38-47
3.1.1 Encoder 38-39
3.1.2 Decoder 39-40
3.1.3 Coding Tools for Video Coding Layer (VCL) 40-41
3.1.4 I, P and B Slices 41-42
3.1.5 SI and SP Slices 42
3.1.6 H.264 Profiles 42-47
3.1.7 Levels 47
3.2 Other Major Video Compression Standards 47-49
3.2.1 H.261 47
3.2.2 MPEG-1 47-48
3.2.3 MPEG-2 / H.262 48
3.2.4 H.263 48
3.2.5 MPEG-4 48-49
3.3 Comparison of Video Compression Standards 49-53
3.4 Summary 53-54
Chapter 4 Intra and Inter Prediction 54-86
4.1 Intra Prediction 54-76
4.1.1 4 × 4 Luma Prediction Modes 55-61
4.1.2 16 × 16 Luma Prediction Modes 61-63
4.1.3 8 × 8 Chroma Prediction Modes 63-64
4.1.4 Signaling intra prediction modes 64-65
4.1.5 Efficient Techniques for Signaling Intra Prediction Modes of H.264/Mpeg-4 Part 10 65-67
4.1.6 Fast Intra Prediction Mode Decision by Adaptively Selecting Fewer Number of Modes 67-72
4.1.7 Fast Intra Prediction Mode Decision Using Parallel Processing 72-76
4.2 Inter Prediction 76-85
4.2.1 Motion Compensation and Estimation 77-78
4.2.2 Motion Vectors 78-80
4.2.3 Interpolated Samples 80-82
4.2.4 Motion Vector Prediction 82-84
4.2.5 Decoded Picture Management 84-85
4.3 Summary 85-86
Chapter 5 Transform, Quantization and De-blocking Filter 86-100
5.1 Transforms and Quantization 86-96
5.1.1 4 × 4 DCT Based Transform and Quantization 87-93
5.1.2 4 × 4 Luma DC Coefficient Transform and Quantization 93-94
5.1.3 2 × 2 Chroma DC Coefficient Transform and Quantization 94-96
5.2 De-blocking Filter 96-99
5.3 Summary 99-100
Chapter 6 Reordering and Entropy Coding 100-113
6.1 Reordering 100
6.2 Entropy Coding 100-112
6.2.1 Exponential Golomb Entropy Coding 102-103
6.2.2 Context-Based Adaptive Variable Length Coding (CAVLC) 103-108
6.2.3 Adaptive Probability Updating of Look-Up Table Values ??for Encoding Coefficient Token 108-112
6.3 Summary 112-113
Conclusions 113-115
References 115-121
Publications 121-124
Acknowledgments 124-125
Resume 125
Related dissertations
- Research on Surface Defects Visual Inspection System for Metal Components
- Research on Acceleration Technology of IPSec VPN Base on GPU
- Study on Several Methods for Digital Video/Image Restoration
- Study of Visual Tracking Algorithm Based on CUDA
- The Research on Optimization of Parallel Data Query Based on Multi-processor
- Research of Wavefront Reconstruction System for Adaptive Optics Based on Multi-core DSP
- TS101 high speed real time parallel signal processing system based on design and research
- The Research and Application of the H.264Video Coding Algorithm
- Research on Special Audio Real-time Retrieval Algorithm and Its Implementation in the Fixed-point DSP
- A Study on Practical Technology about Static Security Check of Large Grid's Dispatching Plan
- Design and Implementation of Multi-computers Parallel Processing Fabric Defect Detection System
- The Design of Synthetic Aperture Radiometer Simulation System on GPU Platform
- Research on Fast Mosaic and Points Cloud Building Based on UAV Images in a Cluster Environment
- The Study of Cluster-based Synthetic Aperture Radiometer Signal-level Simulation
- The Design of Bank Insurance Storehouse Safety Inspection System
- Research on Isolated Multi-Channel Data Acquisition and Control Equipment
- Research on Efficient Network Packet Transmission Mechanism Based on Zero-Copy
- The Research of Network Traffic On-Line Classification System Based on Fpga
- Design and Implementation of the Parallelization Based on Hadoop Model Network Traffic Diversion
- Research on the Key Technologies of Software and Hardware of Parallel Task Schedyling of Multi-core Network Processor