Comments (9)
@xiaoqunSun KEY_I_FRAME_INTERVAL设置成0,用什么方式强制获取I帧,是MediaCodec.PARAMETER_KEY_REQUEST_SYNC_FRAME吗?
from anyrtc-rtmp-opensource.
我也碰到这个问题,最后找到的问题原因是colorformat不正确,在Android6.0上,如果使用的是硬编码器,我的是qcom的编码器,需要使用YUV420SP的colorformat,才能正常出关键帧,使用YUV420P不行。机型:小米4。
from anyrtc-rtmp-opensource.
这个问题我们正在努力复现,多谢
from anyrtc-rtmp-opensource.
这个问题目前来看没有特别好的解决办法,可以暂时规避掉,MediaCodec编码器如果可以定时如3s输出关键帧,则可以注释掉这行代码。
from anyrtc-rtmp-opensource.
目前确认是所有Android 6.0上都有这个问题。 按你说的,注释掉这句代码,Android 6.0上就只有一开始有个I帧,后面一直没有I帧了,全是P帧, MediaFormat.KEY_I_FRAME_INTERVAL设置不生效。Android 4、Android 5版本上这个设置都是生效的。 所以现在Android 6.0上要么只有第一个I帧,后面全是P帧, 要么全是I帧没有P帧, 这都不正常啊。
from anyrtc-rtmp-opensource.
可以用软件方式强制让它生成关键帧么……
from anyrtc-rtmp-opensource.
@DyncEric @mtdxc 知道怎么破吗,这个问题还比较严重啊
from anyrtc-rtmp-opensource.
印象中webrtc的编码函数是可以设置生成关键帧的。
我给的建议是降 MediaFormat.KEY_I_FRAME_INTERVAL设成0,
然后自己数帧,每过几帧就强制编码器生成关键帧
也就是说自己实现KEY_I_FRAME_INTERVAL逻辑
from anyrtc-rtmp-opensource.
V_H264Encoder::RequestKeyFrame
from anyrtc-rtmp-opensource.
Related Issues (20)
- 某些直播流播放音频卡卡卡 HOT 6
- Android端推流到srs流媒体服务器,视屏播放底部绿屏
- 无法连接到rtmp服务器,一直是连接中状态 HOT 1
- 这个库似乎跑步起来了吧。缺失各种so库,是需要我们自己先去编译so库吗? HOT 4
- 摄像头和屏幕推流都只有音频信息,有没有视频信息 HOT 1
- Android 播放器 点击退出后还继续在后台执行解码
- Windows下缺失webrtc-release.lib依赖 HOT 2
- iOS 不支持armv7 和模拟器
- 请问支持rtsp流吗
- ARLiveKit undefined symbol _fft _MSEncode _MSReconstruct
- dlopen failed: library "libanyLive.so" not found HOT 3
- 安卓:如何设置推流时间,我看实例里面1分钟推一次 HOT 1
- iOS 拉流时, demo 中代码 频繁复现 只有声音没有画面
- xcode14 项目编译不过
- ios的推流一直显示重连~ HOT 2
- 编译webrtc库替换报错Undefined symbol rtc::Thread等
- windows 编译通不过 HOT 1
- 请问x64 webrtc.lib 的下载地址 HOT 1
- 检测到音频格式是PCM导致没有声音 HOT 7
- Release Please
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anyrtc-rtmp-opensource.