avformat_open_input 打開失敗傳回ret=-1330794744,
使用av_strerror(ret,buf,1024);檢視報錯内容
ptintf("avformat_open_input error %d,%s\n",ret,buf);//列印值為avformat_open_input error -1330794744,Protocol not found
問題原因:ffmpeg編譯選項沒有未勾選檔案協定 --enable-protocols(具體是哪個協定不清楚全部勾選了)