当前位置:网站首页>直播弱网优化
直播弱网优化
2022-08-03 11:02:00 【51CTO】
弱网优化可以从推流端和拉流端两个方面来优化。
1. 根据上行带宽的状况来动态调整码率、帧率、分辨率
直播过程中可能会遭遇网络变差的情况,为了保证直播流的延续,可以根据上行带宽来适当降低码率、帧率、分辨率。不同的带宽对应一定范围的码率、帧率值 ,调整过后,就不至于太低或太高导致画面不流畅。
2. 推流端使用H.265编码推流
使用H.265编码推流可以节省40%带宽,可惜的是并不是所有手机都支持用H.265编码格式播放,所以需要针对手机型号进行推流。
3. 播放端(拉流端)弱网优化
不同播放内核的弱网优化的策略是不同的,如果是VLC media player,可以在网络状况变差时,将视频画面卡住,等Buffering数据填充5s后,再进行播放。FFmpeg也可以如此定义优化策略。当然其他的优化策略也是值得考虑和尝试的。
谢谢阅读。
边栏推荐
- 机器比人更需要通证
- Summary of redis basics - data types (strings, lists, sets, hashes, sets)
- 深度学习100例——卷积神经网络(CNN)实现服装图像分类
- MySQL数据库实战(1)
- 如何检索IDC研究报告?
- 通过GBase 8c Platform安装数据库集群时报错
- ScrollView嵌套RecyclerView滚动冲突
- [LeetCode—Question 2 Sum of Two Numbers Detailed Code Explanation ] The source code is attached, which can be copied directly
- OS层面包重组失败过高,数据库层面gc lost 频繁
- MySQL数据库高级使用
猜你喜欢
随机推荐
Programmers architecture practice way: software architecture basic concepts and thinking
像用户体验设计师一样思考
oracle计算同、环比
Win10/11 删除文件资源管理器左侧栏目文件夹
Dry goods!A highly structured and sparse linear transformation called Deformable Butterfly (DeBut)
跨链桥协议 Nomad 遭遇黑客攻击,损失超 1.5 亿美元
What is a smart contract?
如何改变sys_guid() 返回值类型
使用.NET简单实现一个Redis的高性能克隆版(一)
Analysis of the idea of the complete knapsack problem
How to make self-introduction
【无标题】函数,对象,方法的区别
Skills required to be a good architect: How to draw a system architecture that everyone will love?What's the secret?Come and open this article to see it!...
[Explanation of JDBC and inner classes]
C#/VB.NET 从PDF中提取表格
Cross-chain bridge protocol Nomad suffers hacker attack, losing more than $150 million
mysql数据库定时备份占用大量线程,导致全局锁表,有啥好的解决方法么
鸿蒙第三次
【文件IO的简单实现】
XDR平台架构与关键技术解析









