帮助:
adb shell screenrecord --help
用法:
adb shell screenrecord 参数 .mp4文件名与路径
Usage: screenrecord [options] <filename>
参数:
--size WIDTHxHEIGHT
分辨率大小,
adb shell screenrecord --size 1280x720
例如:1280x720
如果不指定默认是手机的分辨率,使用设备上的高级视频编码(AVC)支持的大小
--bit-rate RATE
视频的比特率
例如:6Mbps
adb shell screenrecord --bit-rate 6000
默认为4Mbps.
Set the video bit rate, in megabits per second. Default 4Mbps.
--time-limit TIME
时间限制
例如:10S
adb shell screenrecord --time-limit 10
默认最大为180s
--rotate
旋转输出90度。
adb shell screenrecord --rotate
--verbose
命令行输出日志
例如:
adb shell screenrecord --verbose
如何结束?
按下Ctrl-C或者达到时间限制
使用场景:
1.提BUG
2.测试响应时间
说明:
- screenrecord是一个shell命令
- 支持Android4.4(API level 19)以上
- 支持视频格式: mp4
|