安卓系统的录屏工具 scrcpy

发布时间:2023年12月31日

提供在windows、linux、mac进行命令行的录屏

GitHub - Genymobile/scrcpy: Display and control your Android device

要求安卓5.0以上版本,使能ADB debug

It focuses on:

  • lightness: native, displays only the device screen
  • performance: 30~120fps, depending on the device
  • quality: 1920×1080 or above
  • low latency:?35~70ms
  • low startup time: ~1 second to display the first image
  • non-intrusiveness: nothing is left installed on the Android device
  • user benefits: no account, no ads, no internet required
  • freedom: free and open source software

Its features include:

常见命令行 scrcpy --help

scrcpy -r localfile.mp4? 录屏到指定文件

scrcpy -Nr localfile.mp4? 在本地不现实安卓屏幕内容

import subprocess
import os
import time

p=subprocess.Popen("scrcpy -Nr tmp.mp4", shell=True)

time.sleep(5)
os.kill(p.pid, signal.CTRL_C_EVENT)

文章来源:https://blog.csdn.net/victorwjw/article/details/135312965
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。