Android knowledge 251 - screenrecord screen recording

provided android system / bin directory similar linux, many useful commands in this directory, similar adb, sh, top, app_process, chmod, chown, dmesg, reboot, screenrecord like.
Record screen role: qa testing process, some bug need to restore the scene, this time using a mobile phone has taken a lot of inconvenience, then you can use the command automatically record screen screen recording, video and upload bug.

Wherein screenrecord video recording command to the internal memory:
recording command:
the adb the shell screenrecord --size 1920x480 /storage/sdcard0/demorecord.mp4
time setting:
the adb the shell screenrecord --time-limit 100 /storage/sdcard0/demorecord.mp4

Stop recording:
Ctrl + C stops the command, automatically stop recording.

参数设置:
$ adb shell screenrecord --help
Usage: screenrecord [options]
Records the device’s display to a .mp4 file.

Options:
-size WIDTHxHEIGHT set the screen width and height, according to their general phone settings, up to 1920x480.
Set the video size, EG "1280x720." The Default IS at The Device's main
Run the display Resolution (IF Supported), 1280x720 IF not. The For Best Results,
use A size Supported by at The AVC Encoder.
-Bit-Rate the RATE set the bit rate
Set the video Rate 'bit, in megabits per SECOND. the default 4Mbps.
-time limit the tIME-set recording time, a default maximum time 180 seconds
the set The maximum recording time, in seconds The. the default / maximum IS 180.
-rotate rotational output
Rotate the output 90 degrees.
-verbose
Display Information interesting ON
stdout. -help
Show the this the Message.

Recording continues until Ctrl-C is hit or the time limit is reached.
 

发布了112 篇原创文章 · 获赞 3 · 访问量 9721

Guess you like

Origin blog.csdn.net/yush34/article/details/103958298