编译ffmpeg
。/configure --prefix=/opt/ffmpeg --disable-yasm --enable-shared --enable-pic --enable-vaapi --enable-gpl --enable-libx264 --extra-cflags=-I/opt/x264/include --extra-ldflags=-L/opt/x264/lib
make
make install
安装OpenCV
cmake -D CMAKE_BUILD_TYPE=release -D CMAKE_INSTALL_PREFIX=/home/ppt/opencv/opencv-3.4.1 -D WITH_CUDA=ON -D WITH_NVCUVID=ON ..