
This video is later used to make some predictions using Tensorflow. My goal is to speed up video encoding using ffmpeg CUDA encoder. NVIDIA CUDA: YES (ver 10.0, CUFFT CUBLAS FAST_MATH)

OpenCV was built with CUDA and FFMPEG support (print(cv2.getBuildInformation())):

enable-cuda -enable-cuvid -enable-libnpp -extra-cflags=-I/usr/local/cuda/include/ -extra-ldflags=-L/usr/local/cuda/lib64/ -enable-gpl -enable-libx264 -extra-libs=-lpthread -enable-nvenc -enable-nonfree -enable-shared -disable-static I've created a CUDA-based Docker image with FFMPEG, OpenCV and Tensorflow.įfmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developersīuilt with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
