Android Video recording command Screenrecord

Source: Internet
Author: User
<span id="Label3"></p><p><p>Transfer from http://blog.csdn.net/wirelessqa/article/details/22725581</p></p>You need to Know: <ul> <ul> <li>Screenrecord is a shell command</li> <li>Support Android4.4 (API level 19) above</li> <li>Supported video formats: mp4</li> </ul> </ul>Some restrictions <ul> <ul> <li>Some devices may not be able to record directly because the resolution is too high and if you encounter such a problem, try specifying a lower resolution</li> <li>Screen rotation during recording is not supported, if the recording process rotates, it is possible that the screen is cut off</li> <li>The sound won't be recorded when you record the Video.</li> </ul> </ul>Start recording command:<pre class="brush:java;gutter:true;"><pre class="brush:java;gutter:true;">ADB Shell Screenrecord/sdcard/demo.mp4</pre></pre><p><p>Note: recorded phone screen, video format mp4, stored in the phone SD card, The default recording time is 180s</p></p>Limit recording Time:<p><p>Parameter:--time-limit</p></p><pre class="brush:java;gutter:true;"><pre class="brush:java;gutter:true;">adb shell Screenrecord --time-limit 10/sdcard/demo.mp4</pre></pre><p><p>Description: Limit video recording time to 10s, if not limited, default 180s</p></p>Specify the video resolution Size:<p><p>Parameter:--size</p></p><pre class="brush:java;gutter:true;"><pre class="brush:java;gutter:true;">ADB Shell Screenrecord--size 1280*720/sdcard/demo.mp4</pre></pre><p><p>Description: recorded video, resolution 1280*720, If you do not specify the default use of the Phone's resolution, for best results, Use the Advanced video encoding (AVC) supported size on the device</p></p>Specifies the bitrate of the video<p><p>Parameter:--bit-rate</p></p><pre><pre><code>adb shell screenrecord --bit-rate 6000000 /sdcard/demo.mp4</code></pre></pre><p><p>description: Specifies that the video has a bit rate of 6Mbps, and if not specified, the default is 4Mbps. You can increase the bitrate to improve the video quality or reduce the bit rate in order to make the file smaller</p></p>Display log at the command line<p><p>Parameter:--verbose</p></p><pre><pre><code></code></pre></pre>Rotate 90 degrees<p><p>Parameter:--rotate</p></p><p><p>Description: This function is experimental, not good to know</p></p>View Help Commands<p><p>Parameter:--help</p></p><pre><pre><code>[email protected] ~$ adb shell screenrecord --helpUsage: screenrecord [options] <filename>Records the device‘s display to a .mp4 file.Options:--size WIDTHxHEIGHT Set the video size, e.g. "1280x720". Default is the device‘s main display resolution (if supported), 1280x720 if not. For best results, use a size supported by the AVC encoder.--bit-rate RATE Set the video bit rate, in megabits per second. Default 4Mbps.--time-limit TIME Set the maximum recording time, in seconds. Default / maximum is 180.--rotate Rotate the output 90 degrees.--verbose Display interesting information on stdout.--help Show this message.Recording continues until Ctrl-C is hit or the time limit is reached.</code></pre></pre>Export Video:<pre><pre><code>adb pull /sdcard/demo.mp4</code></pre></pre><p><p>Android Video recording command Screenrecord</p></p></span>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.