Wednesday

How to Capture Screenshot and Record Screen using ADB

Many will be wondering how to capture screenshot and record screen using Android Debug Bridge (ADB). Its simple than you think and can be performed with a single line of command. Just follow the steps to perform this.




Capturing Screenshot

1. Install the required ADB drivers on your PC.
2. Connect your device with PC using wired or wireless ADB connection.
3. Open Terminal in Linux or Command Prompt and enter the following command.
adb shell screencap -p /sdcard/screencap.png
4. Now the captured screenshot will be placed on your internal sdcard. To copy the screenshot to your pc enter the 
adb pull /sdcard/screencap.png

Now screenshot will be stored on your PC.

Recording Screen

1. Connect your device with PC using wired or wireless ADB connection.
2. Open Terminal in Linux or Command Prompt and enter the following command.
adb shell screenrecord /sdcard/screen.mp4
3. To stop screen recording break using Ctrl + C
4. Now the captured video will be placed in internal sdcard. Copy the video to PC using the command.
adb pull /sdcard/screen.mp4
5. Increase bitrate of the video using the command.
adb shell screenrecord –bit-rate 12000000 /sdcard/screen.mp4

Now bit rate will be 12 Mbps.
Any questions comment here.
Enjoy :)
If you wish to receive new articles related to How to Capture Screenshot and Record Screen using ADB


About Me

Designed ByBlogger Templates