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

最新文章

  1. 什么是WebPack,为什么要使用它?
  2. PAT A 1118. Birds in Forest (25)【并查集】
  3. HDU 3038 How Many Answers Are Wrong(带权并查集)
  4. python操作excel表格(xlrd/xlwt)
  5. 【kate总结】Matlab坐标轴问题
  6. poj 3979 分数加减法
  7. jquery-validation 学习总结
  8. 2、Python djang 框架下的word Excel TXT Image 等文件的下载
  9. TCP连接建立的三次握手过程可以携带数据吗?
  10. 【转】Hibernate和ibatis的比较
  11. wxpython 树形控件全选和取消全选
  12. Java虚拟机之GC
  13. 在客户端先通过JS验证后再将表单提交到服务器
  14. GitStack 第三方开源服务器端
  15. Linux安装rpm包时报错Header V3 DSA/SHA1 Signature, key ID 1d1e034b: NOKEY解决办法
  16. 使用eclipse启动系统时报错“ java.lang.OutOfMemoryError: PermGen space”问题的解决
  17. TASKER 定制你的手机让它在办公室时屏幕 30 分钟才灭
  18. RMQ之ST求区间最大值
  19. 17.并发容器之ThreadLocal
  20. objective c to pas

热门文章

  1. HDU——3786找出直系亲属(DFS+回溯)
  2. BZOJ 4811 [Ynoi2017]由乃的OJ ——Link-Cut Tree
  3. BZOJ 2331 [SCOI2011]地板 ——插头DP
  4. 雅礼培训 Problem B 【图论 + 贪心】
  5. P1681 最大正方形II (动态规划)
  6. 【THUSC2016】成绩单(bzoj4897)
  7. 【NOI2012】骑行川藏
  8. python和scrapy的安装【转:https://my.oschina.net/xtfjt1988/blog/364577】
  9. Spring Boot SpringSecurity5 身份验证
  10. LA 3135 优先队列