Páginas

Grabar vídeo de la pantalla en Android
Recording the screen on Android

Hasta ahora, si queríamos grabar un vídeo de la pantalla de nuestro móvil, teníamos que recurrir a aplicaciones del market. He cacharreado con algunas, y no es un proceso sencillo, ya que la mayoría requieren tener el móvil rooteado o instalar programas auxiliares en el ordenador.
Por suerte, a partir de la versión 4.4 de Android (API level 19), se incluye la utilidad screenrecord al adb. Con ella, grabar la pantalla es tan sencillo como conectar el móvil e invocar el siguiente comando:

$ adb shell screenrecord /sdcard/record.mp4

De esa forma comienza la grabación. Para pararla pulsamos ctrl + C. El resultado estará en la ruta de nuestro teléfono que hayamos indicado.

El comando permite muchas opciones, como fijar el tiempo de grabación, el bit rate, etc. Aquí puedes encontrar más información.

En algunas ocasiones el comando me ha mostrado el error:

unable to create video/avc codec instance

No he conseguido averiguar a qué se debe, pero aplicando la solución universal del informático, se resuelve: reinicia tu móvil.
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:

$ 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.

No hay comentarios:

Publicar un comentario