|
android 4.4 屏幕采集 及 5.1 mediacodec编码问题
发表于 2015-9-29 16:52:53
浏览:21643
|
回复:17
打印
只看该作者
[复制链接]
楼主
本帖最后由 xiaopi224 于 2015-9-29 17:01 编辑
要实现的功能是采集android画面,h264编码
采集方案:viretual display
编码方案:mediacodec
采集和编码分别单独测试遇到如下问题:
android4.4
编码正常
采集有错误,创建虚拟显示后操作android界面,过一会儿系统会重启,错误信息如下:- 09-29 08:45:12.162 31217-31217/? E/GLConsumer﹕ [com.android.systemui.ImageWallpaper] doGLFenceWait: error creating EGL fence: 0x3000
- 09-29 08:45:12.172 31217-31217/? E/GLConsumer﹕ [com.android.systemui/com.android.systemui.recent.RecentsActivity] doGLFenceWait: error creating EGL fence: 0x3000
- 09-29 08:45:12.172 31217-31217/? E/GLConsumer﹕ [com.a30corner.screenrecoder/com.a30corner.screenrecoder.ControlActivity] doGLFenceWait: error creating EGL fence: 0x3000
- 09-29 08:45:12.172 31217-31217/? E/GLConsumer﹕ [StatusBar] doGLFenceWait: error creating EGL fence: 0x3000
- 09-29 08:45:12.172 31217-31217/? E/GLConsumer﹕ [NavigationBar] doGLFenceWait: error creating EGL fence: 0x3000
- 09-29 08:45:12.172 31217-31217/? E/GLConsumer﹕ [NavigationBar] syncForReleaseLocked: error dup'ing native fence fd: 0x3000
- 09-29 08:45:12.182 31217-31217/? E/GLConsumer﹕ [com.android.systemui.ImageWallpaper] doGLFenceWait: error dup'ing fence fd: 24
- 09-29 08:45:12.182 31217-31217/? E/GLConsumer﹕ [com.android.systemui/com.android.systemui.recent.RecentsActivity] doGLFenceWait: error dup'ing fence fd: 24
- 09-29 08:45:12.182 31217-31217/? E/GLConsumer﹕ [com.a30corner.screenrecoder/com.a30corner.screenrecoder.ControlActivity] doGLFenceWait: error dup'ing fence fd: 24
- 09-29 08:45:12.182 31217-31217/? E/GLConsumer﹕ [StatusBar] doGLFenceWait: error dup'ing fence fd: 24
- 09-29 08:45:12.182 31217-31217/? E/GLConsumer﹕ [NavigationBar] doGLFenceWait: error dup'ing fence fd: 24
- 09-29 08:45:12.192 31217-31217/? E/GLConsumer﹕ [NavigationBar] doGLFenceWait: error creating EGL fence: 0x3000
复制代码 android5.1
采集正常
编码显示绿屏 |
|