System
ADB Debugging
Package Manager
Logcat
Wireless
File Manager
ScreenShot
Network
logcat
This command is used to record screen and other settings relating to screenrecording
adb shell screenrecord --size SIZE /path/to/save.mp4
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.
adb shell screenrecord --size 1280x720 /mnt/sdcard/Download/test.mp4
adb shell screenrecord --bit-rate BITRATE /path/to/save.mp4
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 20Mbps.
adb shell screenrecord --bit-rate 4000000 /mnt/sdcard/Download/test.mp4
adb shell screenrecord --rotate /path/to/save.mp4
Rotates the output 90 degrees. This is an experimental feature.
adb shell screenrecord --rotate /mnt/sdcard/Download/test.mp4
adb shell screenrecord --bugreport /path/to/save.mp4
Add additional information, such as a timestamp overlay, that is helpful in videos captured to illustrate bugs.
adb shell screenrecord --bugreport /mnt/sdcard/Download/test.mp4
adb shell screenrecord --verbose /path/to/save.mp4
Display interesting information on stdout
adb shell screenrecord --verbose /mnt/sdcard/Download/test.mp4
adb shell screenrecord --time-limit=LIMIT /path/to/save.mp4
Set the maximum recording time, in seconds
adb shell screenrecord --time-limit=120 /mnt/sdcard/Download/test.mp4
adb shell screenrecord /path/to/save.mp4
adb shell screenrecord /mnt/sdcard/Download/test.mp4
Frequently Asked Questions
It is a command used to record your Android device's screen
To stop the recording, hit Ctrl+C
You can find your recording in the path that you chose to save it in while using the command.
The maximum duration of recording is 180 seconds however you can change it using the adb shell screenrecord --time-limit=LIMIT /path/to/save.mp4 command.
You cannot rotate the video using the adb shell screenrecord --rotate /path/to/save.mp4 command while recording. Even if you manage to do so, some portion of the recording gets cut out.