如何使用的/ dev /图形/ fb0设备来捕捉屏幕(安卓) [英] How to capture the screen using /dev/graphics/fb0 (Android)

查看:567
本文介绍了如何使用的/ dev /图形/ fb0设备来捕捉屏幕(安卓)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用的/ dev /图形/ fb0设备,以及如何使用收集到的数据帧buffer..i知道这一点,要求设备能够扎根,使其图像文件,我行以捕捉Android设备屏幕内容与该..

How to capture the Android device screen content using /dev/graphics/fb0 and how to make it an image file using the collected data from frame buffer..i know for this it requires the device to be rooted and i am ok with that..

在此先感谢,

推荐答案

这应该工作:

adb pull /dev/graphics/fb0 fb0
ffmpeg -vframes 1 -vcodec rawvideo -f rawvideo -pix_fmt rgb32 -s 320x480 -i fb0 -f image2 -vcodec png image.png

这篇关于如何使用的/ dev /图形/ fb0设备来捕捉屏幕(安卓)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆