时间限制视频录制:
screenrecord --time-limit 20 /sdcard/demo.mp4
抓屏:
screencap -p /sdcard/screen.png
screenshot /sdcard/screen.png
视频录制命令screenrecord
# 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. F