Source code here : https://github.com/ARIAS-Joseph/HUD-diving-informations
Test done on Ubuntu :
$ time python3 CreateBgForVideoWithFFMEG.py
...
My processor : x86_64
My OS : Linux
My OS Relase : Linux-5.15.0-78-generic-x86_64-with-glibc2.35
My Python Version :3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]
My FFMPEG :ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers
...
--------------------------------------------------------
Resolution : 1280 x 720
File Size videomerge.mp4 in MegaBytes is 13
File Size videomergecompress.mp4 in MegaBytes is 5
File Size video.mp4 in MegaBytes is 189
File Size videocompress.mp4 in MegaBytes is 4
End (730 sec)
--------------------------------------------------------
real 12m9,868s
user 26m25,654s
sys 0m32,545s
So 13 min to create video.
Result :
J’aime ça :
J’aime chargement…