Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

Real-Time Video Captioning on CPU and GPU: A Comparative Study of Classical and Transformer Models

Author 1: Othmane Sebban Author 2: Ahmed Azough Author 3: Mohamed Lamrini
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 16, No. 6 · Published 2025

DOI: 10.14569/IJACSA.2025.0160681

Abstract

This study proposes a scalable and hardware-adaptable approach to automatic video caption generation by comparing two architectures: a traditional encoder–decoder framework combining InceptionResNetV2 with GRU and a transformer-based model integrating TimeSformer with GPT-2. The system supports CPU and GPU deployment through a unified pipeline built on FFmpeg and ImageMagick for keyframe extraction and subtitle embedding. Experimental evaluations on the MSVD and VATEX datasets demonstrate that the TimeSformer–GPT-2 architecture significantly outperforms baseline models, particularly in GPU settings, achieving top results across BLEU, METEOR, ROUGE-L, and CIDEr metrics. This superiority is attributed to its capacity to model spatiotem-poral dependencies and generate contextually rich language. Designed for real-time operation, the system is also suitable for low-resource devices, enabling impactful applications such as assistive tools for the visually impaired and intelligent video indexing. Despite high computational demands and sequence-length limitations, the system presents promising directions for future development, including multilingual captioning, multimodal audio–visual integration, and lightweight models like TinyGPT for enhanced portability.

Keywords

How to Cite this Article

Sebban, O., Azough, A., & Lamrini, M. (2025). Real-Time Video Captioning on CPU and GPU: A Comparative Study of Classical and Transformer Models. International Journal of Advanced Computer Science and Applications, 16(6). https://doi.org/10.14569/IJACSA.2025.0160681

Sebban, Othmane, et al.. "Real-Time Video Captioning on CPU and GPU: A Comparative Study of Classical and Transformer Models." International Journal of Advanced Computer Science and Applications, vol. 16, no. 6, 2025, https://doi.org/10.14569/IJACSA.2025.0160681.

@article{Sebban2025,
  title     = {Real-Time Video Captioning on CPU and GPU: A Comparative Study of Classical and Transformer Models},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {16},
  number    = {6},
  year      = {2025},
  publisher = {The Science and Information Organization},
  author    = {Othmane Sebban and Ahmed Azough and Mohamed Lamrini},
  doi       = {10.14569/IJACSA.2025.0160681},
  url       = {https://doi.org/10.14569/IJACSA.2025.0160681}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.

Call for Papers - Important Dates

Volume 17 No. 12, December 2026
Paper Submission Due November 25, 2026
Review Notification December 15, 2026
Publication Date December 31, 2026