当前位置:网站首页>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);
边栏推荐
猜你喜欢
随机推荐
Memory limit should be smaller than already set memoryswap limit, update the memoryswap at the same
网络安全学习的三大不可取之处
【HIT-SC-MEMO1】哈工大2022软件构造 复习笔记1
Uos统信系统 CA根证书搭建
Operating System Random
Fabric v1.1 environment construction
clssloader与双亲委派
虚幻引擎 5 完整指南[2022六月最新课程学习内容]
结构体传参-C语言
C#找系统文件夹路径
【HIT-SC-MEMO6】哈工大2022软件构造 复习笔记6
Arduino之ESP8266编程学习总结体会
【独立游戏体验计划】学习记录
MySQL基础
file editor
注册表设置默认浏览器 win7,winserver 2008,winserver 2012
Vmmem process (WSL2) consumes huge amount of memory
Flask request 返回网页中 checkbox 是否选中
库函数的模拟实现-C语言
gRPC intro 1:RPC









