首先不要慌张。检查: 保证整个ffmpeg编译正确。PATH/LD_LIBRARY_PATH等环境变量正确。参考以下博文 https://blog.csdn.net/quantum7/article/details/104672966