adb shell screenrecord 录屏命令

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.
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Ubuntu的发音 Ubuntu,源于非洲祖鲁人和科萨人的语言,发作 oo-boon-too 的音。了解发音是有意...
    萤火虫de梦阅读 99,589评论 9 467
  • 上海IP衍生品展是深圳前域文化打造的一个盛会,主要是帮助被授权商拓展销售渠道。 3月8日的高峰论坛,精彩纷呈。 中...
    文青老纪阅读 577评论 0 2
  • 中午睡了一觉,梦到大叔风陈道明了,我遇到危险了,吓得我跑也跑不掉,这时候看到了陈道明,他冷静地走过来救了我。果然还...
    彭小菜阅读 295评论 0 0
  • 又是鸡飞狗跳的一天,一地鸡毛,我却要把这些鸡毛做成一把鸡毛掸子,还努力要做得漂亮,真是没有谁了! 里里外外的人和事...
    兮兮0225阅读 256评论 0 0