当前位置:网站首页>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
边栏推荐
猜你喜欢
![[ciscn2019 finals Day2 web1]easyweb](/img/36/1ca4b6cae4e0dda0916b511d4bcd9f.png)
[ciscn2019 finals Day2 web1]easyweb
![[BJDCTF2020]EzPHP](/img/be/a48a1a9147f1f3b21ef2d60fc1f59f.png)
[BJDCTF2020]EzPHP

Essay - I say you are so cute

Deep understanding of golang - closures
![[SQL注入] 扩展注入手法](/img/a1/d4218281bfc83a080970d8591cc6d4.png)
[SQL注入] 扩展注入手法
![[By Pass] WAF 的绕过方式](/img/dd/7204b2401a9f18c02c8b9897258905.png)
[By Pass] WAF 的绕过方式

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

深入理解Pod对象:基本管理

flink需求之—ProcessFunction(需求:如果30秒内温度连续上升就报警)

Data warehouse knowledge points
随机推荐
Flink based real-time project: user behavior analysis (II: real-time traffic statistics)
解决rsyslog服务占用内存过高
VMware Workstation 虚拟机启动就直接蓝屏重启问题解决
JSCORE day_ 03(7.4)
The difference between golang slice make and new
MySQL index optimization: under what circumstances do you need to build an index (several situations suitable for building an index)
MySQL Part 2
10 - CentOS 7 上部署MySql
MySQL uses and implements ranking functions rank and deny_ Rank and row_ NUMBER
分区的使用及案例
select查询题目练习
Spark源码学习——Memory Tuning(内存调优)
智密-腾讯云直播 MLVB 插件优化教程:六步提升拉流速度+降低直播延迟
[ciscn2019 southeast China division]double secret
当事务遇上分布式锁
Spark数据倾斜解决办法
[hongminggu CTF 2021] write_ shell
Cannot find a valid baseurl for repo: HDP-3.1-repo-1
2022.7.14DAY605
MySQL Article 1