流媒体开发之开源项目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
最新文章
- 什么是WebPack,为什么要使用它?
- PAT A 1118. Birds in Forest (25)【并查集】
- HDU 3038 How Many Answers Are Wrong(带权并查集)
- python操作excel表格(xlrd/xlwt)
- 【kate总结】Matlab坐标轴问题
- poj 3979 分数加减法
- jquery-validation 学习总结
- 2、Python djang 框架下的word Excel TXT Image 等文件的下载
- TCP连接建立的三次握手过程可以携带数据吗?
- 【转】Hibernate和ibatis的比较
- wxpython 树形控件全选和取消全选
- Java虚拟机之GC
- 在客户端先通过JS验证后再将表单提交到服务器
- GitStack 第三方开源服务器端
- Linux安装rpm包时报错Header V3 DSA/SHA1 Signature, key ID 1d1e034b: NOKEY解决办法
- 使用eclipse启动系统时报错“ java.lang.OutOfMemoryError: PermGen space”问题的解决
- TASKER 定制你的手机让它在办公室时屏幕 30 分钟才灭
- RMQ之ST求区间最大值
- 17.并发容器之ThreadLocal
- objective c to pas
热门文章
- HDU——3786找出直系亲属(DFS+回溯)
- BZOJ 4811 [Ynoi2017]由乃的OJ ——Link-Cut Tree
- BZOJ 2331 [SCOI2011]地板 ——插头DP
- 雅礼培训 Problem B 【图论 + 贪心】
- P1681 最大正方形II (动态规划)
- 【THUSC2016】成绩单(bzoj4897)
- 【NOI2012】骑行川藏
- python和scrapy的安装【转:https://my.oschina.net/xtfjt1988/blog/364577】
- Spring Boot SpringSecurity5 身份验证
- LA 3135 优先队列