Unable to read h264 video on PiZero with C++ static build

@crackwitz I wanted to send you all files very quickly but there is a system in this forum preventing me to send to many messages in 24 hours…

Anyway: here is the cmake command I use:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_SHARED_LIBS=OFF -D OPENCV_EXTRA_MODULES_PATH=/tmp/opencv/opencv_contrib-4.5.1/modules -D BUILD_DOCS=OFF -D BUILD_EXAMPLES=OFF -D BUILD_TESTS=OFF -D BUILD_PERF_TESTS=OFF -D BUILD_opencv_java=OFF -D BUILD_opencv_python=NO -D BUILD_opencv_python2=NO -D BUILD_opencv_python3=NO -D ENABLE_VFPV2=ON -D WITH_JASPER=OFF -D OPENCV_GENERATE_PKGCONFIG=ON ..

here is the cmake console output:
cmake console output - Pastebin.com

and here is the CMakeOutput.log:
CMakeOutput.log - Pastebin.com

Thanks in advance.