[关闭]
@act262 2017-08-04T13:38:47.000000Z 字数 724 阅读 932

adb shell screenrecord 录屏命令

adb_shell


screenrecord 命令在4.x后才有,有些手机需要root权限才能使用

i.e

  1. # 开始录屏,输出文件为outputfile.mp4,直到手动(Ctrl-C)或者定时停止录屏
  2. screenrecord outputfile.mp4

帮助命令

  1. shell:/ $ screenrecord --help
  2. Usage: screenrecord [options] <filename>
  3. Records the device's display to a .mp4 file.
  4. Options:
  5. --size WIDTHxHEIGHT
  6. Set the video size, e.g. "1280x720". Default is the device's main
  7. display resolution (if supported), 1280x720 if not. For best results,
  8. use a size supported by the AVC encoder.
  9. --bit-rate RATE
  10. Set the video bit rate, in megabits per second. Default 4Mbps.
  11. --time-limit TIME
  12. Set the maximum recording time, in seconds. Default / maximum is 180.
  13. --rotate
  14. Rotate the output 90 degrees.
  15. --verbose
  16. Display interesting information on stdout.
  17. --help
  18. Show this message.
  19. Recording continues until Ctrl-C is hit or the time limit is reached.
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注