Parallel Algorithm Design and Optimization for H.264 Video Encoding
- Author
- JiangXingChang
- Advisor
- ZhouJun
- School
- Shanghai Jiaotong University
- Major
- Signal and Information Processing
- Classification
- TN919.81 Image coding
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 361
- Citations
- 0
- H.264/AVC
- instruction level parallelism
- Thread Level Parallelism
- Multi-core
- Adaptive Threading-Pool Model
Abstract
In 2001, the Moving Picture Experts Group (MPEG) of ISO and the Video Coding Experts Group (VCEG) of JVT developed the H.26L standard together. The latest video coding standard significantly improves in both the coding efficiency and network adaption. In order to achieve the best coding efficiency, the H.264 encoder introduces a lot of complexity. Analyzing the structure of H.264 encoder, it is clear that the complexity is derived from two aspects, one is the inter prediction technology, including the multiple reference frames, the other one is the intra prediction technology. How to encode the H.264 stream more quickly is one of the most important things for now.In order to avoid the worse power consumption, almost all CPU architectures are on their ways toward Multi-Core technology, compared with the single core CPUs, Multi-Core CPUs can provide more powerful computing ablilty and real parallel processing. There are mainly two parallel methods to optimize the H.264 encoder, one of which is Instruction Level Parallelism(ILP), we can see it on many DSP platforms, the other one is Thread Level Parallelism(TLP), this method must cooperate with the Multi-Core technology. This thesis optimizes the H.264 encoder using both methods, and got much speedup improvement under Linux Fedora Core 5 operating system on Intel Dual-Core platform.X264 encoder uses“Fork-Join”model for its parallel algorithm, but this model is costly especially in low resolution encoding. In order to avoid this penalty, this thesis introduces a new model—“Adaptive Threading Pool”model.For the non-real-time applications, we choose the GOP level parallel algorithm, the tests results show that the speedup can achieve up to about 2 on the Intel dual-core architecture.For the real-time applications, we choose the combination of the frame level parallel and the slice level parallel algorithms. It is quicker than the frame level parallelism and the quality is much better than slice level parallelism.
Table of contents
Abstract 4-6
ABSTRACT 6-12
first chapter 12-27
1.1 Introduction 12-13
1.2 H.264 codec framework and its new features 13-17
1.3 parallel theoretical foundation 17-24
1.3.1 parallel Algorithms concept 17 -18
1.3.2 microprocessor development direction 18-19
1.3.3 microprocessor architecture 19-22
1.3.4 AMTA Law 22-23
1.3.5 Gustafson 's law 23-24
1.3.6 Amdahl 's law and Gustafson 's law relationship 24
1.4 thesis Summary results of the work and 24-27
Chapter H.264 encoding algorithm parallelization research 27-39
2.1 data parallelism and task parallelism choice 27-29
2.2 H.264 data-parallel analysis 29-37
2.2.1 GOP -level parallelism 29-30
2.2.2 Frame -level parallelism 30-32
2.2.3 Slice -level parallelism 32-34
2.2.4 Macroblock level parallelism 34-37
2.3 chapter Summary 37-39
Chapter X264 encoder and its parallel algorithm testing and analysis 39-55
3.1 select X264 for parallel optimization reasons 39-40 <br / > 3.2 X264 encoder Profile 40-41
3.3 H.264 coding algorithm in parallel to several important indicators 41
3.4 X264 implement parallel current method 41 -43
3.5 X264 automatic multithreading in INTEL dual-core processor platform encoding test 43-53
3.5.1 the number of threads and speedup relationship 47-48 < br /> 3.5.2 image resolution and speed ratio between 48-49
3.5.3 speedup rate and the relationship between 49-50
3.5.4 The number of threads and the relationship between the rate-distortion 50-52
3.5.5 current problems in parallel algorithms X264 52-53
3.6 Summary 53-55
Chapter X264 encoder parallel algorithm optimization 55-80
4.1 adaptive thread pool model (ATPM) 55-57
4.2 use ATP -level parallelism on the X264 algorithm optimization for SLICE 57-59
4.3 X264 SLICE level parallel algorithm uses ATP before and after optimization speedup compared 59-62
4.4 X264 GOP -level parallel algorithm optimization 62-64
4.5 X264 GOP -level parallelism algorithm INTEL dual core platform encoding test 64-67
4.6 GOP -level parallelism algorithm optimization before and after contrast 67 -69
4.6.1 GOP -level parallel speedup compared before and after optimization algorithm 67-68
4.6.2 GOP -level parallel algorithm to optimize the rate distortion before and after contrast 68-69
4.7 FRAME -level and SLICE -level parallelism on the X264 combines optimized 69-73
4.8 X264 FRAME SLICE -level parallel algorithms INTEL dual core platform test 73-76
4.9 FRAME SLICE level parallelism optimization before and after contrast 76-78
4.9.1 Frame Slice level parallel speedup compared before and after optimization algorithm 76-77
4.9.2 Frame Slice -level parallelism before and after the rate-distortion optimization algorithm comparison 77-78
4.10 Summary 78-80
Full Chapter Summary and Outlook 80-84
5.1 this paper summarizes research work 80-81
5.2 Prospects for further research content 81-84
References 84-88
Thanks 88-89
papers published during the study for a degree directory 89
Related dissertations
- Research and Application of Multi-Processing Load Balancing Technology Based on Multi-Core in Cloud Computing
- Implementation and Design of Multi-core Support for Micro-kernel Operating System
- Research and Implementation of Checkpoint System Based on Embeded Multi-core Environment
- Research on the Scheduling Algorithm of Virtual Machine in Multi-core System
- Research of Task Scheduling Algorithm Based on Critical Path for Multi-core
- Energy-efficient Real-time Scheduling for Multi-core and Multiprocessor System
- Improved L7-Filter’s Pattern Matching Algorithm Based on Multi-core Processors
- PACDSP CORE Oriented Multi-core Debug Controller Hardware Design and Software Validation
- Research on Schedule Performance of VMM Based on Multi-core
- Research on Parallel Processing of SAR Image Change Detection
- Research and Development of a Multi-core CPU Based Software Radio Platform and Applications
- Design and implementation of universal software radio platform based on multi core DSP
- Design and Implementation of H.264Algorithm Based on SIMD DSP
- H.264/AVC Coding Chip FPGA Prototype Verification Platform Key Technologies Research
- A Study of Rate Control Based on Fuzzy-PID and Quality Controller in H.264/AVC
- Research and Self-adaptive Motion Estimation Algorithm of Inter Prediction in HEVC
- Research of Motion Estimation Technology in H.264/AVC
- Design and Implementation of H.265-based Software Decoding Platform
- The Research of Video Predictive Code and Error Resilience Based on H.264
- Researches on the Video Coding Related Techniques Based on Visual Optimization