录制视频到内部存储:

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


Android 屏幕录制命令adb screenrecord_第1张图片


帮助菜单:

$ adb shell screenrecord --helpUsage: screenrecord [options] 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.



更多相关文章

  1. Android 如何获取apk大小与时间
  2. android surfaceView控制视频显示大小
  3. Android - Toast自定义显示时间,以及时长
  4. Android 实现视频录制并播放
  5. android openGl录制音视频
  6. Android 获取系统时间的三种方式
  7. android 视频图片混合轮播实现
  8. Android 滚动时间选择
  9. 【Android】对话框之日期和时间对话框

随机推荐

  1. android Activity加载完成后的监听事件
  2. android service 面试
  3. 《Android开发从零开始》――1.Android开
  4. Android的minSdkVersion,targetSdkVersion
  5. [cocos2d-x 学习] 如何编译自己的项目(从w
  6. Android开发中布局属性的使用汇总
  7. 创建简单的Android Material DesignDemo
  8. [置顶] Android-->Rxjava与Retrofit2的结
  9. android 图片转 圆形和圆角矩形
  10. Cocos2d-x项目编译为Android应用——命令