Friday 19 September 2014

Android Screen Recording

Now its easy to create high quality video of your apps, directly from your Android device. Android 4.4 adds support for screen recording and provides a screen recording utility that lets you start and stop recording on a device that connected to your Android SDK environment over USB. It's a great new way to create walkthroughs and tutorials for your app, testing materials, marketing videos, and more.

With the screen recording utility, you can capture video of your device screen contents and store the videos as an MP4 file on the device. You can record at any device supported resolution and bitrate you want, and the output retains the aspect ratio of the display. By default, the utility selects a resolution equal or close to the device's display resolution in the current orientation. When you are done recording, you can share the video directly from your device.

Just like the desktop screen recording, it can be also helpful for many purposes. I want to share with you that how to use this feature. How can you start recording your screen on Android running KitKat 4.4 or above. So lets get started.

There are three ways to record your Android Screen.

1) Rooting Way


To record a video of your Android screen (or to screencast) is extremely easy if you have a device running on Android 4.4 KitKat that is rooted. All you need to do is to download a free app from the Google Play Store called Rec. (Screen Recorder). 

Rec. is a beautiful, modern app that captures video of up to 1 hour and can even record Android sound (not system sound, though, it only records from the microphone). It runs in the background and you can use it to record gameplay (and games and apps in general) on Android. After you use it to shoot video of your Android screen in action, you can enjoy 30fps video saved to your internal phone storage.

2) Non Rooting Way

Recordable is the one that is most versatile: it works without requiring you to root your phone, and it also theoretically works with any version of Android, 2.3 Gingerbread and after. It does not do miracles - it is still impossible to capture system audio (you only grab mic recordings), but video turns out smooth and perfectly usable, even for game videos.

3) The sure way via Android SDK & ADB

Setting Up ADB:
To setup ADB on your computer, the first thing you’ll need to do is install the Android SDK, which you can download from the Android SDK site. Click the big “Download the SDK” button to begin the download. You’ll need to extract the file, and i recommend doing so directly to your C:\ drive since it will save you a lot of time navigating to subfolders to issue ADB commands. Once complete, double click the SDK Manager.exe file and install the default packages.

After installing all the necessary packages, Go in to the settings of your mobile & enable USB debugging from Developer Options. If you can't see Developer Options in your Settings, then go in About Phone and click Build Number 7 times and then Developer Options will become enable.



Now from PC, go to the location where you extracted the file, c->android-sdk->platform-tools and right click while holding shift button and choose open command prompt here.

Now connect your Android device to the computer.

Now in command prompt, type "adb devices" and see if your device recognized by the ADB.



If cmd shows like this then we are good to go.
Now type "adb shell screenrecord /sdcard/FILENAME.mp4. Here FILENAME will be the name of your recorded file. Recording will start immediately when you press enter, the limit for these videos is just 3 minutes but you can stop recording at any time by pressing ctrl+c in command prompt. After stopping the video you can find it in your device video player.

These unmodified videos look okay, but you can do better with a few ADB command modifiers. Using --bit-rate lets you specify a higher or lower quality in kilobits, so entering adb shell screenrecord /sdcard/movie.mp4 --bit-rate 8000000gets you a very crisp 8Mbps video. You can also use --size <width x height> to change the resolution of the video.

No comments:

Post a Comment