Comments (6)
这个没区别,
from zlmediakit.
是不是对方无法处理粘包问题啊?你去掉了头2个字节的rtp长度字段?
from zlmediakit.
是不是对方无法处理粘包问题啊?你去掉了头2个字节的rtp长度字段?
是的
from zlmediakit.
这个不是zlm问题 这个本来就是对方用错误的设计干错误的事
TCP是流协议 本身就可能随机粘包或分包 只有小白工程师才会设计不带分隔符或者无长度字段的tcp协议。
这是海康的耻辱 竟然犯这种错误。
from zlmediakit.
不过海康也干过tcp发送缓冲区溢出覆盖的bug 海康搞国标的这群人 应该跟rtsp的不是同一批人 真的很多低级错误
from zlmediakit.
打上这个补丁可以:
Index: src/Rtp/RtpSender.cpp
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/src/Rtp/RtpSender.cpp b/src/Rtp/RtpSender.cpp
--- a/src/Rtp/RtpSender.cpp (revision 5a137f8b8ed3aafce7f05dd0b0291554738a14ae)
+++ b/src/Rtp/RtpSender.cpp (date 1711080268683)
@@ -203,7 +203,7 @@
void RtpSender::onConnect(){
_is_connect = true;
//加大发送缓存,防止udp丢包之类的问题
- SockUtil::setSendBuf(_socket_rtp->rawFD(), 4 * 1024 * 1024);
+ SockUtil::setSendBuf(_socket_rtp->rawFD(), 1500);
if (!_args.is_udp) {
//关闭tcp no_delay并开启MSG_MORE, 提高发送性能
SockUtil::setNoDelay(_socket_rtp->rawFD(), false);
from zlmediakit.
Related Issues (20)
- [技术咨询] RK3588使用mk动态库推流(低帧率1FPS),再通过addStreamProxy拉流,帧率变为1000FPS HOT 8
- 使用最新版本,并且开启了https,部分https地址为null HOT 2
- [技术咨询] rtsp推流遇到connection refused。请教原因 HOT 3
- 和摄像头对接的时候遇到 流量消耗 过大的问题,请问可不可以通过查询zlm的日志定位问题 HOT 2
- 使用C API mk_player拉流一段时间断开 HOT 1
- [技术咨询] 批量播放加载缓慢问题 HOT 3
- [技术咨询] 同时录制多个视频 长时间会出无限碎片 HOT 1
- [技术咨询] 使用c api 开启http服务 接口一直返回您访问的资源不存在! HOT 1
- [技术咨询] 如何提高视频码率 HOT 2
- 添加同一个局域网内ffmpeg推的rtmp流,一直报错-1,end of file HOT 4
- 请问是否支持断掉Hls协议连接的客户端 HOT 3
- [功能请求] Nack的相关控制配置 HOT 2
- 视频播放端口CORS跨域资源共享,请问可以设置吗 HOT 3
- ZlMediaKit支持H.265X的编码吗? HOT 2
- 使用WebRTC无法播放 HOT 2
- allow_cross_domains设置为0但是还是会允许跨域 HOT 5
- 我在使用docker安装完成zlmediakit之后出现问题 HOT 2
- http-flv这个功能没有开放吗 HOT 1
- [功能请求] 增加一个直接分发buffer到外部udp的接口 HOT 1
- 推流无法播放 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zlmediakit.