Android adb tools-and recorded video (v)
tags (space delimited): Android ADB
7. and recording view
Command |
function |
ADB Shell Screencap–p <path/file> |
Cell phone |
adb shell Screenrecord [options] |
Screen recording |
- Screen Recorder named incoming parameter description
C:\USERS\ADMINISTRATOR>ADB Shell Screenrecord--helpUsage:screenrecord [Options] <filename>records theDevice ' s display toA. mp4file. Options:--size widthxheightSet theVideo size, e.g."1280x720". Default is theDevice ' s main display resolution (ifSupported), thex720if not. For best results, use a size supported by theAVC Encoder.--bit-rate RateSet theVideo bit rate,inchMegabits perSecond. Default4Mbps.--time-limit TimeSet theMaximum recording Time,inchSeconds. Default/maximum is .--rotateRotate theOutput -Degrees.--verboseDisplay Interesting information onStdOut.--helpShow this message. Recording continuesuntilCtrl-c isHitor the TimeLimit isReached.
- –size WIDTH * HEIGHT: Input resolution, default is the display resolution of the device screen
- –bit-rate Rate: Set video bitrate, default is 4mbps
- –time-limit Time: Set video recording (in S), default is 180S
- –rotate: Set video rotation 90 degrees
- Stop recording: CTRL + C
Cell phone
To the phone sdcard
Copy the screen.png to the desktop s
>C:\Users\Administrator>adb shell screencap -p /sdcard/screen.png>C:\Users\Administrator>adb pull /sdcard/screen.png C:\Users\Administrator\Desktop>4841 KB/s (292531 bytes in 0.059s)
Screen recording
This command is only available for Android4.4 above
C:\Users\Administrator>adb shell screenrecord /sdcard/s1.mp4
After entering this command, the command will be stuck in the page, and now the recording is started, you can swipe the phone and manipulate
//开始屏幕录像C:\Users\Administrator>adb shell screenrecord /sdcard/s1.mp4^C//随意操作手机。。。//拷贝录像到电脑桌面查看C:\Users\Administrator>adb pull /sdcard/s1.mp4 C:\Users\Administrator\Desktop3394 KB/s (3531759 bytes in 1.016s)
Record 320*480-sized video
Note: The size uses the English letter x, not *
shell--size 320*480 /mnt/sdcard/s2.mp4‘320*480‘shell--size 320x480 /mnt/sdcard/s2.mp4
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Android adb tools-and recorded video (v)