A Multithreaded Java-Based Video Encoder for Multicore Systems
Beata Bylina, Maciej Okoń
DOI: http://dx.doi.org/10.15439/2025F1886
Citation: Proceedings of the 20th Conference on Computer Science and Intelligence Systems (FedCSIS), M. Bolanowski, M. Ganzha, L. Maciaszek, M. Paprzycki, D. Ślęzak (eds). ACSIS, Vol. 43, pages 659–664 (2025)
Abstract. The growing demand for efficient video compression solutions underscores the increasing significance of research into coding optimization on multi-core systems. This paper presents the implementation and performance analysis of a multithreaded video encoder developed in Java and optimized for modern multi-core processors. The encoder per- forms intra-frame compression of raw YUV 4:2:0 video using a frame-based parallelism approach. This method maximizes CPU core utilization while minimizing thread management overhead. Tests were conducted on five platforms equipped with multi- core processors from Intel and AMD. The application's execution time was measured for varying numbers of frames. The obtained results demonstrate effective scalability of the encoder as the number of processed frames increases, confirming that Java can be an effective tool for implementing parallel video compression on multi-core systems.
References
- S. Katsigiannis, V. Dimitsas, and D. Maroulis, “A GPU vs CPU performance evaluation of an experimental video compression algorithm,” in Proceedings of the 7th International Workshop on Quality of Multimedia Experience (QoMEX), Pylos, Greece, May 2015, pp. 1–6. DOI:10.1109/QoMEX.2015.7148134.
- S. Sankaraiah, L. H. Shuan, C. Eswaran, and J. Abdullah, “Performance Optimization of Video Coding Process on Multi-Core Platform Using GOP Level Parallelism,” International Journal of Parallel Programming, vol. 42, no. 6, pp. 931–947, Dec. 2014. DOI: 10.1007/s10766-013-0267-4.
- Y. Zhang, C. Zhang, R. Fan, S. Ma, Z. Chen, and C.-C. J. Kuo, “Recent Advances on HEVC Inter-frame Coding: From Optimization to Implementation and Beyond,” arXiv preprint https://arxiv.org/abs/1910.09770, Oct. 2019. Available: https://arxiv.org/abs/1910.09770.
- D. Liu, Y. Li, J. Lin, H. Li, and F. Wu, “Deep Learning-Based Video Coding: A Review and A Case Study,” arXiv preprint https://arxiv.org/abs/1904.12462, Apr. 2019. Available: https://arxiv.org/abs/1904.12462.
- Oracle, “Concurrency Utilities,” Java Platform, Standard Edition 8 API Specification, 2014. [Online]. Available: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/package-summary.html.
- A. J. Kane, “Encoding vs. Decoding,” AVIXA, [Online]. Available: https://www.avixa.org/pro-av-trends/articles/encoding-vs-decoding. [Accessed: Dec. 2024].
- I. E. G. Richardson, H.264 and MPEG-4 Video Compression: Video Coding for Next-generation Multimedia. Chichester, U.K.: Wiley, 2003.
- D. Le Gall, MPEG: A Video Compression Standard for Multimedia Applications. IEEE, 1991.
- I.-M. Pao and M.-T. Sun, “Modeling DCT coefficients for fast video encoding,” IEEE Transactions on Circuits and Systems for Video Technology, vol. 9, no. 4, pp. 608–616, 1999, https://dx.doi.org/10.1109/76.767126.
- S. A. Khayam, “The Discrete Cosine Transform (DCT): Theory and Application,” Course Notes, Department of Electrical & Computer Engineering, 2003.