Skip to content

Instantly share code, notes, and snippets.

@niraj-shah
Created November 7, 2013 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niraj-shah/7355212 to your computer and use it in GitHub Desktop.
Save niraj-shah/7355212 to your computer and use it in GitHub Desktop.
Screen recording an Android 4.4 device using ADB
# run the adb shell
adb shell
# basic recording from shell
screenrecord --verbose /sdcard/nexus5.mp4
# press Ctrl-C to stop
# recording for 30 seconds
screenrecord --verbose --time-limit 30 /sdcard/nexus5.mp4
# recording for 30 seconds with 8Mbps bitrate
screenrecord --verbose --bit-rate 8000000 --time-limit 30 /sdcard/nexus5.mp4
# record in portrait view / horizontal
screenrecord --verbose --rotate /sdcard/nexus5.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment