FFMPEG编译ffplay

    技术2022-07-10  142

    关键就是要有SDL

    安装SDL(失败) yum install -y SDL-devel 编译SDL2(成功)

    https://blog.csdn.net/quantum7/article/details/104173159

    编译参数 # export is must use export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH} pkg-config --modversion ffnvcodec CUDA_PATH=nvcc=/usr/local/cuda-11.0 make clean export ECFLAG="-fPIC" ./configure \ --extra-cflags="-I/usr/local/cuda/include -fPIC " \ --extra-ldflags="-L/usr/local/cuda/lib64 -ldl " \ --pkg-config-flags=--static \ --enable-shared \ --enable-static \ --enable-sdl \ --enable-gpl --enable-libx264 \ --enable-cuvid --enable-nvenc --enable-nonfree \ --nvcc=${CUDA_PATH}/bin/nvcc make sudo make install 测试 ffplay -codec:v h264_cuvid ../../Safari.mp4 # nvidia-smi -l 1

     

    Processed: 0.019, SQL: 9