Pages

Tuesday, November 26, 2013

Screen Recording in Android 4.4

1. In order to perform a screenrecord, you’ll need the Android SDK and a familiarity with adb command.

2. On your Android device running KitKat, enable USB Debugging from Developer Options, which is hidden by default. To enable Developer options, head over to Settings -> About Phone/Tablet and tap on the Build Number seven times, after which you will get a toast notification saying “You’re now a Developer.”
Head over to Settings -> Developer Options now, and then enable the ‘USB Debugging’ option. If you also want your on-screen touches to show in the video, enable the ‘Show touches’ option as well.

3. You are now ready to record a video. Simply connect the Android device to your PC and start a new instance of Command Prompt in Windows or Terminal on Mac. You will now need to navigate to the android sdk folder.

4.  Now, as soon as you enter the command below, the screen recording will start.
adb shell screenrecord /sdcard/filename.mp4
5. You can further customize the speed at which it captures video by using the following command
adb shell screenrecord --bit-rate 8000000 /sdcard/kitkat.mp4

The above command would record at 8Mbps, instead of the default 4Mbps and save it to the SD Card on your device with the name of KitKat. 

6. You can further customize the length of time it records (the default duration is 3-minutes) using the following command
adb shell screenrecord --time-limit 30 /sdcard/kitkat.mp4

The above command would record for 30s, instead of the default 3 Minutes and save it to the SD Card on your device with the name of KitKat. 
7. Other information can be found in the following link

http://developer.android.com/tools/help/adb.html#screenrecord


No comments:

Post a Comment