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;

修改后效果:

相关推荐
xiejiashu6 个月前
亲测有效,长期有效的RTSP流地址公网RTSP地址,各种类型的视频源
rtsp·live555·easyrtspserver·公网rtsp地址·rtsp公网地址
DogDaoDao6 个月前
音视频开发常见的开源项目汇总
ffmpeg·开源·音视频·webrtc·x264·live555·obs
千里马学框架6 个月前
live555编译运行笔记
android·笔记·车载系统·rtsp·live555·系统工程师
码农客栈8 个月前
linux live555编译以及rtsp服务器搭建
rtsp·live555
迷茫的蜉蝣8 个月前
live555 rtsp服务器实战之doGetNextFrame
linux·嵌入式·live555·dogetnextframe
迷茫的蜉蝣8 个月前
live555 rtsp服务器实战之createNewStreamSource
linux·音视频·嵌入式·live555
迷茫的蜉蝣8 个月前
live555关于RTSP协议交互流程
linux·音视频·rtsp·live555
十年编程老舅1 年前
基于Live555实现RtspServer及高清高码率视频传输优化
音视频·实时音视频·live555·音视频编解码·c++音视频·rtspserver
丿无缘梦丨1 年前
live555-lastest 编译
linux·live555