screenrecord
Record a video of a mobile display. tldr-pages
On Android
Android
Record a video of a mobile display. Note: This command can only be used through adb shell.
Record the screen
screenrecord path/to/file.mp4Record the screen at a specific resolution
screenrecord --size 1280x720 path/to/file.mp4Record the screen with a specific bitrate
screenrecord --bit-rate 6000000 path/to/file.mp4Record the screen with a maximum duration (in seconds, 180 seconds is the maximum)
screenrecord --time-limit 180 path/to/file.mp4Display help
screenrecord --help