android设置adb自带screenrecord录屏命令

android 设置system/bin目录类似linux,该目录下有许多实用命令,类似

成都创新互联公司是一家专业提供加格达奇企业网站建设,专注与网站建设、成都网站设计、HTML5建站、小程序制作等业务。10年已为加格达奇众多企业、政府机构等服务。创新互联专业的建站公司优惠进行中。

adb,sh,top,app_process,chmod,chown,dmesg,reboot,screenrecord等等。

录屏作用:qa测试过程中有的bug需要还原现场,此时用手机拍摄有诸多不便,此时可以利用录屏命令自动完成录屏,然后上传bug视频。

其中screenrecord命令录制视频到内部存储:

录制命令:

adb shell screenrecord --size 1920x480 /storage/sdcard0/demorecord.mp4

时间设置:

adb shell screenrecord --time-limit 100 /storage/sdcard0/demorecord.mp4

停止录制:

Ctrl + C会停止命令,自动停止录制。

参数设置:

$ adb shell screenrecord --help
Usage: screenrecord [options]
Records the device's display to a .mp4 file.
Options:
–size WIDTHxHEIGHT 设置屏幕宽高,一般根据自己手机设置,最大支持1920x480。
Set the video size, e.g. “1280x720”. Default is the device's main
display resolution (if supported), 1280x720 if not. For best results,
use a size supported by the AVC encoder.
–bit-rate RATE 设置bit率
Set the video bit rate, in megabits per second. Default 4Mbps.
–time-limit TIME 设置录制时间,默认最大时长180秒
Set the maximum recording time, in seconds. Default / maximum is 180.
–rotate 旋转输出
Rotate the output 90 degrees.
–verbose
Display interesting information on stdout.
–help
Show this message.
Recording continues until Ctrl-C is hit or the time limit is reached.

总结

以上所述是小编给大家介绍的android设置adb自带screenrecord录屏命令,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对创新互联网站的支持!

当前文章:android设置adb自带screenrecord录屏命令
浏览路径:https://www.cdcxhl.com/article18/gpicgp.html

成都网站建设公司_创新互联,为您提供网站设计公司定制开发外贸建站网站导航App开发外贸网站建设

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

小程序开发