Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Thread Deleted

[how to] ***record screen*** ***native *** ***adb*** ***[kitkat]***

OP alonsoch

Prev Previous Post   Next Post Next
30th January 2014, 05:51 PM   |  #1  
alonsoch's Avatar
OP Senior Member
Flag Hidalgo Del Parral Chihuahu
Thanks Meter: 732
 
564 posts
Join Date:Joined: May 2012
Donate to Me
More
Hi.
so if i'm in the wrong section or if any moderator think that this is sh**t you can delete my post or etc.
I will do the example with a moto g , but this work on any device running kitkat
So, in android 4.4 google introduces a new feature called "Screen Recording" so the tool basically record your screen , i think that if we use some videos an pics in the OP of any rom we will have a better idea of what we will see in our device, if is smooth or slow, or laggy, etc
So basically you will need :
THIS JUST WORK ON DEVICES RUNNING KITKAT
Moto G Drivers(Or drivers of the android device)
ADB
Moto G(Or android device)

So
open a conosole were is adb (shift+open window command here)
remember check adb debugging
try:

adb devices

this will return something like that
https://drive.google.com/file/d/0B9M...it?usp=sharing

so, if our device is detected we use the next instructions(basic commando):

adb shell screenrecord /sdcard/demo.mp4

if we put attention we will see that the video will be saved in the sdcard(in the root), we can change were the video will be saved, and we see too that demo.mp4 is the name of the video, you can change the name but remember put .mp4 in the end, the length of time it records (the default duration is 3-minutes) and this comand would record at 4mbps THIS COMMAND IS THE BASIC
so this look like that:
https://drive.google.com/file/d/0B9M...it?usp=sharing

we know that the video will be in /sdcard/ with the name demo.mp4
so another example of code will be this:
adb shell screenrecord --bit-rate 8000000 --time-limit 30 /sdcard/kit.mp4
now the bitrate of the video will be 8mbps and the time now will be 30 seconds and the name of the video is kit and will be saved in the root of our sdcard.
this look like:
https://drive.google.com/file/d/0B9M...it?usp=sharing

now we have our video, so we will pull the video from our sdcard to our pc:
adb pull /sdcard/kit.mp4
https://drive.google.com/file/d/0B9M...it?usp=sharing

and DONE we have a little record about our rom,etc
i repeat this is the basic example. a lot of commands are in this page http://developer.android.com/tools/h...l#screenrecord
This are more commands , just added in the command before put /sdcard/

Options Description
--help=======Displays a usage summary.
--size <WIDTHxHEIGHT>======Sets the video size, for example: 1280x720. The default value is the device's main display resolution (if supported), 1280x720 if not. For best results, use a size supported by your device's Advanced Video Coding (AVC) encoder.
--bit-rate <RATE>=======Sets the video bit rate for the video, in megabits per second. The default value is 4Mbps. You can increase the bit rate to improve video quality or lower it for smaller movie files. The following example sets the recording bit rate to 6Mbps:
screenrecord --bit-rate 6000000 /sdcard/demo.mp4
--time-limit <TIME>======Sets the maximum recording time, in seconds. The default and maximum value is 180 (3 minutes).
--rotate=======Rotates the output 90 degrees. This feature is experimental.
--verbose=======Displays log information on command line screen. If you do not set this option, the utility does not display any information while running.


And one more thing you can find all the requirements here :
Drivers For The moto g(download device manager)------https://motorola-global-portal.custh...50/action/auth
Minimal Adb(Thanks to him)----- http://forum.xda-developers.com/show....php?t=2317790

Example of the Results:
http://www.youtube.com/watch?v=22C2w...ature=youtu.be



Thanks to :
Google
Motorola
@shimp208
and maybe ... me....
Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes