码迷,mamicode.com
首页 > 移动开发 > 详细

android 截图,视频录制命令 screencap screenrecord screenshot

时间:2015-04-10 15:36:54      阅读:940      评论:0      收藏:0      [点我收藏+]

标签:


时间限制视频录制:
screenrecord  --time-limit 20 /sdcard/demo.mp4

抓屏:
screencap -p /sdcard/screen.png
screenshot /sdcard/screen.png


视频录制命令screenrecord
 # screenrecord --help                                           
Usage: 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.


截图命令screencap
 # screencap -h                                                
usage: screencap [-hp] [-d display-id] [FILENAME]
   -h: this message
   -p: save the file as a png.
   -d: specify the display id to capture, default 0.




# screenshot -h
screenshot: invalid option -- h
usage: screenshot [-s soundfile] filename.png
   -s: play a sound effect to signal success
   -i: autoincrement to avoid overwriting filename.png

android 截图,视频录制命令 screencap screenrecord screenshot

标签:

原文地址:http://blog.csdn.net/sheji105/article/details/44979667

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!