adb shell screenrecord 录屏命令
2017-08-04 本文已影响81人
act262
adb shell screenrecord 录屏命令
Tags: adb_shell
screenrecord 命令在4.x后才有,有些手机需要root权限才能使用
i.e
# 开始录屏,输出文件为outputfile.mp4,直到手动(Ctrl-C)或者定时停止录屏
screenrecord outputfile.mp4
帮助命令
shell:/ $ screenrecord --help
Usage: screenrecord [options] <filename>
Records the device's display to a .mp4 file.
Options:
--size WIDTHxHEIGHT
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
Set the video bit rate, in megabits per second. Default 4Mbps.
--time-limit TIME
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.