Dedaniya HirenKumar
Dedaniya HirenKumar

Reputation: 3020

How to record Android device's screen on Android version below 4.4 (KitKat)

With Android version 4.4 (KitKat) one can record Android device's screen with following command using ADB from commandline.

adb shell screenrecord /sdcard/demo.mp4

But this only works in Android version 4.4 (KitKat) and 5.0 (Lolipop)

Is there any other command or a way to record a video below Android version 4.4 (KitKat) using ADB?

Upvotes: 69

Views: 121341

Answers (6)

Albert.Qing
Albert.Qing

Reputation: 4615

  1. adb shell screenrecord /sdcard/video.mp4 #save MP4

  2. Ctrl+C #Stop record

  3. adb pull /sdcard/video.mp4 #pull mp4 to your pc

  4. adb shell rm /sdcard/video.mp4 #Delete file on phone

Upvotes: 20

jinkal
jinkal

Reputation: 1702

This only work in KitKat and via ADB only. This does not work below Kitkat.

To start recording your device’s screen, run the following command:

adb shell screenrecord /sdcard/example.mp4, This command will start recording your device’s screen using the default settings and save the resulting video to a file at /sdcard/example.mp4 file on your device.

When you’re done recording, press Ctrl+C in the Command Prompt window to stop the screen recording. You can then find the screen recording file at the location you specified. Note that the screen recording is saved to your device’s internal storage, not to your computer.

The default settings are to use your device’s standard screen resolution, encode the video at a bitrate of 4Mbps, and set the maximum screen recording time to 180 seconds. For more information about the command-line options you can use, run the following command:

adb shell screenrecord --help, This works without rooting the device. Hope this helps.

Upvotes: 94

caiiiycuk
caiiiycuk

Reputation: 1596

To avoid time limit issue, you can use this snippet:

./adb exec-out "while true; do screenrecord --bit-rate=16m --output-format=h264 --size 720x1280 --time-limit 180 -; done" | ffplay -framerate 60 -framedrop -bufsize 16M -

Upvotes: 3

AirServer is a good application to do this with. You can mirror your device's screen to your PC/Mac and record them to a file. Great quality too.

Upvotes: 2

Hareshkumar Chhelana
Hareshkumar Chhelana

Reputation: 24848

The screenrecord command is a shell utility for recording the display of devices running Android 4.4 (API level 19) and higher.

Ref. : http://developer.android.com/tools/help/adb.html (Recording a device screen)

OR

There is many application available on market for screen recording, So download which more is useful to you.

Upvotes: 0

Sebastiano
Sebastiano

Reputation: 12339

As you pointed out, that command is only available in KitKat and via ADB only.

I'd say your best option is recording the portion of the screen of an emulator (either AVD or Genymotion).

Upvotes: 4

Related Questions