screenrecord
Commands can be used for screen recording on android devices (Android 4.4 (API level 19) and above).
original
android screen recording and turn gif
screenrecord
Command details
Entering the following command will print out screenrecord
detailed help information for the command.
adb shell screenrecord --help
roughly translate
命令格式: screenrecord [options] <filename>
版本号 v1.2. 录制屏幕命令,文件格式为mp4.
选项:
--size WIDTHxHEIGHT
设置视频大小, e.g. "1280x720". 默认是设备尺寸.
--bit-rate RATE
设置视频的比特率.
可以设置为两种单位:
第一种 比特 比如 '4000000'
第二种 兆 比如 '4M'
'4000000'等效于'4M'
默认4M
--bugreport
错误报告
--time-limit TIME
设置录制时间,单位为秒. 默认时间180.
--verbose
在命令行打印相关信息.
--help
显示帮助信息.
使用 Ctrl-C 提前停止录屏.
screenrecord
Instruction demo
1. Start recording
adb shell screenrecord --verbose /sdcard/s.mp4
2. Stop recording
Ctrl-C
3. Pull the video file to the local
adb pull /sdcard/s.mp4
turn gif
licecap is recommended