流媒体开发之开源项目live555---更改server端的帧率大小和码率大小

-----------------------------qq:1327706646

010101010101010110010101010101010101010author:midu

010101010101010101010101010101011010101010101010101datetime:2014-12-11

2014-12-11 关于帧率修改的修正:

上面的帧率只是在帧率为0的情况下的默认值,后面会被同文件下的里一个函数重新复制修改unsigned H264or5VideoStreamParser::parse() 这个解析函数有如下修改:

else if (isSPS(nal_unit_type)) { // Sequence parameter set
// First, save a copy of this NAL unit, in case the downstream object wants to see it:
usingSource()->saveCopyOfSPS(fStartOfFrame + fOutputStartCodeSize, curFrameSize() - fOutputStartCodeSize);

if (fParsedFrameRate == 0.0) {
// We haven't yet parsed a frame rate from the stream.
// So parse this NAL unit to check whether frame rate information is present:
unsigned num_units_in_tick, time_scale;
analyze_seq_parameter_set_data(num_units_in_tick, time_scale);
if (time_scale > 0 && num_units_in_tick > 0) {
usingSource()->fFrameRate = fParsedFrameRate = 25;//2*time_scale/(2.0*num_units_in_tick);//这里才是真正的产生作用的地方!

 

修改最大发送帧大小:

DynamicRTSPServer.cpp

OutPacketBuffer::maxSize = 250000; 

 

http://blog.csdn.net/weixinhum/article/details/38067743

 http://www.cppblog.com/dvb-dvb/archive/2009/08/12/99268.html

 

 

http://blog.csdn.net/niu_gao/article/details/6936108 这个对server

http://www.oschina.net/question/1460731_145623

http://blog.csdn.net/wolfliuming/article/details/6087070

http://blog.sina.com.cn/s/blog_520811730101kgry.html

http://blog.sina.com.cn/s/blog_520811730101kgry.html vps nal里面的概念

http://blog.csdn.net/china_video_expert/article/details/8656159

posted @ 2014-09-16 17:45  midu  阅读(2375)  评论(0编辑  收藏  举报