live555推流服务器异常

1.后端异常信息:

MultiFramedRTPSink::afterGettingFrame1(): The input frame data was too large for our buffer size (100176). 48899 bytes of trailing data was dropped! Correct this by increasing "OutPacketBuffer::maxSize" to at least maxSize:100000 numTruncatedBytes:48899148899, *before* creating this 'RTPSink'. (Current value is 100000.)

后台异常,vlc拉流花屏。

解决办法:

修改liveMedia库文件:

1.修改liveMedia/StreamParser.cpp中的 "#define BANK_SIZE 150000", 改成"#define BANK_SIZE 150000 * 4", 这个大小是参考其他人的。

2.修改liveMedia/MediaSink.cpp中的OutPacketBuffer::maxSize大小, 原来的60000改成600000,

3.修改liveMedia/MultiFramedRTPSource.cpp中的increaseReceiveBufferTo(env, RTPgs->socketNum(), 50*1024);大小,改成increaseReceiveBufferTo(env, RTPgs->socketNum(), 600*1024);

4.修改DynamicRTSPServer.cpp中的OutPacketBuffer::maxSize,全部改成OutPacketBuffer::maxSize = 6000000;

修改后效果:

相关推荐
长沙红胖子Qt1 个月前
关于 live555延迟优化之缓存区优化“StreamParser::afterGettingBytes() warning: read”” 的解决方法
流媒体·rtsp·live555·延迟优化
Android小码家3 个月前
Live555+Windows+MSys2 编译Androidso库和运行使用(三,实战篇)
android·live555
Android小码家3 个月前
Live555+Windows+MSys2 编译Androidso库和运行使用
android·live555
xiejiashu9 个月前
亲测有效,长期有效的RTSP流地址公网RTSP地址,各种类型的视频源
rtsp·live555·easyrtspserver·公网rtsp地址·rtsp公网地址
DogDaoDao9 个月前
音视频开发常见的开源项目汇总
ffmpeg·开源·音视频·webrtc·x264·live555·obs
千里马学框架10 个月前
live555编译运行笔记
android·笔记·车载系统·rtsp·live555·系统工程师
码农客栈1 年前
linux live555编译以及rtsp服务器搭建
rtsp·live555
迷茫的蜉蝣1 年前
live555 rtsp服务器实战之doGetNextFrame
linux·嵌入式·live555·dogetnextframe
迷茫的蜉蝣1 年前
live555 rtsp服务器实战之createNewStreamSource
linux·音视频·嵌入式·live555