目录

live555推流服务器异常

目录

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.)

https://i-blog.csdnimg.cn/direct/77cca1e44aaa4b1998976dd48f7045af.png

后台异常,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(), 501024);大小,改成increaseReceiveBufferTo(env, RTPgs->socketNum(), 6001024);

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

https://i-blog.csdnimg.cn/direct/a4d155d51040426399bdbec77a17f124.png

修改后效果:

https://i-blog.csdnimg.cn/direct/3a876a83ba9f48d285828ebadea03367.png