Android 屏幕录制命令adb screenrecord
2017-01-30 10:19
477 查看
录制视频到内部存储:
adb shell screenrecord --size 1920x480 /storage/sdcard0/demo.mp4
最大支持的分辨率:1920x1088
The max width/height supported by codec is 1920x1088
指定录制时间:
adb shell screenrecord --time-limit 10 /storage/sdcard0/demo.mp4
指定视频比特率:
adb shell screenrecord --bit-rate 6000000 /storage/sdcard0/demo.mp4
停止录制:
Ctrl + C中断录制,或者到达指定录制时间自动停止
adb pull或者用USB拷贝出来:
adb pull /storage/sdcard0/demo.mp4
帮助菜单:
$ adb shell 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.
Recording continues until Ctrl-C is hit or the time limit is reached.
adb shell screenrecord --size 1920x480 /storage/sdcard0/demo.mp4
最大支持的分辨率:1920x1088
The max width/height supported by codec is 1920x1088
指定录制时间:
adb shell screenrecord --time-limit 10 /storage/sdcard0/demo.mp4
指定视频比特率:
adb shell screenrecord --bit-rate 6000000 /storage/sdcard0/demo.mp4
停止录制:
Ctrl + C中断录制,或者到达指定录制时间自动停止
adb pull或者用USB拷贝出来:
adb pull /storage/sdcard0/demo.mp4
帮助菜单:
$ adb shell 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.
Recording continues until Ctrl-C is hit or the time limit is reached.
相关文章推荐
- Android 获取GPS速度
- Android 使用SVG动画
- Android编程之通知栏的用法小结
- Android编程实现调用系统图库与裁剪图片功能
- Android开发入门——推箱子游戏开发实战(十三)
- Android中bindService的细节之四:bindService时,你所忽略的代码流程细节
- 关于Android Matrix pre post 的理解
- Mac 连不上华为 p9 处理历程(一)
- Mac 连不上华为 p9 处理历程(二)
- Android中事件处理机制之——View的事件分发详解(一)
- Android轮播广告
- 专制各种升级失败:纯手工刷入Android L步骤,100%成功!
- Android 工具类 -->文件压缩
- SharedSDK(一):Android SharedSDK使用步骤
- Android进阶之路 - IntentService的使用方式
- Android平台美颜相机/Camera实时滤镜/视频编解码/影像后期/人脸技术探索——1.2 GPGPU解决方案简述
- Android 如何收集已发布程序的崩溃信息
- 优雅的实现多类型列表的Adapter
- [OpenGL]从零开始写一个Android平台下的全景视频播放器——5.8 使用MediaPlayer播放在线视频
- 底部导航BottomNavigationBar的使用