当前位置:网站首页>WebRTC系列--计算帧率及帧间隔
WebRTC系列--计算帧率及帧间隔
2022-06-09 09:07:00 【简简单单lym】
文章目录
帧率是衡量视频质量的一个重要参数,我们知道视频摄像头采集的数据都是一帧帧的视频图片,在1s内连续采集25-30个图片,我们叫做25fps-30fps;
对于多人会议之类的场景,一般只需要15fps就可以满足需求;那么摄像头采集完成后我们怎么统计帧率;
在统计帧率前我们需要先计算下上一帧和当前帧的间隔,所以我们需要一个变量记录上一帧的时间:
int64_t preVideoFrameTime_ = 0;
preVideoFrameTime_用于记录上一帧的事件戳,单位毫秒就可以。我这里使用WebRTC提供的封装类赋值:
preVideoFrameTime_ = rtc::TimeMicros();
通过TimeMicros()拿到的是当前时刻的微秒(1um =
边栏推荐
- MySQL基础 多表查询
- MySQL basic knowledge
- 附十七章 网络程序解读限定文章
- 【Android -- 面试】程序员月入过 W 的十大平台
- 微信小程序获取用户信息并更新
- MySQL基础 数据类型精讲
- 判断是Json还是文件流
- MySQL basic addition, deletion, modification and query exercise
- Change exchange (boundary protection should work before array access) (if there is no such combination, dp[i] should also be integer.max_value - 1) leetcode 80
- Annexe 17 interprétation du programme réseau
猜你喜欢
随机推荐
Greenplus vacuum cleaning and deleting data command of system operation and maintenance series
Write InputStream to file write multipartfile to file
dotnet core 也能协调分布式事务啦!
微信小程序开发之菜单的创建
xml转Map(递归调用读取XML全部节点内容) readXml 读取xml
MySQL queries all database table names and their comments
[redis learning 11] data persistence of distributed cache, master-slave cluster
MySQL uses while to batch insert data in stored procedures (performance difference between batch submission and single submission)
MySQL基础 子查询练习
微信小程序获取用户信息并更新
[texstudio] [1] fractional dfrac, tfrac undefined control square error
Opencv获取图像像素值数据类型
面试官:如何秒开视频?什么是秒开视频?
倒计时 3 天 | SOFAChannel#28 SOFAArk 类隔离框架设计
ESP32学习笔记【WiFi网络篇】-03TCP-Server服务器连接
MySQL basic knowledge
环境变量Path误删除
neo4j的Cypher的使用语句记录
RMAN backup concept_ About multiple copies of RMAN backups
Will testing not be replaced by development?







![[matlab] [digital simulation] [1] linprog solving linear programming, standard type](/img/e2/584ff7809bcad613b157a6a17d53db.png)

