Sometimes we need to record the screen of an Android phone, like writing a demo app that needs to be posted on blogs and tweets.
Here's how I recorded the GIF.
For Android4.4 on the phone, the system comes with a command screenrecord, we can be very convenient to use.
Recording commands
shell screenrecord /sdcard/test.mp4
The video save directory can be specified by itself, such as the/sdcard/test.mp4 above,
After the command executes, it will record 180s, press CTRL + C to end the recording ahead of time
Setting the video resolution
For high-resolution phones, the recorded video is large, and we share it without the need for such a large
We can set the recorded video resolution
shell--size 848*480 /sdcard/test.mp4
Set Video bit rate
The default bit rate is 4m/s, we can adjust the bit rate to 2M for sharing convenience
shell--bit-rate 2000000 /sdcard/test.mp4
Get video files
Use adb pull to get video from your phone's SD card locally
adb pull /sdcard/test.mp4 .
Go to GIF file
There's a nice software under Windows. Free Video to GIF converter can convert MP4 to GIF.
You can also delete unwanted frames when converting, which is really good.
You can use Gifrocket to convert on your Mac.
There are some online conversion tools that can be used, but they will be watermarked.
This article * Noodle
Original address: http://www.aswifter.com/2015/07/10/android-record-video-to-gif/
Welcome to my public number, share Android development, iOS development, swift development and Internet content
Number: App developer
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
How to record screen and turn GIF on Android phone