Skip to content

Instantly share code, notes, and snippets.

@Kennyl
Last active September 24, 2017 06:08
Show Gist options
  • Save Kennyl/28c46c32e020b115cb816da7640d1a34 to your computer and use it in GitHub Desktop.
Save Kennyl/28c46c32e020b115cb816da7640d1a34 to your computer and use it in GitHub Desktop.
Android Adb Shell
/adb shell screenrecord --help
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.
adb shell screenrecord /sdcard/example.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment