adb录屏和截图
adb錄屏和截圖
- 錄屏
- 截圖
- 通過Android Studio錄屏和截圖
錄屏
錄屏命令:screenrecord
在adb shell下輸入命令查看使用幫助:
screenrecord --help
輸出幫助內容如下:
PS C:\Users\Admin> adb shell X5:/ $ screenrecord --help Usage: screenrecord [options] <filename>Android screenrecord v1.2. Records the device's display to a .mp4 file.Options: --size WIDTHxHEIGHTSet the video size, e.g. "1280x720". Default is the device's maindisplay resolution (if supported), 1280x720 if not. For best results,use a size supported by the AVC encoder. --bit-rate RATESet the video bit rate, in bits per second. Value may be specified asbits or megabits, e.g. '4000000' is equivalent to '4M'. Default 4Mbps. --bugreportAdd additional information, such as a timestamp overlay, that is helpfulin videos captured to illustrate bugs. --time-limit TIMESet the maximum recording time, in seconds. Default / maximum is 180. --verboseDisplay interesting information on stdout. --helpShow this message.Recording continues until Ctrl-C is hit or the time limit is reached.X5:/ $從上面的輸出可以使用方法:
screenrecord [options] <filename>
其中options 有如下選項:
截圖
截圖命令:screencap
在adb shell輸入命令查看幫助:
screencap -h
輸出如下:
X5:/ $ screencap -h usage: screencap [-hp] [-d display-id] [FILENAME]-h: this message-p: save the file as a png.-d: specify the display id to capture, default 0. If FILENAME ends with .png it will be saved as a png. If FILENAME is not given, the results will be printed to stdout. 1|X5:/ $使用方法:screencap [-hp] [-d display-id] [FILENAME]
其中選項如下:
通過Android Studio錄屏和截圖
如果安裝了Android Studio,可以通過logcat 工具欄的功能進行錄屏和截圖:
總結
- 上一篇: PPT制作树状结构图
- 下一篇: ClenaMyMac X免费电脑清理软件