Research of Parallelism for Video Codec Algorithm

Author
WeiZuoZuo
Advisor
ChaiZhiLei
School
Jiangnan University
Major
Computer System Architecture
Classification
TN919.81 Image coding
Degree
Master's thesis
Year
2011
Downloads
107
Citations
1

Request the full text

Abstract

H.264 developed by the JVT achieves up to 50% improvement in coding efficiency compared with previous standards, but the computational complexity is also increased more than 4 times, because many new features are appended, including quarter-pixel motion estimation with variable block sizes and multiple reference frames, intra-prediction, integer transformation based on discrete cosine transform, Context-Based Adaptive Binary Arithmetic Coding(CABAC), Context-Based Adaptive Variable Length Coding(CAVLC) and in-loop de-blocking filter and so on. Encoding speed using a single processor can not meet real-time transmission of video and large- scale sharing requirements. Therefore, for real-time H.264 video application, analyzing the parallel structure and researching the parallel algorithm are necessary.The paper’s purpose is to achieve optimizing for X264 multi-thread parallel coding, accelerate the encoding speed and enhance the encoder’s real-time ability. Taking X264 coder as researching object, this paper focuses on the Slice-level and Inter-Frame Macroblock-level multi-thread parallel coding algorithm. Because of the need for parallel multi-frame image coding, Inter-Frame Macroblock-level multi-thread parallel coding algorithm needs to store the multi-frame image coding data of the reference frame in the system, so it takes a lot of memory. Meanwhile, the experimental results illustrate that the Inter-Frame Macroblock-level multi-thread parallel coding algorithm possesses higher encoding speedup than Slice-level while the coding rate is relatively constant. Considering the characteristic of the two algorithms, the paper proposes to research the multi-granularity parallel coding algorithm combining with the two methods.In addition, this paper studies the X264 encoder on the basic of a thorough knowledge about H.264 standard, in the context of the data dependencies of related macroblocks which is mainly analyzed, considering the characteristic of parallel coding algorithm based on Macroblock-level of Inter-Frame, the paper proposes a new multi-thread parallel coding algorithm. On the basis of the original multi-thread parallel algorithm of inter-frame Macroblock-level and following the spatial correlation conditions, the algorithm which creates a thread for each row in I frame, implements the parallel encoding of inter-frame and intra-frame Macroblock-level and achieves the effect of multi-granularity parallel. The experimental results illustrate that the proposed algorithm improves the encoding speedup while the video sequence are effectively encoded and the PSNR holds basically unchanged, and the real-time encoding is enhanced.

Table of contents

Abstract 3-4 Abstract 4-7 The first chapter 7-11 1.1 video encoding parallel processing research background 7 1.2 video encoding parallel processing research purpose and meaning 7-8 1.3 video encoding parallel processing research status 8-9 1.4 Structure of this thesis 9 1.5 Summary 9-11 The second chapter describes video coding standard H.264 11-21 2.1 H.264 coding standard 11 2.2 H.264 encoding level overview 11-14 2.2.1 Group of Pictures (GOP) 12 2.2.2 image (pic) 12 2.2.3 slice (slice), tablet group (slice group) 12-13 2.2.4 macroblock (MB), sub-macroblock (sub_MB) 13-14 2.3 H.264 coded map and its key technology 14-19 2.3.1 Intra Prediction 14-16 2.3.2 interframe prediction 16-17 2.3.3 transform and quantization 17-18 2.3.4 entropy coding 18 2.3.5 Loop Filter (Loop Filter) 18-19 2.4 Summary 19-21 Chapter X264 video encoding process analysis 21-27 3.1 X264 encoder 21-26 3.1.1 X264 console application 21-22 3.1.2 11bx264 encoding library 22-26 3.2 Chapter Summary 26-27 Chapter X264 multi-threaded parallel coding algorithm 27-37 4.1 multithreading 27-28 4.1.1 thread 27 4.1.2 thread priority 27 4.1.3 threaded implementation 27-28 4.1.4 thread synchronization 28 4.2 X264 feasibility and necessity of parallel coding 28-29 4.3 X264 parallel strategy 29 4.4 X264 multi-thread encoding parallel research 29-33 4.4.1 GOP -level parallelism to analyze 29-30 4.4.2 Frame -level parallelism to analyze 30-31 4.4.3 slice -level parallelism to analyze 31-32 4.4.4 MB -level parallelism to analyze 32-33 4.5 chip-level and inter macroblock level two kinds of parallel methods Results and discussion 33-36 4.6 Chapter Summary 36-37 Chapter inter and intra macroblock -level parallelism X264 encoding algorithm 37-45 5.1 on windows to achieve pthread version of X264 compilation process 37 5.2 inter- and intra macroblock -level parallelism X264 encoding algorithm 37-43 5.2.1 intra macroblock dependencies between 37 5.2.2 Algorithm Description 37-38 5.2.3 algorithm steps 38-40 5.2.4 Experimental Results and Analysis 40-43 5.3 Chapter Summary 43-45 Chapter Summary and Outlook 45-47 6.1 This article summarizes 45 6.2 Prospects 45-47 Thanks 47-48 References 48-52 Appendix : The authors of papers published during the master's degree 52

Related dissertations

  1. Research on Joint Parallel Algorithm of H.264Encoders and Decoders
    ZhuXiaoYu ·Central South University ·2013 ·Master's thesis
  2. Research and Development of a H.264-Based High Definition Video Communication System
  3. Research and Optimization of the H.264Video Encoder Base on BF561Dual-core Processor
    ShuZuoJun ·Jilin University ·2013 ·Master's thesis
  4. The H.264Codec Based on ARM-Linux
    CaiChengDu ·Yangtze University ·2012 ·Master's thesis
  5. Video Surveillance System Based on Embedded Technology Research
  6. Vehicle Wireless Video Monitoring System Based on Improved H.264Motion Estimation Algorithm
  7. Software Design of a Certain Experience Platform Multi-parameter Monitoring System
    BaiZuoZuo ·University of North ·2014 ·Master's thesis
  8. The software design of intelligent control Home Furnishing gateway based on ARM11
    ZuoPengZuo ·Northwestern University ·2013 ·Master's thesis
  9. Research on Moving Object Segmentation and Extraction in the H.264Compressed Domain
    KongXiangPeng ·Harbin Engineering University ·2013 ·Master's thesis
  10. The Design of Vehicle Detection System
    DongGaoPeng ·Wuhan University of Technology ·2013 ·Master's thesis
  11. 2D to3D Conversion Method for3DTV Application
  12. Multi-threshold Image Segmentation Techniques Based on Intelligent Optimization Algorithm and Its Parallel Speedup
  13. Design and Implementation of Guangxi Investment Group Coordination Office Automation System Based on the SOA
    LiangKaiRong ·Guangxi University ·2012 ·Master's thesis
  14. Research on mining algorithm of hierarchical clustering and frequent patterns in time series stream
  15. The Design and Optimization of Select Operation in Column-storage Database Based on Multi-core Processor
  16. Design and Implementation of the Online Learning System for the C Language Based on the J2EE
    QuXiao ·South China University of Technology ·2013 ·Master's thesis
  17. Design and Implement of Network Traffic Statistical Analysis System Based on Winpcap
  18. Design of supervisory control configuration software based on XML document
  19. Research on Shared L2Cache Management Mechanism Based on CMP
    ZhangJie ·Harbin Engineering University ·2013 ·Master's thesis
  20. Design of Embedded Video Surveillance System Based on DaVinci Technology