android 屏幕录制命令,Android 屏幕录制命令adb screenrecord

录制视频到内部存储:

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

d6f74f3f3448f0f817bf7bde36e835d4.png

帮助菜单:

$ adb shell screenrecord --help

Usage: 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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值