当前位置:网站首页>ffmpeg打开rtsp流应该设置的几个参数
ffmpeg打开rtsp流应该设置的几个参数
2022-08-04 05:34:00 【_杜竞宁_】
AVDictionary* options = NULL;
#使用 TCP 方式
av_dict_set(&options, "rtsp_transport", "tcp", 0);
#设置 最大延迟
av_dict_set(&options, "max_delay", "500", 0);
# rtmp、rtsp延迟控制到最小
av_dict_set(&options, "fflags", "nobuffer", 0);
#设置 阻塞超时,否则可能在流断开时连接发生阻塞
av_dict_set(&options, "stimeout", "3000000", 0);
avformat_open_input(&in_format_context, rtsp_url.c_str(), NULL, &options);
av_dict_free(&opts);
边栏推荐
猜你喜欢
随机推荐
Uos统信系统 CA根证书搭建
PS像素画学习-1
线性表之动态数组(ArrayList)的自实现
键盘扫描码
【HIT-SC-MEMO3】哈工大2022软件构造 复习笔记3
把DocumentsandSettings迁移到别的盘
对渗透测试工程师来说,学历重要嘛?
JUC锁框架——CountDownLatch、CyclicBarrier和Semaphore
第九篇 ApplicationContext初始化
[daily office][ssh]cheatsheet
虚幻引擎 5 完整指南[2022六月最新课程学习内容]
Memory limit should be smaller than already set memoryswap limit, update the memoryswap at the same
Uos统信系统 IP地址以及完整主机名配置
file editor
网络安全求职指南
IDEA中创建web项目实现步骤
Uos统信系统 chrony配置
QT QOpenGLWidget 全屏导致其他控件显示问题
RuntimeError: You called this URL via POST, but the URL doesn‘t end in a slash and you have APPEND_S
[English learning][sentence] good sentence









