当前位置:网站首页>直播弱网优化
直播弱网优化
2022-08-03 11:02:00 【51CTO】
弱网优化可以从推流端和拉流端两个方面来优化。
1. 根据上行带宽的状况来动态调整码率、帧率、分辨率
直播过程中可能会遭遇网络变差的情况,为了保证直播流的延续,可以根据上行带宽来适当降低码率、帧率、分辨率。不同的带宽对应一定范围的码率、帧率值 ,调整过后,就不至于太低或太高导致画面不流畅。
2. 推流端使用H.265编码推流
使用H.265编码推流可以节省40%带宽,可惜的是并不是所有手机都支持用H.265编码格式播放,所以需要针对手机型号进行推流。
3. 播放端(拉流端)弱网优化
不同播放内核的弱网优化的策略是不同的,如果是VLC media player,可以在网络状况变差时,将视频画面卡住,等Buffering数据填充5s后,再进行播放。FFmpeg也可以如此定义优化策略。当然其他的优化策略也是值得考虑和尝试的。
谢谢阅读。
边栏推荐
- 卷起来!阿里高工携18位高级架构师耗时57天整合的1658页面试总结
- Basic using MySQL database
- 图新地球为什么很模糊,白球、看图、下载问题深度剖析
- C#+WPF 单元测试项目类高级程序员必知必会
- Question G: Word Analysis ← Questions for the second provincial competition of the 11th Blue Bridge Cup Competition
- LeetCode第三题(Longest Substring Without Repeating Characters)三部曲之二
- 智能合约是什么?
- [Detailed explanation of binary search plus recursive writing method] with all the code
- 多态详细讲解(简单实现买票系统模拟,覆盖/重定义,多态原理,虚表)
- OS层面包重组失败过高,数据库层面gc lost 频繁
猜你喜欢
下午见!2022京东云数据库新品发布会
从餐桌到太空,孙宇晨的“星辰大海”
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!...
Dry goods!A highly structured and sparse linear transformation called Deformable Butterfly (DeBut)
卷起来!阿里高工携18位高级架构师耗时57天整合的1658页面试总结
synchronized
全新的Uber App设计
MySQL数据库实战(1)
怎么在外头使用容器里php命令
混动产品谁更吃香,看技术还是看市场?
随机推荐
APENFT FOUNDATION官宣2022艺术梦想基金主题征集
build --repot
GBase 8c与openGauss是什么关系?
DOM对象能干什么?
oracle计算同、环比
Spinner文字显示不全解决办法
Babbitt | Metaverse daily must-read: Players leave, platforms are shut down, and the digital collection market is gradually cooling down. Where is the future of the industry?...
【冒泡排序以及奇数偶数排列】
Classical Architecture and Memory Classification of Embedded Software Components
redis基础知识总结——数据类型(字符串,列表,集合,哈希,集合)
开源一夏 | 教你快速实现“基于Docker快速构建基于Prometheus的MySQL监控系统”
MySQL数据库实战(1)
鸿蒙第四次
Who is more popular for hybrid products, depending on technology or market?
怎么在外头使用容器里php命令
Dva.js 新手入门指南
【多线程的相关内容】
【无标题】函数,对象,方法的区别
混合型界面:对话式UI的未来
在安装GBase 8c数据库的时候,报错显示“Host ips belong to different cluster”。这是为什么呢?有什么解决办法?