关于ffmpeg中rtmp无法设置超时时间的bug修复
生活随笔
收集整理的這篇文章主要介紹了
关于ffmpeg中rtmp无法设置超时时间的bug修复
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
??? AVDictionary* options = nullptr;
?? ?av_dict_set(&options, "timeout", "3000000", 0);? //設(shè)置超時(shí)斷開連接時(shí)間 ?
?? ?if (avformat_open_input(&pFormatCtx, url, NULL, &options) != 0) {
?? ??? ?printf("Couldn't open input stream.(無法打開輸入流)\n");
?? ??? ?return -1;
?? ?}
https://www.jianshu.com/p/e75e3f1fb6b0?tdsourcetag=s_pcqq_aiomsg
總結(jié)
以上是生活随笔為你收集整理的关于ffmpeg中rtmp无法设置超时时间的bug修复的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SDL介绍和简单实用
- 下一篇: 使用ffmpeg从mp4文件中提取视频流