当前位置:网站首页>adb shell截屏录屏命令
adb shell截屏录屏命令
2022-07-26 22:41:00 【Roy_chen7】
一、adb shell screencap 截屏指令
通过adb工具里的help 指令查看screncap指令的用法:
C:\Users>adb shell screencap -help
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.
If FILENAME ends with .png it will be saved as a png.
If FILENAME is not given, the results will be printed to stdout.将截屏保存到手机内存中再导入到电脑中:
adb shell screencap -p /sdcard/screenshot.png
adb pull /sdcard/screenshot.png D:/1二、adb shell screenrecord 录屏指令
首先通过help指令查看screenrecord指令的用法
C:\Users\>adb shell screenrecord --help
Usage: screenrecord [options] <filename>
Android screenrecord v1.2. 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 bits per second. Value may be specified as
bits or megabits, e.g. '4000000' is equivalent to '4M'. Default 4Mbps.
--bugreport
Add additional information, such as a timestamp overlay, that is helpful
in videos captured to illustrate bugs.
--time-limit TIME
Set the maximum recording time, in seconds. Default / maximum is 180.
--verbose
Display interesting information on stdout.
--help
Show this message.
Recording continues until Ctrl-C is hit or the time limit is reached.录屏:--time-limit
adb shell screenrecord --time-limit 200 /sdcard/record.mp4若不指定则默认录屏时间为180s
adb shell screenrecord /sdcard/record.mp4screenrecord命令支持Android4.4(API level 19)以上,支持的视频格式为mp4
录屏视频分辨率大小:--size
adb shell screenrecord --size 1280*720 /sdcard/record.mp4默认是设备的主显示分辨率,否则为1280x720。
指定视频的比特率: --bit-rate
adb shell screenrecord --bit-rate 5000000 /sdcard/record.mp4指定录屏视频比特率为5Mpbs,如果不指定则默认为4Mbps
边栏推荐
猜你喜欢

Valueerror: the device should not be 'GPU', since paddepaddle is not compiled with CUDA

MySQL index optimization: scenarios where the index fails and is not suitable for indexing

基于Flink实时项目:用户行为分析(三:网站总浏览量统计(PV))

14 web vulnerability: types of SQL injection and submission injection

MySQL索引优化:索引失效以及不适合建立索引的场景

不止直播:腾讯云直播MLVB 插件除了推流/拉流还有哪些亮眼功能

Rational selection of (Spark Tuning ~) operator
![[HITCON 2017]SSRFme](/img/ed/4b396e5685bfe025eb96e34a8bd6a3.png)
[HITCON 2017]SSRFme

MYSQL 使用及实现排名函数RANK、DENSE_RANK和ROW_NUMBER
![[NPUCTF2020]ezinclude](/img/24/ee1a6d49a74ce09ec721c1a3b5dce4.png)
[NPUCTF2020]ezinclude
随机推荐
[ciscn2019 North China division Day1 web2]ikun
Flask学习最佳入门指南
使用tika 判断文件类型
MySQL第二篇
Redisson 工作原理-源码分析
基于Flink实时项目:用户行为分析(一:实时热门商品统计)
MYSQL数据库事务的隔离级别(详解)
Flink面试常见的25个问题(无答案)
Flink1.11 多并行度watermark测试
10 Web APIs
JSCORE day_ 05(7.6)
游戏项目导出AAB包上传谷歌提示超过150M的解决方案
Flink的容错机制(checkpoint)
哪个证券公司开户股票佣金低,哪个股票开户安全
[SQL注入] 扩展注入手法
小程序直播、连线直播、直播打赏:腾讯云移动直播组件MLVB多场景直播拓展
Flink Interval Join源码理解
Solve the problem of direct blue screen restart when VMware Workstation virtual machine starts
Hidden index and descending index in MySQL 8.0 (new feature)
MySQL index optimization: under what circumstances do you need to build an index (several situations suitable for building an index)