Abstract
As the demand for high-definition video grows, the High Efficiency Video Coding (HEVC/H.265) standard has emerged, offering approximately 50% better compression than its predecessor, AVC/H.264. However, this efficiency comes at the cost of significantly increased computational complexity. To make HEVC viable for real-time applications, fast encoding through thread-level parallelism is essential. This paper proposes a hybrid parallelization strategy that combines tile-level and frame-level processing. By adaptively adjusting the number of tiles per frame based on available system resources and the number of frames being processed in parallel, the proposed method achieves superior encoding speedups with minimal impact on compression efficiency. Experimental results on Full-HD and 4K UHD sequences demonstrate improved parallel scalability and a better trade-off between speed and coding loss compared to traditional fixed-tile approaches.
Introduction
HEVC is a powerhouse of compression, but its massive computational requirements pose a significant barrier to adoption in live broadcasting and 4K streaming. While modern multi-core processors offer a solution through parallelism, standard techniques often force a trade-off. Dividing a frame into "tiles" allows for simultaneous processing but breaks spatial dependencies, increasing the bitrate. Conversely, processing multiple frames at once is limited by temporal dependencies within the video sequence. This research addresses the challenge of balancing these two approaches to maximize encoding speed while maintaining high visual quality.
Proposed Parallelization Methods
GOP Structure Optimization
The researchers first modified the standard Group of Pictures (GOP) structure to unlock greater frame-level parallelism. By strategically altering how frames reference each other, they enabled the parallel encoding of frames at "GOP level 3," which is typically restricted in standard configurations due to dependency chains.
Hybrid Parallelization Strategies
The paper evaluates two primary hybrid approaches to combine frame and tile parallelism:
- Combined Approach 1 (Fixed): This method uses a fixed number of tiles per frame regardless of the number of frames processed in parallel. While straightforward, it often leads to thread imbalances and significant coding loss due to excessive tile boundaries.
- Combined Approach 2 (Adaptive): This core innovation dynamically adjusts the tile count. If multiple frames are encoded simultaneously, the system uses fewer tiles per frame. This strategy keeps the CPU cores fully utilized while minimizing the "boundary penalty"—the compression loss that occurs when pixels cannot reference neighbors across tile edges.
Experimental Results
The methods were tested using standard Full-HD (1080p) and 4K UHD sequences, representing various motion types and textures.
- Speedup and Scalability: For 4K video, the hybrid approaches achieved speedups of over 11x on a 16-core system. Full-HD sequences saw speedups between 6x and 7x. The hybrid methods demonstrated significantly better parallel scalability than using tiles alone.
- Compression Efficiency (BD-Rate): The adaptive approach (Approach 2) consistently outperformed pure tile-level parallelism. It achieved similar or better speedups with a much lower bitrate penalty. For example, in high-motion sequences like "Jockey," the adaptive method mitigated the heavy coding loss typically seen at fixed tile boundaries.
- Thread Balancing: By keeping the total thread count closer to the number of physical CPU cores, Approach 2 reduced synchronization overhead, which is a common bottleneck in multi-threaded encoding.
Conclusion
The study successfully demonstrates that an adaptive combination of frame-level and tile-level parallelism can significantly accelerate HEVC encoding. While speedup scalability begins to plateau at very high core counts due to synchronization overhead, the proposed adaptive method provides a robust framework for high-resolution video processing. Future work may involve integrating Wavefront Parallel Processing (WPP) and further optimizing frame synchronization to maintain performance on 32-core and 64-core architectures.
Summary updated