首先不要慌張。檢查: 保證整個ffmpeg編譯正确。 PATH/LD_LIBRARY_PATH等環境變量正确。 參考以下博文 https://blog.csdn.net/quantum7/article/details/104672966