------------------------------author:pkf
-----------------------------------------time:2015-8-20
----------------------------------------------------------qq:1327706646
1. sps 中的帧率
2. vui 结构
3 帧率计算
4 代码实现
1. sps 中的帧率
不是所有的编码器都带有帧率信息,在nalu 中的sps里,应为耗费带宽,通过解析nalu 中的数据结构可以发现里面有个标志位:
vui_parameters_present_flag 负责是否带帧率
2. vui 结构
很多
3 帧率计算
framerate = time_scale/2*num_units_in_tick.
好多网络博客说是framerate = time_scale/num_units_in_tick 这个公式,其实是错误的,只有自己动手才能丰衣足食,我用elecard streameye 看了下 实际数据套用这个公式后多了一倍帧率!
4 代码实现
还没实现,流着后面实现
附录:
http://www.chinavideo.org/archiver/?tid-5256.html
http://blog.csdn.net/android_lee/article/details/6200276
http://blog.csdn.net/ljh081231/article/details/5828997 帧率解析
http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/237004 ti dm8168 中可以设置vui 帧率方法
http://www.ithao123.cn/content-4258668.html
http://blog.csdn.net/bingqingsuimeng/article/details/9980579 pts
原文:http://www.cnblogs.com/pengkunfan/p/5001620.html