Until now, if you wanted to record a video of the screen of our mobile, we had to use market applications. I have tried some of them, and it´s not a simple process, as most require you to have the phone rooted or auxiliary programs installed on your computer.
Fortunately, since version 4.4 of Android (API level 19), it includes the adb utility screenrecord. With it, recording the display is as simple as plugging the phone and calling the following command:
In this way the recording begins. To stop it press ctrl + C. The result is in the path of our phone that we have stated.
The command allows many options, such as setting the recording time, bit rate, etc. Here you can find more information.
Sometimes the command has shown me the error:
I have not managed to find out why that is, but applying the universal solution to the computer, it solves: reboot your phone.
Fortunately, since version 4.4 of Android (API level 19), it includes the adb utility screenrecord. With it, recording the display is as simple as plugging the phone and calling the following command:
$ adb shell screenrecord /sdcard/record.mp4
In this way the recording begins. To stop it press ctrl + C. The result is in the path of our phone that we have stated.
The command allows many options, such as setting the recording time, bit rate, etc. Here you can find more information.
Sometimes the command has shown me the error:
unable to create video/avc codec instance
I have not managed to find out why that is, but applying the universal solution to the computer, it solves: reboot your phone.