FFMPEG学习遇到avformat_open_input Invalid data found when processing input
生活随笔
收集整理的這篇文章主要介紹了
FFMPEG学习遇到avformat_open_input Invalid data found when processing input
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
按順序調用
? ? ? ? av_register_all();
? ? ? ? avcodec_register_all();
? ? ? ? avformat_network_init();
調用?avformat_open_input()
打開本地文件的時候 總是打不開視頻文件
添加了打印錯誤消息后
?char buf[] = "";
? ? ? ? av_strerror(openResult, buf, 1024);
?看到顯示的錯誤? avformat_open_input Invalid data found when processing input
查閱了網上資料是可能是編譯問題 (編譯的文件協議未打開),嘗試重新編譯了一下導入庫 就不報這個錯了。
總結
以上是生活随笔為你收集整理的FFMPEG学习遇到avformat_open_input Invalid data found when processing input的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ROS1云课→20迷宫不惑之A*大法(一
- 下一篇: 在ubuntu上编写第一个C程序Hell