執(zhí)行如下命令:
ffmpeg -re -stream_loop -1 -i 1.mp4 -vcodec copy -acodec copy -f rtsp -rtsp_transport tcp rtsp://localhost:8554/live1.sdp```
報如下錯誤:
Unrecognized option ‘stream_loop’.
查看ffmpeg版本:
ffmpeg -version
顯示:
ffmpeg version 2.8.17-0ubuntu0.1 Copyright ? 2000-2020 the FFmpeg developers文章來源:http://www.zghlxwxcb.cn/news/detail-730197.html
查看文檔:
說使用stream_loop 參數版本需要大于“2.8.4”
那就參考如下利用編譯安裝
https://blog.csdn.net/weixin_43742643/article/details/113790677
我卸載了裝的4.3.1 問題解決
ffplay version 4.3.1 Copyright ? 2003-2020 the FFmpeg developers文章來源地址http://www.zghlxwxcb.cn/news/detail-730197.html
到了這里,關于Unrecognized option ‘stream_loop‘.(版本不匹配,利用make編譯安裝)的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網!