Time limit video recording:
Screenrecord--time-limit 20/sdcard/demo.mp4
Capture Screen:
Screencap-p/sdcard/screen.png
Screenshot/sdcard/screen.png
Video recording Command Screenrecord
# Screenrecord--help
Usage:screenrecord [Options] <filename>
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 megabits per second. Default 4Mbps.
--time-limit time
Set The maximum recording time, in seconds. Default/maximum is 180.
--rotate
Rotate the output degrees.
--verbose
Display interesting information on stdout.
--help
Show this message.
Command screencap
# screencap-h
Usage:screencap [-HP] [-D Display-id] [FILENAME]
-h:this message
-p:save the file as a PNG.
-d:specify the display ID to capture, default 0.
# screenshot-h
Screenshot:invalid option--H
Usage:screenshot [-S soundfile] Filename.png
-s:play a sound effect to signal success
-i:autoincrement to avoid overwriting filename.png
Android, video recording command screencap Screenrecord screenshot