天天看點

adb shell 之 screenrecord

adb shell --help

說明:4.4以上裝置可以用來錄制視訊,不需要root權限,極為友善。

E:\workspace\TaoParking\script>adb 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.

本文轉自 breezy_yuan 51CTO部落格,原文連結:http://blog.51cto.com/lbrant/1679740,如需轉載請自行聯系原作者