"ADB command line" adb Shell screenrecord command-line usage instructions

Source: Internet
Author: User

First, view the help command, parameter--help

D:\>adb shell screenrecord --helpusage: screenrecord [options] <filename >android screenrecord v1.2.  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 bits per  second.  value may be specified as    bits or  megabits, e.g.  ' 4000000 '  is equivalent to  ' 4M ' .  default  4mbps.--bugrePort    add additional information, such as a timestamp  overlay, that is helpful    in videos captured to  illustrate bugs.--time-limit TIME    Set the maximum  Recording time, in seconds.  default / maximum is 180.--verbose     Display interesting information on stdout.--help     show this message. Recording continues until ctrl-c is hit or the time limit is  reached.

    1. Start recording command:

ADB Shell Screenrecord/sdcard/demo.mp4

Note: Recorded phone screen, video format mp4, stored in the phone SD card, the default recording time is 180s.

Screenrecord is a shell command that supports Android4.4 (API level 19) and supports video formats: MP4

2. Specify the video resolution size, parameter--size

adb shell Screenrecord--size 1280*720/sdcard/demo.mp4

Description: Recorded video, resolution 1280*720, if you do not specify the default use of the phone's resolution, for best results, use the Advanced video encoding (AVC) supported size on the device

3. Specify the bit rate of the video, parameter--bit-rate

adb shell Screenrecord--bit-rate 6000000/sdcard/demo.mp4

Description: Specifies that the video has a bit rate of 6Mbps, and if not specified, the default is 4Mbps. You can increase the bitrate to improve the video quality or reduce the bit rate in order to make the file smaller

4. Rotation 90 degrees, parameter:--rotate

ADB Shell Screenrecord--rotate/sdcard/demo.mp4

Description: This feature is experimental, experiments on NEXUS6 devices, recorded video playback is also rotated 90 degrees play, experience is not very friendly.

5. Export Video:

ADB pull/sdcard/demo.mp4 d:/

Description: The location of the exported video is under the D-Packing directory with the name Demo.mp4

Second, the use of recording function in Ddms

1. Use DDMS on the command line to open the Android DDMS (monitor.bat) tool

2. Open the debug mode of Android phone (Android4.4 and above ), use USB to connect the phone, DDMS interface name appears in the phone model and online status

3.device-->screen Record, pop-up Settings page, set video bitrate, and video resolution and storage path, click OK

4. Operate the mobile phone test scene, after the completion, click the Cannel button, wait a few seconds, will pop up the prompt to save the success.

"ADB command line" adb Shell screenrecord command-line usage instructions

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.